Call it
curl https://api.peume.com/v1/call/search-google-local \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"q": "coffee shops",
"location": "Austin, Texas",
"google_domain": "google.com",
"gl": "us",
"hl": "en",
"ludocid": "15667002398697190332"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-google-local", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"q": "coffee shops",
"location": "Austin, Texas",
"google_domain": "google.com",
"gl": "us",
"hl": "en",
"ludocid": "15667002398697190332"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-google-local",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"q": "coffee shops",
"location": "Austin, Texas",
"google_domain": "google.com",
"gl": "us",
"hl": "en",
"ludocid": "15667002398697190332"
}
},
)
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.
Parameters
qRequiredstringLocal search query, 1 to 2,048 characters with no control characters.
Example: coffee shops
locationstringHuman-readable search location, up to 512 characters. Mutually exclusive with uule.
Example: Austin, Texas
uulestringCanonical Google named-location token (starting w+CAIQICI), up to 2,048 characters. Mutually exclusive with location.
google_domainstringGoogle domain used for the request.
Example: google.com
glstringTwo-letter country code used to localize results; case-insensitive.
Example: us
hlstringLanguage code such as en, en-US, or fr.
Example: en
ludocidstringDecimal Google local CID of one business, up to 128 digits.
Example: 15667002398697190332
tbsstringNative Google filter token, up to 4,096 characters. Google may ignore some values.
startintegerResult offset from 0 through 10,000. Offsets beyond Google's 1,000-result window return an empty page.
Example: 0
devicestringGoogle device layout. Desktop returns up to 20 results per page; tablet and mobile up to 10.
desktop · tablet · mobile
Example: desktop
timeoutnumberOptional 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.
