# Keyword Suggestions — Google, YouTube, Amazon Autocomplete (`tienlq/keyword-suggestions`) Actor

Expand seed keywords into hundreds of long-tail ideas from Google, YouTube, Google Shopping, Amazon and DuckDuckGo autocomplete, merged and ranked by how many sources suggest them. Any language and country. $2 per 1,000 seeds.

- **URL**: https://apify.com/tienlq/keyword-suggestions.md
- **Developed by:** [Luong Quyet Tien](https://apify.com/tienlq) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 seed keyword expandeds

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

## Keyword Suggestions: Google, YouTube, Amazon Autocomplete

Turn a few seed keywords into hundreds of long-tail ideas. We type your keyword into the search boxes of **Google, YouTube, Google Shopping, Amazon and DuckDuckGo**, with every letter from a to z after it (and optionally digits and question words), collect what each site suggests, merge the duplicates and rank them.

Autocomplete shows what real people are typing right now, so it's one of the best free sources of keyword ideas for SEO, content, YouTube titles, Amazon listings and ads.

### At a glance

| | |
|---|---|
| Price | **$2 per 1,000 seed keywords**, all sources and all expansions included |
| Seeds with no suggestions | **Free** |
| Sources | Google Search, YouTube, Google Shopping, Amazon, DuckDuckGo |
| Ideas per seed | ~10 to ~500 per source, depending on the expansion |
| Languages and countries | Any (Amazon: US, CA, GB, DE, FR, IT, ES, JP) |
| Browser | None, so it's fast: a seed with a–z on 5 sources takes a few seconds |

### Why several sources?

A keyword that Google, YouTube and Amazon all suggest is almost always a real, popular search. Each row tells you which sources suggested it (`sources`, `sourceCount`) and how many of our lookups returned it (`timesSuggested`). Results are sorted by those, so the strongest ideas come first.

Each source also has its own flavor:

- **Google**: informational and local intent.
- **YouTube**: how-to, reviews, music and entertainment.
- **Google Shopping** and **Amazon**: buyer intent, brands and product features.
- **DuckDuckGo**: a second opinion that's less personalized.

### How to use it

```json
{
  "keywords": ["coffee maker", "espresso machine"],
  "sources": ["google", "youtube", "amazon"],
  "expansion": "alphabet",
  "language": "en",
  "country": "US"
}
```

**Expansion** controls how many variations we type for each seed:

| Value | What we type | Lookups per source |
|---|---|---|
| `none` | `coffee maker` | 1 |
| `alphabet` | `coffee maker`, `coffee maker a` … `coffee maker z` | 27 |
| `full` | the above + `coffee maker 0` … `9` + `how coffee maker`, `best coffee maker`, `coffee maker vs`… | 52 |

Any language works. For example, `"language": "vi", "country": "VN"` with the seed `cà phê` returns Vietnamese suggestions such as *cà phê phin* and *cà phê muối*.

### What you get

One row per unique keyword:

```json
{
  "seed": "coffee maker",
  "keyword": "coffee maker with grinder",
  "sources": ["google", "youtube", "google_shopping", "amazon", "duckduckgo"],
  "sourceCount": 5,
  "timesSuggested": 10,
  "bestPosition": 1,
  "wordCount": 4,
  "isQuestion": false,
  "language": "en",
  "country": "US"
}
```

- `bestPosition`: the best rank it had in any suggestion list (1 = first suggestion).
- `isQuestion`: starts with how, what, why, where, when, who, which, can, is, are or does. These make good FAQ and blog headings.
- Keywords are lowercased and de-duplicated, so `Coffee Maker` and `coffee  maker` are one row.

### Next step: check the trend

Autocomplete tells you *what* people search, not *how much* or *whether it's growing*. Feed your favourite ideas into our [Google Trends Scraper](https://apify.com/tienlq/google-trends-scraper) to see interest over time and compare up to any number of keywords on one scale.

### Tips

- Start with 2–3 word seeds. A single broad word ("coffee") returns very generic ideas.
- If the log shows *blocked* warnings, lower *Max concurrency* or turn on Apify Proxy.
- Set a **maximum cost per run** in the run options and the actor stops cleanly when it's reached.

### Questions, bugs, ideas

Open an issue on the Issues tab and include the run ID, so we can see exactly what happened.

# Actor input Schema

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

One keyword per row. Each one is expanded separately.

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

Where to get autocomplete suggestions from. A keyword suggested by several sources usually has more real demand.

## `expansion` (type: `string`):

How many variations of each seed we type into the search box.

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

Two-letter language code, e.g. en, de, es, vi.

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

Two-letter country code, e.g. US, GB, DE, VN. Amazon supports US, CA, GB, DE, FR, IT, ES and JP (others fall back to US).

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

Parallel lookups. Lower it if you see 'blocked' warnings.

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

Usually not needed. Turn on if you expand thousands of seeds and see 'blocked' warnings.

## Actor input object example

```json
{
  "keywords": [
    "coffee maker"
  ],
  "sources": [
    "google",
    "youtube",
    "amazon"
  ],
  "expansion": "alphabet",
  "language": "en",
  "country": "US",
  "maxConcurrency": 10,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `keywords` (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 = {
    "keywords": [
        "coffee maker"
    ],
    "sources": [
        "google",
        "youtube",
        "amazon"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("tienlq/keyword-suggestions").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": ["coffee maker"],
    "sources": [
        "google",
        "youtube",
        "amazon",
    ],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("tienlq/keyword-suggestions").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": [
    "coffee maker"
  ],
  "sources": [
    "google",
    "youtube",
    "amazon"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call tienlq/keyword-suggestions --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tienlq/keyword-suggestions"
        }
    }
}
```

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/5nvkDRKW7pLcRINIm/builds/ChSGReg2qJBOtt8EE/openapi.json
