Google SERP API
The ScrapeBeaver Google SERP API returns a live Google results page as structured JSON. Send a query with a country, language and device, and get ranked organic results, the AI Overview, People also ask, related searches and local results in one response. You pay only for successful calls.
100 free searches every month · No credit card
What does the Google SERP API return?
One JSON object per results page. The core blocks are always there; the rest appear when Google shows them on the page. A block or field Google did not show is left out, never sent as null, so you can tell “no rating” from “not checked”.
| Block | Present | What it holds |
|---|---|---|
organic_results | Always | Ranked results: position, title, link, displayed link, snippet, date and site name. |
ai_overview | When Google shows it | The AI Overview text and the sources it cites. |
related_questions | When Google shows them | People also ask: question, answer snippet and source. |
related_searches | When Google shows them | The searches Google suggests at the bottom of the page. |
knowledge_graph | When Google shows it | Title, subtitle, rating, review count and description. |
local_results | When Google shows them | Places: name, rating, reviews, price level, category, address, hours. |
pagination | Always | The current page and the start value for the next one. |
search_metadata | Always | Request id, status, verdict and time taken. |
Every response also carries organic_success: true when Google returned a valid page with parsed organic results. That is the condition a call is billed on. Full response reference
How do I make a request?
One POST request with your key in a header. No SDK needed; use any language with an HTTP client.
curl "$SCRAPEBEAVER_API/v1/search/light" \ -H "X-API-Key: $SCRAPEBEAVER_KEY" \ -H "Content-Type: application/json" \ -d '{ "query": "python pathlib documentation", "country": "GB", "locale": "en-GB" }'
Example response
{
"search_metadata": { "id": "6f1c2a9e-…", "status": "Success", "verdict": "ok", "total_time_taken": 1.62 },
"search_parameters": { "engine": "google", "q": "coffee shops london", "gl": "gb", "hl": "en-GB", "start": 0 },
"search_information": { "query_displayed": "coffee shops london", "total_results": 48200000, "ai_state": "complete" },
"organic_results": [
{
"position": 1,
"title": "The best coffee shops in London",
"link": "https://www.timeout.com/london/…",
"displayed_link": "timeout.com › london",
"snippet": "Our pick of the best coffee shops in London…",
"source": "Time Out"
}
],
"organic_success": true,
"pagination": { "current": 1, "next_start": 10 },
"ai_overview": { "text": "…", "sources": [{ "title": "…", "link": "https://…" }] },
"related_questions": [{ "question": "…", "snippet": "…", "link": "https://…" }],
"related_searches": [{ "query": "best coffee soho" }],
"local_results": [{ "title": "…", "rating": 4.7, "review_count": 920, "category": "Coffee shop" }]
}Shortened, with illustrative values. Block and field names are exact.
How do I target a country, city or device?
Set the market in the request. Google answers differently by country, language, place and device, so each of them is a parameter rather than a separate product.
| Parameter | What it does |
|---|---|
query | What to search for, 1 to 500 characters. |
country | Two-letter country code, for example GB or US. |
locale | Language of the results, for example en-GB or de. |
uule | A city, state or postal code below country level. |
device | desktop (default), mobile, iphone or ipad. |
start, pages | Page offset up to page 20, or pages 1 to 10 in one call. |
format | json (default), html for the page itself, or both. |
ai_overview | true also waits for an AI Overview that Google loads after the page. |
How is it billed?
Per successful call, at a flat rate per 1,000. A call that ends in a CAPTCHA, a block, an empty page or a parsing error is not billed, and our own retries never multiply the bill. Mobile and desktop cost the same, and there are no credit multipliers by country or language.
What are poisoned results?
Google sometimes answers automated traffic with a normal-looking page where the top results are swapped for sites that don’t rank for the query. There is no error, so a scraper simply stores the wrong data. ScrapeBeaver checks every page for signs of this and retries when a page looks wrong.
Can an AI agent use it?
Yes. Next to the REST API there is an MCP server, so Claude, Cursor and other MCP clients get Google search as a tool, with the same results and the same price per call.
{
"mcpServers": {
"scrapebeaver": {
"url": "$SCRAPEBEAVER_MCP_URL",
"headers": {
"X-API-Key": "$SCRAPEBEAVER_KEY"
}
}
}
}What do people build with it?
- Rank tracking. Positions for a set of keywords by country, city and device, page by page.
- SEO and content tools. People also ask, related searches and AI Overview sources for research and briefs.
- AI agents. Fresh search results as a tool, with sources an agent can cite.
- Market and brand monitoring. Who shows up for your category, and how that changes over time.
Google SERP API, answered.
What is a Google SERP API?
An API that returns Google search results as structured data. You send a query, and ScrapeBeaver handles proxies, CAPTCHAs, retries and parsing, then returns the results page as JSON.
Does Google have an official API for search results?
No. Google has no official API for its regular results page. A SERP API fetches that page for you and returns its results, with their positions and Google's own blocks, as JSON.
Which search results can I get?
Ranked organic results on every call, plus the AI Overview, People also ask, related searches, the knowledge graph and local results whenever Google shows them. Ads and the extra blocks of the Advanced tier are coming later.
Can I search from a specific country, city or device?
Yes. Set country and locale for the market, uule for a city, state or postal code, and device for desktop, Android, iPhone or iPad results. Mobile results cost the same.
How is a call billed?
Only successful calls are billed: a valid Google page with parsed organic results. CAPTCHAs, blocks, empty pages, parsing errors and our own retries cost nothing.
Is there a free plan?
Yes. 100 free searches every month, with no credit card. Sign in with Google and you get a key right away.
Start with 100 free searches
Sign in with Google, copy your key and send your first request. No credit card.