# Google Autocomplete API

> Real Google search suggestions (autocomplete/suggest) via pure HTTP — no browser, no CAPTCHA. Set expand=true to mine long-tail keywords.

Category: [Search APIs](https://upapi.io/apis/search) · Last updated 2026-11-02

## Is there a Google Suggest API on upAPI?

Yes. The Google Suggest API on upAPI is a query suggestions API: send a seed query and get real Google autocomplete suggestions as JSON, with relevance and type on the default client. Set expand to mine long-tail variants. No Google key of your own is needed, only one upAPI key. The Free plan includes 1,000 weighted units a month.

## How to call it

- Endpoint: `POST https://api.upapi.io/google-autocomplete.post`, key in the `X-Api-Key` header, JSON body.
- Cost: 1 weighted unit per call.
- Timeout: 30 seconds.
- Cache: identical requests are served from cache for 300 seconds, unbilled.
- Try it without writing code: https://app.upapi.io/try/google-autocomplete.post

```bash
curl -X POST https://api.upapi.io/google-autocomplete.post \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY' \
  -d '{ "query": "typescript", "client": "chrome", "expand": false, "country": "us", "language": "en", "maxSuggestions": 50 }'
```

## Request parameters

- `query` (string, required) — Seed query to autocomplete
- `client` (string) — 'chrome' (rich: relevance+type) or 'firefox' (simple)
- `expand` (boolean) — Also query '{query} a..z' to mine long-tail suggestions
- `country` (string) — gl param (e.g. us, ca, gb)
- `language` (string) — hl param (e.g. en, fr, es)
- `proxyUrl` (string) — Optional proxy URL
- `maxSuggestions` (integer) — Max suggestions to return

## Response fields

- `count` (integer, required)
- `query` (string, required)
- `message` (string, required)
- `success` (boolean, required)
- `elapsedMs` (integer, required)
- `fetchedAt` (string, required)
- `suggestions` (array, required)
- `suggestions[].kind` (string)
- `suggestions[].text` (string, required)
- `suggestions[].relevance` (integer)

## Example request and response

The example response is generated from the published output schema: it shows the shape and field names, not values from a recorded call.

```json
{
  "query": "typescript",
  "client": "chrome",
  "expand": false,
  "country": "us",
  "language": "en",
  "maxSuggestions": 50
}
```

```json
{
  "count": 3,
  "query": "typescript",
  "message": "example",
  "success": false,
  "elapsedMs": 1,
  "fetchedAt": "example",
  "suggestions": [
    {
      "kind": "example",
      "text": "Hello, world",
      "relevance": 1
    }
  ]
}
```

## Frequently asked questions

### How much does the Google Autocomplete API cost per call?

Each call spends 1 weighted unit of your plan's monthly quota. Full pricing is at https://upapi.io/pricing.

### How do I authenticate to the Google Autocomplete API?

Send your key in the X-Api-Key header. A free guest key is available without creating an account.

### Are Google Autocomplete API responses cached?

Yes — identical requests are served from cache for 300 seconds, and a cache hit is not billed.

## More Search APIs

- [Google Search](https://upapi.io/apis/search/google-search)
- [LinkedIn Profile Search](https://upapi.io/apis/search/linkedin-profile-search)
- [Web Search](https://upapi.io/apis/search/web-search)
