Object

Serp object

A Google web search results page: organic results, ads, the AI overview, People also ask, related searches and the knowledge panel. The same fields on every platform. A field a platform does not show is null, and meta.unavailable names it with the reason.

FieldTypeFrom viewDescription
querystringcompactThe search as asked.
pageintegercompactWhich page this is, from 1.
total_resultsinteger | nullcompactGoogle's own estimate of how many results there are.
organicSerpResult[]compactOrganic results, in page order (usually up to 10).
adsSerpAd[]compactPaid results on the page; empty when Google shows none.
ai_overviewstring | nullstandardThe AI overview's text, where Google shows one with the page; null when it has none or loads it separately. · may be cut in compact
related_questionsstring[]compact"People also ask" questions.
related_searchesstring[]compact"Related searches" at the foot of the page.
knowledge_panelKnowledgePanel | nullcompactThe knowledge panel, when the query names an entity Google knows; null otherwise.
extobjectfullPlatform-specific extras. Only returned with view=full. · only with view=full

SerpResult

FieldTypeDescription
rankintegerPlace in the list, from 1.
titlestringTitle.
urlstringThe page.
displayed_urlstring | nullThe address as Google prints it under the title.
sourcestring | nullThe site's name, as Google shows it.
snippetstring | nullThe text Google shows under the title.
datestring | nullThe date Google prints before the snippet, as it shows it ("3 days ago"); null when there is none.

SerpAd

FieldTypeDescription
rankintegerPlace in the list, from 1.
positionstringAbove the organic results, or below them.
titlestringAd headline.
urlstringThe ad's landing page.
displayed_urlstring | nullThe address the ad shows.
snippetstring | nullAd text.

KnowledgePanel

FieldTypeDescription
titlestringThe entity.
typestring | nullWhat it is, in Google's words.
descriptionstring | nullThe panel's description.
websitestring | nullThe entity's own website, where Google gives it.
image_urlstring | nullThe panel's image.

Endpoints that return a Serp

Last updated

Connect once, then just ask.

Every new key comes with $0.20 to try it. One sentence connects your agent.

Start free
Connect your AI

Paste this into your agent

Read https://okdata.online/agents.md and set up okdata for me; my key is in the OKDATA_API_KEY environment variable.

Claude Code, Cursor, Codex and other agents that can open a link set themselves up from it.

MCP serverhttps://api.okdata.online/mcp