Call it
curl https://api.peume.com/v1/call/search-google-local-2 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"q": "your q",
"timeout": 50
}
}'const res = await fetch("https://api.peume.com/v1/call/search-google-local-2", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"q": "your q",
"timeout": 50
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-google-local-2",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"q": "your q",
"timeout": 50
}
},
)
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: search-google-local-2.
Parameters
qRequiredstringLocal search query, up to 2,048 characters.
ludocidstringGoogle local CID to target one entity.
tbsstringGoogle compatibility token forwarded unchanged.
startintegerLocal-result offset, 0-1,000 (the source is exhausted above 1,000).
locationstringHuman-readable search origin, such as 'Austin, Texas'. Conflicts with uule.
uulestringPre-encoded Google location token. Conflicts with location.
hlstringInterface and result language, such as 'en', 'en-GB', or 'de'. Default 'en'.
glstringTwo-letter country code for result localization, such as 'us'.
google_domainstringGoogle domain to query, such as 'google.com' or 'google.co.uk'. Default 'google.com'.
devicestringCompatibility value; Maps data is device-invariant. Default 'desktop'.
desktop · tablet · mobile
timeoutnumberSeconds may spend before giving up (max 50, default 50). A timed-out call is not billed.
Example: 50
