For the complete documentation index, see llms.txt. This page is also available as Markdown.

AI Overviews

Extract Google AI Overviews from search results with parsed data for answer text, bullet lists, source panels, and info lists.

The google_search and google_ads sources can return AI Overviews from Google Search results in all supported global regions. ai_overviews result array supports multiple AI blocks in a single response, including sections like “People also ask” and “Things to know.”

To maximize the chance of receiving fully rendered AI Overviews content, you must include the following parameters:

Parameter
Value

source

google_search or google_ads

render

html

user_agent_type

desktop or mobile

Using these parameters also allows you to receive both the general response and AI Overviews content with a single request.

AI Overviews regional availability

Google AI Overviews are available in most countries apart from a few exceptions. Currently biggest excluded countries are:

  • France

  • Monaco

  • China

  • Iran

  • Sudan

  • Syria

  • Cuba

  • North Korea

Request samples

Below are code examples using google_search Web Scraper API source to capture Google AI Overviews.

We use synchronous Realtime integration method in our examples. If you would like to use Proxy Endpoint or asynchronous Push-Pull integration, refer to the integration methods section.

Working with Multiple AI Overviews

Since AI Overviews are now returned as an array, you have to iterate through them:

In most cases, there will be only one AI Overview, but your code should be prepared to handle multiple entries.

Request parameters

Generic

Basic setup and customization options for scraping Google Web search results with AI Overviews.

Parameter
Description
Default Value

source

Sets the scraper. Use google_search or google_ads.

google_search

query

The keyword or phrase to search for.

-

render

Enables JavaScript rendering when set to html. More info.

-

context: expand_aio

Set to true to expand Google AI Overviews (JavaScript rendering enabled).

false

parse

Returns parsed data when set to true.

false

callback_url

URL to your callback endpoint. More info

-

user_agent_type

Device type and browser. Use desktop or mobile.

desktop

- mandatory parameter

Google Advanced Search Operators

When scraping, you might find it useful to combine Google advanced search operators with your query. It enables you to customize the scope of the search, ensuring that the results are more relevant and focused. Explore these special commands here. See the example query below.

Localization

Adapt search results to specific geographical locations and languages.

Parameter
Description
Default Value

geo_location

The geographical location that the result should be adapted for. Using this parameter correctly is extremely important to get the right data. For more information, read about our suggested geo_location parameter structures here.

-

locale

Accept-Language header value which changes your Google search page web interface language. More info.

-

Pagination

Controls for managing the pagination and retrieval of search results.

Parameter
Description
Default Value

start_page

Starting page number.

1

pages

Number of pages to retrieve.

1

limit

Number of results to retrieve in each page.

10

context:limit_per_page

Scrape multiple pages using the same IP address and session (cookie set). By specifying the page numbers in a JSON array with the page key and indicating the number of organic results per page using the limit key, you can minimize the chance of seeing overlapping organic results across pages (e.g., the last organic result on the first page being the same as the first organic result on the second page). See example.

-

Continuous scroll support

The Web Scraper API fully supports Google Search continuous scroll. It automatically detects continuous scrolling layouts, efficiently loading the requested organic results without any extra parameters required.

Limit per page

To use this feature, include a JSON array with JSON objects containing the following data:

Parameter
Description
Example

page

The number of the page you would like to scrape. Any integer value greater than 0 will work

1

limit

The number of results on the page in question. Any integer value between 1 and 100 (inclusive) will work.

90

Request sample

Filtering

Options to filter and refine search results based on various criteria. Learn how to use context parameters here.

Parameter
Description
Default Value

context: filter

Setting the value of this parameter to 0 lets you see results that would otherwise be excluded due to similarity to other results.

1

context: safe_search

Safe search. Set to true to enable it.

false

context: udm

udm parameter allows switching between different search tabs, such as images, places, or videos, to customize the type of results displayed. Find the accepted values here.

-

context: tbm

To-be-matched or tbm parameter. Accepted values are: app, blg, bks, dsc, isch, nws, pts, plcs, rcp, lcl

-

context: tbs

This parameter is like a container for more obscure Google parameters, like limiting/sorting results by date as well as other filters some of which depend on the tbm parameter (e.g. tbs=app_os:1 is only available with tbm value app). More info here.

-

Other

Additional advanced settings and controls for specialized requirements.

Parameter
Description
Default Value

context: fpstate

Setting the fpstate value to aig will make Google load more apps. This parameter is only useful if used together with the render parameter.

-

context: nfpr

true will turn off spelling auto-correction

false

Context parameters

All context parameters should be added to the context array as objects with key and value pairs, e.g.:

Structured output

Data dictionary

All of the available keys within AI Overviews SERP feature are defined in the table below:

Key (results.ai_overviews)
Description
Type

answer_text

General information about the Google Search query term.

array

bullet_list

Indicates information on items rendered in a bulleted list within the AI Overviews SERP feature.

array

source_panel

A list of sources used to generate AI Overviews result in Google SERP feature.

object

info_list

A list of information most frequently used to represent steps of a process relevant to the search query.

array

pos_overall

An indication of the position of the AI Overviews SERP feature result among all available Google SERP results.

integer

General

In the following example, "Emporio Armani EA3192" query was used.

Answer text

Key (results.ai_overviews.answer_text)
Description
Type

fragments

A short answer to the Google Search query.

array

fragments.text

The answer text content of the fragment.

string

fragments.references

A list of sources referenced by the fragment.

array

fragments.references.source

The name of the referenced source.

string

fragments.references.url

The URL of the referenced source.

string

pos

An indicator denoting the position of a given item among all AI Overviews answer results.

integer

Bullet list

Key (results.ai_overviews.bullet_list)
Description
Type

list_title

The title of the bullet list.

string

points

The items rendered in the bullet list. All items are comma-separated.

array

points.text

The text content of the bullet point.

string

points.references

A list of sources referenced by the bullet point (optional).

array

pos

An indicator denoting the position of a given item among all AI Overviews bullet list results.

integer

Source panel

Key (results.ai_overviews.source_panel)
Description
Type

items

A list of sources used to generate AI Overviews result in Google SERP feature.

object

items.url

The URL of the website.

string

items.source

The name of the website.

string

items.title

The title of the article.

string

items.pos

An indicator denoting the position of a given item among all AI Overviews source panel results.

integer

Info list

Key (results.ai_overviews.info_list)
Description
Type

list_title

The title of the list.

string

list_items

Contains a list of items with their respective details.

array

list_items.title

The title of the section within the list.

string

list_items.content

A short description of the section.

array

list_item.pos

An indicator denoting the position of a given item among all AI Overviews Info list results.

integer

Instructions

In the following example, "docker exec commands explained" query was used.

Answer text

Key (results.ai_overviews.answer_text)
Description
Type

fragments

Google Search query answer fragment in plain text.

array of strings

pos

An indicator denoting the position of the item in the Overview answer.

integer

Last updated

Was this helpful?