Sites

  • This resource outlines site permission levels within Google Search Console, including details on ownership, full user, restricted user, and unverified user roles.

  • It provides structured data representation with properties like siteUrl and permissionLevel to manage Search Console sites.

  • Users can utilize provided methods (add, delete, get, list) for managing their websites within Google Search Console via the API.

  • This information assists developers in programmatically interacting with Search Console to retrieve site data and manage site settings based on user permissions.

For a list of methods for this resource, see the end of this page.

Resource representations

Contains permission level information about a Search Console site. For more information, see Permissions in Search Console.

{
 "siteUrl": string,
 "permissionLevel": string
}
Property name Value Description Notes
permissionLevel string The user's permission level for the site.

Acceptable values are:
  • "siteFullUser"
  • "siteOwner"
  • "siteRestrictedUser"
  • "siteUnverifiedUser"
siteUrl string The URL of the property to add. Examples: http://www.example.com/ (for a URL-prefix property) or sc-domain:example.com (for a Domain property)

Methods

add
Adds a site to the set of the user's sites in Search Console.
delete
Removes a site from the set of the user's Search Console sites.
get
Retrieves information about specific site.
list
Lists the user's Search Console sites.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024年07月23日 UTC.