Call it
curl https://api.peume.com/v1/call/google-maps-search-2 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"query": "your query",
"language": "en",
"location": "your location"
}
}'const res = await fetch("https://api.peume.com/v1/call/google-maps-search-2", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"query": "your query",
"language": "en",
"location": "your location"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-maps-search-2",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"query": "your query",
"language": "en",
"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-maps-search-2.
Parameters
websitestringFilter places by whether they list a website: allPlaces (default), withWebsite (only places that have a website), or withoutWebsite (only places without one). Omit this field, or send allPlaces, to stay on the cheapest price; withWebsite and withoutWebsite route to a dearer source.
allPlaces · withWebsite · withoutWebsite
routestringUpstream source to run on; omit for "bison". tiger ($0.00108 per call, 99.8% uptime); bison ($0.00108 per call, 100% uptime); giraffe ($0.00109 per call, 99.1% uptime); axolotl ($0.00119 per call, 99.9% uptime); heron ($0.00121 per call, 98.1% uptime); lynx ($0.00122 per call, 99.4% uptime); badger ($0.00124 per call, 98.8% uptime); starling ($0.00125 per call, 86.4% uptime); chameleon ($0.00297 per call, 99.4% uptime); meerkat ($0.00325 per call, 100% uptime); octopus ($0.00006 + $0.00384 per result, at most $0.0769, 99% uptime). Output fields only some routes return: cid (badger, starling, c
tiger · bison · giraffe · axolotl · heron · lynx · badger · starling · chameleon · meerkat · octopus
queryRequiredstringWhat you would type in the Google Maps search bar (e.g. coffee shop).
limitintegerMaximum number of results to return (1-20, default 20). Pricing depends on the selected provider and may be flat per request.
languagestringTwo-letter language code for the results (e.g. en).
Example: en
locationRequiredstringFree-text location to search in, ideally city plus country (e.g. Austin, USA).
placeMinimumStarsstringOnly return places with at least this average rating: two (2+), twoAndHalf (2.5+), three (3+), threeAndHalf (3.5+), four (4+), or fourAndHalf (4.5+). Places with no reviews are excluded. Omit this field to stay on the cheapest price; a rating floor routes to a dearer source.
two · twoAndHalf · three · threeAndHalf · four · fourAndHalf
categoryFilterWordsarrayOptional list of Google Maps place-category names to keep; results are limited to places whose category matches one of these. Use lowercase category names as shown on Google Maps (e.g. ["coffee shop", "restaurant"]). Omit to include all categories and stay on the cheapest price; a category filter routes to a dearer source.
