property_tokenstringrequerido
Parameter defines unique identifier used to identify a Google Property. You can find `property_token` from Google Hotels Properties API.
https://api.sandbase.ai/v1/api/google-hotels/photosGet photos of a hotel on Google Hotels by property token, with image URLs, categories and paging.
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
Get photos of a hotel on Google Hotels by property token, with image URLs, categories and paging.
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.
| Name | Type | Required | Description |
|---|---|---|---|
property_token | string | Yes | Parameter defines unique identifier used to identify a Google Property. You can find property_token from Google Hotels Properties API. |
next_page_token | string | No | Parameter defines the next page token needed to retrieve the next batch of photos of a particular section. |
json_restrictor | string | No | 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. |
$0.010 per successful call. Failed calls are not charged.
Empiece a construir
Endpoint de la API de la plataforma con autenticación unificada y seguimiento de uso.
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"
}'Configure su clave de API de SandBase en el entorno de su servidor. Las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve su clave en el servidor. No la exponga en código del navegador.
property_tokenstringrequeridoParameter defines unique identifier used to identify a Google Property. You can find `property_token` from Google Hotels Properties API.
next_page_tokenstringParameter defines the next page token needed to retrieve the next batch of photos of a particular section.
json_restrictorstringParameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
Respuesta de ejemplo guardada para esta API; no se realiza ninguna solicitud en vivo al verla.
No se ha publicado ninguna respuesta guardada. Ejecute la API en Playground para inspeccionar su respuesta.
Explorar más
| API | Precio | Respuesta |
|---|---|---|
Google Hotels PhotosEsta API Google Hotels | $0.01 por llamada | JSON |
Google Hotels | $0.01 por llamada | JSON |
Google Hotels | $0.01 por llamada | JSON |
Google Hotels | $0.01 por llamada | JSON |
Google Hotels | $0.015 por llamada | JSON |
Preguntas
Envía una solicitud POST a https://api.sandbase.ai/v1/api/google-hotels/photos con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.
$0.01 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.
Requeridos: property_token (string). Opcionales: next_page_token (string) y json_restrictor (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.
Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica).
No. Google Hotels Photos funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Google Hotels por separado.