Call it
curl https://api.peume.com/v1/call/read-yelp-reviews-2 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"place_id": "your place id"
}
}'const res = await fetch("https://api.peume.com/v1/call/read-yelp-reviews-2", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"place_id": "your place id"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/read-yelp-reviews-2",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"place_id": "your place id"
}
},
)
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-2.
Parameters
qstringThe query you want to use to search through Yelp Reviews. On a search with hundreds of matching reviews, Yelp can return a review on two pages. Use `review_id` to remove the duplicates.
not_recommended_startstringThe result offset. It skips the given number of results. It's used for pagination. (e.g., `0` (default) is the first page of results, `10` is the 2nd page of results, `20` is the 3rd page of results, etc.). The `not_recommended_start` parameter can only be used with the `not_recommended` parameter set to `true`.
hlstringThe language to use for sorting Yelp Reviews. It's a two-letter language code. (e.g., `en` for English, `es` for Spanish, or `fr` for French) Head to the Yelp Reviews languages for a full list of supported Yelp Reviews languages.
numstringThe maximum number of results to return. `49` (default) returns 49 results. Maximum number of results to return is `49`.
ratingstringFilters out the results by rating. Possible values are `5`, `4`, `3`, `2`, and `1`. All results are included by default. To only show results with the five star rating, the value should be set to `5` To include results with multiple ratings, the value should for example be set to `5,4,3` (each rating separated by comma `,`).
startstringThe result offset. It skips the given number of results. It's used for pagination. (e.g., `0` (default) is the first page of results, `49` is the 2nd page of results, `98` is the 3rd page of results, etc.).
sortbystringSorting results. Available options: `relevance_desc` - Yelp Sort (default) `date_desc` - Newest First `date_asc` - Oldest Rated `rating_desc` - Highest Rated `rating_asc` - Lowest Rated `elites_desc` - Elites
yelp_domainstringThe Yelp domain to use. It defaults to `yelp.com`. Head to the Yelp domains for a full list of supported Yelp domains.
not_recommendedstringFetches reviews that are not recommended by Yelp. It can be set to `true` to only show not recommended reviews, or `false` to show recommended reviews. By default, only **recommended** reviews are shown.
json_restrictorstringThe fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
place_idRequiredstringThe Yelp ID of a place. Each place has two unique IDs (e.g. `ED7A7vDdg8yLNKJTSVHHmg` and `arabica-brooklyn`). Only the first ID type is supported (e.g. `ED7A7vDdg8yLNKJTSVHHmg`). To extract the ID of a place, you can use our Yelp Search API.
