Google AI Overview API
A Google AI Overview API returns the AI Overview that Google shows for a search as structured data: the summary text, the HTML Google rendered and the sources it cites.
Send a search with serp: true to POST https://api.geekflare.com/search. When Google shows an AI Overview, it comes back in data.ai_overview.
Rated 4.9 on average: G2 4.8,
Google 4.9,
Product Hunt 5.0.
- 250 free searches every month
- No card to start
- Failed requests cost nothing
Try it on your own search
Not every search has an AI Overview. Try a question-style search.
Trusted by teams at Pfizer, NBCUniversal, TCS, Hostinger, Kissflow, Lookout, Plivo, ClearSale, Sparkian, CBSplit and Omreon.
Get the AI Overview for any search
The AI Overview is part of Geekflare's Search API in SERP mode. Send your search as query with serp: true, and the response contains Google's first results page as structured JSON: the organic results, People Also Ask, related searches and, when Google shows one, the AI Overview. There is no separate endpoint to learn, and the request is billed as one search.
# pip install requests
import requests
response = requests.post(
"https://api.geekflare.com/search",
headers={"x-api-key": "<api-key>"},
json={"query":"best laptops under 1000","serp":True,"location":"us"},
)
print(response.json())const response = await fetch("https://api.geekflare.com/search", {
method: "POST",
headers: {
"x-api-key": "<api-key>",
"Content-Type": "application/json",
},
body: JSON.stringify({
"query": "best laptops under 1000",
"serp": true,
"location": "us"
}),
});
console.log(await response.json());curl --request POST \
--url 'https://api.geekflare.com/search' \
--header 'x-api-key: YOUR_KEY' \
--header 'Content-Type: application/json' \
--data '{"query":"best laptops under 1000","serp":true,"location":"us"}'See it in 20 seconds
Request parameters
These are the parameters that apply in SERP mode. The Search API docs describe each one.
| Parameter | Type | What it does |
|---|---|---|
query | string (required) | The search, as you would type it into Google |
serp | boolean | Set to true for Google's full results page, including the AI Overview and People Also Ask |
location | string | Country to search from, as an ISO code such as "us" or "gb" |
city | string | City to search from, written as "City,Region,Country", e.g. "London,England,United Kingdom" |
device | string | desktop or mobile results |
limit, source, time, includeDomains, excludeDomains | Optional filters in SERP mode; source is one of web, news or images |
What the ai_overview object contains
The overview comes back in three forms. text is the overview as plain text, ready to store or search. html is the overview as Google rendered it, with its formatting. references lists the sources the overview cites, each with a title, url, source and snippet. A reference's url can be null when Google doesn't expose a link for it. The example below is from the Geekflare docs, shortened.
{
"ai_overview": {
"text": "The best laptops under $1,000 include the Apple MacBook Neo for everyday macOS use and the HP OmniBook 5 for top-tier Windows performance. ...",
"html": "<div data-subtree=\"aimc\" ...>...</div>",
"references": [
{
"title": "The Best Laptops Under $1,000 We've Tested for 2026 | PCMag",
"url": "https://www.pcmag.com/picks/best-laptops-under-1000",
"source": "PCMag",
"snippet": "Tested Laptops Under $1,000: HP OmniBook 5 14 (best overall Windows, 34-hour battery); ..."
},
{
"title": "What is the best laptop under $ 1000 US? - Reddit",
"url": null,
"source": "www.reddit.com",
"snippet": "Specific Laptop Recommendations: Recommended laptops for graphically intensive medical imaging ..."
}
]
}
}When a search has no AI Overview
Google doesn't show an AI Overview for every search, it can differ by country, city and device. When there is no overview, the ai_overview object is simply not in the response, and the rest of the results page is still returned. Check for the field before you read it. To see how often your searches trigger an overview, run the same list on a schedule and count how many responses include it.
Tracking AI Overviews over time
AI Overviews change as Google updates them, so one snapshot doens't tell you everything. To track them, keep a fixed list of searches, run it on a schedule with the same location and device, and store text and references with the date. Then compare runs: whether an overview appeared, whether your brand is named in text, and which domains appear in references. Because the same request also returns the organic results, you can compare who ranks with who gets cited in the overview.
- Keep the search list, location and device fixed between runs
- Store the date,
textandreferencesfor each search - Count runs with an overview, brand mentions and cited domains
Is there an official Google AI Overview API?
No. Google doesn't offer an API that returns the AI Overview from its results page. Gemini's grounding with Google Search is a different thing: it gives you Gemini's own answer with sources, not the AI Overview that searchers see on google.com. To collect the actual AI Overview, you need a SERP API that returns it, such as Geekflare's Search API with serp: true.
What teams use AI Overview data for
Most teams collect AI Overviews to see what Google tells searchers about their market.
- Brand tracking: is your company named in the overview text, and are your pages in
references? - Source research: which sites Google cites for a topic
- Content planning: read the overview together with People Also Ask for the same search
- Monitoring: run the same searches on a schedule and compare over time
How many searches each plan covers.
A search costs 2 credits, including SERP mode with the AI Overview. The free plan has 500 credits a month, which is 250 searches, with no credit card. Failed requests cost nothing.
| Covered per month | Free $0/mo No card | Starter $19/mo | Most popular Growth $69/mo | Business 500K $299/mo | Business 1M $499/mo |
|---|---|---|---|---|---|
Credits a month | 500 | 20,000 | 100,000 | 500,000 | 1,000,000 |
SearchesGoogle's full results page, for any country or city.2 credits | 250 | 10,000 | 50,000 | 250,000 | 500,000 |
| Requests per second | 1 | 5 | 10 | 25 | 25 |
What customers say.
“Its been couple of years we are using Geekflare API, we like its stable production ready performance and cost-effectiveness of accessing multiple APIs through a single plan.”
Jitendra RauloDirector, Aarav Infotech“I've been using Geekflare for both their API tools and their multi-AI chat platform. The URL-to-Markdown API has been a game changer for my content pipeline.”
“Found Geekflare API to get markdown from URL for my AI agents. It is fast and cheaper and works on almost every website.”
Ram DasiArchitect, PA ConsultingAI Overviews, specifically.
General search questions are answered on the Search API page.
Open the Search API pageserp: true. When Google shows an AI Overview for that search, it is returned in data.ai_overview with the text, the HTML and the cited sources.ai_overview field is absent and the rest of the results page is still returned.location with a country code, or city in the form "City,Region,Country". Overviews can differ by location and device, so match the market you care about.references lists each cited source with its title, URL, source name and snippet. The URL can be null when Google does not expose a link.html contains the overview as Google rendered it, and text contains the same overview as plain text.AI Overviews as JSON, from your first search.
Create a free account and get 250 searches a month. No credit card needed.


