Call it
curl https://api.peume.com/v1/call/google-maps-place-lookup \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"language": "en",
"location": "San Francisco, CA",
"query": "Blue Bottle Coffee"
}
}'const res = await fetch("https://api.peume.com/v1/call/google-maps-place-lookup", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"language": "en",
"location": "San Francisco, CA",
"query": "Blue Bottle Coffee"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-maps-place-lookup",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"language": "en",
"location": "San Francisco, CA",
"query": "Blue Bottle Coffee"
}
},
)
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.
Parameters
fieldsstringComma-separated keys (dotted paths descend) to keep on each result item. Trims the response, not the charge.
max_itemsintegerCaps the result rows returned; `_truncated` says how many were withheld. Not the charge.
summaryboolean`true` returns only an outline: keys, item counts, per-field sizes.
jqstringjq expression over the result envelope; its output replaces `output`. A failed expression returns the full result with `jqError`.
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...
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.
Example: San Francisco, CA
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
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).
Example: Blue Bottle Coffee
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
Other ways to do it
Same job, other sources, cheapest first.
