Sand AISand AI MAGI-2MAGI-2 è ora su SandBase: video in 1080p con audio nativoProvalo ora

Google Hotels Photos

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

Prezzo
$0.01USD / chiamata
Metodo
POST
Risposta
JSON
Parametri
1 obbligatori · 2 opzionali

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

Il tuo output apparirà qui

Completa gli input, poi fai clic su Esegui.

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.

Esplora altro

API correlate

Tutte le API
APIPrezzoRisposta
Google Hotels$0.01 per chiamataJSON
Google Hotels$0.01 per chiamataJSON
Google Hotels$0.01 per chiamataJSON
Google Hotels$0.01 per chiamataJSON
Google Hotels$0.015 per chiamataJSON

Domande

FAQ

Come uso l'API Google Hotels Photos?

Invia una richiesta POST a https://api.sandbase.ai/v1/api/google-hotels/photos con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.

Quanto costa l'API Google Hotels Photos?

$0.01 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.

Quali parametri accetta l'API Google Hotels Photos?

Richiesti: property_token (string). Facoltativi: next_page_token (string) e json_restrictor (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.

Cosa restituisce l'API Google Hotels Photos?

Una risposta JSON restituita nella stessa richiesta HTTP (sincrona).

Mi serve un account sviluppatore o una chiave API Google Hotels?

No. Google Hotels Photos funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API Google Hotels.