Search Console API: How to Get Access and What It Returns
By Toy Wen Da, Co-Founder · Updated · 6 min read · scored 97/100
The search console API is Google's programmatic interface to the same data you see in Google Search Console: clicks, impressions, position and index status, delivered through code instead of the dashboard. To use it, enable the API in Google Cloud Console, create credentials, and then authorize them against a property you already own in Search Console.
Before you build anything custom, check whether you need raw API access at all. SearchBlueprint's site traffic feature already pulls your Search Console numbers alongside Google Analytics and AI-crawler visits into one view, which answers the "what's happening with my clicks and impressions" question for most site owners without a line of code.
What the Search Console API does
It is a REST API published by Google that mirrors most of the Search Console dashboard: search performance (queries, pages, countries, devices), sitemap status, and URL inspection results. You call it from a script, a backend service, or a tool, and it returns structured JSON instead of a screen you have to read by hand.
It gives you nothing that Search Console doesn't already show. What changes is volume and automation: you can pull years of data, combine multiple properties, or refresh a report every morning without a human opening a browser tab.
Getting access: API key, OAuth and enabling the API
A plain API key is not enough. Google's Search Analytics endpoints need a user or service account authorized against the specific property, because the data is tied to whoever verified ownership. The sequence below follows the current console.
Step 1: Enable the API in Google Cloud Console
Go to the Google Cloud Console, select or create a project, open the APIs & Services menu, then Library. Search for "Google Search Console API", click it, and click Enable.
Step 2: Create credentials
Still in APIs & Services, open Credentials, then Create Credentials. For scripts and server-to-server jobs, choose a Service Account and download its JSON key. For an app acting on behalf of a logged-in user, choose an OAuth client ID instead.
Step 3: Grant access in Search Console
The API only sees properties that the authenticated identity can access. If you created a service account, copy its email address and add it as a user under Settings > Users and permissions. Full or Restricted access is the minimum, and the right one depends on whether the account needs to submit sitemaps or only read data.
Step 4: Make your first call
With credentials in hand, authenticate and call the Search Analytics query method, passing a start date, an end date, and the dimensions you want (query, page, country, device). A verification mismatch tends to surface here. If the service account can't see the property, Search Console verification itself probably needs a second look, and it's worth fixing at the source before you debug the API call.
What you can pull: endpoints at a glance
| Endpoint | What it returns | Typical use |
|---|---|---|
| Search Analytics query | Clicks, impressions, CTR, position by query/page/country/device | Rank and traffic dashboards |
| Sitemaps | List, submit, or delete sitemap entries | Automated sitemap resubmission after a rebuild |
| URL Inspection | Index status, canonical, mobile usability for one URL | Checking if a page got indexed after publishing |
| Sites | List or add properties the account can access | Multi-site agency tooling |
Search Console API vs. manual export vs. no-code tools
| Option | Best for | Setup effort | Main limitation |
|---|---|---|---|
| Search Console UI export | A single, occasional check | None | Capped rows, no scheduling, no automation |
| Direct API calls | Custom dashboards, developers | Moderate to high (OAuth, code) | You maintain the auth and the code |
| No-code API wrappers | Non-developers who still need JSON | Low | Monthly fee, less control over fields |
| Integration platforms (iPaaS) | SaaS products embedding GSC data for customers | Moderate | Built for vendors, not a single site's reporting |
No-code wrappers exist to skip the OAuth and endpoint work. NoCodeAPI's Search Console connector, for example, turns Search Analytics and sitemap calls into a single authenticated JSON endpoint. Vendors such as Paragon pitch native Search Console integrations built with roughly 70% less engineering effort than writing OAuth and sync logic from scratch, but they are aimed at SaaS teams shipping Search Console data inside their own product rather than at someone who wants their own numbers.
When the free tools are enough and when they aren't
Search Console's own interface is enough for checking one URL, answering a one-off question such as whether a page got indexed, or glancing at last month's top queries. It isn't built for anything recurring or spread across many properties.
The API, or a tool built on it, earns its keep when you need:
- A scheduled report that refreshes without anyone opening Search Console
- Data across more properties than you can tab through by hand
- History beyond what the UI conveniently surfaces
- Search data joined with other sources
If you go the joined-data route, it helps to know the real difference between Search Console and Analytics, since they answer different questions and neither replaces the other.
Common Mistakes
- Using an API key instead of OAuth or a service account. Search Analytics calls fail without proper authorization, however valid the key looks.
- Forgetting to add the service account as a user in Search Console. The API credential and the property permission are two separate steps.
- Assuming the API returns more history than the UI. Both pull from the same underlying data, so the API's advantage is automation and not extra months of records.
- Hardcoding date ranges and dimensions. Queries that don't paginate properly will silently truncate results on high-traffic sites.
FAQs
Do I need to pay for the search console API?
No. The API is free to use under Google's standard quota limits, and you only pay if you build or buy a tool on top of it.
What's the difference between an API key and OAuth for Search Console?
An API key identifies a project. OAuth or a service account identifies and authorizes a specific user or account against a property, and Search Analytics data requires the latter.
Can I use Search Console's API without coding?
Yes, through no-code connectors that wrap the API in a simpler JSON endpoint. You'll still need to authenticate with Google and manage an account with that provider.
How much data can I pull per request?
Google's documentation outlines per-method row and quota limits. Large accounts typically need to paginate requests rather than pull everything in one call.
Does the API work for properties I haven't verified?
No. Access is tied to verified ownership in Search Console, so the credential you use has to be added as a user on that property first.
For the full technical reference, including quotas and method parameters, see Google's own Search Console API documentation.
Check your numbers before you build anything
If the goal is visibility into clicks, impressions and how AI crawlers treat your pages, the search console API isn't necessary. Skip the OAuth setup and see the same data pulled together in SearchBlueprint's site traffic view. For a broader look at how your site performs in search right now, talk to the team, who will give you a sample report built from your own site's data.
Resources / References
Sources
About the author
SearchBlueprint researched, wrote and scored this article with the content pipeline our customers run on their own sites. The score in the byline is what our content engine gave this page before it published. Nothing here is reviewed by hand, which is the point: it is the product's output, published where anyone can check it.