Call it
curl https://api.peume.com/v1/call/google-serp-organic-paa-local-pack-ai-overview \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"query": "best running shoes",
"gl": "US",
"hl": "en",
"device": "desktop",
"pages": 1
}
}'const res = await fetch("https://api.peume.com/v1/call/google-serp-organic-paa-local-pack-ai-overview", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"query": "best running shoes",
"gl": "US",
"hl": "en",
"device": "desktop",
"pages": 1
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-serp-organic-paa-local-pack-ai-overview",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"query": "best running shoes",
"gl": "US",
"hl": "en",
"device": "desktop",
"pages": 1
}
},
)
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-serp-organic-paa-local-pack-ai-overview.
Parameters
querystringthe keyword. Pass query or url, not both.
Example: best running shoes
urlstringa complete google.com/search URL used as the fetch target instead of the structured fields. The URL owns query, location, uule and pages.
glstringresult geography, ISO 3166-1 alpha-2. Required in structured mode; derived from the URL's gl otherwise. `country` is a deprecated alias.
Example: US
hlstringinterface language
Example: en
locationstringfree-text location; mutually exclusive with uule
uulestringGoogle UULE location string; mutually exclusive with location
devicestringdesktop | mobile
Example: desktop
pagesinteger1-10, default 1. Each page past the first adds 2 credits.
Example: 1
includeobjectany of html, aioverview, paaAioverview, googleGoto. html and googleGoto are free; aioverview or paaAioverview adds 2 credits.
Other ways to do it
Same job, other sources, cheapest first.
