Sand AISand AI MAGI-2MAGI-2 artık SandBase'de: yerel sesli 1080p videoŞimdi deneyin

Google Hotels Photos

API dokümanları
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.

Fiyat
$0.01USD / çağrı
Yöntem
POST
Yanıt
JSON
Parametreler
1 gerekli · 2 isteğe bağlı

Oynatma Alanı

Girdi
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.
ÇıktıHazır

Çıktınız burada görünecek

Girdileri tamamlayın, ardından Çalıştır'a tıklayın.

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.

Daha fazlasını keşfedin

İlgili APIs

Tüm APIs
APIFiyatYanıt
Google Hotels$0.01 çağrı başınaJSON
Google Hotels$0.01 çağrı başınaJSON
Google Hotels$0.01 çağrı başınaJSON
Google Hotels$0.01 çağrı başınaJSON
Google Hotels$0.015 çağrı başınaJSON

Sorular

SSS

Google Hotels Photos API'sini nasıl kullanırım?

SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/google-hotels/photos adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.

Google Hotels Photos API'sinin fiyatı nedir?

çağrı başına $0.01, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.

Google Hotels Photos API'si hangi parametreleri kabul eder?

Gerekli: property_token (string). İsteğe bağlı: next_page_token (string) ve json_restrictor (string). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.

Google Hotels Photos API'si ne döndürür?

Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron).

Bir Google Hotels geliştirici hesabına veya API anahtarına ihtiyacım var mı?

Hayır. Google Hotels Photos, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. Google Hotels API erişimi için ayrıca başvuru yapmanız gerekmez.