Pull search performance data from Google Search Console API using dimensions and row limits

domain: developers.google.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Enable the Google Search Console API in Google Cloud Console and create OAuth 2.0 credentials for your project
  2. Authenticate using OAuth 2.0 with the scope https://www.googleapis.com/auth/webmasters.readonly and obtain an access token
  3. Send a POST request to the searchanalytics.query endpoint for your verified site, specifying a date range in the request body
  4. Set the 'dimensions' array to one or more of: query, page, country, device, date, searchAppearance — each dimension fans out results accordingly
  5. Use the 'rowLimit' field to request up to the API maximum per call, and paginate with the 'startRow' offset field to retrieve all rows beyond the first page
  6. Aggregate and store returned rows; each row contains dimension keys, clicks, impressions, ctr, and position values

Known gotchas

Related routes

Query Google Search Console Search Analytics API for Discover performance data
developers.google.com · 6 steps · unrated
Use the Search Console Search Analytics API to retrieve Discover performance data and understand which dimensions are and are not available for the 'discover' type
developers.google.com · 6 steps · unrated
Paginate through all Search Analytics rows using startRow offsets to exceed the per-request row cap
google-search-console · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans