Call it
curl https://api.peume.com/v1/call/google-maps-reviews \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"language": "en",
"limit": 3,
"placeId": "ChIJN1t_tDeuEmsRUsoyG83frY4",
"sort": "newest"
}
}'const res = await fetch("https://api.peume.com/v1/call/google-maps-reviews", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"language": "en",
"limit": 3,
"placeId": "ChIJN1t_tDeuEmsRUsoyG83frY4",
"sort": "newest"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-maps-reviews",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"language": "en",
"limit": 3,
"placeId": "ChIJN1t_tDeuEmsRUsoyG83frY4",
"sort": "newest"
}
},
)
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-reviews.
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`.
languagestringTwo-letter language code for the review details (e.g. en).
Example: en
limitintegerMaximum number of results to return (1-100, default 100).
Example: 3
placeIdRequiredstringThe Google Maps place ID to fetch reviews for (e.g. ChIJj61dQgK6j4AR4GeTYWZsKWw).
Example: ChIJN1t_tDeuEmsRUsoyG83frY4
postedLimitstringOnly return reviews posted within this window: 24h (past 24 hours), week (past 7 days), month (past month), or year (past year). Omit for no recency filter.
24h · week · month · year
reviewsFilterStringstringOnly return reviews whose text contains this keyword or phrase (case-insensitive). Omit to return all reviews (e.g. parking).
sortstringOrder in which reviews are returned (e.g. newest).
Example: newest
Other ways to do it
Same job, other sources, cheapest first.
