Google Autocomplete API

Google Autocomplete API allows you to get suggestions for a keyword.

Engine: google_autocomplete

API Parameters
General Parameters
engine
Required

The engine of the API. Needs to be set to google_autocomplete for this request.

Request Parameters
api_key
Required

Your API Key

Search Query
q
Required

The terms that you are searching for (the query).

Google Autocomplete API examples

Example for q:"freecod"

Google Autocomplete API example
GET external-link
https://serpapi.webscrapingapi.com/v1?engine=google_autocomplete&api_key=YOUR_API_KEY&q=freecod
Code to integrate
external-link
Response Example external-link
{
  "search_parameters": {
    "google_autocomplete_url": "https://www.google.com/",
    "engine": "google_autocomplete",
    "google_domain": "google.com",
    "device": "desktop",
    "query": "freecod"
  },
  "search_information": {
    "autocomplete_results_state": "Showing completion results."
  },
  "suggestions": [
    {
      "suggestion": "freecodecamp"
    },
    {
      "suggestion": "freecodecamp python"
    },
    {
      "suggestion": "freecodecamp javascript"
    },
    {
      "suggestion": "freecodecamp review"
    },
    {
      "suggestion": "freecodecamp java"
    },
    {
      "suggestion": "freecodecamp vs codecademy"
    },
    {
      "suggestion": "freecodecamp c++"
    },
    {
      "suggestion": "freecodecamp certificate"
    },
    {
      "suggestion": "freecodecamp react"
    },
    {
      "suggestion": "freecodecamp sql"
    }
  ]
}