Call it
curl https://api.peume.com/v1/call/google-maps-place-lookup-2 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"query": "your query",
"language": "en"
}
}'const res = await fetch("https://api.peume.com/v1/call/google-maps-place-lookup-2", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"query": "your query",
"language": "en"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-maps-place-lookup-2",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"query": "your query",
"language": "en"
}
},
)
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-place-lookup-2.
Parameters
websitestringFilter by whether the place lists a website: allPlaces (default), withWebsite (only if it has a website), or withoutWebsite (only if it has none). 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 "lynx". lynx ($0.001 per call, 98.8% uptime); badger ($0.00134 per call, 95.5% uptime); starling ($0.00135 per call, 100% uptime); meerkat ($0.00297 per call, 99.7% uptime); octopus ($0.0036 + $0.006 per result, at most $0.0108, 100% uptime). Output fields only some routes return: city (lynx, badger, starling, octopus); countryCode (badger, starling, octopus); image (lynx, badger, meerkat, octopus); neighborhood (octopus); permanentlyClosed (lynx, badger, starling, octopus); plusCode (octopus); postalCode (badger, starling, octopus); priceLevel (lynx, badger
lynx · badger · starling · meerkat · octopus
queryRequiredstringThe business name or search text to look up, as you would type it into the Google Maps search bar (e.g. Blue Bottle Coffee).
languagestringTwo-letter language code for the result details (e.g. en).
Example: en
locationstringOptional free-text location to scope the search, ideally city plus state or country (e.g. San Francisco, CA). Narrows the query to the best match in that area.
placeMinimumStarsstringOnly match a place 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; the match is limited to a place whose category is one of these. Use lowercase category names as shown on Google Maps (e.g. ["coffee shop"]). Omit to allow any category and stay on the cheapest price; a category filter routes to a dearer source.
