Output format and results

format chooses what each returned page carries. Organic hits live under each page’s results when you ask for JSON.

In the dashboard: Output JSON / HTML / JSON + HTML, then Results / JSON / HTML tabs. In the API: format and the page object fields below.

format

Enum: json, html, both. Default: json.

ValueMeaning from OpenAPI
jsonParsed results
htmlThe page as Google sent it
bothAll of it

The HTTP answer is JSON whatever format you pick. OpenAPI also notes "html" and "both" come gzip-compressed for a client that accepts it.

{
  "query": "best coffee shops in berlin",
  "format": "both"
}

ai_overview

Boolean, default false.

Also return Google’s AI Overview for the query when Google gives one: as text and its sources (ai_overview in the response) with format json or both, and written into the page HTML for html / both.

{
  "query": "best coffee shops in berlin",
  "ai_overview": true,
  "format": "json"
}

Page object (GoogleSearchLightPage)

FieldMeaning
pageResult page number
attemptsUpstream attempts made for this page
resultsOrganic results, in page order (json and both)
suggestionsQuery suggestions (json and both)
spelling_correctionSpelling correction applied to the query (json and both)
ai_overviewAI Overview on page 1 when asked (json and both)
htmlPage as Google sent it (html and both)

Organic hit (SearchHitModel)

In the dashboard result list you see rank, title, URL, snippet. In the API each hit can include:

FieldMeaning
position1-based rank on the page
titleResult title
urlResult target URL
snippetPreview text
thumbnailThumbnail image URL, if available
displayed_urlHuman-readable URL as shown by the engine
source_hostHostname the result was served from
hit.json
{
  "position": 1,
  "title": "Example title",
  "url": "https://example.com/page",
  "snippet": "Preview text",
  "thumbnail": null,
  "displayed_url": "https://example.com › page",
  "source_host": null
}

Next

Was this page helpful?

On this page