Call it
curl https://api.peume.com/v1/call/get-tripadvisor-place-details \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"place_id": 437641,
"tripadvisor_domain": "www.tripadvisor.com",
"locale": "en-US",
"currency": "USD",
"geo_id": 30196
}
}'const res = await fetch("https://api.peume.com/v1/call/get-tripadvisor-place-details", {
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",
"currency": "USD",
"geo_id": 30196
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/get-tripadvisor-place-details",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"place_id": 437641,
"tripadvisor_domain": "www.tripadvisor.com",
"locale": "en-US",
"currency": "USD",
"geo_id": 30196
}
},
)
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: get-tripadvisor-place-details.
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
currencystringThree-letter ISO currency code for price fields; case-insensitive.
Example: USD
geo_idintegerTripadvisor ID of the place's parent geography.
Example: 30196
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.
