Developers

SERP API

Reference

Google AI Overviews

Collect AI Overview content when it appears in a Google web search response.

Use the Google search source

AI Overview collection belongs to the google_search source. Set render: "html" and choose desktop or mobile for user_agent_type. Enable parsing to inspect the overview alongside the ordinary search modules.

cURL request
: "${CRAWLHUB_USERNAME:?Set your API username}"
: "${CRAWLHUB_PASSWORD:?Set your API password}"

curl --request POST "https://api.crawlhub.ai/v1/queries" \
  --user "$CRAWLHUB_USERNAME:$CRAWLHUB_PASSWORD" \
  --header "Content-Type: application/json" \
  --connect-timeout 15 --max-time 180 \
  --data '{
  "source": "google_search",
  "query": "public web data",
  "geo_location": "United States",
  "parse": true,
  "render": "html",
  "user_agent_type": "desktop",
  "context": [
    {
      "key": "expand_aio",
      "value": true
    }
  ]
}'

Expand the answer

Add expand_aio: true inside the context array to expand the AI Overview before collection. The default is false. Expansion does not force Google to generate an overview for a query.

Read overview blocks

Read content.results.ai_overviews as an array; a page can contain more than one AI block. Inspect each block’s fields rather than assuming a single answer string.

FieldContent
answer_textAnswer paragraphs returned in the overview.
bullet_listBulleted answer content when present.
source_panelSources shown beside the answer.
info_listAdditional structured information in the block.
pos_overallPosition of the block on the search page.

Scroll horizontally to read all columns.

Interpret the observed page

Google decides whether an AI Overview appears for a particular query, country, language and device. A valid search response can contain no overview. Preserve that distinction when monitoring changes over time.

Keep context with the observation

Store the query, collection time, location, device and returned source links beside the overview content. Keep missing content distinct from a failed job or partial parser result. Use the raw page output when investigating a difference in extracted fields.

Related reference

Search documentation

Search guides, products and reference pages.