# Google Autocomplete Scraper: Keyword Suggestions API (`atesen-software/google-autocomplete-keywords`) Actor

Get Google autocomplete keyword suggestions in bulk by language and country. Clean rows for SEO, content and PPC research. Pay per result, no login.

- **URL**: https://apify.com/atesen-software/google-autocomplete-keywords.md
- **Developed by:** [Atesen Software](https://apify.com/atesen-software) (community)
- **Categories:** SEO tools, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Google Autocomplete Scraper: Keyword Suggestions API

Turn a list of seed keywords into Google autocomplete suggestions for keyword research, content planning and PPC campaigns. Every suggestion comes back as one clean row with the seed, the suggestion, its rank, the language and the country, ready for a spreadsheet, a database or an automation.

Run it from the Apify Console, the API, a schedule, Make, Zapier or n8n. No login, no proxy and no browser are used.

### What it does and what it does not do

**It does:**

- Collect the suggestions Google shows while someone types a seed keyword, for up to 20 seeds per run.
- Apply a language and a country hint, for example `en` + `us` or `de` + `de`.
- Optionally expand each seed with the letters a to z (`sqlite a`, `sqlite b`, and so on) to find long-tail ideas. One level only, no recursion.
- Remove duplicates per seed and keep the original rank.
- Stop at the row limit and request limit you set, and at your maximum cost per run.

**It does not:**

- Return search volume, competition, CPC or any other metric. Autocomplete is a list of suggestions, not a count of searches.
- Reproduce what one particular person sees. Suggestions depend on location, language, time and Google's own rules. The country is a hint, not a guarantee.
- Collect search result pages, Google Ads data, Google Trends data, YouTube suggestions or anyone's search history.
- Work around blocks. If Google refuses the request, the run stops (see "Data source and permission").

### Input

| Field | Default | What it does |
| --- | --- | --- |
| `keywords` | `["sqlite"]` | 1 to 20 seed phrases, at most 200 characters each. Duplicate seeds are requested once. |
| `language` | `en` | Language hint such as `en`, `de`, `fr` or `zh-CN`. |
| `country` | `us` | Two-letter country hint (`gl`). |
| `expandAlphabet` | `false` | Also request each seed followed by each letter of `alphabet`. |
| `alphabet` | `abcdefghijklmnopqrstuvwxyz` | 1 to 26 lowercase letters. Use `abc` for a small expansion. |
| `maxResults` | `5` | Hard ceiling for suggestion rows in the whole run (1 to 1000). |
| `maxRequests` | `30` | Hard ceiling for HTTP requests including retries (1 to 60). |
| `requestDelayMs` | `500` | Minimum pause between requests, 500 to 5000 ms. Requests run one at a time. |
| `timeoutSecs` | `10` | Timeout per request, 1 to 30 seconds. |

A run with no input at all uses the defaults above: the seed `sqlite`, five suggestions.

Example input:

```json
{
  "keywords": ["keyword research", "seo tools"],
  "language": "en",
  "country": "us",
  "expandAlphabet": false,
  "maxResults": 20,
  "maxRequests": 4
}
```

### Output

One row per suggestion. A real row from a run:

```json
{
  "recordType": "suggestion",
  "seed": "sqlite",
  "query": "sqlite",
  "suggestion": "sqlite browser",
  "rank": 3,
  "expansion": "seed",
  "expansionToken": null,
  "language": "en",
  "country": "us",
  "client": "firefox",
  "sourceUrl": "https://suggestqueries.google.com/complete/search?client=firefox&q=sqlite&hl=en&gl=us",
  "searchUrl": "https://www.google.com/search?q=sqlite%20browser",
  "fetchedAt": "2026-11-12T19:45:48.162Z"
}
```

| Field | Meaning |
| --- | --- |
| `seed` | The seed phrase you gave. |
| `query` | The exact text sent to Google (the seed, or the seed plus a letter). |
| `suggestion` | The suggested search phrase. |
| `rank` | Position in Google's answer for that query, starting at 1. Gaps can appear after duplicates are removed. |
| `expansion`, `expansionToken` | `seed`, or `alphabet` with the letter that was added. |
| `language`, `country` | The hints that were sent. |
| `searchUrl` | A Google search link for the suggestion. The Actor never opens it. |
| `fetchedAt` | When the row was collected (UTC). |

The last row of every run is a free status row (`recordType: "status"`). It is also saved as the `SUMMARY` record of the key-value store. It tells you how the run ended:

```json
{
  "recordType": "status",
  "status": "result_limit",
  "message": "Configured suggestion row limit reached; more suggestions or queries may exist.",
  "partial": true,
  "resultCount": 5,
  "requests": 1,
  "queriesCompleted": 1,
  "queriesPlanned": 1
}
```

Possible statuses: `completed`, `result_limit`, `request_limit`, `charge_limit`, `invalid_input`, `access_denied`, `rate_limited`, `upstream_error`, `network_error`, `invalid_response`, `response_too_large`. Filter on `recordType = suggestion` when you only want data. If an error happens after some queries worked, the rows already collected are kept and `partial` is `true`. A run that stops because of a block or a rate limit still finishes as SUCCEEDED, so check the status row in your automations.

### Use it with Make, Zapier and n8n

**Make:** add the Apify module "Run an Actor", choose `atesen-software/google-autocomplete-keywords`, paste the JSON input, then add "Get Dataset Items" and map `suggestion`, `seed` and `rank` to your sheet or database.

**Zapier:** use the Apify action "Run Actor", pick this Actor, set the input fields, then add "Fetch Dataset Items" and send the rows on.

**n8n:** use the Apify node ("Run an Actor and get dataset"), or an HTTP Request node with a POST to `https://api.apify.com/v2/acts/atesen-software~google-autocomplete-keywords/run-sync-get-dataset-items` using your own Apify token in the `Authorization: Bearer` header and this body:

```json
{ "keywords": ["keyword research"], "language": "en", "country": "us", "maxResults": 20 }
```

Add a filter step that keeps only rows where `recordType` equals `suggestion`.

### Use via API

One request runs the Actor, waits for it and returns the dataset items as JSON. Send your token in the `Authorization` header, not in the URL:

```bash
curl -X POST "https://api.apify.com/v2/acts/atesen-software~google-autocomplete-keywords/run-sync-get-dataset-items?timeout=120" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"keywords":["keyword research"],"language":"en","country":"us","maxResults":20}'
```

The synchronous endpoint waits up to 300 seconds. For longer jobs start a run with `POST https://api.apify.com/v2/acts/atesen-software~google-autocomplete-keywords/runs` and read the dataset when it finishes.

**JavaScript** (`npm install apify-client`):

```js
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('atesen-software/google-autocomplete-keywords').call({ keywords: ["keyword research"], language: "en", country: "us", maxResults: 20 });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

### Use with AI agents (MCP)

Claude Desktop, Cursor, VS Code and other MCP clients can call this Actor as a tool through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp). Load only this Actor with:

```text
https://mcp.apify.com?tools=atesen-software/google-autocomplete-keywords
```

Client config (sign in with Apify OAuth when the browser opens, or add an `Authorization: Bearer <APIFY_TOKEN>` header instead):

```json
{
  "mcpServers": {
    "apify": { "url": "https://mcp.apify.com?tools=atesen-software/google-autocomplete-keywords" }
  }
}
```

Then ask in plain words, for example: "Give me 20 Google autocomplete suggestions for 'keyword research' in the US." The agent fills the same input fields you see on the Input tab, and runs are billed to your Apify account at the prices on the Pricing tab.

### FAQ

**Does it give search volume?** No. Pair the suggestions with a volume tool if you need numbers.

**How do I get more than 10 suggestions per keyword?** Turn on `expandAlphabet`. Each seed then costs up to 27 requests, so raise `maxRequests` (up to 60) and `maxResults` to match.

**Why are some of my seeds missing in the output?** Seeds are requested in the order you list them, and `maxResults` is one ceiling for the whole run. Google returns about 10 suggestions per query, so give the run room: with 5 seeds, set `maxResults` to at least 50. The status row `result_limit` tells you the ceiling was reached.

**Why did my run return fewer rows than `maxResults`?** Google may have fewer suggestions for that phrase, duplicates were removed, or the run hit `maxRequests`, your maximum cost per run, or a block. The status row says which.

**Can I run it every day?** Yes, with an Apify schedule. Keep the seed list small and the delay at 500 ms or more.

**Do you use proxies or a login?** No. The Actor makes plain requests from the Apify platform.

**Which languages and countries work?** Any language code and two-letter country code Google accepts. Results can still differ from what you see in your own browser.

**Does it collect personal data?** No. It collects suggestion text for the seeds you provide.

### Data source and permission

The Actor reads the public search suggestion service that Google offers to browsers and apps for the "type-ahead" list. It is not an official Google API, it has no published contract or availability promise, and the format can change at any time. Google's terms restrict automated queries, so this Actor is built to be gentle: one request at a time, at least 500 ms apart, with a hard cap on requests per run, an honest User-Agent that names the operator, no proxy rotation and no login.

If Google answers with a block, a rate limit, or a consent or CAPTCHA page, the Actor stops at once and writes a free status row. It does not retry around the block or hide that it happened. You are responsible for using the data in line with Google's terms and the laws that apply to you.

### Pricing

Pay per result: each saved suggestion row is one result. Status rows are free, and so are empty runs and failed requests. The run stops cleanly when it reaches your maximum cost per run. See the Pricing tab of this Actor for the current price.

### Related actors

- [Google Trending Searches API: Daily Trends by Country](https://apify.com/atesen-software/google-trends-daily)
- [Domain Rank Checker: Majestic Million Rank and DNS](https://apify.com/atesen-software/domain-rank-lookup)
- [SEO Audit Tool & Broken Link Checker: Website Crawler](https://apify.com/atesen-software/website-seo-audit)

# Actor input Schema

## `keywords` (type: `array`):

1 to 20 seed phrases, at most 200 characters each. Duplicate normalized seeds are requested once.

## `language` (type: `string`):

Language hint such as en, de or zh-CN. Not a guarantee of result language.

## `country` (type: `string`):

Two-letter Google gl country hint. Country influence is not guaranteed; server location can matter.

## `expandAlphabet` (type: `boolean`):

After all direct seeds, request seed + space + each configured letter. No recursion.

## `alphabet` (type: `string`):

1 to 26 lowercase ASCII letters. Set abc for a small expansion. Repeated letters are collapsed.

## `maxResults` (type: `integer`):

Hard combined row ceiling. Deduplication is per seed; same suggestion may appear for different seeds.

## `maxRequests` (type: `integer`):

Hard shared cap, including retry attempts. Stops with an explicit request_limit status.

## `requestDelayMs` (type: `integer`):

Sequential requests, one at a time; spacing also applies to retries. Lower values than 500 ms are not allowed.

## `timeoutSecs` (type: `integer`):

Includes body reads; transient errors get at most one retry. HTTP 403 is not retried.

## Actor input object example

```json
{
  "keywords": [
    "keyword research",
    "seo tools"
  ],
  "language": "en",
  "country": "us",
  "expandAlphabet": false,
  "alphabet": "abcdefghijklmnopqrstuvwxyz",
  "maxResults": 20,
  "maxRequests": 30,
  "requestDelayMs": 500,
  "timeoutSecs": 10
}
```

# Actor output Schema

## `dataset` (type: `string`):

Flat suggestion rows with seed and expansion context, plus a free final status row.

## `summary` (type: `string`):

Read status, completeness, accepted rows, request attempts and query counts.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "keywords": [
        "keyword research",
        "seo tools"
    ],
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("atesen-software/google-autocomplete-keywords").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "keywords": [
        "keyword research",
        "seo tools",
    ],
    "maxResults": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("atesen-software/google-autocomplete-keywords").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "keywords": [
    "keyword research",
    "seo tools"
  ],
  "maxResults": 20
}' |
apify call atesen-software/google-autocomplete-keywords --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,atesen-software/google-autocomplete-keywords"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/e179yzW0tTvsKofhQ/builds/DmSKCCrBc09apuyvW/openapi.json
