# Keyword Suggestions: Google, YouTube, Bing & eBay Autocomplete (`randy-tools/keyword-suggestions-scraper`) Actor

Get autocomplete keyword ideas from Google, YouTube, Google Shopping, Google News, Bing, Yahoo and eBay in one run and one schema. A-Z, number, question and preposition expansion, recursive depth, any country and language. No proxy needed. Pay per suggestion.

- **URL**: https://apify.com/randy-tools/keyword-suggestions-scraper.md
- **Developed by:** [AICORP Tools](https://apify.com/randy-tools) (community)
- **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 Scraper — Google, YouTube, Bing & eBay Autocomplete

Turn a few seed keywords into **hundreds of real search queries** people type, straight from the autocomplete of **Google, YouTube, Google Shopping, Google News, Bing, Yahoo and eBay**, in one run and one schema. Expand every keyword with **A to Z, 0 to 9, question words and prepositions**, go several levels deep, and pick any country and language.

It reads the public suggestion endpoints the search boxes themselves call, over plain HTTP with no browser, no login and no proxy, so runs are fast and cheap.

### What you can do with it

- **SEO keyword research:** long-tail keywords and question keywords for content plans, briefs and FAQ sections
- **YouTube SEO:** video titles and tags people actually search on YouTube
- **E-commerce and marketplace SEO:** product search terms from Google Shopping and eBay, with eBay's category hints
- **PPC research:** new keyword and negative-keyword ideas for Google Ads and Microsoft Ads
- **Topic and trend discovery:** what people search around a brand, product or news topic, per country
- **AI and content pipelines:** feed real queries into writing, clustering or answer-engine optimisation workflows

### Features

- **7 sources, one schema:** Google, YouTube, Google Shopping, Google News, Bing, Yahoo (US) and eBay; every row says which engine it came from and its position in that engine's list
- **Expansion:** letters (`coffee maker a` … `z`), numbers, 13 question words (`how`, `what`, `why`, `can` …), 13 prepositions and comparisons (`for`, `with`, `vs` …), plus your own prefixes and suffixes in any language
- **Depth 0 to 3:** query each suggestion again to dig further into the long tail
- **Any country and language:** Google region and language, Bing market and eBay site follow your `country` and `language`
- **Clean output:** duplicates removed per engine, word count, question flag and "contains the seed" flag on every row
- **Filters:** exclude words or phrases, keep only questions, keep only suggestions that contain the seed, minimum word count. Filtered suggestions are not charged.
- **Reliable:** paced requests, retries with back-off, and a body check on every answer: a block page or anything that is not suggestion data counts as a failure and is retried, never as an empty result. If an engine keeps refusing requests, the run stops and says so; it does not change IP to get around a block.

### Input example

```json
{
  "keywords": ["coffee maker", "espresso machine"],
  "engines": ["google", "youtube", "bing"],
  "expansions": ["letters", "questions"],
  "depth": 1,
  "country": "us",
  "language": "en",
  "maxSuggestions": 2000,
  "excludeKeywords": ["walmart", "near me"]
}
```

German keywords for Google and eBay Germany, with German question words as custom prefixes:

```json
{
  "keywords": ["kaffeemaschine"],
  "engines": ["google", "ebay"],
  "expansions": ["letters"],
  "customPrefixes": ["wie", "was", "welche"],
  "country": "de",
  "language": "de",
  "maxSuggestions": 500
}
```

### Output

One record per unique suggestion per engine.

```json
{
  "keyword": "coffee maker with grinder",
  "engine": "google",
  "position": 2,
  "seedKeyword": "coffee maker",
  "parentKeyword": "coffee maker",
  "query": "coffee maker",
  "modifier": "seed",
  "depth": 0,
  "wordCount": 4,
  "isQuestion": false,
  "containsSeed": true,
  "ebayCategories": null,
  "country": "us",
  "language": "en",
  "scrapedAt": "2026-11-15T19:40:00Z"
}
```

- `query` is the exact text sent to the engine and `modifier` says how it was built: `seed`, `letter`, `number`, `question`, `preposition`, `prefix`, `suffix` or `recursive` (depth 1 and more).
- `position` is the suggestion's rank (1 = top) in the list the engine returned for that query.
- `parentKeyword` is the seed at depth 0, and the suggestion that was queried again at deeper levels.
- `ebayCategories` lists the categories eBay suggests for the query (eBay rows only).
- A `SUMMARY` record in the key-value store shows queries, failures and suggestions per engine, and whether a proxy was used.

### Engines

| Engine | Source | Notes |
|---|---|---|
| Google | Google Suggest | Up to 10 suggestions per query. Region and language from `country` and `language`. |
| YouTube | Google Suggest, YouTube dataset | Up to 10 per query. |
| Google Shopping | Google Suggest, Shopping dataset | Up to 10 per query. |
| Google News | Google Suggest, News dataset | Up to 10 per query. |
| Bing | Bing OpenSearch suggestions | Market from `language`-`country`, e.g. `en-US`, `de-DE`. |
| Yahoo | Yahoo search suggestions | US English only, whatever `country` you set. |
| eBay | eBay search autocomplete | eBay site from `country` (US, UK, DE, FR, IT, ES, AU, CA and more; others use ebay.com). Adds category hints. |

### Pricing

Pay only for results: a small fee per run start and a fee **per unique suggestion**. Duplicates and suggestions removed by your filters are free, and there is no proxy cost.

How many suggestions to expect: each query returns up to 10 suggestions (Bing sometimes more), and lists for related queries overlap. One keyword with letter expansion is 27 queries per engine, so at most about 270 suggestions per engine before duplicates are removed. Set *Max suggestions* to cap the cost of a run.

### Limits

- These are autocomplete suggestions, not search volumes. There is no volume, CPC or difficulty data, because the engines do not publish it in autocomplete.
- Each engine decides what it suggests and may personalise or trim lists; results can differ slightly from what you see in your own browser.
- Question words and prepositions are English. For other languages, put your own words in *Custom prefixes* and *Custom suffixes*.
- Yahoo is US English only.
- Depth multiplies the number of queries quickly (depth 1 queries every suggestion found), so combine depth with *Max suggestions*.

### FAQ

**Do I need a proxy?** No. The Actor works without one, and it never switches to one by itself. You can set a proxy yourself in the input.

**Why are Google and YouTube results different?** They are different datasets: YouTube suggests what people search for on YouTube, Google Shopping what people search for products, and so on. Each row has its `engine`.

**Can I monitor suggestions over time?** Yes. Schedule the Actor daily or weekly with the same keywords and compare datasets; `position` lets you track how a suggestion moves.

**Is this legal?** The Actor reads only public autocomplete suggestions from the endpoints the search boxes use, without logins, and collects no personal data. You are responsible for using the data in line with the engines' terms and applicable laws.

**Something broke?** Open an issue on the Issues tab. We monitor the Actor and usually respond within 24 hours.

# Actor input Schema

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

Seed keywords to get autocomplete suggestions for, e.g. "coffee maker". One keyword per line, up to 1,000 per run.

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

Which autocomplete sources to query. Each engine's suggestions are output separately, labelled with the engine.

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

Extra queries per keyword to find more ideas: letters sends "coffee maker a" to "coffee maker z"; numbers sends "coffee maker 0" to "9"; questions sends "how coffee maker", "what coffee maker" and 11 more; prepositions sends "coffee maker for", "with", "vs" and 10 more. Question and preposition words are English. Leave empty to query the keyword only.

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

Words to put before each keyword as extra queries, e.g. "best", "cheap", or question words in another language ("wie", "was").

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

Words to put after each keyword as extra queries, e.g. "review", "2026", "für".

## `depth` (type: `integer`):

0 queries your keywords (and their expansions) only. 1 also queries every suggestion found, 2 and 3 go further. Each level multiplies the number of queries, so set Max suggestions as well.

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

Two-letter country code, e.g. "us", "gb", "de", "in". Sets Google's region, the Bing market and the eBay site.

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

Language code, e.g. "en", "de", "es", "pt-BR". Suggestions come in this language where the engine supports it.

## `maxSuggestions` (type: `integer`):

Stop after this many unique suggestions in total, across all keywords and engines.

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

Stop collecting for a keyword on an engine after this many suggestions, so one keyword cannot use up the whole run. 0 means no limit.

## `excludeKeywords` (type: `array`):

Drop suggestions that contain any of these whole words or phrases, e.g. brand names or "free". Dropped suggestions are not charged.

## `mustContainSeed` (type: `boolean`):

Drop suggestions that do not contain every word of the seed keyword ("maker" also matches "makers").

## `questionsOnly` (type: `boolean`):

Keep only suggestions that are questions (start with how, what, why, can, is ... or end with ?). Combine with the question expansion.

## `minWords` (type: `integer`):

Keep only suggestions with at least this many words, e.g. 3 for long-tail keywords.

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

How many suggestion requests run at the same time. Each host is also limited to 3 at a time.

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

Not needed: the Actor works without a proxy and never switches to one by itself. Set one here only if you want every request to go through it.

## Actor input object example

```json
{
  "keywords": [
    "coffee maker"
  ],
  "engines": [
    "google",
    "youtube"
  ],
  "expansions": [
    "letters"
  ],
  "depth": 0,
  "country": "us",
  "language": "en",
  "maxSuggestions": 300,
  "maxSuggestionsPerSeed": 0,
  "mustContainSeed": false,
  "questionsOnly": false,
  "minWords": 0,
  "maxConcurrency": 6,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (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"
    ],
    "engines": [
        "google",
        "youtube"
    ],
    "expansions": [
        "letters"
    ],
    "maxSuggestions": 300,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("randy-tools/keyword-suggestions-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": ["coffee maker"],
    "engines": [
        "google",
        "youtube",
    ],
    "expansions": ["letters"],
    "maxSuggestions": 300,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("randy-tools/keyword-suggestions-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": [
    "coffee maker"
  ],
  "engines": [
    "google",
    "youtube"
  ],
  "expansions": [
    "letters"
  ],
  "maxSuggestions": 300,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call randy-tools/keyword-suggestions-scraper --silent --output-dataset

```

## MCP server setup

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