Paginate through all Search Analytics rows using startRow offsets to exceed the per-request row cap

domain: google-search-console · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Authenticate with the Search Console API using a service account and OAuth 2.0 with the webmasters.readonly scope
  2. Send an initial POST to the searchanalytics.query endpoint with rowLimit set to 25000 and startRow set to 0
  3. Capture the number of rows returned; if it equals rowLimit, increment startRow by 25000 and repeat
  4. Continue paginating until a response returns fewer rows than rowLimit, indicating the final page
  5. Merge all response arrays and deduplicate on the requested dimension tuple before writing to storage

Known gotchas

Related routes

Paginate Google Ads API GAQL search results with fixed 10,000-row pages
developers.google.com · 6 steps · unrated
Paginate large Cassandra/Astra DB result sets using driver-level paging tokens
docs.datastax.com · 5 steps · unrated
Paginate a large SuiteQL result set through the NetSuite REST API using limit, offset, and hasMore
netsuite · 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