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.
ВыходГотово

Ваш результат появится здесь

Заполните входные данные, затем нажмите «Запустить».

README по API

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

Как использовать API Google Hotels Photos?

Отправьте POST-запрос на https://api.sandbase.ai/v1/api/google-hotels/photos, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.

Сколько стоит API Google Hotels Photos?

$0.01 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.

Какие параметры принимает API Google Hotels Photos?

Обязательные: property_token (string). Необязательные: next_page_token (string) и json_restrictor (string). В таблице Parameters и в Playground на этой странице перечислены все поля.

Что возвращает API Google Hotels Photos?

JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно).

Нужен ли мне аккаунт разработчика Google Hotels или API key?

Нет. Google Hotels Photos работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Google Hotels.