Call it
curl https://api.peume.com/v1/call/google-hotel-details \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"hotel_identifier": "your hotel identifier"
}
}'const res = await fetch("https://api.peume.com/v1/call/google-hotel-details", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"hotel_identifier": "your hotel identifier"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-hotel-details",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"hotel_identifier": "your hotel identifier"
}
},
)
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.
Parameters
hotel_identifierRequiredstringUnique hotel identifier (e.g. ChYIq6SB--i6p6cpGgovbS8wN2s5ODZfEAE)
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).
location_coordinatestring'latitude,longitude,radius' with the radius in metres (200-19999), e.g. '52.6178549,-155.352142,1000'.
language_namestringFull language name, e.g. 'English'.
language_codestringLanguage code, e.g. 'en'.
check_instringCheck-in date
check_outstringCheck-out date
currencystringCurrency
adultsintegerNumber of adults (e.g. 1)
childrenarrayNumber and age of children
load_prices_by_datesbooleanLoad hotel stay prices by dates
prices_start_datestringStart date to load prices by dates (e.g. 2025-05-20)
prices_end_datestringEnd date to load prices by dates (e.g. 2025-05-21)
prices_date_rangestringPredefined period for retrieving daily price data (default month; values: month, three_months, six_months, year)
