Call it
curl https://api.peume.com/v1/call/hotels-com-hotel-reviews \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"url": "your url",
"property": "your property",
"geoCode": "your geoCode"
}
}'const res = await fetch("https://api.peume.com/v1/call/hotels-com-hotel-reviews", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"url": "your url",
"property": "your property",
"geoCode": "your geoCode"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/hotels-com-hotel-reviews",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"url": "your url",
"property": "your property",
"geoCode": "your geoCode"
}
},
)
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: hotels-com-hotel-reviews.
Parameters
urlRequiredstringHotels.com home page of the local site the reviews are read from, e.g.
propertyRequiredstringFull Hotels.com hotel page URL; it must contain `expediaPropertyId=<id>`, e.g.
pageIndexintegerReview page, starting at 1 (default 1).
sizeintegerReviews per page (default 20).
geoCodeRequiredstringTwo-letter ISO 3166-1 country code of the proxy the page is fetched through, e.g. 'US', 'SG'. Use the target site's own country (e.g. 'ID' for lazada.co.id, 'TH' for th.hotels.com): it sets the localized prices, currency, language and availability.
