# YouTube Autocomplete Scraper (`piotrv1001/youtube-autocomplete-scraper`) Actor

Get YouTube search suggestions for any keyword. A–Z and 0–9 expansion turns one seed into hundreds of YouTube keywords with position and relevance score. Any language and country. A YouTube keyword generator for video ideas, titles, tags and YouTube SEO keyword research.

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

## Pricing

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

### 🔎 YouTube Autocomplete Scraper: YouTube Keyword Generator

Export **YouTube search suggestions** for any seed keyword as JSON, CSV or Excel. The **YouTube Autocomplete Scraper** works as a YouTube keyword generator: it reads the suggestions YouTube shows while people type, expands each seed with every letter and digit, and returns hundreds of YouTube keywords with their position and relevance score. Use it for YouTube keyword research, video ideas, titles and tags.

### 🎯 YouTube SEO Keywords Use Cases

- **YouTube keyword research**: find the exact phrases viewers search before you script a video.
- **Video ideas**: one seed like "how to cook" returns hundreds of real topics ("how to cook rice", "how to cook steak in a pan").
- **Titles, descriptions and tags**: use high-ranked suggestions as YouTube SEO keywords in your metadata.
- **International channels**: compare YouTube suggestions in other languages and countries (set Language and Country).
- **Niche and trend research**: rerun the same seeds weekly and see which suggestions appear or disappear.

### ✨ YouTube Keyword Tool Data You Get

- **Real YouTube suggestions**: the phrases YouTube offers while people type, up to 15 per lookup, in YouTube's own order.
- **A–Z and 0–9 expansion**: each seed is also looked up with every letter and digit after it, which gives about 500 unique suggestions per seed.
- **Position and prefix**: every row says where the suggestion stood in the list and which letter or digit found it, plus the relevance score.
- **No duplicates**: a suggestion found by several lookups of the same seed is saved and billed once.
- **Many seeds per run**: one per line, with one limit for the whole run.

### 🛠️ How It Works

1. **Enter seed keywords**, one per line, and choose the language and country.
2. **Keep "Expand with a–z and 0–9" on** for hundreds of suggestions per seed, or turn it off for the seed's own list only.
3. **Run the scraper** and download the suggestions as JSON, CSV or Excel, or pull them through the API.

### ⚙️ Input

| Field | What it does |
| --- | --- |
| **Seed keywords** | Keywords to get suggestions for, one per line. Default "how to cook". |
| **Expand with a–z and 0–9** | Also look up "seed a" … "seed z" and "seed 0" … "seed 9". Default on. |
| **Language** | Language of the suggestions as a code: en, es, hi, pt-BR… Default en. |
| **Country** | Two-letter country code: us, gb, in, br… Default us. |
| **Max suggestions** | How many suggestions to save in the run, all seeds together. Default 50. |

```json
{
    "queries": ["how to cook"],
    "expand": true,
    "language": "en",
    "country": "us",
    "maxItems": 500
}
```

### 💰 Pricing

Pay only for the suggestions you get. No monthly rental.

| Event | Price | What you get |
| --- | --- | --- |
| **Suggestion** | $0.0005 per suggestion ($0.50 per 1,000) | One unique suggestion with all fields below |
| **Actor start** | $0.00005 per run | Charged once when the run starts. |

Examples: 50 suggestions = $0.025 · 500 suggestions = $0.25 (about one expanded seed) · 10,000 suggestions = $5.00.

### 📊 Sample Output Data

```json
{
    "seed": "running shoes",
    "suggestion": "running shoes daily trainers",
    "position": 1,
    "expansion": "d",
    "query": "running shoes d",
    "relevance": 1250,
    "source": "YouTube",
    "language": "en",
    "country": "us",
    "scrapedAt": "2026-11-06T07:14:17.247Z"
}
```

`relevance` is the score behind the order of YouTube's list (higher = shown first). `expansion` is the letter or digit added to the seed (`null` = the seed itself), and `query` is the exact text looked up.

### 🔁 Schedule and Integrate

For keyword and trend monitoring, run it **once a week** with the same seeds: every run is a dated snapshot, so new and dropped suggestions stand out. Set it up in Apify **Schedules**. Send the results to **Google Sheets**, **Zapier**, **Make**, **n8n** or a webhook with Apify **integrations**, so the keyword list lands where your team already works.

### 🤖 Use with AI Agents (MCP)

This Actor works as a tool in Claude, ChatGPT, Cursor and other MCP clients through the Apify MCP server (`https://mcp.apify.com`). An agent can call it with:

```json
{ "queries": ["how to cook"], "maxItems": 100 }
```

### ❓ FAQ

**Does YouTube have an official API for search suggestions?** No. The YouTube Data API searches videos, but it does not return search suggestions and its daily quota is small. This Actor returns the suggestions YouTube shows in its search box, with no API key or quota.

**How many YouTube keywords do I get per seed?** YouTube shows up to 15 suggestions per typed text. With "Expand with a–z and 0–9" on, a seed usually gives about 500 unique keywords.

**Is this a YouTube tag generator?** It gives you the phrases people search, which are the best raw material for tags, titles and descriptions. Pick the ones that fit your video.

**Can I get suggestions for India, Brazil or Germany?** Yes. Set Country (in, br, de) and Language (hi, pt, de, or en).

**Do I need a YouTube or Google account?** No.

**Why is a field empty?** `expansion` is `null` for the seed's own suggestions. `relevance` is `null` when no score came with the list. A seed with nothing to suggest is listed under "Nothing found" in the run's status.

### 🔗 Related Scrapers

- [Google Autocomplete Scraper](https://apify.com/piotrv1001/google-autocomplete-scraper): Google autocomplete for the same seeds.
- [TikTok Keyword Suggestions Scraper](https://apify.com/piotrv1001/tiktok-keyword-suggestions-scraper): what people type into TikTok search.
- [YouTube Search Scraper](https://apify.com/piotrv1001/youtube-search-scraper): the videos that rank for each keyword you find.
- [YouTube Channel Videos Scraper](https://apify.com/piotrv1001/youtube-channel-videos-scraper): every video of the channels that rank.
- [Google Keyword Volume Scraper](https://apify.com/piotrv1001/google-keyword-volume-scraper): Google search volume for your keyword list.

# Actor input Schema

## `queries` (type: `array`):

Keywords to get YouTube autocomplete suggestions for, one per line.

## `expand` (type: `boolean`):

Also look up each keyword followed by every letter and digit ("how to cook a", "how to cook b"… "how to cook 9"). One keyword then gives up to a few hundred suggestions instead of about ten.

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

Language of the suggestions as a code: en, de, es, fr, pt-BR, ja…

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

Two-letter country code: us, gb, de, in, br…

## `maxItems` (type: `integer`):

Maximum number of suggestions saved in this run, all keywords together. Each unique suggestion per keyword is saved once.

## Actor input object example

```json
{
  "queries": [
    "how to cook"
  ],
  "expand": true,
  "language": "en",
  "country": "us",
  "maxItems": 50
}
```

# 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 = {
    "queries": [
        "how to cook"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("piotrv1001/youtube-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 = { "queries": ["how to cook"] }

# Run the Actor and wait for it to finish
run = client.actor("piotrv1001/youtube-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 '{
  "queries": [
    "how to cook"
  ]
}' |
apify call piotrv1001/youtube-autocomplete-scraper --silent --output-dataset

```

## MCP server setup

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