# Keyword Autocomplete Scraper (Google, YouTube, Amazon) (`scrapemole/keyword-autocomplete-scraper`) Actor

Keyword ideas from Google, YouTube and Amazon autocomplete in one run: A-Z, question and preposition expansion, any country and language, deduped JSON with position and relevance. Pay per query, no proxy needed. ScrapeMole is the maker.

- **URL**: https://apify.com/scrapemole/keyword-autocomplete-scraper.md
- **Developed by:** [ScrapeMole](https://apify.com/scrapemole) (community)
- **Categories:** SEO tools, E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 autocomplete query with 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

## Keyword Autocomplete Scraper: Google, YouTube and Amazon suggestions as JSON

Keyword research is where most agents and scripts quietly fail: Google's Keyword Planner needs an ads account, the YouTube Data API has no autocomplete endpoint at all, and Amazon's search-box suggestions are not in any official API. Scraping the search pages gets you captchas. **ScrapeMole** reads the **public autocomplete feeds** behind the Google, YouTube and Amazon search boxes and returns **one clean JSON row per suggestion**: source, seed, suggestion, position, Google's relevance score, country and language. ScrapeMole is the maker of this Actor.

- **Three sources in one run:** Google Search, **YouTube** and **Amazon** (15 marketplaces), side by side for the same seed.
- **Long-tail expansion:** seed + **a…z**, **0…9**, **question words** (how/what/why/where/when/which/who/can/is/does/are/will) and **prepositions** (for/with/without/vs/near/like/to/or/and/under).
- **Any country and language:** `country` (US, GB, DE, JP…) and `language` (en, de, pt-BR…).
- **Deduped and LLM-ready:** duplicates across expansions are removed (and never billed), every row has the same flat shape, ready for a prompt, a spreadsheet or a vector store.
- **No proxy, no API key, no login.** Rate limits are retried with backoff; anything that still fails is a free error row.

**You only pay for autocomplete queries that delivered new suggestions** (up to 15 suggestions per query on Google and YouTube, about 10 on Amazon). Failed, blocked and all-duplicate queries are free.

### One-command quickstart (for agents)

Set `APIFY_TOKEN` to your Apify API token. This one request runs the Actor and returns the rows. Real example: the seed `espresso machine` on all three sources.

```bash
curl -sS -X POST \
  "https://api.apify.com/v2/acts/scrapemole~keyword-autocomplete-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN&memory=256&timeout=120" \
  -H "Content-Type: application/json" \
  -d '{"keywords":["espresso machine"],"sources":["google","youtube","amazon"]}'
```

That is 3 billed queries (one per source, about $0.0024 on the Free plan) and about 40 rows. Expect a JSON array of objects like these (suggestions change daily; shape verified 24 Nov 2026, Europe/Vilnius):

```json
[
  { "status": "ok", "source": "google", "seed": "espresso machine", "query": "espresso machine", "expansion": "seed", "modifier": null,
    "country": "US", "language": "en", "suggestion": "espresso machine for home", "position": 1, "relevance": 601, "wordCount": 4, "scrapedAt": "2026-11-24T00:00:00.000Z" },
  { "status": "ok", "source": "youtube", "seed": "espresso machine", "query": "espresso machine", "expansion": "seed", "modifier": null,
    "country": "US", "language": "en", "suggestion": "espresso machine review", "position": 1, "relevance": 1100, "wordCount": 3, "scrapedAt": "2026-11-24T00:00:00.000Z" },
  { "status": "ok", "source": "amazon", "seed": "espresso machine", "query": "espresso machine", "expansion": "seed", "modifier": null,
    "country": "US", "language": "en", "suggestion": "breville espresso machine", "position": 2, "relevance": null, "wordCount": 3, "scrapedAt": "2026-11-24T00:00:00.000Z" }
]
```

Want the long tail? Add `"expansions":["alphabet","questions"]` (39 queries per seed and source, a few hundred unique keywords).

### What agents and developers use it for

- **SEO keyword research:** long-tail and question keywords ("how espresso machine works", "espresso machine vs nespresso") for briefs, content clusters and FAQ sections.
- **YouTube titles and tags:** what viewers actually type into YouTube search ("espresso machine review", "… for beginners", "… tier list"), which is different from Google.
- **Amazon listings and PPC:** the phrases shoppers type on Amazon ("breville espresso machine", "espresso machine with grinder") for titles, bullet points, backend search terms and sponsored-ads keyword lists.
- **LLM pipelines:** flat, deduped JSON you can drop into a prompt ("cluster these keywords by intent") or join with Google Trends interest.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `keywords` | array of strings | (required) | Seed keywords, up to 1000. |
| `sources` | array | `["google"]` | Any of `google`, `youtube`, `amazon`. |
| `expansions` | array | `[]` | Any of `alphabet` (+26 queries), `numbers` (+10), `questions` (+12), `prepositions` (+10). |
| `country` | string | `US` | Two-letter code. Amazon marketplaces: US, GB, DE, FR, IT, ES, NL, SE, PL, CA, MX, BR, AU, JP, IN. |
| `language` | string | `en` | Language for Google and YouTube suggestions. |
| `dedupe` | boolean | `true` | Drop suggestions already returned for the same seed and source. |
| `includeSeedEcho` | boolean | `false` | Keep the row where autocomplete echoes the seed itself. |
| `maxSuggestionsPerSeed` | integer | `0` | Stop expanding a seed and source after this many suggestions (0 = no limit). |
| `maxConcurrency` | integer | `4` | Seed × source pairs in parallel. |

### Output fields

| Field | Description |
|---|---|
| `source` | `google`, `youtube` or `amazon` |
| `seed` | Your seed keyword |
| `query` | Exact text sent to the autocomplete (seed or expanded variant) |
| `expansion`, `modifier` | `seed`, `alphabet`, `numbers`, `questions` or `prepositions`, and the letter/word added |
| `suggestion` | The autocomplete suggestion |
| `position` | 1-based rank in that autocomplete list |
| `relevance` | Google's relevance score for Google and YouTube (higher = stronger); `null` for Amazon |
| `wordCount` | Words in the suggestion (handy for long-tail filters) |
| `country`, `language`, `scrapedAt` | Context of the request |
| `status`, `errorCode`, `errorMessage` | `ok`, or a free `error` row (`BLOCKED`, `TIMEOUT`, `PARSE_ERROR`…) |

A `RUN_SUMMARY` record in the key-value store has the counts, the events charged and HTTP stats.

### Pricing

Pay per event, no monthly fee:

| Event | Free plan | Bronze | Silver | Gold+ |
|---|---|---|---|---|
| Autocomplete query that delivered new suggestions | $0.0008 | $0.0007 | $0.0006 | $0.0005 |

Plus Apify's standard $0.00005 run start. No separate start fee. One seed on three sources costs about $0.0024; one seed with full A-Z expansion on Google costs about $0.022 and returns up to ~400 keywords.

### FAQ

**Is this the same as Google Keyword Planner?** No search volumes: autocomplete shows what people type, ranked by Google. Pair it with the [ScrapeMole Google Trends Scraper](https://apify.com/scrapemole/google-trends-scraper) for relative interest over time.

**Why does Amazon return fewer suggestions?** Amazon shows about 10 per prefix and few for question prefixes; use `alphabet` for Amazon.

**Do I need a proxy?** No. The feeds are public. If you run thousands of seeds at once and see `BLOCKED` rows, lower `maxConcurrency`; those rows are free.

**Is the data personal?** No. Autocomplete suggestions are aggregated search phrases, not tied to any person.

### More from ScrapeMole

ScrapeMole builds focused, reliable scrapers for public data: pay per result, no start fees, clear error rows that are never charged, and a `RUN_SUMMARY` on every run.

- [YouTube Transcript Scraper](https://apify.com/scrapemole/youtube-transcript-scraper)
- [Google Trends Scraper](https://apify.com/scrapemole/google-trends-scraper)
- [YouTube Shorts Scraper](https://apify.com/scrapemole/youtube-shorts-scraper)
- [Amazon Product Scraper](https://apify.com/scrapemole/amazon-product-scraper)

Building an AI agent with its own wallet? The same keyword suggestions are also sold per call over [x402](https://www.x402.org) (USDC on Base, no account): `GET https://scrapemole-api-mainnet.scrapemole.workers.dev/v1/keyword-autocomplete?q=espresso+machine`. See [scrapemole.com](https://scrapemole.com). Questions or a missing field? Open an issue on this Actor. ScrapeMole is the maker of this Actor.

# Actor input Schema

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

Keywords to get autocomplete suggestions for, one per line (up to 1000).

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

Which autocomplete to read: <b>google</b> (Google Search suggestions), <b>youtube</b> (YouTube search suggestions) and/or <b>amazon</b> (Amazon search-box suggestions for the country's marketplace).

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

Also query variations of each seed. <b>alphabet</b>: seed + a…z (26 extra requests). <b>numbers</b>: seed + 0…9 (10). <b>questions</b>: how/what/why/where/when/which/who/can/is/does/are/will + seed (12). <b>prepositions</b>: seed + for/with/without/vs/near/like/to/or/and/under (10). Each request that returns new suggestions is one billed query.

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

Two-letter country code (US, GB, DE, FR, JP…). For Amazon it picks the marketplace: US, GB, DE, FR, IT, ES, NL, SE, PL, CA, MX, BR, AU, JP, IN.

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

Language code for Google and YouTube suggestions (en, de, es, pt-BR…).

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

Drop suggestions already returned for the same seed and source (across expansions). Duplicates are never billed.

## `includeSeedEcho` (type: `boolean`):

Autocomplete often echoes the seed back. Off = skip that row.

## `maxSuggestionsPerSeed` (type: `integer`):

Stop expanding a seed once this many suggestions came back for one source. 0 = no limit.

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

How many seed × source pairs run at the same time. Lower it if you see BLOCKED rows.

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

Retries with backoff on HTTP 429/5xx before a request is reported as a free error row.

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

Not needed: the autocomplete feeds are public. Leave off unless you see BLOCKED rows.

## Actor input object example

```json
{
  "keywords": [
    "espresso machine"
  ],
  "sources": [
    "google",
    "youtube",
    "amazon"
  ],
  "expansions": [],
  "country": "US",
  "language": "en",
  "dedupe": true,
  "includeSeedEcho": false,
  "maxSuggestionsPerSeed": 0,
  "maxConcurrency": 4,
  "maxRetries": 4,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

All dataset rows (status ok or error).

## `runSummary` (type: `string`):

JSON summary: processed/ok/failed counts, error codes, events charged, HTTP stats.

# 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": [
        "espresso machine"
    ],
    "sources": [
        "google",
        "youtube",
        "amazon"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapemole/keyword-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": ["espresso machine"],
    "sources": [
        "google",
        "youtube",
        "amazon",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("scrapemole/keyword-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": [
    "espresso machine"
  ],
  "sources": [
    "google",
    "youtube",
    "amazon"
  ]
}' |
apify call scrapemole/keyword-autocomplete-scraper --silent --output-dataset

```

## MCP server setup

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