Skip to main content

Setup

Put them in your environment or .env; Data APIs covers the other ways.

Notes

  • Own-account API: only properties the signed-in Google user has in Search Console.
  • The siteUrl path segment must be percent-encoded (‘sc-domain%3Aexample.com’, ‘https%3A%2F%2Fwww.example.com%2F’).
  • Dates are Pacific Time. Results come back sorted by clicks, or by date when grouped by date; the API returns top rows, not every row.
  • Search analytics pages with startRow; at most 25,000 rows per call.

Endpoints

List Search Console properties

Query search performance

  • A read over POST. country values are ISO 3166-1 alpha-3 codes; device is DESKTOP, MOBILE or TABLET.
  • Fresh days can be partial: dataState ‘all’ includes them.

List a property’s sitemaps