Last updated
Was this helpful?
Last updated
Was this helpful?
The google_search
source is designed to retrieve AI Overview (formerly known as Search Generative Experience (SGE)) results.
Explore for some of the AI Overview SERP features.
We use synchronous integration method in our examples. If you would like to use or asynchronous integration, refer to the section.
Basic setup and customization options for scraping Google Web search results.
- mandatory parameter
Adapt search results to specific geographical locations, domains, and languages.
Controls for managing the pagination and retrieval of search results.
The SERP 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.
To use this feature, include a JSON array with JSON objects containing the following data:
udm
and tbm
context parameters cannot be used together in a single scraping request; please select only one. Using both simultaneously may lead to conflicts or unexpected behavior.
Additional advanced settings and controls for specialized requirements.
All context parameters should be added to the context
array as objects with key
and value
pairs, e.g.:
All of the available keys within AI Overview SERP feature are defined in the table below:
In the following example, "Emporio Armani EA3192" query was used.
Bullet list
Products
In the following example, "recipe for an apple pie" query was used.
Recipes
In the following example, "recipe of a juicy succulent steak" query was used.
In the following example, "docker exec commands explained" query was used.
Answer text command
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 and . See an example below.
Options to filter and refine search results based on various criteria. Learn how to use context parameters .
Explore examples of AI Overview results below, categorized by different search queries: , , .
Note: details are rendered in the same array as for , however, one new type of key (command) appears for instruction related type of query
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.
-
domain
Domain localization for Google. The full list of available domains can be found here.
com
locale
Accept-Language
header value which changes your Google search page web interface language. More info.
-
context
:
results_language
-
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.
-
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
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.
-
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
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 Overview SERP feature.
array
products
A list of products with their respective details.
object
source_panel
A list of sources used to generate AI Overview result in Google SERP feature.
object
additional_questions
A list of additional questions with their respective details.
object
recipes
A list of recipes with their respective details.
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 Overview SERP feature result among all available Google SERP results.
text
A short answer on the Google Search query.
array
pos
An indicator denoting the position of a given item among all AI Overview answer results.
integer
list_title
The title of the bullet list.
string
points
The items rendered in the bullet list. All items are comma-separated.
array
pos
An indicator denoting the position of a given item among all AI Overview bullet list results.
integer
items
A list of products with their respective details.
array
items.product_name
The name of the product.
string
items.price
The current price of the product.
string
items.previous_price
The initial price of the product (if applicable).
string
items.seller
The seller of the product.
string
items.shipping
The type of shipping available for the product.
string
items.url
The URL of the product.
string
items.pos
An indicator denoting the position of a given item among all AI Overview Product results.
integer
items
A list of sources used to generate AI Overview result in Google SERP feature.
object
items.url
The URL of the website.
string
items.source
The name of the website.
string
items.date
The date when the article has been published.
string
items.title
The title of the article.
string
items.pos
An indicator denoting the position of a given item among all AI Overview source panel results.
integer
items.question
A list of comma-separated Additional questions relevant to the original search query.
array
items.pos
An indicator denoting the position of a given item among all AI Overview additional questions results.
integer
items
A list of recipes with their respective details.
array
items.description
A short description of the recipe.
string
items.image
A base64-encoded thumbnail image of the recipe.
string
items.source
The name of the site where the recipe is published.
string
items.rating
The rating of the recipe.
string
items.rating_count
The number of ratings.
string
items.duration
The time that is needed to prepare the dish.
string
items.url
The URL to the full recipe.
string
items.title
The title of the recipe.
string
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.
string
list_item.pos
An indicator denoting the position of a given item among all AI Overview Info list results.
integer
command
An instruction given to a computer or software to perform a specific task.
string
source
Sets the scraper.
google_search
query
UTF-encoded keyword.
-
render
Enables JavaScript rendering when set to html
. More info.
-
parse
Returns parsed data when set to true
. Explore output data dictionary.
false
callback_url
URL to your callback endpoint. More info.
-
user_agent_type
Device type and browser. The full list can be found here.
desktop