Detecting when an AI Overview triggers on a SERP has become standard across SEO platforms. The harder problem, and the one most AI visibility tracking products still gloss over, is what to do with the contents: the generated text, the cited sources, and the answer format Google chose. Google AI Mode compounds the gap. It lives on a separate surface and cites a different set of sources for the same queries. If you’re looking for an AI Overview API that returns those contents as structured data, our Google Organic SERP API covers AI Overviews and our Google AI Mode SERP API covers AI Mode. Below are four ways to use them to close that gap.
What’s in the parsed response
A short tour of the response first, since the use cases depend on knowing what’s in it. The Google Organic Live Advanced endpoint returns an ai_overview item whenever Google shows one on a SERP, sitting alongside the regular organic results. The Google AI Mode Live Advanced endpoint returns content in the same format, so anything in the list below applies to both surfaces.
1. Structured sections of the AI Overview. Google breaks the answer into chunks (a definition paragraph, a list of steps, a comparison), and the API keeps that split intact. Each chunk arrives as its own ai_overview_element object inside the items array, with a text field, a markdown field, and optional images and links.
2. List of cited sources. The top-level references array on the ai_overview item lists every source Google cited. Each entry contains source, domain, url, title, and a text snippet. Per-section references also sit inside each ai_overview_element, so you can attribute citations down to the chunk that triggered them. That means the same response works as an AI citations API.
3. Extra features. Google occasionally generates richer elements that the API parses separately: ai_overview_table_element for structured tables, ai_overview_video_element for embedded videos, and (in AI Mode) ai_overview_shopping blocks for product queries, each holding ai_overview_shopping_element items with merchant prices and ratings, and more.
4. The asynchronous_ai_overview flag. This tells you whether Google had the overview cached or generated it on demand. Set the load_async_ai_overview parameter to true in your request to fetch the asynchronous ones; without it, you’ll see ai_overview: null on queries where Google didn’t have a cached version ready.
How AI Overview citations come back as structured data
Which SERP API returns Google AI Overview citations as structured data? Both of ours. The Google Organic SERP API puts them inside the ai_overview item, and the Google AI Mode SERP API uses the same shape, so one citation parser covers both surfaces.
Every citation is an ai_overview_reference object with five fields: source (the publisher name Google displays), domain, url, title, and text, which holds the snippet Google took from the page. Citations sit at two levels.
➤ The top-level references array belongs to the answer as a whole.
➤ The references array inside each ai_overview_element lists the pages used to generate that specific chunk, and table elements carry their own references too.
With the second level, your product can tell a customer they’re cited for the pricing paragraph but missing from the comparison table.
The links array is easy to mistake for citations. It holds link_element objects: hyperlinks inside the answer text, such as a retailer name linked to its product page. Count them as visibility and keep them out of your citation counts. The markdown field is useful for a different reason. It keeps Google’s inline citation markers ([[1]], [[2]]) linked to source URLs, so you can see where in a sentence each citation lands.
Deduplicate before you count anything. The same URL often appears at both levels, and cited URLs frequently end in a #:~:text= fragment that points to the quoted passage. Strip the fragment, then key on domain plus the clean URL. For the request side, see our Help Center guide on how to scrape Google AI Overviews with SERP API. AI Mode citations come from a separate endpoint that returns the same shape.
How to scrape Google AI Mode results with a SERP API
Google doesn’t offer an official AI Mode API. Building your own Google AI scraper means maintaining proxies, headless browsers, and a parser that breaks whenever Google changes the layout. Our Google AI Mode Data API takes over that collection layer. You send one POST request to serp/google/ai_mode/live/advanced with a keyword, a location, a language, and optionally a device (desktop or mobile).
Then, you can collect the results in two ways. The Live method returns results in up to 6 seconds on average, at $0.004 per results page, with one task per call. It suits on-demand checks that a customer triggers from your product’s UI. With the Standard method, you post tasks with task_post and collect them with task_get/advanced. It costs $0.0012 per results page with a target turnaround of 45 minutes, or $0.0024 in the Priority queue, which takes about a minute on average. It suits scheduled tracking: a daily pull of 10,000 keywords comes to about $12 at the Standard rate. See our AI Mode SERP API pricing page for more info.
If your pipeline does its own parsing, an HTML endpoint returns the raw AI Mode page for the same search context. For first-time setup, our Help Center walkthrough on Google AI Mode covers the parameters. The four use cases below build on this data.
Use case 1: Track AI Overview and AI Mode presence over time
Before anything more interesting, your product needs to know which keywords trigger an AI Overview today, which trigger AI Mode, and whether the target domain is cited in either. Triggers are noisy. The same query can produce a full overview on Monday, nothing on Tuesday, and a different overview with a different source set on Wednesday. A daily pull is the only way to keep up.
Set up scheduled tracking. For each keyword in the tracked list, hit the Google Organic Live Advanced endpoint with load_async_ai_overview set to true, then hit the AI Mode Live Advanced endpoint with the same keyword. Depending on how your stack is set up, you’ll want to persist four things per run: whether the overview triggered, the asynchronous_ai_overview value, the full references array, and a boolean for whether the target domain appears in it.
A real request and response from the Google Organic Live Advanced endpoint for the keyword “how to optimize for ai overviews,” with [...] standing in for fields that aren’t relevant to a presence tracker:
Request example:
[
{
"keyword": "how to optimize for ai overviews",
"location_name": "United States",
"language_code": "en",
"load_async_ai_overview": true
}
]
Response example:
{
"version": "0.1.20260223",
"status_code": 20000,
"status_message": "Ok.",
"time": "6.4521 sec.",
"cost": 0.0024,
"tasks_count": 1,
"tasks_error": 0,
"tasks": [
{
"id": "06221737-1535-0139-0000-b5cf241b9c0a",
"status_code": 20000,
"status_message": "Ok.",
"result_count": 1,
"path": ["v3", "serp", "google", "organic", "live", "advanced"],
"data": {...},
"result": [
{
"keyword": "how to optimize for ai overviews",
"type": "organic",
"se_domain": "google.com",
"items": [
{
"type": "ai_overview",
"rank_group": 1,
"rank_absolute": 1,
"page": 1,
"asynchronous_ai_overview": false,
"markdown": "...",
"items": [...],
"references": [
{
"type": "ai_overview_reference",
"source": "Google for Developers",
"domain": "developers.google.com",
"url": "https://developers.google.com/search/docs/fundamentals/ai-optimization-guide",
"title": "Optimizing your website for generative AI features on Google Search",
"text": "This includes ensuring your site displays well across all devices..."
},
{
"type": "ai_overview_reference",
"source": "Semrush",
"domain": "www.semrush.com",
"url": "https://www.semrush.com/blog/ai-overviews/",
"title": "AI Overviews: What Are They & How to Optimize for Them - Semrush",
"text": "The systems behind AI Overviews evaluate many signals..."
},
{
"type": "ai_overview_reference",
"source": "Search Engine Land",
"domain": "searchengineland.com",
"url": "https://searchengineland.com/guide/how-to-optimize-for-ai-overviews",
"title": "AI Overviews optimization guide: How to rank in generated results",
"text": "Get expert tips on brand authority, content coverage..."
}
]
}
]
}
]
}
]
}
Endpoint: api.dataforseo.com/v3/serp/google/organic/live/advanced. See the Google Organic Live Advanced docs for the full parameter list.
After a few weeks of daily pulls, the product can show customers the trend rather than a single yes-or-no answer. The chart that can come out of this is week-over-week trigger rate plotted against citation rate for the target domain, with both numbers trending in some direction that the customer can react to. Our Help Center guide covers the parameters for filtering ranked keywords by AI Overview citation specifically.
Use case 2: Analyze the generated answer format across AI Overview and AI Mode
Presence tracking tells you the overview happened; it doesn’t tell you what’s in it. That’s where the ai_overview_element objects come in. Each one declares its type: a paragraph of prose, a list of steps, a bulleted comparison, an ai_overview_table_element with structured rows. AI Overview and AI Mode emit the same element types, so one parser covers both.
AI Mode is usually the better surface for format analysis. The answers are longer, and Google’s query fan-out pulls in tables, shopping elements, and multi-section explanations more often than a single-shot AI Overview does. A price-comparison query is a good test case:
Request example:
[
{
"keyword": "iphone 16 price comparison",
"location_name": "London,England,United Kingdom",
"language_code": "en",
"device": "desktop"
}
]
Response example:
{
"version": "0.1.20260223",
"status_code": 20000,
"status_message": "Ok.",
"time": "12.8697 sec.",
"cost": 0.004,
"tasks_count": 1,
"tasks_error": 0,
"tasks": [
{
"id": "02241638-1535-0139-0000-f0c53c397c88",
"status_code": 20000,
"status_message": "Ok.",
"result_count": 1,
"path": ["v3", "serp", "google", "ai_mode", "live", "advanced"],
"data": {...},
"result": [
{
"keyword": "iphone 16 price comparison",
"type": "ai_mode",
"se_domain": "google.com",
"item_types": ["ai_overview"],
"items_count": 1,
"items": [
{
"type": "ai_overview",
"rank_group": 1,
"rank_absolute": 1,
"markdown": "The iPhone 16 series starts at **£599 / $599**...",
"items": [
{
"type": "ai_overview_element",
"text": "The iPhone 16 series starts at £599 / $599 for the iPhone 16e and ranges up to £1,599 / $1,599 for the top-tier iPhone 16 Pro Max with 1TB of storage..."
},
{
"type": "ai_overview_table_element",
"table": {...}
},
{
"type": "ai_overview_shopping",
"markdown": "...",
"items": [...]
}
],
"references": [...]
}
]
}
]
}
]
}
Endpoint: api.dataforseo.com/v3/serp/google/ai_mode/live/advanced. See the AI Mode Live Advanced docs for the full parameter list.
The classification is what makes this useful. Pull AI Overview and AI Mode responses for a topic cluster, sort each ai_overview_element by structure (paragraph, list, table, shopping element, video), and patterns start to show up. Price-comparison queries tend to come back as a table in AI Mode and as a paragraph in AI Overview. How-to queries default to numbered lists on both surfaces. Content teams can use those signals to restructure the page: lead with named steps, add a comparison table, format product specs in a way the model can pick up.
Use case 3: Compare citations across AI Overview and AI Mode
Once format analysis is working, customers tend to start asking whether they’re cited on both surfaces or only one. The two surfaces don’t always agree. AI Overview is a single-shot summary keyed to the user’s query. AI Mode behaves differently: it fans the query out into related subqueries, researches each, and synthesizes an answer with conversational memory. The two paths often land on different source sets, so a domain cited in one isn’t automatically cited in the other, in either direction.
Both endpoints return citations in the same references array shape used in Use Case 1, which makes the comparison cheap. For each keyword, pull from both endpoints on the same day and diff the two arrays by domain. Aggregated across a keyword set, the diff produces a per-surface gap report: keywords for which the domain is cited on one surface but missing from the other. That’s the report a customer working on generative search visibility will use. Our Help Center walkthrough covers the full AI Mode response layout if you need the parameter details.
What about the fan-out queries behind AI Mode answers?
A gap report raises a follow-up question: is there an API that returns AI Mode answers with the queries behind them? Partly. Our AI Mode API returns the full answer and every source behind it, but it can’t return the fan-out query strings. Google doesn’t show them on the AI Mode page, so there is nothing to parse.
Multi-part AI Mode answers still show the outline of the fan-out. They split into elements with their own title, such as “UK Price Comparison by Model (SIM-Free)” and “USA Price Comparison by Model (Starting Prices)” in the iPhone example above, and each element carries its own references. The titles show which sub-topics Google researched, and the per-element references show which sources answered each one. Treat this as an approximation, since the wording of Google’s sub-queries stays hidden.
Other answer engines do expose their sub-queries, and our AI Optimization API returns those fan-out queries for several of them:
| Endpoint | Platforms | Where fan-out data sits |
|---|---|---|
Google AI Mode SERP API (serp/google/ai_mode/live/advanced) |
Google AI Mode | Not provided, use element title plus per-element references as a proxy |
| LLM Responses API | ChatGPT, Gemini, Claude, Perplexity | fan_out_queries array in the response |
ChatGPT LLM Scraper (ai_optimization/chat_gpt/llm_scraper/live/advanced) |
ChatGPT | fan_out_queries array in the response |
| LLM Mentions API | Google AI Overview, ChatGPT | fan_out_queries value in the search_scope filter; fan_out_queries array in the response |
Used together, the AI Mode element titles tell you which sub-topics Google covered for your keyword, and the fan-out strings from other models give you phrasing to target in content. AI Mode’s product cards come back in the same response structure, so the parser you have so far also handles shopping data.
Use case 4: Track whether your products show up in Google AI Mode shopping
For commercial queries, AI Mode often answers with product cards that show an image, a title, a price, a rating, and the seller Google picked. An ecommerce brand, or a shopping-comparison tool working for many brands, needs to know whether its product appears in those cards, at what price, and from which seller. Classic rank tracking can’t tell you, because the cards don’t appear on the organic SERP.
Each set of cards arrives as an ai_overview_shopping block inside the AI Mode answer, separate from the text elements. Its items array holds one ai_overview_shopping_element per product.
Start with the identifiers: product_id and gid (Google Shopping identifiers), plus data_docid. Product titles can change from day to day, so once you’ve found your product, match on these IDs. The offer sits in seller, written as Google displays it, and in a price object with current, regular, currency, and the raw displayed_price string. A rating object carries value, votes_count, and rating_max. The card’s content is in title, image_url, and text, which holds the product description Google generated.
This ai_overview_shopping block comes from the sample response in our AI Mode docs, trimmed to one product:
{
"type": "ai_overview_shopping",
"position": "left",
"title": null,
"markdown": "...",
"items": [
{
"type": "ai_overview_shopping_element",
"product_id": "14286117472031528316",
"data_docid": "7873575568165424103",
"gid": "5914059237801924898",
"title": "Bose QuietComfort Ultra Headphones",
"url": "https://www.google.com/search?ibp=oshop&prds=...",
"domain": "www.google.com",
"rating": {
"rating_type": "Max5",
"value": 4.6,
"votes_count": 4500,
"rating_max": 5
},
"price": {
"current": 134.99,
"regular": null,
"max_value": null,
"currency": "GBP",
"is_price_range": false,
"displayed_price": "£134.99 & more prices"
},
"seller": "Argos",
"snippet": "Argos & more",
"marketplace": null,
"marketplace_url": null,
"image_url": "https://api.dataforseo.com/cdn/i/...",
"text": "Premium over-ear headphones featuring world-class noise cancellation...",
"markdown": "..."
}
]
}
On a product card, url and domain point to google.com, so matching on your domain finds nothing there. Match cards on seller or on a product_id you already know. Your domain can still show up in the text elements through their links and references, so check those separately. In the iPhone example above, Argos and Currys appear as links in the answer text.
Tracking runs on the same daily schedule as Use case 1. Build a list of product-intent keywords (“best noise cancelling headphones,” “[product] price comparison,” “[category] under £200”). Pull AI Mode for each keyword, per location and device, because prices, currencies, and sellers change by market. Then log whether your product appeared, its position in the card set, the current price against the regular price, and the rating.
This request is the Python example from our AI Mode Live Advanced docs with only the keyword changed. It returns the full AI Mode answer for one product-intent query and needs the client.py helper linked in its first comment.
from client import RestClient
# You can download this file from here https://cdn.dataforseo.com/v3/examples/python/python_Client.zip
client = RestClient("login", "password")
post_data = dict()
# You can set only one task at a time
post_data[len(post_data)] = dict(
language_code="en",
location_code=2840,
keyword="best noise cancelling headphones"
)
# POST /v3/serp/google/ai_mode/live/advanced
# in addition to 'google' and 'ai_mode' you can also set other search engine and type parameters
# the full list of possible parameters is available in documentation
response = client.post("/v3/serp/google/ai_mode/live/advanced", post_data)
# you can find the full list of the response codes here https://docs.dataforseo.com/v3/appendix/errors
if response["status_code"] == 20000:
print(response)
# do something with result
else:
print("error. Code: %d Message: %s" % (response["status_code"], response["status_message"]))
Put this function where the docs example says # do something with result. It walks the AI Mode response and returns two lists: your products found in shopping cards, with position, title, product ID, and current price, and the text elements that link to or cite your domain. Argos, from the sample JSON, stands in for your store.
MY_SELLERS = {"argos"} # seller names exactly as Google displays them, lowercased
MY_DOMAIN = "argos.co.uk" # your own site, for links and citations in the answer text
def find_my_products(response):
products, citations = [], []
for result in response["tasks"][0]["result"] or []: # Live calls carry one task
for overview in result["items"] or []:
for block in overview.get("items") or []:
if block["type"] == "ai_overview_shopping":
# card URLs point to google.com, so match on seller, not on domain
for pos, p in enumerate(block["items"] or [], start=1):
if (p.get("seller") or "").lower() in MY_SELLERS:
price = (p.get("price") or {}).get("current")
products.append((pos, p["title"], p["product_id"], price))
else:
# text, table, and video blocks: links and references reach the seller's own site
for ref in (block.get("links") or []) + (block.get("references") or []):
if MY_DOMAIN in (ref.get("domain") or ""):
citations.append((block.get("title"), ref["url"]))
return products, citations
products, citations = find_my_products(response)
Endpoint used: serp/google/ai_mode/live/advanced. See the AI Mode Live Advanced docs for every field in the shopping block.
Once you have your product’s product_id, you can look it up in our Google Shopping Merchant API to see every seller and offer behind the card. Comparing the two may show why Google picked a particular seller for the AI Mode answer.
Wrap up
The four use cases work as a stack. Presence tracking is the foundation: “Did the AI Overview trigger?”, “Am I cited?”. Format analysis builds on top of that to show how Google is answering and how the content should be shaped in response. Citation comparison closes the loop, turning the parsed data into a per-surface gap list that a customer can act on directly. Shopping tracking runs the same parsing over product cards and shows ecommerce teams their sellers, prices, and ratings inside AI Mode answers. Apart from the fan-out strings from other models, all of it runs on the Google Organic SERP API and the Google AI Mode SERP API against the same response shape. You build the integration once and don’t have to maintain a Google AI scraper. Try for free and start building.