Call it
curl https://api.peume.com/v1/call/google-search-results-serp-organic-rank-ai-overview \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"q": "best crm software"
}
}'const res = await fetch("https://api.peume.com/v1/call/google-search-results-serp-organic-rank-ai-overview", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"q": "best crm software"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-search-results-serp-organic-rank-ai-overview",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"q": "best crm software"
}
},
)
print(res.json()["output"])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: google-search-results-serp-organic-rank-ai-overview.
Parameters
qRequiredstringthe query, up to 512 characters. Google's own page (source gg) reads site: and quoted phrases as hints, not filters: check each row's link and text against them
Example: best crm software
countrystringtwo-letter Google country (gl), default us
languagestringGoogle interface language (hl), e.g. en or pt-br; default en
locationstringa city or region, e.g. Austin, TX; an unknown place answers 400 with the closest names
numintegerresults to return: a multiple of 10 from 10 to 100 (num/10 Google pages); default 10
pageintegerpage over num, 1 to 30: num=10&page=2 is results 11-20
timestringGoogle's time filter
hour · day · week · month · year
freshstring1 skips the cache
1
sourcestringauto (default) may answer from fallback page, which has no AI Overview; google answers from Google's own page only, with the AI Overview when Google shows one, and is a free 503 when Google cannot be reached. The answer's source names the page that answered: gg is Google's own, gs the fallback
auto · google
Other ways to do it
Same job, other sources, cheapest first.
