APIs · Google Search

Search endpoint

One endpoint does everything: send a query, get one JSON object back.

POST/v1/search/light

Request parameters

JSON body of the request. Send query or url; everything else is optional.

ParameterTypeDescription
querystringSearch query, 1 to 500 characters. Required unless you send url.
urlstringA Google results URL to fetch, instead of query. Not with query, country, locale, google_domain, num, start, safe, time_range, uule or pages.
enginestringgoogle (default).
countrystringTwo-letter country code, for example GB. See Locations, languages & devices.
localestringLanguage, for example en, en-GB or de. Defaults to the country’s language.
google_domainstringGoogle host, for example google.co.uk.
devicestringdesktop (default), mobile, iphone or ipad.
startintegerResult offset: 0 is page 1, 10 is page 2, up to 190 (page 20).
pagesinteger1 (default) to 10. Returns pages 1 to N in one call. Each page counts as a search. Not with url or format: "html".
numintegerResults per page, 1 to 100. Google usually returns about ten.
time_rangestringday, week, month or year.
safestringoff (default), moderate or strict.
uulestringGoogle’s UULE string for a postal code, city or state. Not coordinates. See a place below country level.
formatstringjson (default), html for the page itself, or both for the JSON with the page added.
ai_overviewbooleantrue also waits for an AI Overview that loads after the page. First page only. Not with format: "html".
request_idstringYour id for this request, 1 to 128 characters. Sent again, it returns the stored answer. Use a new one for each page.
max_attemptsinteger1 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.

FieldTypeDescription
idstringRequest identifier.
statusstringSuccess or Failed.
verdictstringWhy: ok, captcha, a timeout code and so on.
total_time_takennumberSeconds, retries included.

search_parameters

The parameters we used, as Google saw them.

FieldTypeDescription
enginestringgoogle
qstringThe query.
gl optionalstringCountry, lower case.
hl optionalstringLanguage.
device optionalstringThe device the page was asked as, when the request named one.
safe, time_range, uule optionalstringEchoed when the request set them.
startintegerThe offset the page was asked for; 0 is the first page.

search_information

FieldTypeDescription
query_displayed optionalstringQuery as Google displayed it, after spelling corrections.
total_results optionalintegerGoogle’s result count estimate.
organic_results_state optionalstringGoogle’s note about the result set.
ai_state optionalstringcomplete, thinking (Google was still loading it) or absent.

organic_results[]

FieldTypeDescription
positionintegerRank on the page, from 1.
titlestringResult title.
linkstringDestination URL, resolved past Google’s redirect wrapper.
redirect_link optionalstringGoogle’s own wrapper the result was served with, when there was one.
displayed_link optionalstringBreadcrumb Google shows under the title.
snippet optionalstringResult description.
snippet_highlighted_words optionalstring[]Words Google set in bold.
date optionalstringDate shown in the snippet.
source optionalstringSite 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

BlockFields
knowledge_graphtitle, subtitle, rating, review_count, description (all optional)
ai_overviewtext (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?
htmlString. The page the results were read from; only with format: "both".
errorString. Present only when the request failed.

Ads and the extra blocks of Google Search Advanced are not part of the light response.

Talk to the team

What are you building?

Your message goes to our team on Telegram. See our Privacy Policy.