Call it
curl https://api.peume.com/v1/call/read-yelp-reviews \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"place_id": "dDz2erKJ_Z2HMur0tQ_iJA",
"yelp_domain": "www.yelp.com",
"hl": "en",
"sortby": "relevance_desc",
"rating": "5,4",
"not_recommended": false
}
}'const res = await fetch("https://api.peume.com/v1/call/read-yelp-reviews", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"place_id": "dDz2erKJ_Z2HMur0tQ_iJA",
"yelp_domain": "www.yelp.com",
"hl": "en",
"sortby": "relevance_desc",
"rating": "5,4",
"not_recommended": false
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/read-yelp-reviews",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"place_id": "dDz2erKJ_Z2HMur0tQ_iJA",
"yelp_domain": "www.yelp.com",
"hl": "en",
"sortby": "relevance_desc",
"rating": "5,4",
"not_recommended": False
}
},
)
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-yelp-reviews.
Parameters
place_idRequiredstringEncoded Yelp business ID: letters, numbers, underscores, and hyphens.
Example: dDz2erKJ_Z2HMur0tQ_iJA
yelp_domainstringSupported first-party localized Yelp hostname, such as www.yelp.co.uk. Links in the response use this hostname.
Example: www.yelp.com
hlstringReview language: a two-letter code with an optional two-letter region, such as en or fr-FR.
Example: en
qstringNot supported: Yelp does not offer review text filtering. Any value returns 422 unsupported_parameter.
sortbystringReview order.
relevance_desc · date_desc · date_asc · rating_desc · rating_asc · elites_desc
Example: relevance_desc
ratingstringComma-separated star ratings to include, each from 1 through 5.
Example: 5,4
not_recommendedbooleanNot supported: Yelp does not expose its not-recommended reviews. true returns 422 unsupported_parameter.
Example: false
startintegerReview offset from 0 through 10,000.
Example: 0
numintegerNumber of reviews, 1 through 49.
Example: 49
not_recommended_startintegerNot supported, because not_recommended is not supported. Any value returns 400.
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.
