Google Autocomplete API

Retrieve real-time Google search suggestions (autocomplete results) using the Google Auto Complete API. This endpoint returns keyword suggestions exactly like those shown in the Google search bar while typing a query.

triangle-exclamation

POST https://api.serphouse.com/google-autocomplete-api

Headers

Name
Type
Description

Authorization*

String

Bearer <YOUR_API_KEY>

Content-Type*

String

application/json

Request Body

Name
Type
Description

q*

string

Search phrase that you want to search

lang*

string

You can set language for e.g. en for english fr for french. Get the list of available languages by making a separate request to the List of Language

loc*

string

Specifies the location to retrieve localized autocomplete suggestions. You can receive the list of available locations of search engines with their loc_id by making a separate request to the List of Locations

client

string

Defines the client environment used to fetch Google autocomplete suggestions from different browsers or services.

  • chrome (default) - used for Chrome browser searches.

  • chrome-omni - used for Chrome address bar.

  • home_page - used for Chrome Google homepage.

  • safari - used when Google is opened in Safari browser

  • firefox - used for Firefox browser searches.

  • youtube - origin unknown.

{
    "status": "error",
    "msg": "Please try again",
    "error": ""
}

Example request:

Last updated