Key takeaways
- Before you pay for any SEO tool API, look at what Google gives away: the Search Console API, the URL Inspection API, the PageSpeed Insights API and, with approval, the Business Profile APIs.
- The Search Analytics method returns up to 25,000 rows per request, but Google says it “does not guarantee to return all data rows but rather top ones.”
- The URL Inspection API reports the indexed version of a URL only, with a per-site quota of 2,000 calls a day; it cannot request indexing.
- The Business Profile APIs need an approved access request, and the profile must be “verified and active for 60+ days.”
- Automate the dull, repeated work (exports, checks, alerts). Keep judgement, fixes and anything that changes your site in human hands.
When people ask me about an SEO tool API, they usually mean a paid data service. Often the better first answer is free: Google publishes APIs for its own SEO tools, and they cover the data most businesses actually report on. This article explains what each one does, the limits Google documents, and what is worth automating.
I have worked in SEO and digital marketing for more than 16 years, and much of that time has gone into getting data out of tools and into a form people can use. Every figure below comes from Google’s own developer documentation, which I link so you can check it, because limits and features change. If the end goal is a monthly report, my walkthrough on how to create an SEO report from free Google data shows where this API data ends up.
Which Google APIs count as an SEO tool API
Four Google APIs cover most of what an SEO report or monitoring job needs:
| API | What it gives you | Access |
|---|---|---|
| Search Console API: Search Analytics | Clicks, impressions, CTR and position by query, page, country, device, date and more | Any verified Search Console property you can access |
| Search Console API: URL Inspection | The index status of a URL, as Google holds it | Same, per property |
| PageSpeed Insights API | Lighthouse lab results and, for now, real-user data | Open, with an API key recommended |
| Business Profile APIs | Management of your Business Profile data | Only after Google approves an access request |
The Search Console API also covers sitemaps and the list of sites you can access. None of these APIs show you competitors’ data. They show your own sites, which is usually what a report needs.
The Search Console API: Search Analytics in practice
The Search Analytics query method lets you “Query your search traffic data with filters and parameters that you define.” It is the search performance data you would otherwise copy out of Search Console by hand.
The details that matter when you build something on it:
- Rows per request: the row limit has a “Valid range is 1–25,000; Default is 1,000”. For more, you page through results with
startRow. - Not every row: “The API is bounded by internal limitations of Search Console and does not guarantee to return all data rows but rather top ones.” So totals added up from a query-level export may not match the site totals you see elsewhere; do not present them as if they did.
- Fresh or final: with
dataStateset to “all”, “data will include fresh data”; leave it out and you get “only finalized data”. For reports, I use finalised data; for a quick check after a launch, fresh data. - Search type: you can filter to web (the default), image, video, news, Discover or Google News.
- Read-only access: the method accepts the
webmasters.readonlyscope, so an export script never needs permission to change anything.
Google’s usage limits page sets the quotas for Search Analytics at 1,200 queries per minute per site and per user, and 40,000 per minute per project. There is also a load quota, with the short-term quota “measured in 10 minute chunks” and the long-term one “measured in 1 day chunks”. The same page explains what drives it: “Queries are expensive when you group and/or filter by either page or query string”, grouping by both is the most expensive, and load grows with the date range.
For sites with more data than the API can return, Search Console’s bulk data export is the better route; I cover when that makes sense in the article on choosing an enterprise SEO platform.
The URL Inspection API: index status at scale
The URL Inspection method lets you “View the indexed, or indexable, status of the provided URL.” You send the URL to inspect and the Search Console property it belongs to.
It has two limits you must design around:
- Indexed version only. “Presently only the status of the version in the Google index is available; you cannot test the indexability of a live URL.” If you just fixed a page, the API tells you what Google last saw, not what is live now.
- Quota per site. The limits page gives “2000 QPD” and “600 QPM” per site. On a large site that means you inspect a sample of important templates each day, not every URL.
The API does not request indexing. That stays a manual step in Search Console’s URL Inspection tool. What the API is good for is a daily check that your most important pages are still indexed, with the right canonical, so a problem shows up in days rather than months.
The PageSpeed Insights API: performance checks on a schedule
The PageSpeed Insights API documentation says it “returns real-world data from the Chrome User Experience Report and lab data from Lighthouse.” It “can be used with or without an API key, although a key is recommended for frequent, automated queries.”
One change to plan for: Google writes, “We plan to discontinue including real-world data from the Chrome User Experience Report in this API”, and points to the CrUX API and CrUX History API instead. If you build a Core Web Vitals report today, take the real-user data from one of those, and use PageSpeed Insights for the Lighthouse lab results.
Lab results vary from run to run, so I would not alert on a single test. A weekly run on one URL per template (home page, category, product or service page, article), compared with the previous few weeks, tells you when a release made things worse.
The Business Profile APIs: access comes first
The Business Profile APIs are the exception: they are not open by default. Google’s prerequisites page asks you to apply through a contact form, choosing “Application for Basic API Access.” To be eligible you must “Manage a Google Business Profile that is verified and active for 60+ days” and “Have a website representing the business listed on the GBP.” You also need your project number for the application.
The page gives a simple way to see where you stand: “If your quota is 0 QPM (Queries Per Minute), your project has not yet been approved.” For a business with one or two locations, the normal Business Profile interface is usually enough. The APIs make sense for organisations managing many locations, where updating hours or details one profile at a time takes too long.
What to automate, and what not to
An API makes a task faster. It does not make a wrong task right. This is how I split the work.
Good candidates for automation
- A monthly export of Search Analytics data by page and query into a sheet or warehouse, so you keep history beyond what the interface shows.
- A daily URL Inspection check of a short list of key pages, with an alert when one is no longer indexed.
- A weekly PageSpeed Insights run on one URL per template, flagging changes over several runs.
- An alert when clicks to an important page group fall sharply week on week.
- Pulling the same figures into a management dashboard instead of copying them by hand.
What I would not automate:
- Fixes. A script that rewrites titles or changes redirects based on API data can do damage faster than anyone can notice.
- Interpretation. A fall in clicks can be a seasonal dip, a lost ranking or a tracking problem. The alert should start an investigation, not end one.
- Scaled pages from API data. Generating pages from query lists is a fast route to thin, repetitive pages that help nobody.
An API should save you the copying, never the thinking.
For the next step, turning these exports into a page management actually reads, see the guide to an SEO performance dashboard.
FAQ
Is the Search Console API free?
Google’s documentation for it sets usage quotas rather than prices: the usage limits page lists, for example, 1,200 Search Analytics queries per minute per site, and it mentions no fees. You need a project and key in Google’s developer console.
What are the best SEO API tools for a small business?
For your own site, start with Google’s: the Search Console API for search performance, the URL Inspection API for index status and the PageSpeed Insights API for performance. Paid SEO API tools mainly add data about other sites, which many small businesses do not need.
Can an SEO API tool get my pages indexed?
No. The URL Inspection API only reports the status of the indexed version of a URL. Requesting indexing is a manual action in Search Console’s URL Inspection tool, and even then Google decides what to index.
Do I need to code to use these APIs?
Some scripting helps, but you can start small: a scheduled export of one report, using read-only access. If nobody on the team writes code, a consultant can set it up once and hand it over.