Search endpoint
One endpoint does everything: send a query, get one JSON object back.
/v1/search/lightRequest parameters
JSON body of the request. Send query or url; everything else is optional.
| Parameter | Type | Description |
|---|---|---|
query | string | Search query, 1 to 500 characters. Required unless you send url. |
url | string | A Google results URL to fetch, instead of query. Not with query, country, locale, google_domain, num, start, safe, time_range, uule or pages. |
engine | string | google (default). |
country | string | Two-letter country code, for example GB. See Locations, languages & devices. |
locale | string | Language, for example en, en-GB or de. Defaults to the country’s language. |
google_domain | string | Google host, for example google.co.uk. |
device | string | desktop (default), mobile, iphone or ipad. |
start | integer | Result offset: 0 is page 1, 10 is page 2, up to 190 (page 20). |
pages | integer | 1 (default) to 10. Returns pages 1 to N in one call. Each page counts as a search. Not with url or format: "html". |
num | integer | Results per page, 1 to 100. Google usually returns about ten. |
time_range | string | day, week, month or year. |
safe | string | off (default), moderate or strict. |
uule | string | Google’s UULE string for a postal code, city or state. Not coordinates. See a place below country level. |
format | string | json (default), html for the page itself, or both for the JSON with the page added. |
ai_overview | boolean | true also waits for an AI Overview that loads after the page. First page only. Not with format: "html". |
request_id | string | Your id for this request, 1 to 128 characters. Sent again, it returns the stored answer. Use a new one for each page. |
max_attempts | integer | 1 to 20. Limits retries for this request. |
Example request
{
"query": "coffee shops london",
"country": "GB",
"locale": "en-GB",
"device": "desktop",
"ai_overview": true,
"request_id": "order-4821-page-1"
}Response
One JSON object. Five blocks are always present, pagination among them; five more appear only when Google shows them. Fields marked optional are omitted when absent, never sent as null.
{
"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",
"device": "desktop",
"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…",
"snippet_highlighted_words": ["coffee shops", "London"],
"date": "12 Aug 2026",
"source": "Time Out"
}
],
"organic_success": true,
"pagination": {
"current": 1,
"next_start": 10
},
"knowledge_graph": {
"title": "…",
"subtitle": "…",
"rating": 4.6,
"review_count": 1280,
"description": "…"
},
"ai_overview": {
"text": "…",
"via": "page",
"sources": [
{ "title": "…", "link": "https://…" }
]
},
"related_questions": [
{ "question": "…", "snippet": "…", "title": "…", "link": "https://…" }
],
"related_searches": [
{ "query": "best coffee soho", "link": "https://www.google.com/search?q=…" }
],
"local_results": [
{
"title": "…",
"rating": 4.7,
"review_count": 920,
"price_level": "££",
"category": "Coffee shop",
"address": "…",
"hours": "Open · Closes 6 pm"
}
]
}Illustrative values. Shape and field names are exact.
search_metadata
How the request went. Use id in any support or billing question.
| Field | Type | Description |
|---|---|---|
id | string | Request identifier. |
status | string | Success or Failed. |
verdict | string | Why: ok, captcha, a timeout code and so on. |
total_time_taken | number | Seconds, retries included. |
search_parameters
The parameters we used, as Google saw them.
| Field | Type | Description |
|---|---|---|
engine | string | google |
q | string | The query. |
gl optional | string | Country, lower case. |
hl optional | string | Language. |
device optional | string | The device the page was asked as, when the request named one. |
safe, time_range, uule optional | string | Echoed when the request set them. |
start | integer | The offset the page was asked for; 0 is the first page. |
search_information
| Field | Type | Description |
|---|---|---|
query_displayed optional | string | Query as Google displayed it, after spelling corrections. |
total_results optional | integer | Google’s result count estimate. |
organic_results_state optional | string | Google’s note about the result set. |
ai_state optional | string | complete, thinking (Google was still loading it) or absent. |
organic_results[]
| Field | Type | Description |
|---|---|---|
position | integer | Rank on the page, from 1. |
title | string | Result title. |
link | string | Destination URL, resolved past Google’s redirect wrapper. |
redirect_link optional | string | Google’s own wrapper the result was served with, when there was one. |
displayed_link optional | string | Breadcrumb Google shows under the title. |
snippet optional | string | Result description. |
snippet_highlighted_words optional | string[] | Words Google set in bold. |
date optional | string | Date shown in the snippet. |
source optional | string | Site name shown by Google. |
organic_success
Boolean, always at the top level. true when Google returned a valid page with parsed organic results. This is the billable condition; branch on it before using the data.
pagination
current is the page number, from 1. next_start is the start to send for the next page; it is left out after a page that did not answer and on page 20. It says where the next page would begin, not that Google has one.
# Page 2: the same search with start = pagination.next_start of page 1, and a new request_id. curl "$SCRAPEBEAVER_API/v1/search/light" \ -H "X-API-Key: $SCRAPEBEAVER_KEY" \ -H "Content-Type: application/json" \ -d '{"query": "coffee shops london", "country": "GB", "start": 10, "request_id": "job-77-page-2"}'
Optional blocks
| Block | Fields |
|---|---|
knowledge_graph | title, subtitle, rating, review_count, description (all optional) |
ai_overview | text (a paragraph or heading per line, list items after •), sources[]? (title, link), via? (page: it was in the page; async: Google loaded it afterwards and it was asked for) |
related_questions[] | question, snippet?, title?, link? |
related_searches[] | query, link? |
local_results[] | title, rating?, review_count?, price_level?, category?, address?, hours? |
html | String. The page the results were read from; only with format: "both". |
error | String. Present only when the request failed. |
Ads and the extra blocks of Google Search Advanced are not part of the light response.