PeumeAPI

Search & SEO · Google

Get Google AI Mode answer

Returns the answer Google AI Mode generates for a question, as ordered text blocks, with the sources it cited

$0.0005 per lookup, only when found

Call it

curl https://api.peume.com/v1/call/get-google-ai-mode-answer \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "q": "what is the best espresso machine for a small kitchen",
    "continuable": false,
    "location": "Austin, Texas",
    "google_domain": "google.com",
    "gl": "us",
    "hl": "en"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: get-google-ai-mode-answer.

Parameters

qRequiredstring

Question to ask, up to 2,048 characters. Required on every turn, including follow-ups.

Example: what is the best espresso machine for a small kitchen

continuableboolean

Return a subsequent_request_token so this answer can be followed up, when Google offers a continuation.

Example: false

subsequent_request_tokenstring

Token from a previous continuable response. Send it with a new q to continue that conversation; reuse the same gl, hl and location. Expires after 30 minutes. Cannot be combined with image_url.

image_urlstring

Public http or https URL of an image to include in the question, up to 2,048 characters. The image may be at most 20 MB. Cannot be combined with subsequent_request_token.

locationstring

Human-readable search location, such as Austin, Texas. At most 63 UTF-8 bytes. Mutually exclusive with uule.

Example: Austin, Texas

uulestring

Pre-encoded Google location token. Mutually exclusive with location.

google_domainstring

Google domain used for the request.

Example: google.com

glstring

Two-letter country code used to localize results.

Example: us

hlstring

Language code such as en, en-GB, or de.

Example: en

devicestring

Google device layout. Each device is served Google's real layout for it.

desktop · tablet · mobile

Example: desktop

timeoutnumber

Optional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the call is not billed and returns 503 request_deadline_exceeded with retryable=true and a request ID. Omit to retain the standard server deadline.

Other ways to do it

Same job, other sources, cheapest first.

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.