Skip to content

Engine API

Google AI Overview API

PromptGale returns the Google AI Overview for a query as JSON: a real browser searches google.com from the country (or US state, city or point) you pick and returns the overview text, its sources and the organic results on the same page. When Google shows no overview, the task says so with aiOverviewPresent: false. Each query costs 1 credit.

Updated

What does the Google AI Overview API return?

One completed task is one answer. A real browser opens google.com from the country you chose, asks your prompt and returns what the page showed, as data.result inside the task.

Fields of a Google AI Overview result
FieldWhat it holds
textThe answer as plain text, as google.com showed it.
markdownThe same answer with its formatting (lists, bold, links) kept. On by default.
sourcesEach source: position, url, domain, title?, snippet?, cited (false when it was only in the source list) and citationNumber?.
aiOverviewPresenttrue when Google showed an AI Overview; false when the results page loaded with none.
organicThe organic results on the same page: position, url, title, domain, snippet?.
analysis.brandsWith brand (and optional competitors) in the payload: for each brand, mentioned, mentions, firstPosition, rank, cited, citedUrls and shareOfVoice. Free; no extra credits.
locationWhere the task ran: country, locale, timezone, plus state, city, lat, lng or approximate when they apply.
Response of POST /v1/sync/task (GOOGLE_AIO)
{
  "success": true,
  "data": {
    "id": "tsk_3Xb8Kq0Lm2Np4Rs6Tu8Vw0Yz",
    "taskType": "GOOGLE_AIO",
    "status": "COMPLETED",
    "country": "US",
    "credits": 1,
    "creditsCharged": 1,
    "result": {
      "engine": "GOOGLE_AIO",
      "aiOverviewPresent": true,
      "text": "For home espresso, these are the subscriptions people recommend most often: 1. Acme Coffee roasts to order and lets you pick the grind for your machine. 2. Bluebird Beans ships every two weeks and is easy to pause. 3. Harbor & Vine is the pick if you want a decaf that still pulls a proper shot.",
      "sources": [
        {
          "position": 1,
          "url": "https://acmecoffee.example/espresso-subscription",
          "title": "Acme Coffee: espresso subscription",
          "domain": "acmecoffee.example",
          "cited": true,
          "citationNumber": 1
        },
        {
          "position": 2,
          "url": "https://coffeereview.example/threads/home-espresso",
          "title": "Home espresso subscriptions, compared",
          "domain": "coffeereview.example",
          "cited": true,
          "citationNumber": 2
        },
        {
          "position": 3,
          "url": "https://bluebirdbeans.example/espresso-subscription",
          "title": "Bluebird Beans: espresso subscription",
          "domain": "bluebirdbeans.example",
          "cited": true,
          "citationNumber": 3
        },
        {
          "position": 4,
          "url": "https://youtube.com/threads/home-espresso",
          "title": "Home espresso subscriptions, compared",
          "domain": "youtube.com",
          "cited": true,
          "citationNumber": 4
        }
      ],
      "organic": [
        {
          "position": 1,
          "url": "https://coffeereview.example/espresso-subscriptions",
          "title": "The espresso subscriptions worth paying for",
          "domain": "coffeereview.example"
        },
        {
          "position": 2,
          "url": "https://acmecoffee.example/subscribe",
          "title": "Acme Coffee: fresh espresso, on your schedule",
          "domain": "acmecoffee.example"
        }
      ],
      "analysis": {
        "status": "ok",
        "brands": [
          {
            "name": "Acme Coffee",
            "role": "target",
            "mentioned": true,
            "mentions": 1,
            "firstPosition": 79,
            "rank": 1,
            "cited": true,
            "citedUrls": [
              "https://acmecoffee.example/espresso-subscription"
            ],
            "shareOfVoice": 33.3
          },
          {
            "name": "Northwind Roasters",
            "role": "competitor",
            "mentioned": false,
            "mentions": 0,
            "firstPosition": null,
            "rank": null,
            "cited": false,
            "citedUrls": [],
            "shareOfVoice": 0
          },
          {
            "name": "Bluebird Beans",
            "role": "competitor",
            "mentioned": true,
            "mentions": 1,
            "firstPosition": 156,
            "rank": 2,
            "cited": true,
            "citedUrls": [
              "https://bluebirdbeans.example/espresso-subscription"
            ],
            "shareOfVoice": 33.3
          }
        ]
      },
      "location": {
        "country": "US",
        "locale": "en-US",
        "timezone": "America/New_York"
      }
    }
  }
}

Sample output: the brands, domains and answer are made up (Acme Coffee and its competitors do not exist). The field names and shapes are the real API.

How do I get a Google AI Overview answer with curl, Python or Node.js?

Create an API key in the dashboard and export it as PROMPTGALE_API_KEY. POST /v1/sync/task runs the task and holds the request open until the answer is ready, up to 290 seconds; past that it answers 202 with the task id to poll. Leave out brand and competitors if you only want the answer.

curl
curl -X POST https://promptgale.com/v1/sync/task \
  -H "Authorization: Bearer $PROMPTGALE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "taskType": "GOOGLE_AIO",
    "payload": {
      "prompt": "best coffee subscription for home espresso",
      "country": "US",
      "brand": "Acme Coffee",
      "competitors": [
        "Northwind Roasters",
        "Bluebird Beans"
      ]
    }
  }'
Python
import os
import requests

res = requests.post(
    "https://promptgale.com/v1/sync/task",
    headers={"Authorization": f"Bearer {os.environ['PROMPTGALE_API_KEY']}"},
    json={"taskType": "GOOGLE_AIO", "payload": {"prompt": "best coffee subscription for home espresso", "country": "US", "brand": "Acme Coffee", "competitors": ["Northwind Roasters", "Bluebird Beans"]}},
    timeout=300,
)
task = res.json()["data"]
print(task["status"], task["result"]["text"][:300])
Node.js
const res = await fetch('https://promptgale.com/v1/sync/task', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.PROMPTGALE_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ taskType: 'GOOGLE_AIO', payload: {prompt: "best coffee subscription for home espresso", country: "US", brand: "Acme Coffee", competitors: ["Northwind Roasters","Bluebird Beans"]} }),
});
const { data: task } = await res.json();
console.log(task.status, task.result.text.slice(0, 300));

For queued work use POST /v1/tasks with a webhookUrl and receive the finished task at your URL. Every field is in Request fields and Results.

Can I ask Google AI Overview from a specific country or US state?

Every task takes payload.country (ISO 3166-1 alpha-2, default US), and the browser's locale and timezone follow it. Right now Google AI Overview is served from 50 countries: Albania, Argentina, Austria, Australia, Belgium, Bulgaria, Brazil, Canada, Switzerland, Chile, Colombia, Cyprus, Czechia, Germany, Denmark, Estonia, Spain, Finland, France, United Kingdom, Greece, Hong Kong, Croatia, Hungary, Indonesia, Ireland, Israel, Italy, Japan, Mexico, Malaysia, Nigeria, Netherlands, Norway, New Zealand, Peru, Philippines, Poland, Portugal, Romania, Serbia, Sweden, Singapore, Slovenia, Slovakia, Thailand, Turkey, Ukraine, United States, South Africa. On top of the country you can send one finer location per task: state (a US state code, +1 credit), city (a city name), uule (Google's own location value), and location (a { lat, lng } point, +1 credit). It also runs in location grids of up to 9 by 9 points.

Payload asked from Texas
{
  "taskType": "GOOGLE_AIO",
  "payload": {
    "prompt": "best coffee subscription for home espresso",
    "country": "US",
    "state": "TX"
  }
}

result.location reports where the task actually ran. More in Countries and locations.

What happens when Google shows no AI Overview?

The task still completes: aiOverviewPresent is false, text is empty, sources is an empty list and organic keeps the organic results. With a brand in the payload, analysis.status is no_answer. It is charged like any completed task, because the answer to "does this query show an overview here?" is the data.

A page where the overview box is there but reads empty, or where Google says it cannot generate one right now, is different: that is retried, and fails with NO_ANSWER (refunded) if it never fills.

result when there is no overview
{
  "engine": "GOOGLE_AIO",
  "aiOverviewPresent": false,
  "text": "",
  "sources": [],
  "organic": [
    {
      "position": 1,
      "url": "https://coffeereview.example/espresso-subscriptions",
      "title": "The espresso subscriptions worth paying for",
      "domain": "coffeereview.example"
    }
  ]
}

Sample output with a made-up domain.

Does Google have an official AI Overviews API?

Not on the pages we checked (as of November 2026). Google's AI features and your website page explains how sites appear in AI Overviews and AI Mode without naming an API, and Search APIs lists the Indexing API, which submits URLs rather than returning results.

How much does a Google AI Overview answer cost?

Google AI Overview costs 1 credit per completed answer. Credits are held when you submit, charged when the task completes and refunded in full if it fails.

Cost per 1,000 completed answers, by plan (computed)
EngineCredits per answerStarter ($19.00/mo)Growth ($79.00/mo)Pro ($299.00/mo)Scale ($999.00/mo)
Google AI Overview1$9.50$7.90$5.98$5.00

Computed: credits per answer times 1,000 times the plan's price per credit (plan price divided by its monthly credits). A US state or map point adds 1 credit per task. Failed tasks are refunded, so they cost nothing. Taxes not included. Current plans are on Pricing.

How do I run hundreds of prompts at once?

Send a batch: up to 10,000 items in one POST /v1/batches, each one a task. Items are checked first, then queued as room frees up. The webhook gets each finished task and one batch.completed at the end.

POST /v1/batches
curl -X POST https://promptgale.com/v1/batches \
  -H "Authorization: Bearer $PROMPTGALE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "items": [
      { "customId": "p1-google_aio", "taskType": "GOOGLE_AIO", "payload": {"prompt": "best coffee subscription for home espresso", "country": "US", "brand": "Acme Coffee", "competitors": ["Northwind Roasters", "Bluebird Beans"]} },
      { "customId": "p2-google_aio", "taskType": "GOOGLE_AIO", "payload": {"prompt": "coffee subscription for a moka pot", "country": "US", "brand": "Acme Coffee", "competitors": ["Northwind Roasters", "Bluebird Beans"]} }
    ],
    "webhookUrl": "https://example.com/hooks/promptgale",
    "idempotencyKey": "weekly-2026-11-27"
  }'

Details in Batches and Webhooks.

Questions, answered

Do I pay when there is no AI Overview?

Yes, 1 credit, like any completed task: the result tells you the query showed no overview from that location, and you still get the organic results.

Can I get the AI Overview for a city or US state?

Yes. Send state (a US state code, +1 credit), city (a city name), uule (Google location value) or location (a lat and lng point, +1 credit). Location grids of up to 9 by 9 points also work.

Are the AI Overview sources the same as the organic results?

Not necessarily. sources holds the pages the overview cites; organic holds the ranked results on the same page. Comparing the two is a common use.

Sources

Statements about other companies come from their own pages, read on . Prices and products change; check the source before you decide.

Run your first prompt in a minute.