Call it
curl https://api.peume.com/v1/call/google-hotels-results-for-a-query-and-stay-dates \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"engine": "google_hotels",
"q": "Bali Resorts",
"check_in_date": "2026-09-01",
"check_out_date": "2026-09-02",
"adults": 2
}
}'const res = await fetch("https://api.peume.com/v1/call/google-hotels-results-for-a-query-and-stay-dates", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"engine": "google_hotels",
"q": "Bali Resorts",
"check_in_date": "2026-09-01",
"check_out_date": "2026-09-02",
"adults": 2
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-hotels-results-for-a-query-and-stay-dates",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"engine": "google_hotels",
"q": "Bali Resorts",
"check_in_date": "2026-09-01",
"check_out_date": "2026-09-02",
"adults": 2
}
},
)
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-results-for-a-query-and-stay-dates.
Parameters
engineRequiredstringExample: google_hotels
qRequiredstringExample: Bali Resorts
check_in_dateRequiredstringYYYY-MM-DD
Example: 2026-09-01
check_out_dateRequiredstringYYYY-MM-DD
Example: 2026-09-02
adultsRequiredintegerExample: 2
