Call it
curl https://api.peume.com/v1/call/tripadvisor-search-travel-listings \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"q": "your q"
}
}'const res = await fetch("https://api.peume.com/v1/call/tripadvisor-search-travel-listings", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"q": "your q"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/tripadvisor-search-travel-listings",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"q": "your q"
}
},
)
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-search-travel-listings.
Parameters
qRequiredstringThe query you want to search. You can use anything that you would use in a regular Tripadvisor search.
offsetstringThe result offset. It skips the given number of results. It's used for pagination. (e.g., `0` (default) is the first page of results, `30` is the 2nd page of results, `60` is the 3rd page of results, etc.). This parameter might not be supported for all queries.
tripadvisor_domainstringThe Tripadvisor domain to use. It defaults to `tripadvisor.com`.
ssrcstringThis parameter specifies the search filter you want to use for the Tripadvisor search. Available options: `a` - All Results `r` - Restaurants `A` - Things to Do `h` - Hotels `g` - Destinations `v` - Vacation Rentals `f` - Forums NOTE: Tripadvisor has discontinued support for Vacation Rentals. As a result, using `ssrc=v` may return incomplete results or no results at all.
limitstringThe maximum number of results to return. (e.g., `30` (default) returns 30 results, `60` returns 60 results, and `100` returns 100 results).
lonstringDefines a GPS longitude for the search origin. This parameter might not be supported for all queries.
json_restrictorstringThe fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
latstringDefines a GPS latitude for the search origin. This parameter might not be supported for all queries.
