Call it
curl https://api.peume.com/v1/call/google-hotel-details-2 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"country": "ad",
"checkIn": "your checkIn",
"propertyToken": "your propertyToken",
"adults": 2,
"currency": "USD",
"checkOut": "your checkOut"
}
}'const res = await fetch("https://api.peume.com/v1/call/google-hotel-details-2", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"country": "ad",
"checkIn": "your checkIn",
"propertyToken": "your propertyToken",
"adults": 2,
"currency": "USD",
"checkOut": "your checkOut"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-hotel-details-2",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"country": "ad",
"checkIn": "your checkIn",
"propertyToken": "your propertyToken",
"adults": 2,
"currency": "USD",
"checkOut": "your checkOut"
}
},
)
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: google-hotel-details-2.
Parameters
countryRequiredstringTwo-letter lowercase ISO 3166-1 country code of the destination (e.g. us, pt, jp). It must be the country the hotels are in: results are searched from that country.
ad · ae · af · ag · al · am · ao · aq · ar · as · at · au …
checkInRequiredstringCheck-in date in YYYY-MM-DD format (e.g. 2027-04-13). Today or later.
routestringUpstream source to run on; omit for "quokka". quokka ($0.0015 per call, 99.8% uptime).
quokka
propertyTokenRequiredstringGoogle Hotels property ID of the hotel, the propertyToken google_hotels.search returns for it.
adultsintegerNumber of adult guests (default 2).
Example: 2
currencystringISO 4217 currency code for prices (e.g. USD, EUR, JPY; default USD).
Example: USD
checkOutRequiredstringCheck-out date in YYYY-MM-DD format (e.g. 2027-04-15). After the check-in date.
childrenAgesarrayAge of each child guest, one entry per child (e.g. [5, 8] for two children aged 5 and 8). Omit it when no children are staying.
