Call it
curl https://api.peume.com/v1/call/read-tripadvisor-reviews \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"place_id": 437641,
"tripadvisor_domain": "www.tripadvisor.com",
"locale": "en-US",
"start": 0,
"num": 10,
"sort_by": "recent"
}
}'const res = await fetch("https://api.peume.com/v1/call/read-tripadvisor-reviews", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"place_id": 437641,
"tripadvisor_domain": "www.tripadvisor.com",
"locale": "en-US",
"start": 0,
"num": 10,
"sort_by": "recent"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/read-tripadvisor-reviews",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"place_id": 437641,
"tripadvisor_domain": "www.tripadvisor.com",
"locale": "en-US",
"start": 0,
"num": 10,
"sort_by": "recent"
}
},
)
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-tripadvisor-reviews.
Parameters
place_idRequiredintegerNumeric Tripadvisor place ID, up to 16 digits.
Example: 437641
tripadvisor_domainstringSupported first-party localized Tripadvisor hostname, such as www.tripadvisor.co.uk.
Example: www.tripadvisor.com
localestringLowercase language code with an optional uppercase country, such as en or en-US.
Example: en-US
startintegerReview offset from 0 through 10,000.
Example: 0
numintegerNumber of reviews, 1 through 50.
Example: 10
sort_bystringReview order: recent (newest first) or relevance.
recent · relevance
Example: recent
translatebooleanRequest Tripadvisor's machine translation of reviews.
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.
