Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

Google Hotels Photos

Dokumentasi 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.

Harga
$0.01USD / panggilan
Metode
POST
Respons
JSON
Parameter
1 wajib · 2 opsional

Playground

Input
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.
OutputSiap

Output Anda akan muncul di sini

Lengkapi input, lalu klik Run.

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.

Jelajahi lebih lanjut

API Terkait

Semua APIs
APIHargaRespons
Google Hotels$0.01 per panggilanJSON
Google Hotels$0.01 per panggilanJSON
Google Hotels$0.01 per panggilanJSON
Google Hotels$0.01 per panggilanJSON
Google Hotels$0.015 per panggilanJSON

Pertanyaan

FAQ

Bagaimana cara menggunakan API Google Hotels Photos?

Kirim permintaan POST ke https://api.sandbase.ai/v1/api/google-hotels/photos dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.

Berapa biaya API Google Hotels Photos?

$0.01 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.

Parameter apa yang diterima API Google Hotels Photos?

Wajib: property_token (string). Opsional: next_page_token (string) dan json_restrictor (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.

Apa yang dikembalikan API Google Hotels Photos?

Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron).

Apakah saya memerlukan akun developer atau kunci API Google Hotels?

Tidak. Google Hotels Photos berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Google Hotels secara terpisah.