# Google Autocomplete Scraper (`trendlab/google-autocomplete-scraper`) Actor

Turn seed keywords into hundreds of real Google autocomplete suggestions. A-Z, question and preposition expansion, Google Search, YouTube, Shopping, News and Images, any country and language. Clean JSON, no API key.

- **URL**: https://apify.com/trendlab/google-autocomplete-scraper.md
- **Developed by:** [Cheoljae Lee](https://apify.com/trendlab) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.21 / 1,000 suggestions

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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 from Google, YouTube & Shopping

Turn a few seed keywords into **hundreds of real search suggestions** straight from **Google autocomplete**. Expand every keyword A–Z, with question words, prepositions and your own modifiers, across **Google Search, YouTube, Google Shopping, News and Images**, in any country and language. Clean JSON, no API key.

### What does Google Autocomplete Scraper do?

- 🔤 **A–Z and 0–9 expansion** — `keyword a`, `keyword b` … to uncover the long tail.
- ❓ **Question expansion** — `how … keyword`, `what … keyword`, `why … keyword` and 10 more. Google fills in the words in between, so you get real questions like "how much is an electric bike".
- 🔗 **Preposition and comparison expansion** — `keyword for`, `keyword with`, `keyword vs`, `keyword near` …
- ✍️ **Custom prefixes and suffixes** — `best`, `cheap`, `review`, `alternative`, or modifiers in any language.
- 🌐 **Five Google properties** — Search, YouTube, Shopping, News and Images each return different suggestions.
- 🌍 **Any country and language** — `us/en`, `de/de`, `kr/ko`, `br/pt` …
- 🔁 **Recursive expansion** — get suggestions for the suggestions, up to two levels deep.
- 🧹 **Deduplicated, labelled output** — each suggestion once, with the seed, the modifier that found it, its position and Google's relevance score.

### Why use it?

- **Real demand, not estimates.** Autocomplete shows what people actually type into Google right now.
- **Much more than the first 10.** One seed with every expansion on returns 700+ unique suggestions per Google property.
- **Fast.** Queries run in parallel; a full expansion of one keyword finishes in seconds.
- **Predictable cost.** You pay per saved suggestion, duplicates are not saved, and `maxItems` caps every run.

### What can you do with autocomplete data?

- **SEO keyword research** — long-tail keywords and content ideas for any niche.
- **Content and FAQ planning** — the real questions people ask about a topic.
- **YouTube and video SEO** — title and topic ideas from YouTube's own suggestions.
- **E-commerce and Amazon-style research** — product modifiers buyers search for on Google Shopping.
- **PPC** — keyword and negative keyword lists.
- **Market research** — compare what different countries search for around the same product.
- **AI agents** — let an assistant expand a topic into real search queries.

### How to scrape Google autocomplete suggestions

1. Click **Try for free**.
2. Enter one or more **seed keywords**.
3. Pick the **Google properties**, **country** and **language**.
4. Turn on the **expansions** you want and set **Max results**.
5. Click **Start**, then download JSON, CSV or Excel, or read the results through the API.

### Input example

```json
{
  "keywords": ["electric bike"],
  "sources": ["web", "youtube"],
  "country": "us",
  "language": "en",
  "expandAlphabet": true,
  "expandQuestions": true,
  "expandPrepositions": true,
  "customPrefixes": ["best", "cheap"],
  "customSuffixes": ["review", "alternative"],
  "maxItems": 2000
}
```

| Field | What it does |
|---|---|
| `keywords` | Seed keywords. Each one is expanded separately. |
| `sources` | `web`, `youtube`, `shopping`, `news`, `images`. |
| `country` / `language` | Two-letter codes, e.g. `us` / `en`, `de` / `de`. |
| `expandAlphabet` | Adds `keyword a` … `keyword z` (26 queries). |
| `expandQuestions` | Adds 13 English question words before the keyword. |
| `expandPrepositions` | Adds 12 prepositions and comparison words after the keyword. |
| `expandNumbers` | Adds `keyword 0` … `keyword 9`. |
| `customPrefixes` / `customSuffixes` | Your own words before / after the keyword. |
| `maxDepth` | `0`–`2`. Also expand the suggestions themselves. |
| `maxItems` | Stop after this many saved suggestions. `0` = no limit. |
| `maxSuggestionsPerQuery` | Keep only the top N of each query (Google returns up to 15). |
| `deduplicate` | Save each suggestion once per Google property (default on). |

### Output example

```json
{
  "suggestion": "how much is an electric bike",
  "seed": "electric bike",
  "source": "web",
  "country": "us",
  "language": "en",
  "modifierType": "question",
  "modifier": "how",
  "query": "how electric bike",
  "position": 2,
  "relevance": 600,
  "suggestionType": "QUERY",
  "isQuestion": true,
  "wordCount": 6,
  "depth": 0,
  "scrapedAt": "2026-11-11T11:40:44.095Z"
}
```

#### How to read the fields

- **`position`** is the rank inside Google's list for that query; position 1 is what Google suggests first.
- **`relevance`** is Google's own score for the suggestion. Higher means more relevant to the query; it is not a search volume.
- **`suggestionType`** is usually `QUERY`. `NAVIGATION` means Google suggests going to a website, `ENTITY` a known person, place or thing.
- **`modifierType`** tells you which expansion found the suggestion: `none`, `alphabet`, `number`, `question`, `preposition`, `customPrefix`, `customSuffix` or `recursive`.
- **`isQuestion`** is detected from English question words and question marks.

### How much does it cost?

This Actor uses **pay-per-result** pricing — see the exact price on this page. One saved suggestion is one result. Duplicates are not saved and not charged, and `maxItems` caps the cost of every run. There is no subscription.

### Use it through the API

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("trendlab/google-autocomplete-scraper").call(run_input={
    "keywords": ["standing desk"],
    "expandAlphabet": True,
    "expandQuestions": True,
    "maxItems": 500,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["suggestion"])
```

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

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('trendlab/google-autocomplete-scraper').call({
    keywords: ['protein powder'],
    sources: ['web', 'shopping'],
    expandPrepositions: true,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.map((s) => s.suggestion));
```

Schedule runs in Apify Console, or send results to Google Sheets, Slack, a webhook, Make, Zapier or n8n through Apify integrations.

### Use it with AI agents (MCP)

This Actor works with the [Apify MCP server](https://mcp.apify.com), so Claude, ChatGPT and other agents can call it as a tool. Example prompt: "Find the questions people ask Google about standing desks."

### FAQ

**Is there a Google Autocomplete API?**
Google does not offer an official, documented autocomplete API for keyword research. This Actor returns the same suggestions you see while typing in Google, through the Apify API.

**Does it return search volume?**
No. Autocomplete tells you which searches exist and how Google ranks them, not how many times they are searched. Use `position` and `relevance` to prioritize.

**How many suggestions can I get from one keyword?**
About 15 without expansion. With A–Z, questions, prepositions and numbers on, typically 700–900 unique suggestions per Google property. Recursive depth multiplies that further.

**Does it work in other languages?**
Yes — set `country` and `language`. The built-in question and preposition lists are English; for other languages add your own words in `customPrefixes` and `customSuffixes`.

**Why are YouTube and Shopping suggestions different from Google Search?**
Each Google property has its own autocomplete, based on what people search for there.

**Do I need my own proxies?**
No. Apify Proxy is used automatically and the IP rotates on retry.

**Some queries failed — what should I do?**
Each query is retried with a fresh IP. Queries that still fail are listed in the `FAILED_QUERIES` record of the run's key-value store. Open an issue in the **Issues** tab with the run ID.

**Do you have other Google data tools?**
Yes — [Google Trends Scraper](https://apify.com/trendlab/google-trends-scraper) for keyword interest over time and related queries, and [Google Trending Now Scraper](https://apify.com/trendlab/google-trending-now-scraper) for real-time trending searches.

**Is scraping Google autocomplete legal?**
This Actor collects only anonymous, publicly available search suggestions and no personal data. You are still responsible for making sure your use complies with applicable laws and Google's terms.

### Support

Found a bug or need another expansion type or field? Open an issue in the **Issues** tab. This Actor is actively maintained.

# Actor input Schema

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

Keywords to get autocomplete suggestions for. Each keyword is expanded separately.

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

Where to get suggestions from. Each property is queried separately and returns different suggestions.

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

Two-letter country code, for example us, gb, de, kr, jp, br.

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

Language code, for example en, de, es, fr, ko, ja, pt.

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

Also query each keyword followed by every letter (keyword a, keyword b ... keyword z). Adds 26 queries per keyword and property.

## `expandQuestions` (type: `boolean`):

Also query question words before each keyword (how, what, why, when, where, who, which, can, is, are, does, will, should). English words - use Custom prefixes for other languages.

## `expandPrepositions` (type: `boolean`):

Also query each keyword followed by for, with, without, vs, versus, near, to, like, or, and, in, on. English words - use Custom suffixes for other languages.

## `expandNumbers` (type: `boolean`):

Also query each keyword followed by every digit (keyword 0 ... keyword 9).

## `customPrefixes` (type: `array`):

Your own words to put before each keyword, for example best, cheap, buy - or question words in another language.

## `customSuffixes` (type: `array`):

Your own words to put after each keyword, for example review, price, alternative, near me.

## `maxDepth` (type: `integer`):

0 = only the queries above. 1 = also get suggestions for every suggestion found. 2 = one level deeper. Grows quickly - set Max results.

## `maxItems` (type: `integer`):

Stop after saving this many suggestions in total. Each saved suggestion is one result. Set 0 for no limit.

## `maxSuggestionsPerQuery` (type: `integer`):

Keep only the top N suggestions of each Google query (Google returns up to 15). Set 0 to keep all.

## `deduplicate` (type: `boolean`):

Save each suggestion once per Google property, even if several queries return it. Turn off to see every query's full list.

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

Proxy settings. Apify Proxy is recommended so requests are not rate-limited.

## `maxConcurrency` (type: `integer`):

How many Google queries run in parallel.

## `maxRetries` (type: `integer`):

How many times to retry a query with a fresh IP before giving up.

## Actor input object example

```json
{
  "keywords": [
    "running shoes"
  ],
  "sources": [
    "web"
  ],
  "country": "us",
  "language": "en",
  "expandAlphabet": false,
  "expandQuestions": false,
  "expandPrepositions": false,
  "expandNumbers": false,
  "customPrefixes": [],
  "customSuffixes": [],
  "maxDepth": 0,
  "maxItems": 1000,
  "maxSuggestionsPerQuery": 0,
  "deduplicate": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "maxConcurrency": 8,
  "maxRetries": 4
}
```

# Actor output Schema

## `suggestions` (type: `string`):

All autocomplete suggestions saved by the run.

# 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": [
        "running shoes"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("trendlab/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 = {
    "keywords": ["running shoes"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("trendlab/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 '{
  "keywords": [
    "running shoes"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call trendlab/google-autocomplete-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,trendlab/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/5WgPXdTXeF0joqznr/builds/fvV4cDykyCyH9jAm7/openapi.json
