# Google Autocomplete Scraper – Keyword Suggestions API (`datarelay/google-autocomplete-scraper`) Actor

Get Google autocomplete keyword suggestions for many keywords and countries in one run: alphabet, number, question and preposition expansions, YouTube, Shopping and News suggestions, relevance scores, and monitoring of new suggestions. No browser. Pay per unique suggestion.

- **URL**: https://apify.com/datarelay/google-autocomplete-scraper.md
- **Developed by:** [DataRelay](https://apify.com/datarelay) (community)
- **Categories:** SEO tools, Marketing, Developer tools
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.25 / 1,000 suggestions

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

Collect **Google autocomplete suggestions** (the searches Google proposes under the search box) for many keywords and
countries in one run. Expand every keyword with the **alphabet, numbers, questions and prepositions**, follow
suggestions **one or two levels deeper**, and get the separate suggestion lists of **Google Search, YouTube, Google
Shopping and Google News** – each with Google's **position and relevance score**. Schedule it as a **monitor that
delivers only new suggestions** for your brand or topic.

No browser and no login: the Actor reads Google's public autocomplete endpoint over plain HTTP, so 3,000 suggestions
take seconds on 256 MB.

### Why this Actor

- **Keyword research in one click.** Turn `coffee maker` into 400+ unique long-tail keywords with
  `"expansions": ["alphabet"]` (27 requests), or ask what people want to know with `"questions"`
  (`how coffee maker`, `why coffee maker` …).
- **Every suggestion once.** Suggestions are de-duplicated per keyword, country and source across all expansions and
  depths – you pay for each unique suggestion only once.
- **Ranked data, not just strings.** Each row has the `position` in Google's list, Google's `relevance` score, the
  `type` (search or website), the request that found it and how it was derived.
- **Many markets per run.** List countries (`us`, `de`, `pl`, `br` …); the language of each country is chosen
  automatically (`de` → German, `br` → Portuguese) unless you set one.
- **Four sources.** YouTube and Shopping suggestions differ a lot from web search (`pizza`: web → `pizza hut`,
  YouTube → `pizza tower`).
- **Monitoring built in.** Set a `syncKey` and schedule the task: each run delivers and charges only suggestions not
  delivered before – useful for brand reputation (new `brand scam`, `brand lawsuit` suggestions) and trend spotting.
- **Pay only for suggestions.** Duplicates, already delivered suggestions and failed keywords are free.

### Quick start

```json
{
    "queries": ["coffee maker"],
    "countries": ["us"],
    "expansions": ["alphabet"]
}
```

| Goal                                  | Input                                                                                    |
| ------------------------------------- | ---------------------------------------------------------------------------------------- |
| Top 15 suggestions of a few keywords  | `{"queries": ["coffee maker", "espresso machine"]}`                                      |
| Long-tail keywords (a–z)              | `{"queries": ["running shoes"], "expansions": ["alphabet", "numbers"], "maxResults": 0}` |
| Questions people ask                  | `{"queries": ["solar panels"], "expansions": ["questions", "prepositions"]}`             |
| One keyword in five markets           | `{"queries": ["iphone"], "countries": ["us", "gb", "de", "fr", "jp"]}`                   |
| YouTube video ideas                   | `{"queries": ["home workout"], "sources": ["youtube"], "expansions": ["alphabet"]}`      |
| Keyword tree two levels deep          | `{"queries": ["vegan recipes"], "depth": 2, "maxResults": 2000}`                         |
| Daily brand monitor, only new entries | `{"queries": ["acme", "acme app"], "countries": ["us", "gb"], "syncKey": "acme-brand"}`  |

### Input

| Field                | Default            | Meaning                                                                                                 |
| -------------------- | ------------------ | ------------------------------------------------------------------------------------------------------- |
| `queries`            | –                  | Seed keywords.                                                                                          |
| `countries`          | `["us"]`           | Two-letter country codes; each country has its own suggestions.                                         |
| `language`           | country's language | Interface language, e.g. `en`, `de`, `pt-BR`. Empty = the main language of each country (else English). |
| `sources`            | `["web"]`          | `web`, `youtube`, `shopping`, `news`.                                                                   |
| `expansions`         | `[]`               | `alphabet` (+26 requests), `numbers` (+10), `questions` (+12, English), `prepositions` (+12, English).  |
| `depth`              | `0`                | 1 = also ask about every suggestion found (≈15× more requests); 2 = one more level.                     |
| `maxResults`         | `1000`             | Stop after this many suggestions (0 = no limit). Your spending limit is respected too.                  |
| `syncKey`            | –                  | Memory of delivered suggestions in your account (`google-autocomplete-sync-<key>`); turns on `onlyNew`. |
| `onlyNew`            | `false`            | Deliver only suggestions not delivered before under the sync key (`default` when no key is set).        |
| `syncReset`          | `false`            | Forget the memory of the sync key before the run.                                                       |
| `maxRunSecs`         | `0`                | Soft time budget (0 = the platform timeout).                                                            |
| `proxyConfiguration` | Apify proxy        | Datacenter proxies first; residential only after blocks.                                                |

### Output

One row per unique suggestion:

```json
{
    "schemaVersion": 1,
    "status": "ok",
    "error": null,
    "scrapedAt": "2026-11-10T16:35:38.089Z",
    "seed": "coffee maker",
    "suggestion": "coffee maker with grinder",
    "position": 1,
    "relevance": 601,
    "type": "query",
    "description": null,
    "wordCount": 4,
    "query": "coffee maker",
    "derivation": "seed",
    "depth": 0,
    "source": "web",
    "country": "us",
    "language": "en"
}
```

- `query` – the request that found the suggestion first (`coffee maker b` for the alphabet expansion), `derivation` –
  `seed`, `alphabet`, `numbers`, `questions`, `prepositions` or `suggestion` (depth 1–2).
- `type: navigation` rows are website suggestions (`https://www.facebook.com/`) with the page title in `description`.
- When Google blocks or fails every request of a keyword, a free row explains why (`status: blocked` or `error`).

The run report in the key-value store (`OUTPUT`) lists every keyword × country × source: `status`, `suggestions`,
`requests`, `failedRequests`, `known` (already delivered), `depthReached`, plus totals (`requests`, `duplicates`,
`duplicatesSync`, `stopReason`, `chargedEvents`).

### Pricing (pay per event)

| Event        | FREE    | BRONZE   | SILVER  | GOLD     |
| ------------ | ------- | -------- | ------- | -------- |
| `run-start`  | $0.003  | $0.003   | $0.0025 | $0.002   |
| `suggestion` | $0.0004 | $0.00035 | $0.0003 | $0.00025 |

- 15 suggestions of one keyword: **$0.009** on FREE; 400 long-tail keywords (alphabet expansion): **$0.163**;
  1,000 suggestions: **$0.403** – that is **$0.40 per 1,000 suggestions**.
- The start fee is charged only together with the first paid suggestion: a monitoring run with nothing new is free.
- Free: duplicates across expansions and depths, suggestions already delivered under your `syncKey`, rows about failed
  keywords. Apify's standard `apify-actor-start` event ($0.00005) applies to every run.

### FAQ

**Does it return search volumes or CPC?** No. Google autocomplete has no volumes; this Actor returns what Google
suggests, ranked. Use the suggestions as input for a volume tool, or our Google Trends Actor for relative interest.

**Why do question and preposition expansions return little in other languages?** The words (`how`, `for`, `vs` …) are
English. The alphabet and numbers work in every language.

**How many suggestions does one request give?** Up to 15 for web search; fewer for rare keywords.

**Can I use it from AI agents, n8n, Make or Zapier?** Yes: the input is plain JSON, every row has the same fields and
`status`, and the `OUTPUT` record summarizes the run.

### HTTP and MCP access

This Actor also declares a single-tenant server interface, using the same input, source engine and result prices as batch runs. For large jobs, use batch.

- **Apify MCP:** configure `https://mcp.apify.com/?tools=datarelay/google-autocomplete-scraper` with your Apify bearer token. This starts ordinary Actor runs.
- **DataRelay MCP:** copy this Actor's server URL from Apify Console and append `/mcp`; authenticate with the same bearer token.
- **HTTP:** POST JSON input to `<SERVER_URL>/v1/run`. `<SERVER_URL>/openapi.json` lists the domain shortcuts.

Each server run belongs to your account. Default idle timeout: 60 seconds. You pay platform usage, including startup/idle time, plus existing event fees. Discovery and health checks produce no data events, but can start a billed run. A warm run charges its start event at most once on its first paid result.

Responses include a preview (first 100 rows / 1 MB), `resultCount`, `previewLimited`, `interrupted`, and links to this request's complete Dataset slice and summary. Use batch for work exceeding the 120-second soft deadline. Check `outcome`, summaries and result statuses; source limitations remain unchanged. Use the stable Actor-level server URL for clients. The server becomes available when this build is deployed and its server settings are enabled.

# Actor input Schema

## `queries` (type: `array`):

Seed keywords, one per line. Each keyword is asked in every country and source below.

## `countries` (type: `array`):

Two-letter country codes (Google's gl parameter), e.g. us, gb, de, pl. Every keyword is asked in every country; each country has its own suggestions.

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

Interface language (Google's hl parameter), e.g. en, de, pt-BR. Empty = the main language of each country (us → en, de → de, br → pt-BR; English for other countries).

## `sources` (type: `array`):

Which suggestions to collect: Google Search (web), YouTube, Google Shopping and Google News each have their own list.

## `expansions` (type: `array`):

Extra requests per keyword, as keyword researchers type them: alphabet (keyword a … keyword z, 26 requests), numbers (keyword 0 … 9, 10), questions (how/what/why … keyword, 12, English) and prepositions (keyword for/with/vs …, 12, English). Each suggestion is delivered once per keyword.

## `depth` (type: `integer`):

0 = suggestions for the keyword (and its expansions). 1 = also the suggestions of every suggestion found (about 15× more requests). 2 = one more level.

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

Stop the run after this many delivered suggestions (0 = no limit). Your spending limit is respected too.

## `onlyNew` (type: `boolean`):

Deliver (and charge) only suggestions not delivered before under the sync key. Schedule the run to get alerts when Google starts suggesting something new for your brand or topic.

## `syncKey` (type: `string`):

Name of the memory of delivered suggestions (letters, digits, dashes; at most 40). Setting it turns on 'Only new suggestions'. Use one key per monitoring task.

## `syncReset` (type: `boolean`):

Forget the suggestions delivered under the sync key before this run (everything is new again).

## `maxRunSecs` (type: `integer`):

Stop starting new requests after this many seconds and save what was found (0 = until the platform timeout).

## `proxyConfiguration` (type: `object`):

Apify datacenter proxies first; residential ones only after blocks.

## Actor input object example

```json
{
  "queries": [
    "coffee maker"
  ],
  "countries": [
    "us"
  ],
  "sources": [
    "web"
  ],
  "expansions": [],
  "depth": 0,
  "maxResults": 1000,
  "onlyNew": false,
  "syncReset": false,
  "maxRunSecs": 0,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

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

No description

# 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 = {
    "queries": [
        "coffee maker"
    ],
    "countries": [
        "us"
    ],
    "sources": [
        "web"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("datarelay/google-autocomplete-scraper").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 = {
    "queries": ["coffee maker"],
    "countries": ["us"],
    "sources": ["web"],
}

# Run the Actor and wait for it to finish
run = client.actor("datarelay/google-autocomplete-scraper").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 '{
  "queries": [
    "coffee maker"
  ],
  "countries": [
    "us"
  ],
  "sources": [
    "web"
  ]
}' |
apify call datarelay/google-autocomplete-scraper --silent --output-dataset

```

## MCP server setup

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

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/G6jzRyTkfsENjWE0Y/builds/PDvKvf3pEKHiFPg4z/openapi.json
