Get Google's AI Mode answer for a query as structured JSON — AI-generated text blocks, cited references, and shopping results for commercial queries. v2 engine, 1 credit per request.
Coding
Scavio Google Ai Mode
Try itGet Google's AI Mode answer for a query as structured JSON — AI-generated text blocks, cited references, and shopping results for commercial queries. v2 engine, 1 credit per request.
What it does
Get Google's AI Mode answer for a query as structured JSON — AI-generated text blocks, cited references, and shopping results for commercial queries. v2 engine, 1 credit per request.
The skill document
Google AI Mode via Scavio (v2)
Fetch Google's AI Mode answer as structured JSON: an AI-generated response broken into text blocks, the cited source references behind it, and shopping results for commercial queries. One credit per request.
When to trigger
Use this skill when the user asks to:
- Get Google's AI-generated answer to a question, with its sources
- See what Google's AI Mode says about a topic or product
- Pull cited references behind an AI answer for grounding or verification
- Answer a commercial query and surface AI-suggested products
Setup
Get a free API key at scavio.dev (50 free credits to get started, no card required):
export SCAVIO_API_KEY=sk_live_your_key
Endpoint
POST https://api.scavio.dev/api/v2/google/ai-mode
Authorization: Bearer $SCAVIO_API_KEY
Every request costs 1 credit.
Workflow
- Send the user's question as
query. - Localize with
gl/hl/locationwhen the answer is region-specific. - Read
text_blocks[]for the AI answer,references[]for the cited sources, andshopping_results[]for product suggestions on commercial queries.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
query | string | required | Search query (1-500 chars) |
device | string | desktop | desktop or mobile |
hl | string | -- | UI language, ISO 639-1 |
gl | string | -- | Geo country, ISO 3166-1 alpha-2 |
google_domain | string | google.com | Regional Google domain |
location | string | -- | Canonical location name (auto-UULE) |
uule | string | -- | Pre-encoded UULE (takes priority over location) |
safe | string | -- | active filters adult content |
include_html | boolean | false | Include raw HTML in the html field |
Example
import requests
# Your key from https://scavio.dev. Load it from your environment or secret
# store in real code - keep it out of source control.
API_KEY = "sk_your_key_here"
response = requests.post(
"https://api.scavio.dev/api/v2/google/ai-mode",
headers={"Authorization": f"Bearer {API_KEY}"},
json={"query": "best running shoes for flat feet 2026", "gl": "us", "hl": "en"},
)
data = response.json()
for b in data.get("text_blocks", []):
print(b.get("snippet") or b.get("text"))
for ref in data.get("references", []):
print("source:", ref.get("title"), ref.get("link"))
Response
{
"text_blocks": [
{ "type": "paragraph", "snippet": "AI-generated answer text..." }
],
"references": [
{ "title": "Source article", "link": "https://example.com", "source": "Example" }
],
"shopping_results": [],
"response_time": 2140,
"credits_used": 1,
"credits_remaining": 995,
"cached": false
}
Guardrails
- Each call costs 1 credit.
- Never fabricate the AI answer, references, or products. Only return API data.
- Present the answer from
text_blocksand always surface itsreferencesso the user can verify sources. - AI Mode does not support pagination or result filtering — it is a single answer per query.
Failure handling
400means an invalid parameter — fix and retry.401means the API key is invalid or missing. CheckSCAVIO_API_KEY.429means rate or usage limit exceeded. Wait before retrying. See rate limits.502/503mean upstream is temporarily unavailable. Wait a few seconds before retrying.- If no AI answer is returned, the query may not trigger AI Mode — fall back to the
scavio-googlesearch skill. - If
SCAVIO_API_KEYis not set, prompt the user to export it before continuing.
Related skills
Search Google using AI Mode
基于 Google 搜索的 AI 概览(AI Overview / AI Mode)抓取,针对一个关键词返回主搜索的 AI 概览要点,适合用最新网页信息做深度调研、技术问答、长尾选品分析、海外消费者偏好分析。仅支持单轮对话,如需追问须由 agent 总结上下文后发起新请求。当用户提到 Google AI、AI Overview、AI Mode、谷歌AI概览、谷歌AI搜索、海外深度调研、长尾选品调研、消费者偏好分析、网页要点总结、Google AI search, AI Overview, AI Mode, deep research, consumer preference analysis 等场景时触发此技能。即使用户未明确提到"Google AI",只要其需求是"用谷歌搜索 + AI 总结网页要点",也应触发此技能。
Search Google and get the full structured SERP as JSON — organic results, ads, knowledge graph, AI overview, related questions, and more. Use for any query needing current web information. v2 engine, 1 credit per request.
Search Google Shopping for products, fetch a full product page, and page through every store selling a product — as structured JSON. Price, seller, rating, and price/sale filters. v2 engine, 1 credit per request.
面向跨境电商的 Google AI Mode 搜索研究专家。适用于需要带引用的最新 Google AI Overview 结果,用于海外消费者偏好、产品趋势、市场问题、技术趋势或连续追问式网页调研的场景。