What Google’s search APIs can and cannot do for collecting results, their limits, and more reliable alternatives for rank data.
In this article 5 sections · 3 min read
Developers building SEO tools or reports often look for an official way to pull Google results programmatically. The usual starting point is the Custom Search JSON API. It works for some use cases, but it is not a substitute for Google Search rankings.
01What the Custom Search JSON API does
It queries a Programmable Search Engine you configure, returning up to 10 results per request. You can page through results with a start parameter, so collecting 100 results takes several requests.
Google has been restricting access to the Custom Search JSON API. Check current availability, pricing and quotas in Google’s documentation before building on it.
02Basic setup
- Create a project in Google Cloud Console.
- Enable the Custom Search API and create an API key.
- Create a Programmable Search Engine and note its ID.
- Send requests with your key, engine ID, query and start position.
- Store results with the date, query and position.
03Important limits
- 10 results per request, so pagination is required.
- Daily quotas, with charges beyond the free allowance.
- Results differ from Google Search, so positions are not true rankings.
- No local or personalised results.
04Better options for rank data
- Search Console API for your own sites: real queries, clicks, impressions and average positions.
- SEO tool APIs, such as Semrush or Ahrefs, for keyword rankings and competitor data.
- Licensed SERP data providers for large-scale tracking.
05Practical advice
- Decide what decisions the data will support before choosing a source.
- Respect terms of service; avoid scraping Google directly.
- Store history yourself, because most sources limit how far back you can go.
For more context on recent changes, read how to see more than 10 results in Google. If you need automated reporting, our admin and back-office automation and marketing dashboards services can build it.
Our team can review your situation and tell you exactly what to fix first.
