Call it
curl https://api.peume.com/v1/call/expedia-reviews \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"limit": 20,
"url": "your url"
}
}'const res = await fetch("https://api.peume.com/v1/call/expedia-reviews", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"limit": 20,
"url": "your url"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/expedia-reviews",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"limit": 20,
"url": "your url"
}
},
)
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: expedia-reviews.
Parameters
limitintegerMaximum number of results, 1 to 200 (default 20). For some actions it counts pages or items per parent rather than final rows.
Example: 20
sortstringReview order for `reviews`: `newest`, `relevance`, `top_rated`, or `most_helpful`. One of: most_helpful, newest, relevance, top_rated.
most_helpful · newest · relevance · top_rated
urlRequiredstringAccepts a single hotel page URL from Expedia or compatible Hotels.com links to fetch property profiles or reviews. It does not accept search result pages. Car rental queries must pass full search URLs via the keyword parameter instead.
sincestringSets the lower date bound for hotel review queries using YYYY-MM-DD format, taking precedence over reviews_from. It does not filter hotel opening dates or car rental pickup periods.
