Runs onSearch API

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.

Get a free API key

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.

Try:

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.

quickstart.pyplain REST
# 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())

See it in 20 seconds

Request parameters

These are the parameters that apply in SERP mode. The Search API docs describe each one.

ParameterTypeWhat it does
querystring (required)The search, as you would type it into Google
serpbooleanSet to true for Google's full results page, including the AI Overview and People Also Ask
locationstringCountry to search from, as an ISO code such as "us" or "gb"
citystringCity to search from, written as "City,Region,Country", e.g. "London,England,United Kingdom"
devicestringdesktop or mobile results
limit, source, time, includeDomains, excludeDomainsOptional 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, text and references for 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.

2 months free
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
50020,000100,000500,0001,000,000
SearchesGoogle's full results page, for any country or city.2 credits
25010,00050,000250,000500,000
Requests per second15102525
Start freeCompare plans and credit packsEvery account starts free. Upgrade when you need more, or buy a credit pack from $10.

What customers say.

Read all reviews
“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.”
Nicolas RiosHead of Product
“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 Consulting

AI Overviews, specifically.

General search questions are answered on the Search API page.

Open the Search API page

Send your search to the Geekflare Search API with serp: 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.

No. Google doesn't provide one. Gemini's grounding with Google Search returns Gemini's own answer, not the AI Overview shown on google.com, so you need a SERP API to collect the real overview.

No. Google only shows AI Overviews for some searches. When there is none, the ai_overview field is absent and the rest of the results page is still returned.

Yes. Add 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.

Yes. 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.

Yes. html contains the overview as Google rendered it, and text contains the same overview as plain text.

Each search costs 2 credits. The free plan covers 250 searches a month, and on paid plans 1,000 searches cost between $1.00 and $1.90.

Yes. The same response includes the organic results, People Also Ask and related searches.

AI Overviews as JSON, from your first search.

Create a free account and get 250 searches a month. No credit card needed.