Call it
curl https://api.peume.com/v1/call/google-hotels-search \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"keyword": "your keyword",
"location_name": "your location name"
}
}'const res = await fetch("https://api.peume.com/v1/call/google-hotels-search", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"keyword": "your keyword",
"location_name": "your location name"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-hotels-search",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"keyword": "your keyword",
"location_name": "your location name"
}
},
)
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-hotels-search.
Parameters
keywordstringKeyword
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'.
search_this_areabooleanShow hotels from the displayed area (default true; values: true, false)
depthintegerResults to collect (1-140, default 20); billed per page of 20.
check_instringCheck-in date
check_outstringCheck-out date
currencystringCurrency
adultsintegerNumber of adults (e.g. 1)
childrenarrayNumber and age of children
starsarrayHotel stars
min_ratingnumberMinimum rating (e.g. 2.5)
sort_bystringResults sorting parameters (default relevance)
min_priceintegerMinimum price per night (e.g. 100)
max_priceintegerMaximum price per night (e.g. 600)
free_cancellationbooleanHotels with a free cancellation (default false)
is_vacation_rentalsbooleanSearch for vacation rentals (default false)
amenitiesarrayHotel amenities to require, e.g. air_conditioning, free_breakfast; full list in the vendor docs
