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

Google Autocomplete

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

Get Google search box suggestions for a partial query, localized by country and language.

Preis
$0.01USD / Aufruf
Methode
POST
Antwort
JSON
Parameter
1 erforderlich · 5 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 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 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.
Cursor pointer defines the position of cursor for the query provided, position starts from 0 which is a case where cursor is placed before the query `|query`. If not provided acts as cursor is placed in the end of query `query|`.
Parameter used to define client for autocomplete. List of supported clients.
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 Autocomplete

Get Google search box suggestions for a partial query, localized by country and language.

Request

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

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 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 Googl
hlstringNoParameter defines the language to use for the Google 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 co
cpstringNoCursor pointer defines the position of cursor for the query provided, position starts from 0 which is a case where cursor is placed before the query /query. If not provided acts as cursor is placed in the end of query query/.
clientstringNoParameter used to define client for autocomplete. List of supported clients.
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$0.01 pro AufrufJSON
Google$0.01 pro AufrufJSON
Google$0.015 pro AufrufJSON
GoogleAb $0.002 pro AufrufJSON
GoogleAb $0.0015 pro AufrufJSON
Google$0.01 pro AufrufJSON

Anleitungen:Best Google API in 2026: Pricing Compared

Fragen

FAQ

Wie verwende ich die Google Autocomplete API?

Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/google/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 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 Autocomplete API?

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

Was gibt die Google Autocomplete API zurück?

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

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

Nein. Google 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 API beantragen.