Metricum Lab

Technical research

Google Search Console API for SEO: Access, Exports and Data Limits

A scheduled Search Console export is useful only when you can explain what each row means. Define access, dates, grouping and storage before turning the results into SEO recommendations.

Yurii Pekach PublishedUpdated7 min read
Data trays moving into separate archive drawers beside a magnifying glass.

The short answer

Use an authorized read-only client, request finalized daily data and paginate through the available rows. Save the request configuration with each extract, replace repeated daily partitions and compare consistent page groups. Search Analytics reports search performance; it does not establish whether a URL is indexed.

Why move Search Console data into an API workflow

The API is useful when the same report must be reproduced every week or joined to a URL inventory. Store the request alongside the response so a later reviewer can recover its dates, filters, dimensions and search type. A manual export remains reasonable for a one-off question.

Search Analytics returns clicks, impressions, CTR and average position for the requested grouping. Use these metrics to locate a change, then investigate its cause with the appropriate technical evidence. Missing clicks alone do not diagnose a crawling or indexing problem.

Authorize the right property and plan incremental exports

A plain API key does not authorize access to private Search Console performance data. Use an OAuth access token with the webmasters.readonly scope for reporting, and verify access to the exact property. A domain property uses sc-domain:example.com; a URL-prefix property uses its full registered URL. Keep credentials out of source control and out of request logs.

Use the exact property identifier registered in Search Console. A service account also needs explicit access to that property; a Cloud project role alone is not permission to read its search data. For a scheduled reader, keep the credential outside the repository and grant only the access the workflow needs.

Google recommends daily extraction for one day at a time. Treat this as the unit of storage, not a requirement to ignore a missed day: a scheduled job can process a bounded queue of missing dates. Search Analytics dates use Pacific Time (PT), so do not silently label them as UTC or local calendar days.

  • Record property, search type, dates and grouping in the run manifest.
  • Fetch finalized days; if you intentionally use fresh data, mark it provisional and refresh it later.
  • Use the same daily replacement logic for backfills and scheduled runs, with separate run labels.

Designing dimensions around the audit question

Choose dimensions around the decision: page and date for changes by URL, or page and query for the visible query mix. The combination defines a row. Adding a dimension changes the grain; reordering the same dimensions changes key positions, so decode keys against the stored request.

The API returns available top rows, not an exhaustive event log. Page/query detail can omit data, and property and page aggregation count differently. Keep overall totals separate from detailed extracts; a gap between them is not automatically a traffic loss.

Choose a grouping for the analysis task
Reader taskUseful groupingWhat to watch
Which pages lost clicks week over weekpage, datePage-level data may be incomplete; compare like-for-like date windows
Which queries a landing page earnspage, queryBoth dimensions are subject to the documented data-drop caveat
Device-specific CTR diagnosispage, device, dateKeep the device split consistent across runs
Country-level demand shiftcountry, dateCountry grouping is coarser than query-level diagnosis

Default ordering is by click count descending, except when you group by date, in which case rows come back oldest first. Ties are sorted arbitrarily. That matters for reproducibility: if your workflow assumes the first N rows are stable, ties can reorder between runs. Request an explicit row limit and store the full response rather than relying on default ordering to be deterministic.

Validate data presence before running filtered queries

Before a filtered extract, make an unfiltered request grouped by date for the same property, search type and date range. Dates without data are omitted. Record which days returned data and which did not; an absent date alone cannot distinguish inactivity from reporting delay.

  1. 1

    Run the date-only probe

    Send a request with only startDate, endDate and dimensions set to date. This returns the days that actually have data in the range, which is the baseline for every later query.

    Pass criterionThe probe returns at least one date row for the range you intend to analyze.

  2. 2

    Compare the probe against your expected calendar

    A missing day may reflect reporting delay or no recorded activity. Compare the date-only response with the property and search type you requested; do not assign a cause from an empty result alone.

    Pass criterionMissing dates are recorded and classified only when supporting evidence is available.

  3. 3

    Only then add dimensions and filters

    Once the range is confirmed, add the page, query, device or country groupings your audit needs. Keep the probe result stored alongside the filtered result so the validation step is auditable.

    Pass criterionFiltered results are stored with the probe output that justified the date range.

Structuring extracted rows for cohort analysis

The API returns rows with keys, clicks, impressions, CTR and position, plus a response aggregation type. That shape is deliberately flat: one row per dimension combination. Cohort analysis is an editorial layer you build on top, not something the API performs for you. The design decision is what defines a cohort—a page template, a section of the site, a query intent class, a device segment—and how you keep that definition stable across runs.

  • Store the raw response per run, keyed by property, date range, dimensions and search type, so any later aggregation can be traced back to a specific request.
  • Keep dimension order fixed or decode keys using the stored request. Reordering dimensions changes the position of values in keys, not the underlying grouping when the dimension set is unchanged.
  • Record the search type (web, image, video, news, discover) with every row. Mixing search types in one cohort silently blends different surfaces.
  • Treat page-level and query-level totals as separate datasets. Do not sum them together or reconcile them against property-level totals without acknowledging the documented data-drop caveat.

Define a cohort as an explicit URL rule or saved inventory version. For example, compare the same category pages before and after a release, then review added or removed pages separately. Preserve the original rows so classification changes do not erase the evidence.

A daily request and a bounded pagination loop

This JSON body requests finalized daily page data. Use a date that is available for the property. Pagination retrieves additional available rows; it does not remove Search Console’s internal limits.

Daily page request body

{
  "startDate": "2026-11-01",
  "endDate": "2026-11-01",
  "dimensions": [
    "page"
  ],
  "type": "web",
  "dataState": "final",
  "rowLimit": 25000,
  "startRow": 0
}

Request-body example; send with an authorized client. 25,000 is the documented maximum rowLimit per request, not a completeness guarantee.

  • Keep all filters, dates and dimensions unchanged between pages. Increase startRow by the requested page size.
  • Stop on a short or empty page, and record the stop reason. If an operational cap stops the job, mark the extraction truncated.
  • Retry temporary 429/5xx failures with bounded backoff. A 401 calls for an authentication check; a 403 requires checking permission and quota details.
  • Persist each completed daily partition atomically. Re-running a day should replace its partition, not double-count it.

Limitations, scope and what this workflow cannot prove

Use Search Analytics for performance and the separate URL Inspection API for the indexed version of a URL. URL Inspection is not a live crawl and does not provide an API command to request indexing. A missing performance row does not establish that a page is absent from the index.

Build two reporting layers: a consistent overall series and a detailed diagnostic series. Do not add their totals together. Recompute CTR from summed clicks and impressions rather than averaging row CTRs; keep the aggregation type with any position calculation. Before comparing periods, check equal window lengths, weekday mix, filters and extraction completeness.

Turn the result into a decision using the SEO reporting workflow. If a cohort loses visibility, combine the data with a technical audit rather than automatically rewriting every affected page.

Primary sources and documentation

Sources

Every changing search, browser, interface or technical-behavior claim in this guide is tied to a current primary source.

  1. developers.google.com Search Analytics: query | Search Console API | Google for Developers (opens in a new tab)
  2. developers.google.com Getting your performance data | Search Console API | Google for Developers (opens in a new tab)
  3. developers.google.com Query your Google Search analytics data | Search Console API | Google for Developers (opens in a new tab)
  4. developers.google.com Authorize Search Console API requests (opens in a new tab)
  5. developers.google.com Inspect indexed URL status (opens in a new tab)

Need help diagnosing and implementing the fix?

Turn Search Console data into a technical SEO diagnosis

Metricum Lab builds technical SEO systems analysis around reproducible data extraction, indexation diagnosis and architecture review—so your Search Console workflows feed decisions rather than dashboards.

Explore technical SEO systems analysis