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/successプロバイダー原価
- Success rate
- 100%Last 30 days · 1,228 calls
- Latency p50
- 2 sp95 6.7 s
- Last verified
- 2026/07/28Verified 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 online近日公開Provider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
answers arrive in `properties`; sponsored listings in `ads`.
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| クエリパラメータ | ||||
q | 文字列 | 必須 | Bali Resorts | |
adults | 整数 | 必須 | 2 | |
engine | 文字列 | 必須 | google_hotels | |
check_in_date | 文字列 | 必須 | YYYY-MM-DD | 2026-09-01 |
check_out_date | 文字列 | 必須 | YYYY-MM-DD | 2026-09-02 |
- クエリパラメータ
q文字列必須例:
Bali Resortsadults整数必須例:
2engine文字列必須例:
google_hotelscheck_in_date文字列必須YYYY-MM-DD
例:
2026-09-01check_out_date文字列必須YYYY-MM-DD
例:
2026-09-02
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
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());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は $0.015/success です。サービス料を含みます。