Call it
curl https://api.peume.com/v1/call/tripadvisor-reviews \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"url_path": "your url path",
"keyword": "your keyword"
}
}'const res = await fetch("https://api.peume.com/v1/call/tripadvisor-reviews", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"url_path": "your url path",
"keyword": "your keyword"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/tripadvisor-reviews",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"url_path": "your url path",
"keyword": "your keyword"
}
},
)
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: tripadvisor-reviews.
Parameters
url_pathstringURL path of the business entity (required unless keyword URL path to is given)
keywordstringKeyword (required unless url_path is given)
location_namestringFull location name exactly as listed in the locations dictionary, e.g. 'London,England,United Kingdom' or 'United States'.
location_codeintegerNumeric location code from the locations dictionary, e.g. 2840 (United States).
language_namestringFull language name, e.g. 'English'.
language_codestringLanguage code, e.g. 'en'.
depthintegerResults to collect (1-4490, default 10); billed per page of 10.
ratingsarrayTripadvisor traveler rating for a place of interest (values: excellent, very_good, average, poor, terrible you can specify several values at once)
visit_typearrayFilter by type of travelers who left a review (values: families, couples, solo, business, friends you can specify several values at once)
monthsarrayFilter by months when a traveler made a visit (values: january, february, march, april, may, june, july, august, september, october, november, december)
sort_bystringResults sorting parameters
translate_reviewsbooleanTranslate reviews according to the URL path (default true)
