Google AI Overview API
The AI Overview at the top of Google's results, its text and the sources it cites, in the same answer as the search. Add ai_overview=1; it costs no extra credit.
One parameter on a search
The overview comes with the results of the same page, from any country, language or city the search asks for. When Google loads it after the page, Serpbit waits for it; when the page has none, the field is left out.
curl -G https://api.serpbit.com/v1/search \ -H "Authorization: Bearer $SERPBIT_API_KEY" \ --data-urlencode "q=running shoes" \ --data-urlencode "ai_overview=1" { "ai_overview": { "text": "Look for cushioning…", "sources": [ { "title": "How to choose running shoes", "url": "https://…", "redirect_link": "https://www.google.com/url?…" } ] }, "organic": [ … ] }
What comes back
The overview's text
As Google shows it, with the screen-reader labels and buttons left out.
Its sources
Each source's title and the page itself, with Google's own link kept as
redirect_link.The whole page with it
Results, questions, the knowledge panel and top stories, in the same answer.
No extra credit
A search is 1 credit a page, with the overview or without it.
Any place
gl,hlandlocation, down to a ZIP code, as for any search.
The same call in Python and JavaScript
One search with the overview: its text, its sources, then the first results of the same page. The clients read the key from SERPBIT_API_KEY and retry a failed call without billing it twice. Any HTTP client works too.
# pip install serpbit from serpbit import Serpbit sb = Serpbit() # reads SERPBIT_API_KEY answer = sb.search("running shoes", ai_overview=1) aio = answer.get("ai_overview") if aio: print(aio["text"]) for s in aio.get("sources", []): print(s["title"], s["url"]) else: print("no AI Overview on this page") for r in answer["organic"][:3]: print(r["position"], r["domain"], r["title"])
// npm install serpbit import Serpbit from "serpbit"; const sb = new Serpbit(); // reads SERPBIT_API_KEY const answer = await sb.search("running shoes", { ai_overview: 1 }); const aio = answer.ai_overview; if (aio) { console.log(aio.text); for (const s of aio.sources ?? []) console.log(s.title, s.url); } else { console.log("no AI Overview on this page"); } for (const r of answer.organic.slice(0, 3)) console.log(r.position, r.domain, r.title);
Response fields
The overview's fields, and the main ones of the search around it. A block the page does not have is left out. The reference has every field of the search.
| Field | Type | What it holds |
|---|---|---|
| ai_overview | object | The overview, when the first page has one. |
| ai_overview.text | string | Its text, as Google shows it. |
| ai_overview.sources[] | array | The sources it cites, in Google's order. |
| title, url | string | A source's title, and the page itself. |
| redirect_link | string | Google's own link to the source, kept when url is where it leads. |
| organic[] | array | The results: position, title, url, domain, snippet. |
| related_questions | array of strings | People also ask: the questions. |
| related_searches | array of strings | Google's suggestions at the foot of the page. |
| knowledge_graph | object | The knowledge panel: title, type, description, facts. |
| top_stories | array | News on the page: title, url, source, date. |
| showing_results_for | string | The query Google searched instead of the one asked, when it corrected it. |
| pagination.next_start | integer or null | Where the next page starts; null when Google has no more. |
| meta.credits | integer | The credits the call spent: the same with the overview as without it. |
| request_id | string | The call's id, to quote to support. |
What it is used for
See whether your pages are cited
Search your keywords with ai_overview=1 and look for your site in each source's url.
Count which keywords get one
Run a keyword list and count the answers that have ai_overview. Google shows one only for some queries.
Compare sources with rankings
The overview and the results come from the same page. Check whether the pages it cites are also in organic, and where.
Look from another place
Ask the same keyword with another gl, hl or location to see the overview people there get.
What the overviews of 60 everyday searches cited, on desktop and on a phone: our notes.
Questions
Does every search have an AI Overview?
No, Google shows one only for some queries. When the page has none, ai_overview is left out of the answer and the search costs what it always does.
What if Google loads the overview after the page?
It often does. Serpbit asks for it and waits, so the overview still comes in the same answer, for the same credit.
How is it different from AI Mode?
The AI Overview is the short summary on an ordinary results page. AI Mode is Google's separate AI search, with a full answer and its own sources: the AI Mode API.
What does it cost?
The search's own price: from $0.44 to $1.00 per 1,000 pages on the paid plans, and 1,000 free a month. See pricing.
Is Serpbit part of Google?
No. Serpbit is not affiliated with Google; Google is a trademark of Google LLC.
Start with 1,000 free credits.
Every month. No card.