Call it
curl https://api.peume.com/v1/call/read-google-maps-reviews \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"place_id": "ChIJT2h1HKZZwokR0kgzEtsa03k",
"data_id": "0x89c258e28c304997:0xfcafe4e7ce35ee8c",
"hl": "en",
"gl": "us",
"sort_by": "qualityScore",
"query": "parking"
}
}'const res = await fetch("https://api.peume.com/v1/call/read-google-maps-reviews", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"place_id": "ChIJT2h1HKZZwokR0kgzEtsa03k",
"data_id": "0x89c258e28c304997:0xfcafe4e7ce35ee8c",
"hl": "en",
"gl": "us",
"sort_by": "qualityScore",
"query": "parking"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/read-google-maps-reviews",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"place_id": "ChIJT2h1HKZZwokR0kgzEtsa03k",
"data_id": "0x89c258e28c304997:0xfcafe4e7ce35ee8c",
"hl": "en",
"gl": "us",
"sort_by": "qualityScore",
"query": "parking"
}
},
)
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: read-google-maps-reviews.
Parameters
place_idstringGoogle Place ID. Exactly one of place_id or data_id is required.
Example: ChIJT2h1HKZZwokR0kgzEtsa03k
data_idstringHexadecimal Google Maps feature ID, such as the data_id in a Google Maps response. Exactly one of place_id or data_id is required.
Example: 0x89c258e28c304997:0xfcafe4e7ce35ee8c
hlstringReview language code such as en, en-GB, or de.
Example: en
glstringTwo-letter country code used to localize results, normalized to lowercase. Defaults to us.
Example: us
sort_bystringReview order: qualityScore (most relevant), newestFirst, ratingHigh or ratingLow.
qualityScore · newestFirst · ratingHigh · ratingLow
Example: qualityScore
topic_idstringReturn only reviews about one topic. Use a topics[].id from a previous response. Mutually exclusive with query.
querystringFree-text filter that returns reviews mentioning these words. Mutually exclusive with topic_id.
Example: parking
numintegerNumber of reviews to return. An initial unfiltered request returns 8 by default and accepts 1 through 100; requests with topic_id, query or next_page_token return 10 by default and accept 1 through 20.
next_page_tokenstringOpaque token from a previous response. Send it with the same place, language, country, sort and filters, or follow pagination.next. Tokens expire after 30 minutes.
source_metadatabooleanSet to true to include each review source's icon and rating scale.
Example: false
timeoutnumberOptional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the call is not billed and returns 503 request_deadline_exceeded with retryable=true and a request ID. Omit to retain the standard server deadline.
Other ways to do it
Same job, other sources, cheapest first.
