Google AI Mode results
/serp-ai-modeRuns the query through Google's AI Mode and returns the AI-generated answer with its cited sources and references. Use it to see how Google's AI answers a question and which pages it cites, which is the core check for answer-engine optimization: is your (or a competitor's) content being used as a source? Costs about 2x a classic search.
Call it over REST
Authenticate with a bearer token against https://api.agntdata.dev. Swap the placeholders for your key and parameter values.
curl -s -X POST "https://api.agntdata.dev/serp-ai-mode" \
-H "Authorization: Bearer <YOUR_AGNTDATA_API_KEY>" \
-H "Content-Type: application/json" \
-d '{ "keyword": "<string>" }'Copy-paste prompt
Paste this into a coding agent. It connects the superagnt MCP server, finds the tool data_seo_google_ai_mode_search, and runs a first call — with the REST fallback if MCP is unavailable.
You are wiring up the agntdata "SEO" API to use this endpoint: Google AI Mode results.
1. CONNECT over MCP (preferred). Add the superagnt MCP server, then let the client
run OAuth on first tool call — no token to paste:
claude mcp add --scope user --transport http superagnt https://mcp.superagnt.com/mcp
claude mcp login superagnt
MCP endpoint: https://mcp.superagnt.com/mcp
After connecting, the tool you want is named exactly:
data_seo_google_ai_mode_search
Call agnt_tools_search or agnt_tools_list_enabled to confirm it is available.
2. REST fallback (if you are not using MCP):
POST https://api.agntdata.dev/serp-ai-mode
Header: Authorization: Bearer <YOUR_AGNTDATA_API_KEY>
Required parameters:
- keyword (string, required) — The question or query to run through Google AI Mode.
Optional parameters:
- location_code (integer, optional) — Geo target as a location code. Common values: 2840 United States (default), 2826 United Kingdom, 2124 Canada, 2036 Australia, 2276 Germany.
- language_code (string, optional) — Two-letter language code, e.g. 'en' (default).
3. COST & KEY. This endpoint is priced per call in credits, and each successful response reports its own cost in its meta.costCents field. Only successful calls are charged.
Get an agntdata API key at https://app.agntdata.dev.
4. TEST. Connect the server (or set the key), discover the tool
(data_seo_google_ai_mode_search), run one minimal call with just the required parameters,
and report back the shape of the JSON response (top-level fields).
Reference (machine-readable variant): https://superagnt.com/docs/apis/seo/endpoints/google_ai_mode_search.md{
"name": "google_ai_mode_search",
"description": "Runs the query through Google's AI Mode and returns the AI-generated answer with its cited sources and references. Use it to see how Google's AI answers a question and which pages it cites, which is the core check for answer-engine optimization: is your (or a competitor's) content being used as a source? Costs about 2x a classic search.",
"parameters": {
"type": "object",
"properties": {
"keyword": {
"type": "string",
"maxLength": 700,
"description": "The question or query to run through Google AI Mode."
},
"location_code": {
"type": "integer",
"description": "Geo target as a location code. Common values: 2840 United States (default), 2826 United Kingdom, 2124 Canada, 2036 Australia, 2276 Germany.",
"default": 2840
},
"language_code": {
"type": "string",
"description": "Two-letter language code, e.g. 'en' (default).",
"default": "en"
}
},
"required": [
"keyword"
]
}
}| Name | In | Type | Required | Description |
|---|---|---|---|---|
keyword | body | string | required | The question or query to run through Google AI Mode. |
location_code | body | integer | optional | Geo target as a location code. Common values: 2840 United States (default), 2826 United Kingdom, 2124 Canada, 2036 Australia, 2276 Germany. |
language_code | body | string | optional | Two-letter language code, e.g. 'en' (default). |
The AI-generated answer with cited sources in `result[0].items`.
{
"type": "object"
}This endpoint is priced per call and deducted from your agntdata balance; only a successful call is billed. Every billable response reports its own cost in meta.costCents.
Get a key at app.agntdata.dev.
start calling
Point your client at https://mcp.superagnt.com/mcp and your agent has this endpoint, plus every other source on one balance.