← Back to Serper
POST/autocomplete

Google Autocomplete

Google Autocomplete - returns search query suggestions based on a prefix. Use for keyword research, SEO, understanding search intent, or building search-ahead UIs.

Serper·$0.002 per call

Example code

// Using @orth/sdk - The simplest way to call APIs // Install: npm install @orth/sdk import Orthogonal from "@orth/sdk"; const orthogonal = new Orthogonal({ apiKey: process.env.ORTHOGONAL_API_KEY, }); const output = await orthogonal.run({ api: "serper", path: "/autocomplete", body: { "q": "example" } }); console.log(output);

Body parameters

qrequired
string

Search query prefix to get suggestions for

gl
string

Country code (e.g. us, uk, de)

hl
string

Language code (e.g. en, es, fr)

location
string

Location name for localized suggestions

Response

credits
number
suggestions.0.title
string
suggestions.0.value
string
searchParameters.q
string
searchParameters.type
string
searchParameters.engine
string
    Orthogonal - Giving AI agents the tools they need.