Google Search Console API
  1. sites
Google Search Console API
  • urlInspection
    • /v1/urlInspection/index:inspect
      POST
  • urlTestingTools
    • /v1/urlTestingTools/mobileFriendlyTest:run
      POST
  • sites
    • /webmasters/v3/sites
      GET
    • /sites
      GET
    • /webmasters/v3/sites/{siteUrl}
      DELETE
    • /sites/{siteUrl}
      DELETE
    • /webmasters/v3/sites/{siteUrl}
      GET
    • /sites/{siteUrl}
      GET
    • /webmasters/v3/sites/{siteUrl}
      PUT
    • /sites/{siteUrl}
      PUT
  • searchanalytics
    • /webmasters/v3/sites/{siteUrl}/searchAnalytics/query
      POST
    • /sites/{siteUrl}/searchAnalytics/query
      POST
  • sitemaps
    • /webmasters/v3/sites/{siteUrl}/sitemaps
      GET
    • /sites/{siteUrl}/sitemaps
      GET
    • /webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}
      DELETE
    • /sites/{siteUrl}/sitemaps/{feedpath}
      DELETE
    • /webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}
      GET
    • /sites/{siteUrl}/sitemaps/{feedpath}
      GET
    • /webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}
      PUT
    • /sites/{siteUrl}/sitemaps/{feedpath}
      PUT
  1. sites

/sites

GET
/sites
sites
Lists the user's Search Console sites.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://searchconsole.googleapis.com//sites'
Response Response Example
{
  "siteEntry": [
    {
      "permissionLevel": "SITE_PERMISSION_LEVEL_UNSPECIFIED",
      "siteUrl": "string"
    }
  ]
}

Request

None

Responses

🟢200Successful response
application/json
Body
List of sites with access level information.
siteEntry
array[object (WmxSite) {2}] 
optional
Contains permission level information about a Search Console site. For more information, see Permissions in Search Console.
permissionLevel
enum<string> 
optional
The user's permission level for the site.
Allowed values:
SITE_PERMISSION_LEVEL_UNSPECIFIEDSITE_OWNERSITE_FULL_USERSITE_RESTRICTED_USERSITE_UNVERIFIED_USER
siteUrl
string 
optional
The URL of the site.
Modified at 2022-09-12 11:46:11
Previous
/webmasters/v3/sites
Next
/webmasters/v3/sites/{siteUrl}
Built with