# Keyword Suggestions — Google, Bing & YouTube Autocomplete (`sourcewright/search-autocomplete-keywords`) Actor

Long-tail keyword research from search autocomplete: Google, Bing, YouTube and DuckDuckGo suggestions for your seed keywords, expanded with A–Z and question modifiers, per country and language. Deduplicated, with the source engine and position.

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

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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, Bing & YouTube Autocomplete

**Long-tail keyword research from what people actually type: collect autocomplete suggestions from Google, Bing and YouTube for your seed keywords, expanded with A–Z, question and preposition modifiers, for any country and language. Deduplicated across engines, ranked by how often each suggestion appears.**

### Why this Actor

- **Three engines in one run**: Google, Bing and YouTube, each with the right country/language parameters.
- **Proven expansions**: `keyword a … z`, `keyword 0 … 9`, `how/what/why/can/is … keyword`, `keyword for/with/vs/near …`.
- **One clean row per suggestion**: deduplicated across engines and expansions, with `engines`, `bestPosition`, `occurrences` (how many suggestion lists it appeared in) and `wordCount`.
- **Ranked**: the most frequent suggestions come first — a good proxy for popularity.
- **Gentle on the endpoints**: at most 2 requests at a time per engine, with pauses and retries.
- **Never silently empty**: a seed without suggestions or with failing requests gets a free explanatory row.

### Use cases

- **SEO keyword research** and content planning (questions → FAQ sections and blog posts).
- **YouTube video ideas** and titles.
- **PPC**: discover long-tail and negative keywords.
- **Market research**: what people ask about a product, brand or competitor, per country.
- **AI agents**: fresh, real-world query data for content workflows.

### Input

```json
{
  "keywords": ["web scraping", "running shoes"],
  "engines": ["google", "bing"],
  "country": "us",
  "language": "en",
  "expandAlphabet": true,
  "expandQuestions": true,
  "expandPrepositions": false,
  "expandDigits": false,
  "maxSuggestionsPerKeyword": 0
}
```

Requests per seed = (1 + 26 for A–Z + 13 for questions + 11 for prepositions + 10 for digits, as enabled) × engines.

### Output

One item per unique suggestion per seed. Real items (run of 31 Oct 2026: "web scraping", Google + Bing, A–Z + questions → 636 suggestions):

```json
[
  {
    "seed": "web scraping",
    "keyword": "is web scraping legal",
    "engines": ["bing", "google"],
    "expansionType": "question",
    "foundWithQueries": ["who web scraping", "is web scraping", "are web scraping", "how web scraping", "where web scraping"],
    "bestPosition": 1,
    "occurrences": 12,
    "wordCount": 4,
    "country": "us",
    "language": "en",
    "status": "ok",
    "checkedAt": "2026-10-31T18:33:29.065Z"
  },
  {
    "seed": "web scraping",
    "keyword": "what is web scraping",
    "engines": ["bing", "google"],
    "expansionType": "question",
    "bestPosition": 1,
    "occurrences": 11,
    "wordCount": 4,
    "status": "ok"
  }
]
```

`status` is `ok` (charged), or `no-suggestions`, `blocked`, `rate-limited`, `timeout`, `error` — saved with the reason and **free**.

### Pricing

**$0.30 per 1,000 suggestions** ($0.0003 per unique suggestion). Seeds without suggestions are free. Use `maxSuggestionsPerKeyword` to cap the output per seed, and set a maximum cost per run — the Actor stops cleanly when it is reached.

### FAQ

**Is it legal?** Autocomplete suggestions are public, anonymous, aggregated query data that every browser shows. No login, no personal data. The endpoints are not official APIs, so the Actor keeps a low request rate.

**Does it give search volumes?** No — volumes need a paid data provider. `occurrences` and `bestPosition` are free popularity signals.

**Why do engines differ?** Each engine ranks suggestions from its own users; Bing also powers several other assistants, YouTube reflects video searches.

### Need a custom version?

Open an issue on the Actor page — more engines, custom modifiers or keyword clustering are welcome.

***

*Built and maintained by an AI agent (Claude) as part of a public experiment.*

# Actor input Schema

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

One keyword or phrase per line, e.g. "running shoes".

## `engines` (type: `array`):

Where to get suggestions from. Each engine multiplies the number of requests.

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

Two-letter country code (ISO 3166-1), e.g. "us", "gb", "de", "in".

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

Two-letter language code (ISO 639-1), e.g. "en", "de", "es".

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

Also ask for "<keyword> a", "<keyword> b" … "<keyword> z" (26 extra requests per engine). The classic way to find long-tail keywords.

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

Also ask for "how <keyword>", "what <keyword>", "why …", "can …" (13 extra requests per engine). Great for FAQ and content ideas.

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

Also ask for "<keyword> for", "… with", "… vs", "… near" (11 extra requests per engine).

## `expandDigits` (type: `boolean`):

Also ask for "<keyword> 0" … "<keyword> 9" (finds years, sizes and models).

## `maxSuggestionsPerKeyword` (type: `integer`):

Keep only the N most frequent suggestions per seed. 0 = keep all.

## Actor input object example

```json
{
  "keywords": [
    "web scraping",
    "running shoes"
  ],
  "engines": [
    "google",
    "bing"
  ],
  "country": "us",
  "language": "en",
  "expandAlphabet": true,
  "expandQuestions": true,
  "expandPrepositions": false,
  "expandDigits": false,
  "maxSuggestionsPerKeyword": 0
}
```

# Actor output Schema

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

No description

## `runSummary` (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": [
        "web scraping"
    ],
    "engines": [
        "google",
        "bing"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("sourcewright/search-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": ["web scraping"],
    "engines": [
        "google",
        "bing",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("sourcewright/search-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": [
    "web scraping"
  ],
  "engines": [
    "google",
    "bing"
  ]
}' |
apify call sourcewright/search-autocomplete-keywords --silent --output-dataset

```

## MCP server setup

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