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.
| Value | Meaning from OpenAPI |
|---|---|
json | Parsed results |
html | The page as Google sent it |
both | All 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)
| Field | Meaning |
|---|---|
page | Result page number |
attempts | Upstream attempts made for this page |
results | Organic results, in page order (json and both) |
suggestions | Query suggestions (json and both) |
spelling_correction | Spelling correction applied to the query (json and both) |
ai_overview | AI Overview on page 1 when asked (json and both) |
html | Page 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:
| Field | Meaning |
|---|---|
position | 1-based rank on the page |
title | Result title |
url | Result target URL |
snippet | Preview text |
thumbnail | Thumbnail image URL, if available |
displayed_url | Human-readable URL as shown by the engine |
source_host | Hostname the result was served from |
{
"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?