Sand AISand AI MAGI-2MAGI-2 ist jetzt auf SandBase: 1080p-Video mit nativem AudioJetzt testen

Google Hotels Autocomplete

API-Dokumentation
https://api.sandbase.ai/v1/api/google-hotels/autocomplete

Get Google Hotels destination and property suggestions for a partial name, with property tokens for hotel lookups.

Preis
$0.01USD / Aufruf
Methode
POST
Antwort
JSON
Parameter
1 erforderlich · 4 optional

Playground

Eingabe
Parameter defines the search query. A query that would be used to provide completion options.
Parameter defines the country to use for the Google Hotels Autocomplete search. It's a two-letter country code. (e.g., `us` for the United States, `uk` for United Kingdom, or `fr` for France) Head to the Google countries page for a full list of supported Google countries.
Parameter defines the language to use for the Google Hotels Autocomplete search. It's a two or three-letter language code. (e.g., `en` for English, `es` for Spanish, or `fr` for French), optionally followed by a two-letter or three-digit region code (e.g., `en-gb` for British English, or `es-419` for Latin American Spanish). Head to the Google languages page for a full list of supported Google languages.
Parameter defines the currency used in `the API_google_hotels_link`. Default value is `USD`. Head to the Google Travel Currencies page for a full list of supported currency codes.
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.
AusgabeBereit

Ihre Ausgabe wird hier angezeigt

Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.

API-README

Google Hotels Autocomplete

Get Google Hotels destination and property suggestions for a partial name, with property tokens for hotel lookups.

Request

curl -X POST "https://api.sandbase.ai/v1/api/google-hotels/autocomplete" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"q": "austin"}'

The result is returned in outputs[0].data as structured JSON.

Parameters

NameTypeRequiredDescription
qstringYesParameter defines the search query. A query that would be used to provide completion options.
glstringNoParameter defines the country to use for the Google Hotels Autocomplete search. It's a two-letter country code. (e.g., us for the United States, uk for United Kingdom, or fr for France) Head to the Google countries page for a full lis
hlstringNoParameter defines the language to use for the Google Hotels Autocomplete search. It's a two or three-letter language code. (e.g., en for English, es for Spanish, or fr for French), optionally followed by a two-letter or three-digit re
currencystringNoParameter defines the currency used in the API_google_hotels_link. Default value is USD. Head to the Google Travel Currencies page for a full list of supported currency codes.
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.

Mehr entdecken

Verwandte APIs

Alle APIs
APIPreisAntwort
Google Hotels$0.01 pro AufrufJSON
Google Hotels$0.01 pro AufrufJSON
Google Hotels$0.01 pro AufrufJSON
Google Hotels$0.01 pro AufrufJSON
Google Hotels$0.015 pro AufrufJSON

Fragen

FAQ

Wie verwende ich die Google Hotels Autocomplete API?

Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/google-hotels/autocomplete mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.

Was kostet die Google Hotels Autocomplete API?

$0.01 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.

Welche Parameter akzeptiert die Google Hotels Autocomplete API?

Erforderlich: q (string). Optional: gl (string), hl (string), currency (string) und json_restrictor (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.

Was gibt die Google Hotels Autocomplete API zurück?

Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron).

Benötige ich ein Google Hotels-Entwicklerkonto oder einen API-Schlüssel?

Nein. Google Hotels Autocomplete läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für Google Hotels API beantragen.