Google Hotels results for a query and stay dates
serpapi.x.google-hotelsLive Google Hotels results for a query, check-in/out dates and party size
- Price
- $0.015/successAt provider cost
- Success rate
- 100%Last 30 days · 1,228 calls
- Latency p50
- 2 sp95 6.7 s
- Last verified
- Jul 28, 2026Verified working
GEThttps://toolswitch.dev/v1/tools/serpapi.x.google-hotels?q=Bali+Resorts&adults=2&engine=google_hotels&check_in_date=2026-09-01&check_out_date=2026-09-02PreviewTry onlineComing soonProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parameters
answers arrive in `properties`; sponsored listings in `ads`.
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
q | string | Required | Bali Resorts | |
adults | integer | Required | 2 | |
engine | string | Required | google_hotels | |
check_in_date | string | Required | YYYY-MM-DD | 2026-09-01 |
check_out_date | string | Required | YYYY-MM-DD | 2026-09-02 |
- Query parameters
qstringRequiredExample:
Bali ResortsadultsintegerRequiredExample:
2enginestringRequiredExample:
google_hotelscheck_in_datestringRequiredYYYY-MM-DD
Example:
2026-09-01check_out_datestringRequiredYYYY-MM-DD
Example:
2026-09-02
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/serpapi.x.google-hotels?q=Bali+Resorts&adults=2&engine=google_hotels&check_in_date=2026-09-01&check_out_date=2026-09-02' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/serpapi.x.google-hotels?q=Bali+Resorts&adults=2&engine=google_hotels&check_in_date=2026-09-01&check_out_date=2026-09-02",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/serpapi.x.google-hotels?q=Bali+Resorts&adults=2&engine=google_hotels&check_in_date=2026-09-01&check_out_date=2026-09-02", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.015/success, including the service fee.