Google Search Console API . sites

Instance Methods

add(siteUrl, x__xgafv=None)

Adds a site to the set of the user's sites in Search Console.

close()

Close httplib2 connections.

delete(siteUrl, x__xgafv=None)

Removes a site from the set of the user's Search Console sites.

get(siteUrl, x__xgafv=None)

Retrieves information about specific site.

list(x__xgafv=None)

Lists the user's Search Console sites.

Method Details

add(siteUrl, x__xgafv=None)
 Adds a site to the set of the user's sites in Search Console.

Args:
  siteUrl: string, The URL of the site to add. (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format
close()
Close httplib2 connections.
delete(siteUrl, x__xgafv=None)
 Removes a site from the set of the user's Search Console sites.

Args:
  siteUrl: string, The URI of the property as defined in Search Console. **Examples:** `http://www.example.com/` or `sc-domain:example.com`. (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format
get(siteUrl, x__xgafv=None)
 Retrieves information about specific site.

Args:
  siteUrl: string, The URI of the property as defined in Search Console. **Examples:** `http://www.example.com/` or `sc-domain:example.com`. (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Contains permission level information about a Search Console site. For more information, see [Permissions in Search Console](https://support.google.com/webmasters/answer/2451999).
  "permissionLevel": "A String", # The user's permission level for the site.
  "siteUrl": "A String", # The URL of the site.
}
list(x__xgafv=None)
 Lists the user's Search Console sites.

Args:
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # List of sites with access level information.
  "siteEntry": [ # Contains permission level information about a Search Console site. For more information, see [Permissions in Search Console](https://support.google.com/webmasters/answer/2451999).
    { # Contains permission level information about a Search Console site. For more information, see [Permissions in Search Console](https://support.google.com/webmasters/answer/2451999).
      "permissionLevel": "A String", # The user's permission level for the site.
      "siteUrl": "A String", # The URL of the site.
    },
  ],
}