Google Search Console API: Complete SEO Automation & Data Guide

Google Search Data & SEO Automation Guide

Google Search Console API: Complete SEO Automation & Data Guide

The Google Search Console API gives authorised applications programmatic access to selected Search Console data and management functions. Instead of manually opening reports, developers and SEO teams can query Search Analytics, inspect indexed URL information, work with sitemaps and manage accessible properties through automated workflows. For the standard Search Console interface, start with our Google Search Console guide. This API guide forms part of the wider Google playbook.

KEY The API is not a complete programmatic copy of the Search Console interface. Some UI functionality, including the interactive live URL test, is not exposed through the Search Console API.
API Fundamentals

What Is the Google Search Console API?

The API lets software interact with selected Search Console resources rather than relying entirely on manual browser-based reporting.

READ

Extract Search Data

Retrieve Search Analytics performance information for authorised properties and process it inside custom applications, reporting systems or data warehouses.

AUTO

Automate Repetitive Work

Schedule recurring extraction, monitoring and reporting tasks instead of manually downloading similar Search Console data every week or month.

BUILD

Build Custom SEO Systems

Combine Search Console information with internal datasets, Analytics or reporting tools to create workflows suited to a particular SEO operation.

Interface vs Automation

Search Console UI vs Search Console API

The two access methods complement each other. The API is strongest for automation, while the browser interface remains valuable for interactive investigation.

UI

Search Console Interface

Use the standard interface when an SEO specialist wants to inspect reports interactively, investigate a particular URL or review Google's visual diagnostic information.

  • Interactive Performance reports
  • Page Indexing reports
  • URL Inspection interface
  • Live URL testing
  • Manual troubleshooting
  • Visual enhancements and issue reports
API

Search Console API

Use the API when Search Console information needs to be extracted or checked programmatically at scale.

  • Scheduled performance extraction
  • Custom databases and warehouses
  • Bulk indexed-URL inspection
  • Sitemap automation
  • Custom dashboards
  • Monitoring and alert workflows
API Service Map

Four Core Search Console API Areas

The public Search Console API is organised around Search Analytics, URL Inspection, sitemaps and Search Console properties.

SA

Search Analytics

Query Search performance using date ranges, dimensions, filters, row limits and aggregation settings to retrieve clicks, impressions, CTR and position.

URL

URL Inspection

Retrieve information about the version of an authorised URL known to Google's index, including crawl, canonical and indexing-related information.

XML

Sitemaps

List, inspect, submit and remove sitemap resources associated with Search Console properties.

SITE

Sites

List accessible properties, inspect access levels and work with Search Console site resources according to the authorised user's permissions.

Authorisation

OAuth 2.0 Controls Access to Private Search Console Data

Applications should request only the permissions they genuinely need and must still operate within the Search Console access granted to the authorising Google account.

Authorise the Application Before Requesting Data

A typical workflow starts by creating or selecting a Google Cloud project, enabling the relevant API, configuring the OAuth consent process and creating suitable application credentials.

The user then authorises the requested scope. The resulting token allows the application to make authenticated requests on behalf of that authorised user.

The Cloud setup belongs to the broader developer environment covered separately in our planned Google Cloud Console guide.

1
Create or Select Cloud Project Use the appropriate Google Cloud project for the application.
2
Enable Search Console API Make the API available to the project.
3
Configure OAuth Set up the consent configuration appropriate to the application.
4
User Authorises Access The user approves the requested Search Console scope.
5
Application Sends Requests Authenticated requests can now access permitted Search Console resources.
OAuth Scopes

Read-Only vs Read/Write Access

Use the least privileged scope that can complete the task. Reporting tools usually do not need write access.

READ

Read-Only Scope

Suitable when the application only needs to retrieve Search Console information and does not need to change Search Console resources.

https://www.googleapis.com/auth/webmasters.readonly
WRITE

Read/Write Scope

Use the broader scope only when the application genuinely needs operations that modify eligible Search Console resources.

https://www.googleapis.com/auth/webmasters
Property Syntax

URL-Prefix and Domain Properties Use Different API Values

The exact Search Console property identifier matters. Applications should use the same property form recognised by Search Console.

URL

URL-Prefix Property

A URL-prefix property includes the protocol and usually ends with a trailing slash.

https://www.example.com/

Only URLs within that exact property scope are represented.

DOMAIN

Domain Property

Domain properties use Search Console's domain-property syntax rather than a normal website URL.

sc-domain:example.com

Using the wrong property identifier can lead to access or request errors even when the user can access another version of the site.

Search Analytics API

Query Search Performance Programmatically

Search Analytics is the core SEO reporting endpoint for retrieving Search performance by selected dimensions and filters.

POST

Build a Search Analytics Request

Requests can define a start date, end date, dimensions, filters, row limit and other query settings.

A common SEO workflow is to request query and landing-page combinations, then analyse their clicks, impressions, CTR and average position.

For definitions and interpretation of the underlying performance metrics, see our complete Search Console guide.

searchAnalytics.query POST
{
  "startDate": "2026-07-01",
  "endDate": "2026-07-31",
  "dimensions": [
    "query",
    "page"
  ],
  "rowLimit": 25000
}
Search Analytics Fields

Dimensions, Metrics and Aggregation

Dimensions determine how the performance data is grouped. Metrics describe how those grouped rows performed.

DIM

Common Dimensions

Dimensions can break the response into meaningful SEO groupings.

query page country device date hour
MET

Core Metrics

Search Analytics response rows can include the principal Search Console performance metrics.

clicks impressions ctr position
AGG

Aggregation Matters

Changing dimensions and aggregation settings can change how Google groups the data. Two queries using different dimensions should not automatically be expected to produce identical totals.

Dimension Filters

Narrow Large Search Datasets to a Specific SEO Question

Filters can reduce broad performance data to the exact country, device, query theme or landing-page group being investigated.

FILTER

From Millions of Impressions to One Useful Segment

Suppose an SEO team wants to understand mobile UK performance for queries containing “seo” where the ranking page sits within the blog.

Instead of downloading the entire property dataset, the request can include dimension filters that narrow the response before analysis.

country = GBR device = MOBILE query contains "seo" page contains "/blog/"
Country Restrict analysis to an individual market or compare markets separately.
Device Separate mobile, desktop and other supported device categories.
Query Include or exclude search terms using suitable supported operators.
Page Analyse a directory, content type or selected landing-page group.
Critical Data Limitation

The Search Console API Is Not a Raw Log of Every Google Search Query

Search Analytics does not guarantee that every possible row in Google's underlying search data will be returned. The API is subject to Search Console's internal data limits and generally returns the most significant rows rather than functioning as a complete server-style log of every individual search.

This means an SEO reporting system should not describe Search Analytics API exports as a complete list of every query that produced an impression. Missing low-volume query rows are not evidence that those searches never occurred.

When date is included as a dimension, days with no available data may also be absent from the returned rows rather than appearing automatically as rows containing zeros.

Search Console API — 2026

FAQ Search Appearance Is Being Deprecated

Google stopped showing FAQ rich results in Search in May 2026. As part of the corresponding Search Console cleanup, the FAQ search-appearance value in Search Analytics is being deprecated during August 2026.

Applications that rely on historic search-appearance values should avoid assuming that a previously supported appearance category will remain available permanently. Search features and API reporting dimensions can evolve as Google changes Search presentation.

For the broader structured-data testing context, see our Google Rich Results Test guide.

URL Inspection API

Inspect Google's Indexed Understanding of Important URLs

The URL Inspection API is useful for programmatic monitoring, but it does not perform the same live URL test available through the Search Console browser interface.

Indexed URL State — Not a Live Crawl

The API can return information about the URL as known to Google's index, including indexing verdicts, crawl information and canonical signals.

This makes it valuable for checking groups of strategically important pages without manually opening the URL Inspection interface for each one.

For live testing and the full interactive inspection workflow, continue to use the standard Search Console interface.

POST https://searchconsole.googleapis.com/v1/urlInspection/index:inspect
IDX
Index Verdict Check Google's indexed status assessment.
PASS
BOT
Robots State Understand crawl permission information.
ALLOWED
FETCH
Page Fetch Inspect the last known fetch outcome.
SUCCESS
CAN
Canonical Compare declared and Google-selected canonicals.
MATCH
TIME
Last Crawl Retrieve the most recent crawl timestamp reported.
KNOWN
Canonical Monitoring

Compare User-Declared and Google-Selected Canonicals

A canonical difference is not automatically an error, but it is a useful signal to investigate when Google consistently selects a different URL from the one the site declares.

MATCH

Canonical Agreement

The site's declared canonical and Google's selected canonical point to the same preferred URL.

User canonical: https://example.com/product/
Google canonical: https://example.com/product/
MATCH
CHECK

Canonical Difference

Google has selected a different canonical from the site's declared preference. Investigate duplication, internal links, redirects, page content and other canonical signals.

User canonical: https://example.com/product-red/
Google canonical: https://example.com/product/
INVESTIGATE
Sitemaps API

List, Inspect, Submit and Delete Sitemap Resources

Sitemap automation is useful for larger environments, but submitting a sitemap through the API still does not guarantee that Google will index every URL it contains.

LIST

List Sitemaps

Retrieve sitemap resources associated with the selected Search Console property and inspect their reported state.

GET

Get Sitemap

Retrieve information about a particular sitemap, including available warnings, errors and submission-related metadata.

PUT

Submit Sitemap

Programmatically notify Search Console about a sitemap resource for the authorised property.

DEL

Delete Sitemap

Remove a sitemap resource from the property's Search Console sitemap list when appropriate.

Deprecated Field Warning

Do Not Build New Reporting Around the Old Sitemap “Indexed” Count

Some older sitemap API structures include an indexed count inside sitemap contents. Google marks that value as deprecated, so new monitoring systems should not depend on it as a reliable modern sitemap-indexation metric.

API Quotas

Design Automation Around Search Console Rate Limits

A good integration does not repeatedly request unchanged information or attempt to inspect every URL continuously.

SA

Search Analytics Quotas

Search Analytics uses both rate limits and separate load-based quotas. Large date ranges and expensive page/query combinations can consume more load.

Per-site query rate 1,200 QPM
Per-user query rate 1,200 QPM
Per-project query rate 40,000 QPM
Project daily requests 30 million
URL

URL Inspection Quotas

URL Inspection has much tighter limits, which makes prioritisation essential for larger websites.

Per-site daily limit 2,000 requests
Per-site minute limit 600 requests
Recommended approach Prioritise URLs
Repeated checks Cache results
Efficient API Design

Do Not Re-Download Six Months of Data Every Morning

A more efficient system stores previously retrieved historical data and only requests the incremental period required for the next update.

STORE

Store Historical Data

Save completed historical reporting periods rather than requesting the same unchanged date range repeatedly.

NEW

Fetch Incrementally

Request new or recently processed dates and append them to the existing dataset.

CACHE

Cache Inspection Results

Do not use limited URL Inspection quota to inspect the same unchanged URLs again and again within a short period.

PRI

Prioritise Important URLs

Focus inspection on money pages, newly launched URLs, pages with recent issues and strategically important templates.

SEO Automation

Practical Search Console API Workflows

The API becomes most useful when a team turns Search Console data into a repeatable process rather than simply reproducing the interface.

DAILY

Daily Search Performance Warehouse

Store daily Search Analytics results so long-term reporting does not depend on repeated manual exports.

Request recent Search Analytics data
Validate response
Append new rows to database
Preserve historical snapshots
Visualise in Data Studio
OPP

Landing-Page Opportunity Finder

Create internal analysis rules that highlight pages with high impressions and commercially interesting positions but comparatively weak CTR.

Pull page + query data
Filter high-impression rows
Find positions roughly 4–15
Compare CTR with similar opportunities
Send candidates for human SEO review
CAN

Canonical Monitoring

Regularly inspect selected important URLs and compare Google's canonical choice with the site's declared preference.

Maintain priority URL list
Call URL Inspection API
Read user canonical
Read Google canonical
Flag new differences
INDEX

Index Status Monitoring

Track material changes to selected strategic pages rather than repeatedly checking every URL on the site.

Select business-critical URLs
Store current indexed state
Inspect periodically
Compare against previous state
Flag meaningful changes
XML

Sitemap Monitoring

Monitor sitemap resources for new errors, warnings or operational changes without relying solely on manual Search Console checks.

List submitted sitemaps
Store warnings and errors
Compare with previous run
Flag newly problematic feeds
BRAND

Branded vs Non-Branded Reporting

Use internal query-classification logic to separate brand-related searches from wider discovery terms for more meaningful organic performance analysis.

Retrieve query rows
Apply brand pattern rules
Classify branded / non-branded
Aggregate separately
Visualise trend changes
Analysis vs Google Recommendation

Your Automation Rules Are Your Own SEO Logic

If your system flags a page because it ranks between positions 4 and 15 with high impressions and low CTR, that does not mean Google has recommended that page for optimisation. It is an internal analytical rule created from Search Console data.

The API supplies the underlying data. Your software, analysts and SEO strategy decide how that information is interpreted and which actions are appropriate.

Reporting Pipeline

Search Console API → Database → Data Studio

For simple reporting, a direct Search Console connector may be sufficient. For more advanced workflows, an API pipeline gives the team greater control over storage, processing and historical data.

01

Authenticate

Authorise the application using the minimum OAuth scope required.

02

Extract

Request Search Analytics or other permitted Search Console resources.

03

Store

Save the information in a controlled historical database or warehouse.

04

Transform

Normalise URLs, classify queries and calculate internal reporting groups.

FAST

Direct Connector

Best when the goal is straightforward reporting with minimal engineering and the connector already exposes the required fields.

API

API Pipeline

Better when the business needs persistent historical storage, custom processing, automated checks or integration with other proprietary data.

MIX

Hybrid Approach

Many organisations use the direct connector for quick dashboards while maintaining API-based data for specialist analysis and long-term storage.

Developer Workflow

Using the Search Console API With Python

Python is a common option for scheduled Search Console extraction, but the important part is the workflow rather than a particular programming language.

PY

Keep the Integration Simple

A typical script authenticates, identifies the correct property, constructs the request, retrieves the response and sends the resulting rows into a database, file or analysis process.

For a reporting-only application, use the read-only OAuth scope unless the workflow genuinely needs write operations.

https://www.googleapis.com/auth/webmasters.readonly
1
Authenticate Complete the OAuth 2.0 flow.
2
Select Property Use the exact authorised property identifier.
3
Build Request Define dates, dimensions, filters and row limits.
4
Execute Send the authenticated API request.
5
Store Persist the useful response data.
6
Analyse Apply your own SEO rules or reporting logic.
Cross-Platform SEO Data

Combine Search Console With Google Analytics Carefully

Search Console describes Google Search performance. Analytics describes onsite behaviour. They complement one another but do not measure identical things.

GSC

Search Console

Use Search Analytics for queries, pages, impressions, clicks, CTR and average position before or at the search click.

GA4

Google Analytics

Use Google Analytics to understand measurable behaviour after users arrive, including sessions, engagement and business events.

JOIN

Combined Reporting

Join compatible landing-page data carefully and avoid expecting Search Console clicks and Analytics sessions to reconcile perfectly.

Know the Boundaries

What the Search Console API Does Not Give You

The API is powerful, but treating it as a complete export of every Search Console feature leads to incorrect expectations.

LIVE

No Live URL Test API

URL Inspection API results relate to Google's indexed understanding rather than performing the interactive live test available in Search Console.

ALL

Not Every Search Row

Search Analytics does not expose a complete raw query log containing every possible Search impression.

UI

Not Every UI Report

Do not assume every Search Console interface report has an equivalent public API endpoint.

WHY

No Automatic SEO Diagnosis

The API supplies data. It does not determine why rankings fell or which SEO change a business should make next.

Avoid These Errors

Common Search Console API Mistakes

Most integration problems come from property access, poor data assumptions, inefficient requests or treating API responses as more complete than they really are.

WRITE

Requesting Excessive Permissions

A reporting application should not request read/write access when read-only access is sufficient.

PROP

Using the Wrong Property String

A URL-prefix property and a Domain property use different identifiers. Incorrect property syntax can break otherwise valid requests.

RAW

Calling It Complete Query Data

Search Analytics rows are not a comprehensive raw log of every search impression.

LOOP

Repeatedly Downloading Old Data

Store historical results and request incremental updates instead of wasting quota on unchanged date ranges.

URL

Inspecting Every URL Constantly

URL Inspection quotas are much tighter than Search Analytics quotas. Prioritise valuable and recently changed pages.

LIVE

Confusing Indexed With Live State

The URL Inspection API does not perform the same live fetch as the browser interface's live test.

JOIN

Bad Cross-Platform Joins

Search Console and GA4 data can be combined, but different scopes and measurement systems can create misleading blends if treated carelessly.

DEP

Depending on Deprecated Fields

API fields and Search appearance types can be deprecated as Google's Search features evolve.

AUTO

Automating Without Human Review

An automated alert should surface a potential issue for investigation rather than automatically assuming that every unusual response represents an SEO problem.

Search Console API Questions

Common Questions About the Google Search Console API

Quick answers covering access, Search Analytics, URL Inspection, quotas, sitemaps and automated SEO reporting.

01 What is the Google Search Console API?

The Google Search Console API lets authorised applications access selected Search Console data and resources programmatically, including Search Analytics, URL Inspection, sitemaps and Search Console properties.

02 Does the Search Console API require OAuth?

Yes. Access to private Search Console property data uses OAuth 2.0 authorisation. Applications should request the minimum scope needed for the workflow.

03 What data can Search Analytics API return?

Search Analytics can return performance metrics including clicks, impressions, CTR and position grouped by supported dimensions such as query, page, country, device, date and other available dimensions.

04 Does the API return every Google Search query?

No. Search Analytics is subject to Search Console's internal data limits and does not guarantee every possible search row. It should not be treated as a complete raw query log.

05 Can I filter Search Console API data?

Yes. Search Analytics supports dimension filters that can narrow results by fields such as query, page, country and device using supported filter operators.

06 Can the URL Inspection API perform a live URL test?

No. The API reports information about the indexed URL state known to Google. The live URL testing workflow remains part of the standard Search Console interface.

07 Can the API show Google's canonical URL?

The URL Inspection response can provide Google's selected canonical and the user-declared canonical where that information is available, making programmatic canonical comparison possible.

08 Can I submit a sitemap through the API?

Yes. The Sitemaps service supports submitting sitemap resources as well as listing, retrieving and deleting them. Sitemap submission does not guarantee that the contained URLs will be indexed.

09 Can Search Console API data be used in Data Studio?

Yes. A custom pipeline can extract and store Search Console data and then visualise the processed dataset in Google Data Studio. For simpler reports, the direct Search Console connector may require less engineering.

10 Is the Search Console API useful for SEO automation?

Yes. It is useful for scheduled performance extraction, selected index-status monitoring, canonical comparisons, sitemap monitoring and custom reporting. The automation logic still needs to be designed and interpreted by the SEO team.

Turn Search Console Data Into Repeatable SEO Systems

The Search Console API becomes valuable when it removes repetitive work or creates analysis that the standard interface cannot provide efficiently. Use the minimum OAuth permissions required, preserve the exact Search Console property syntax, store historical Search Analytics data rather than requesting it repeatedly, respect the tighter URL Inspection quotas and remember that API rows are not a complete raw search log. Build automation around specific business questions: important landing-page opportunities, canonical changes, strategic index-status monitoring, sitemap problems and reporting pipelines. The API should make SEO analysis more systematic — not replace the judgement needed to understand what the data actually means.

guestpost.uk new logo
💙 PayPal
💳 VISA
💳 Mastercard
🏦 Bank
🔒 SSL

© 2026. All rights reserved.

AI
GuestPost AI ConsultantSEO Consultant · Link Building · GEO · Tools
Ask about packages, pricing, SEO tools or a growth plan