Call it
curl https://api.peume.com/v1/call/read-restaurant-reviews \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"rid": "your rid"
}
}'const res = await fetch("https://api.peume.com/v1/call/read-restaurant-reviews", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"rid": "your rid"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/read-restaurant-reviews",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"rid": "your rid"
}
},
)
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-restaurant-reviews.
Parameters
pagestringThe page number. `1` (default) is the first page of 10 results, `2` is the 2nd page, etc.
ridRequiredstringThe OpenTable Restaurant ID. This identifier can be found in the URL of the restaurant's page, it's the path of the URL (the part after the first singular `/`). For example, in the URL ` the Restaurant ID is `r/central-park-boathouse-new-york-2`.
json_restrictorstringThe fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
