# Google Autocomplete Keyword Scraper (Search, YouTube, Shopping) (`hawtsauce/google-autocomplete-keywords`) Actor

Get long-tail keyword ideas from Google, YouTube and Google Shopping autocomplete for any country and language. Expand each seed with A to Z, questions and prepositions to collect hundreds of real search suggestions. For SEO, content and YouTube keyword research. Pay per result.

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

## Pricing

from $0.60 / 1,000 keyword suggestions

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/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 Keyword Scraper (Search, YouTube, Shopping)

Turn one keyword into hundreds of real long-tail searches. This Actor collects the autocomplete suggestions Google shows as people type, for **Google Search, YouTube, Google Shopping, Images and News**, in any **country and language**.

**Cost:** $0.60 per 1,000 suggestions, plus $0.00005 per run. 500 keyword ideas cost about $0.30.

**Ready-made examples:** YouTube keyword ideas for a topic (home workout); Question keywords for FAQ and SEO (running shoes).

### Why use it

- **SEO and content ideas:** find what people actually type, including questions ("how to clean running shoes").
- **YouTube topics:** see what viewers search for before you make a video.
- **Shopping and ads:** spot product and brand searches for keyword lists and negative keywords.
- **Local markets:** run the same keyword for the US, UK, Germany, Egypt or anywhere else, in the local language.

### How it works

For each seed keyword it asks Google's autocomplete for suggestions. Turn on **expansions** to dig deeper:

| Expansion | What it adds | Lookups per keyword |
|---|---|---|
| none | the keyword itself | 1 |
| `alphabet` | keyword + a, b, c ... z, 0 ... 9 | +36 |
| `questions` | who, what, when, where, why, how ... + keyword | +13 |
| `prepositions` | keyword + for, with, without, near, vs ... | +10 |

Each lookup returns up to 10 suggestions. With all three expansions, one keyword can give 500+ unique suggestions.

### Input

```json
{
  "keywords": ["running shoes"],
  "sources": ["web", "youtube"],
  "expansions": ["alphabet", "questions"],
  "language": "en",
  "country": "us",
  "maxResults": 500
}
```

| Field | Meaning |
|---|---|
| `keywords` | Seed keywords (required). |
| `sources` | `web`, `youtube`, `shopping`, `images`, `news`. Default `web`. |
| `expansions` | `alphabet`, `questions`, `prepositions`. Default none. |
| `language` | e.g. `en`, `es`, `de`, `ar`, `pt-BR`. Default `en`. |
| `country` | Two-letter code, e.g. `us`, `gb`, `eg`. Default `us`. |
| `maxResults` | Stop after this many suggestions. Default 1,000. |
| `dedupe` | Skip repeats for the same keyword and source. Default on. |

### Output

One row per suggestion. Real example from a test run:

```json
{
  "seedKeyword": "running shoes",
  "query": "running shoes",
  "expansion": "none",
  "suggestion": "running shoes for women",
  "position": 2,
  "wordCount": 4,
  "source": "web",
  "language": "en",
  "country": "us"
}
```

`query` is the exact text sent to autocomplete, so you can see which expansion produced each idea. `position` is the rank in Google's list (1 = top).

Download as JSON, CSV, Excel or use the API.

### Pricing

Pay per result: you pay once for each suggestion saved, nothing for empty lookups. See the Pricing tab. Set a maximum cost per run and the Actor stops cleanly when it is reached.

### Limits

- Autocomplete does not give search volume. Use the suggestions as an idea list, then check volume in your keyword tool.
- Suggestions change with time, location and trends. Results are what Google showed at run time.
- The Actor runs at a polite pace. If Google refuses or challenges a request, the run stops and tells you rather than retrying.

### Data and privacy

Public data only. No login and no personal data.

# Actor input Schema

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

One or more keywords to get suggestions for.

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

web (Google Search), youtube, shopping, images, news.

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

alphabet: keyword + a..z and 0..9 (37 lookups). questions: who/what/how... + keyword (13 lookups). prepositions: keyword + for/with/vs... (10 lookups). Leave empty for just the keyword itself.

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

Language code, e.g. en, es, de, ar, pt-BR.

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

Two-letter country code, e.g. us, gb, de, eg.

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

Stop after this many suggestions. You are charged per suggestion returned.

## `dedupe` (type: `boolean`):

Skip suggestions already returned for the same seed keyword and source.

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

Pause between lookups. Minimum 300.

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

Optional.

## Actor input object example

```json
{
  "keywords": [
    "running shoes"
  ],
  "sources": [
    "web"
  ],
  "expansions": [
    "alphabet",
    "questions"
  ],
  "language": "en",
  "country": "us",
  "maxResults": 200,
  "dedupe": true,
  "requestDelayMs": 500,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

All autocomplete suggestions, one row per suggestion.

# 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"
    ],
    "expansions": [
        "alphabet",
        "questions"
    ],
    "maxResults": 200
};

// Run the Actor and wait for it to finish
const run = await client.actor("hawtsauce/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": ["running shoes"],
    "expansions": [
        "alphabet",
        "questions",
    ],
    "maxResults": 200,
}

# Run the Actor and wait for it to finish
run = client.actor("hawtsauce/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": [
    "running shoes"
  ],
  "expansions": [
    "alphabet",
    "questions"
  ],
  "maxResults": 200
}' |
apify call hawtsauce/google-autocomplete-keywords --silent --output-dataset

```

## MCP server setup

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