Call it
curl https://api.peume.com/v1/call/google-maps-nearby-search \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"query": "your query",
"coordinates": "your coordinates",
"limit": 20,
"language": "en",
"zoom": 13.1
}
}'const res = await fetch("https://api.peume.com/v1/call/google-maps-nearby-search", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"query": "your query",
"coordinates": "your coordinates",
"limit": 20,
"language": "en",
"zoom": 13.1
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-maps-nearby-search",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"query": "your query",
"coordinates": "your coordinates",
"limit": 20,
"language": "en",
"zoom": 13.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-maps-nearby-search.
Parameters
cursorstringOpaque cursor from a previous response's nextCursor. Pass it back to get the next page of places. Pages can overlap: a page may repeat items an earlier page returned and is billed like any other, so de-duplicate by item id and stop when a page adds no new id.
routestringUpstream source to run on; omit for "chameleon". chameleon ($0.0013 per call, 99.5% uptime); ibex ($0.0013 per call, 100% uptime). Output fields only some routes return: city (chameleon); countryCode (chameleon); domain (chameleon); neighborhood (chameleon); postalCode (chameleon); state (chameleon); street (chameleon). 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 · ibex
queryRequiredstringWhat you would type in the Google Maps search bar (e.g. coffee shop).
coordinatesRequiredobjectThe exact map centre to search around. Use maps.search instead if you only have a place name.
limitintegerAccepted but does not change the page: every call returns one full Google Maps viewport of about 20 places, never trimmed, so nextCursor continues exactly where this response ended. Price is flat per request.
Example: 20
languagestringTwo-letter language code for the results (e.g. en).
Example: en
zoomnumberGoogle Maps viewport zoom. Lower covers a wider area, higher focuses more tightly around the coordinates.
Example: 13.1
