Google AI API
Get Google AI data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no proxies required. Compare 5 implementations (anyapi and LiteScrape), pass parameters such as prompt, and retrieve structured data including returned answer field, returned answer markdown field, returned citations field, returned language field, and returned prompt field to search interfaces and source review, and integration reference.
- Selected price
- $0.00015 / callPublished pricing
- Sellers / APIs
- 2 / 5
- Requests · 30d
- 7Selected implementation · last 30 days
- Success rate · 30d
- 85.71%Selected implementation · last 30 days
Google AI API
Prepare your request, then continue with your agent.
Selected price
$0.00015 / call
- Provider
- API
- Pricing
On this page
Overview
Google AI Overview API
Retrieve Google's AI Overview for a query, with cited sources. Provide JSON payload in body. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | query: timeout; body: body |
| Selected implementation | litescrape · Google AI Overview |
| Billing | Follow the selected implementation pricing, billing unit, quantity and charge rules |
What You Can Build
- Search interfaces and source review: Keep returned sources and query context together.
- Integration reference: Use the selected request format and keep source identifiers with the returned result.
Documented Response Fields
| Field | Meaning |
|---|---|
ai_overview.references[].index |
Returned index field |
ai_overview.references[].link |
Returned link |
ai_overview.references[].source |
Returned source field |
ai_overview.text_blocks[].snippet |
Returned snippet field |
ai_overview.text_blocks[].snippet_highlighted_words |
Returned snippet highlighted words field |
ai_overview.text_blocks[].type |
Returned type field |
search_metadata.id |
Identifier |
search_metadata.status |
Reported status |
Quick Start
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the JSON body and supported fields shown in the request template.
- Check the HTTP response and business result before reading optional fields.
curl \
'https://api.openany.si/v1/agent-apis/litescrape/api/google/ai-overview' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"q": "why is the sky blue"
}'
Request and Response Examples
The response is a published documentation reference; its values may be historical. The request is an independent calling template. Use current returned identifiers and optional fields for your target resource.
Published Google AI Overview API implementation contract.
Pricing and Billing
The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.
Frequently Asked Questions
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
| Google AI Overview · POST · View API reference | $0.0015 / call | —Select to load statistics | —successP50— | |
| Google AI Mode · POST · View API reference | $0.002 / call | —Select to load statistics | —successP50— | |
Current Google AI Overview · POST · View API reference | $0.00015 / call | 7 | 85.71%successP5010.88s | |
| Gemini Chat · POST · View API reference | $0.00015 / call | —Select to load statistics | —successP50— | |
| Google AI Mode · POST · View API reference | $0.00015 / call | —Select to load statistics | —successP50— |
- Unit price
- $0.00015
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 6. Price update time: not supplied.
Total $0.015
API
- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/litescrape/api/google/ai-overview- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
timeout | URL query parametersquery | number | No | Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget. maximum: 90 |
as_dt | JSON request bodybody | string | null | No | Includes or excludes as_sitesearch. Requires as_sitesearch. |
as_epq | JSON request bodybody | string | null | No | Exact phrase query. |
as_eq | JSON request bodybody | string | null | No | Excluded phrase query. |
as_lq | JSON request bodybody | string | null | No | Require results that link to this URL. |
as_nhi | JSON request bodybody | integer | null | No | Inclusive range upper bound. Requires as_nlo. |
as_nlo | JSON request bodybody | integer | null | No | Inclusive range lower bound. Requires as_nhi. |
as_oq | JSON request bodybody | string | null | No | Any-of search terms. |
as_q | JSON request bodybody | string | null | No | Additional all-of search terms. |
as_qdr | JSON request bodybody | string | null | No | Quick range d, w, m, or y with an optional positive count. |
as_rq | JSON request bodybody | string | null | No | Find pages related to this URL. |
as_sitesearch | JSON request bodybody | string | null | No | Site hostname to include or exclude. |
color_scheme | JSON request bodybody | string | null | No | Google result color presentation. |
cr | JSON request bodybody | string | null | No | One or more countryXX restrictions joined with |. |
device | JSON request bodybody | string | No | Request device profile and radius bound. enum: "desktop", "tablet", "mobile" |
filter | JSON request bodybody | string | null | No | Google similar-result filtering control. |
gl | JSON request bodybody | string | null | No | Lowercase two-letter country localization code. |
google_domain | JSON request bodybody | string | No | Results use google.com. Use gl, hl, cr, lr or geography for localization. |
gs_lp | JSON request bodybody | string | null | No | Google gs_lp value associated with an autocomplete selection. |
hl | JSON request bodybody | string | No | Google interface and result language code. pattern: ^[a-z]{2,3}(?:-[A-Za-z]{2,8})?$ |
ibp | JSON request bodybody | string | null | No | Google layout or expansion control. |
kgmid | JSON request bodybody | string | null | No | Google Knowledge Graph machine ID, such as /m/0k8z. |
lat | JSON request bodybody | number | null | No | Latitude from -90 through 90. Requires lon and conflicts with location and uule. |
location | JSON request bodybody | string | null | No | Human-readable city-level location encoded to UULE by Litescrape. Conflicts with uule and lat/lon. |
lon | JSON request bodybody | number | null | No | Longitude from -180 through 180. Requires lat and conflicts with location and uule. |
lr | JSON request bodybody | string | null | No | One or more lang_xx restrictions joined with |. |
lsig | JSON request bodybody | string | null | No | Opaque Knowledge Graph or local-pack signature. |
ludocid | JSON request bodybody | string | null | No | Google local CID used to search for one entity. |
nfpr | JSON request bodybody | string | null | No | Google auto-correction control. |
num | JSON request bodybody | integer | null | No | Best-effort first-page result count, 1 to 10. |
oq | JSON request bodybody | string | null | No | Original query associated with an autocomplete selection. |
peek_pws | JSON request bodybody | string | null | No | Google personalization peek flag, forwarded unchanged. |
pws | JSON request bodybody | string | null | No | Google personalization control; 0 asks for non-personalized results. |
q | JSON request bodybody | string | null | No | Google Search query, up to 2,048 characters. Required unless ludocid or kgmid is supplied. |
radius | JSON request bodybody | number | null | No | Decimal search-bias radius in meters. Requires location or lat/lon. Desktop: 1–199; tablet/mobile: 1–1,000. |
safe | JSON request bodybody | string | null | No | Google adult-content filtering. |
sclient | JSON request bodybody | string | null | No | Google client identifier such as gws-wiz-serp. |
si | JSON request bodybody | string | null | No | Opaque cached Google search context. |
start | JSON request bodybody | integer | No | Non-negative Google result offset. minimum: 0 |
tbm | JSON request bodybody | string | null | No | Google vertical: lcl, vid, nws, shop, or pts. For image searches, use /api/google/images. |
tbs | JSON request bodybody | string | null | No | Google native date or search filter string. |
uds | JSON request bodybody | string | null | No | Opaque Google filter token. |
uule | JSON request bodybody | string | null | No | Pre-encoded Google location value. Conflicts with location and lat/lon. |
Required markers inside a nested object or variant apply when that object or variant is used.
Response structure
ai_overviewobjectreferencesobject[]indexintegerlinkstringsourcestring
text_blocksobject[]snippetstringsnippet_highlighted_wordsstring[]typestring
search_metadataobjectcreated_atstringgoogle_ai_overview_urlstringgoogle_urlstringidstringjson_endpointstringprocessed_atstringstatusstringtotal_time_takennumber
search_parametersobjectdevicestringglstringgoogle_domainstringhlstringqstringstartstring
submit_feedback_for_this_response_herestring
Agent integration
Copy the resource contract without sharing an API key.
Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Official example
Example from the provider's documentation. Field values in your results will differ.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 2
Review these request fields before running. Keep the published provider and request method unchanged.
timeout- Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget.
body- Get Google's AI Overview for a query, with cited sources.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/litescrape/api/google/ai-overview' \ -X POST \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json' \ --data-raw '{ "q": "why is the sky blue" }'Check the response
Sample response · Documented HTTP 200
Sample response{ "ai_overview": { "references": [ { "index": 1, "link": "https://www.theshortcut.com/p/apple-wwdc-2026-liveblog-highlights", "source": "The Shortcut | Matt Swider" }, { "index": 2, "link": "https://www.popsci.com/gear/apple-wwdc-announcements-2026/", "source": "Popular Science" } ], "text_blocks": [ { "snippet": "At Apple's WWDC 2026 keynote on June 8, 2026, Apple announced major AI integrations, new operating system previews, and a revamped Siri experience .", "snippet_highlighted_words": [ "major AI integrations, new operating system previews, and a revamped Siri experience" ], "type": "paragraph" }, { "snippet": "Major Software & AI Announcements", "type": "heading" } ] }, "search_metadata": { "created_at": "2026-09-19 22:52:46 +00:00", "google_ai_overview_url": "https://www.google.com/search?q=What%20did%20Apple%20announce%20at%20WWDC%3F&hl=en&gl=us", "google_url": "https://www.google.com/search?q=What%20did%20Apple%20announce%20at%20WWDC%3F&hl=en&gl=us", "id": "9e01884842ec2e3068eaf427", "json_endpoint": "https://ecll-litescrape-v3--site-api-web.modal.run/api/google/ai-overview?device=desktop&gl=us&google_domain=google.com&hl=en&q=What+did+Apple+announce+at+WWDC%3F&start=0", "processed_at": "2026-09-19 22:52:54 +00:00", "status": "Success", "total_time_taken": 8.24 }, "search_parameters": { "device": "desktop", "gl": "us", "google_domain": "google.com", "hl": "en", "q": "What did Apple announce at WWDC?", "start": "0" }, "submit_feedback_for_this_response_here": "https://ecll-litescrape-v3--site-api-web.modal.run/api/feedback/example-not-a-valid-token" }