Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

Google Hotels Photos

APIドキュメント
https://api.sandbase.ai/v1/api/google-hotels/photos

Get photos of a hotel on Google Hotels by property token, with image URLs, categories and paging.

料金
$0.01USD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 1 件 · 任意 2 件

プレイグラウンド

入力
Parameter defines unique identifier used to identify a Google Property. You can find `property_token` from Google Hotels Properties API.
Parameter defines the next page token needed to retrieve the next batch of photos of a particular section.
Parameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
出力準備完了

出力はここに表示されます

入力を完了してから[実行]をクリックしてください。

API README

Google Hotels Photos

Get photos of a hotel on Google Hotels by property token, with image URLs, categories and paging.

Request

curl -X POST "https://api.sandbase.ai/v1/api/google-hotels/photos" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"property_token": "CgsIlOPW65yHnZPwARAB"}'

The result is returned in outputs[0].data as structured JSON.

Parameters

NameTypeRequiredDescription
property_tokenstringYesParameter defines unique identifier used to identify a Google Property. You can find property_token from Google Hotels Properties API.
next_page_tokenstringNoParameter defines the next page token needed to retrieve the next batch of photos of a particular section.
json_restrictorstringNoParameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.

Pricing

$0.010 per successful call. Failed calls are not charged.

さらに探索

関連 APIs

すべての APIs
API価格レスポンス
Google Hotels$0.01 / 回JSON
Google Hotels$0.01 / 回JSON
Google Hotels$0.01 / 回JSON
Google Hotels$0.01 / 回JSON
Google Hotels$0.015 / 回JSON

質問

FAQ

Google Hotels Photos API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/google-hotels/photos に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

Google Hotels Photos API の料金はいくらですか?

1回あたり $0.01、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

Google Hotels Photos API はどのパラメータを受け付けますか?

必須: property_token (string)。 任意: next_page_token (string) と json_restrictor (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

Google Hotels Photos API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。

Google Hotels の開発者アカウントまたは API key は必要ですか?

いいえ。Google Hotels Photos は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Google Hotels の API アクセスを別途申請する必要はありません。