Google AI Overview

Fetch Google's AI Overview plus the full SERP, with cited sources

POSThttps://api.anakin.io/v1/wire/task

Fetch the AI Overview Google shows above organic results, plus the surrounding SERP — organic results, People-Also-Ask, knowledge panel, and more. Highly geo-dependent. Run it with the google_ai_overview action on POST /v1/wire/task.

Catalog: google_ai_mode · action_id: google_ai_overview · Credits: 2 / call · Auth: none


Request Body

{
  "action_id": "google_ai_overview",
  "params": { "query": "best CRM for small teams", "country": "us" }
}
ParameterTypeDescription
action_id requiredstringSet to google_ai_overview
params.query requiredstringThe search query (max 2048 chars)
params.countrystring2-letter ISO country for the search locale (239 supported). Default in
params.languagestringLanguage of the results and AI Overview (Google hl), e.g. fr, de, en, or with region fr-CH
params.locationstringLocation override: lat,lng[,radius_m] or a canonical place
params.uulestringReady-made Google UULE cookie value (overrides location)
params.pageintegerSERP page (1–10). Page 1 = AI Overview + organic. Default 1
params.htmlbooleanReturn a link to the full SERP snapshot instead of inline HTML. Default false
params.paa_aioverviewbooleanHydrate People-Also-Ask items with their own AI-Overview markdown. Default false
params.devicestringUser-agent profile (desktop, desktop_chrome, mobile, …). Default desktop
params.resolve_gotobooleanResolve Google's /goto redirect links to the real URL for organic results and cited sources that show only a site root. Default false

Code Examples

curl -X POST http://staging-alb-1217701800.ap-south-1.elb.amazonaws.com/v1/wire/task \
  -H "X-API-Key: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "action_id": "google_ai_overview",
    "params": { "query": "best CRM for small teams", "country": "us" }
  }'

Response

202 Accepted
{ "status": "processing", "job_id": "…", "poll_url": "/v1/wire/jobs/…" }

Poll GET /v1/wire/jobs/{id} until status: "completed":

200 OK
{
  "status": "completed",
  "credits_used": 2,
  "execution_ms": 16797,
  "data": {
    "status": "ok",
    "data": {
      "overview_text": "…", "overview_markdown": "…", "overview_markdown_cited": "…", "source_count": 7,
      "sources": [
        { "url": "https://…", "title": "…", "domain": "…", "snippet": "…", "hostname": "…", "source_type": "web" }
      ],
      "claim_references": [
        { "text": "HubSpot CRM: Best for free onboarding…", "start": 0, "end": 40,
          "references": [{ "source": "YouTube", "url": "https://…", "more": 0, "source_index": 0 }] }
      ],
      "organic": [], "featured_snippet": {}, "knowledge_panel": {},
      "related_questions": [], "related_searches": [], "top_stories": [], "videos": [],
      "products": [], "discussions": [], "what_people_are_saying": [],
      "serp_layout": [], "device": "desktop", "page": 1
    },
    "meta": { "action_id": "google_ai_overview", "catalog_slug": "google_ai_mode", "envelope_version": "v1" }
  }
}
FieldTypeDescription
data.data.overview_textstringThe AI Overview text, also as overview_markdown. overview_markdown_cited is the same markdown with a [n] marker after each cited claim. null when Google serves no overview
data.data.adsobject or nullText ads on the page: { top: [...], bottom: [...], count }; null when none were shown
data.data.related_searchesarrayRelated search suggestions
data.data.overview_markdownstringThe AI Overview rendered as Markdown (alongside overview_text)
data.data.sourcesarrayAI Overview citations — { url, title, domain, snippet, hostname, source_type }
data.data.claim_referencesarrayWhere each source is cited in the overview — the sharpest GEO signal. One entry per claim: text, its character offsets in overview_text (start/end), and references: [{ source, url, more, source_index }] (lead source, more = "+N" grouped count, source_index into sources[])
data.data.source_countnumberNumber of cited sources
data.data.organicarrayOrganic SERP results
data.data.related_questionsarrayPeople-Also-Ask items
data.data.related_questions_answersarrayPeople-Also-Ask items hydrated with their own answers, when present
data.data.related_sourcesarraySources from the "related" / people-also-search modules, when present
data.data.what_people_are_sayingarrayThe "What people are saying" forum/discussion block (Reddit/Quora etc.), when present
data.data.featured_snippetobjectFeatured snippet module when present
data.data.knowledge_panelobjectKnowledge panel module when present
data.data.local_packarrayLocal pack module when present
data.data.top_storiesarrayTop stories module when present
data.data.videosarrayVideos module when present
data.data.productsarrayShopping/product module when present
data.data.shoppingarrayShopping module when present
data.data.discussionsarrayDiscussions / forum module when present
data.data.serp_layoutarrayOrder of SERP modules on the page

Google doesn't serve an AI Overview for every query/geo — check overview_text for null before relying on it (the SERP modules are still returned). Use location/uule for city-level targeting. Billed only on success.