Apify google ai overview api
Skill johnisanerd/claude-skill-google-ai-overview-api/apify-google-ai-overview-api
Get Google AI Overview answers and their cited sources as structured JSON with the Apify Google AI Overview API Actor (johnvc/Google-AI-Overview-API). Send one query or a batch, and get one row per query with ai_overview_present, ordered text_blocks (paragraphs, headings, lists, tables), references with link and source domain, retrievals_used, and a fetched_at timestamp. Use when the user wants a google ai overview api, wants to extract or export Google AI Overview answers to JSON or CSV, check which sources an AI Overview cites for a keyword, batch AI Overview lookups across a query list, or asks how to get Google AI Overview data programmatically. Pay-per-retrieval billing, MCP-ready for Claude and other AI agents.From its SKILL.md
npx -y skills add johnisanerd/claude-skill-google-ai-overview-api --skill apify-google-ai-overview-apiAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
3 things to look at
- 27 days oldThe repository was created 27 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its file declares
Copied from the file, not written here
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
6.8 KB, ~1.6k tokens by cl100k_base, as published. Nobody here has run it
Google AI Overview API: Answers and Citations as JSON
Fetch Google's AI Overview for any search query as clean, structured JSON. One call takes a query (or a batch of queries) and returns the AI-generated answer as ordered text blocks plus every source it cites, with links and source domains.
When to use this skill
- The user wants a Google AI Overview API, or Google AI Overview data programmatically.
- They want to extract or export AI Overview answers to JSON or CSV.
- They want the cited sources behind an AI Overview for a keyword or topic.
- They want to batch AI Overview lookups across a keyword list into one dataset.
Not for: recurring brand-citation watchlists (use the google-ai-overview-monitoring skill), organic result rank tracking (this returns the AI Overview only), or other engines' AI answers (see references/actor-index.md for Bing, Brave, and Naver equivalents).
What you get (one row per query)
query, result_type, ai_overview_present, text_blocks (ordered blocks typed paragraph, heading, list, or table, each with a snippet; list blocks carry list items, table blocks carry raw table rows plus a formatted object form), snippet_links and snippet_highlighted_words when present, reference_indexes tying a block to its sources when present, references (each with link, source, index, plus title, snippet, thumbnail, and source_icon when present), used_dedicated_api, retrievals_used, gl, hl, fetched_at.
Prerequisites
- Apify account (sign up at https://apify.com?fpr=9n7kx3&fp_sid=skillrepo).
- Authentication via
apify login, or anAPIFY_TOKENenvironment variable (Apify Console, Settings, Integrations).
The Actor
- Store page: https://apify.com/johnvc/Google-AI-Overview-API?fpr=9n7kx3&fp_sid=skillrepo
- Actor ID:
johnvc/Google-AI-Overview-API - Pricing: pay per AI Overview retrieval plus a small per-run setup fee (see
references/gotchas.md).
Run it with the Apify CLI
Fetch one AI Overview:
apify actors call "johnvc/Google-AI-Overview-API" -i '{"query":"what is retrieval augmented generation"}' \
--json \
--user-agent apify-awesome-skills/apify-google-ai-overview-api \
2>/dev/null
Batch a keyword list with country targeting:
apify actors call "johnvc/Google-AI-Overview-API" -i '{"queries":["best crm for startups","how does vector search work","what is a transformer model"],"gl":"us","hl":"en"}' \
--json \
--user-agent apify-awesome-skills/apify-google-ai-overview-api \
2>/dev/null
Every call carries the three flags this repo expects: --json, --user-agent apify-awesome-skills/apify-google-ai-overview-api, and 2>/dev/null.
Run it from Claude or another AI agent (MCP)
The Actor is MCP-ready. Add the hosted server URL:
https://mcp.apify.com/?tools=actors,docs,johnvc/Google-AI-Overview-API
Then ask, for example: "Get the Google AI Overview for 'best crm for startups' and list the sources it cites." MCP setup docs: https://docs.apify.com/platform/integrations/mcp
Workflow
- Collect the queries. Provide a single
query, aquerieslist, or both; they merge and dedupe, and the Actor returns one row per query. Question-style informational searches trigger AI Overviews most often. - Set targeting. Keep
hlaten(AI Overviews are currently English-only), pickglfor the country, and addlocationonly when a named place matters. - Estimate cost, then confirm with the user if the batch is large. See
references/gotchas.md. - Run the Actor and read the dataset. To get plain answer text, concatenate the
snippetof each block intext_blocksin order. To attribute claims, map each block'sreference_indexesto thereferencesarray byindex. - Deliver rows as JSON or CSV, or hand back the dataset link.
fetched_attimestamps each row for later comparisons.
Inputs
query(string): a single search queryqueries(array of strings): batch of queries, merged withqueryand deduped- At least one of
queryorqueriesis required gl(string, defaultus): two-letter country codehl(string, defaulten): interface language; keepenlocation(string): optional named location, for example "Austin, Texas, United States"
Cost
Billing is pay per event: a small setup fee per run plus a fee per AI Overview retrieval. An inline answer costs one retrieval; when Google defers generation, the Actor resolves it automatically at the cost of a second retrieval. A 10-query batch of inline answers runs about $0.16. Live prices and thresholds are in references/gotchas.md.
Honest limits
- Not every query gets an AI Overview. Rows without one come back with
ai_overview_present: false; you still pay for the lookup. - English-only for now, and available in a limited set of countries;
hlother thanenwill mostly return nothing. - Some
referencesentries carry onlylink,source, andindex(video sources often skiptitleandsnippet). - Answers change over time and vary by
glandlocation; this fetches the live overview, not history. Build history with your own repeated runs.
Troubleshooting
ai_overview_present: false: rephrase as a question-style informational query, keephlaten, and tryglatus.used_dedicated_api: trueandretrievals_used: 2: normal; Google deferred generation and the Actor resolved it, which costs one extra retrieval.- Missing
titleorsnippeton a reference: normal for some source types;linkandsourceare always there for matching.
See references/gotchas.md for cost guardrails and error recovery, and references/actor-index.md for the Actor routing table.
Related answer-engine Actors
- Naver AI Overview API: https://apify.com/johnvc/naver-ai-overview-api?fpr=9n7kx3&fp_sid=skillrepo
- Brave AI Mode API: https://apify.com/johnvc/brave-ai-mode-api?fpr=9n7kx3&fp_sid=skillrepo
- Bing Copilot API: https://apify.com/johnvc/bing-copilot-api?fpr=9n7kx3&fp_sid=skillrepo
- Google News API: https://apify.com/johnvc/GoogleNewsAPI?fpr=9n7kx3&fp_sid=skillrepo
What ships with it: 2 files
4.8 KB alongside SKILL.md
references/
- actor-index.md1.8 KB
- gotchas.md3.0 KB