Call it
curl https://api.peume.com/v1/call/google-local-services \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"query": "your query",
"location": "your location"
}
}'const res = await fetch("https://api.peume.com/v1/call/google-local-services", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"query": "your query",
"location": "your location"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-local-services",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"query": "your query",
"location": "your location"
}
},
)
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-local-services.
Parameters
routestringUpstream source to run on; omit for "chameleon". chameleon ($0.00085 per call, 100% uptime); octopus ($0.01167 + $0.00013 per result, at most $0.01422, 100% uptime). Output fields only some routes return: highlights (octopus); hours (octopus); image (chameleon); isOpenNow (octopus); responseTime (octopus); yearsInBusiness (octopus). A route can refuse an input it cannot apply with a 400 source_unknown (not charged): retry on another route, or omit that input.
chameleon · octopus
queryRequiredstringThe service to find businesses for, in everyday words (e.g. plumber, electrician, house cleaning, roofer).
limitintegerMaximum number of businesses to return (1-20, default 20). Google lists at most 20 businesses for one service in one city, so there are no further pages.
locationRequiredstringThe US city to search, with its state (e.g. Denver, CO or Austin, TX).
