# Youtube Search Bar Scraper (`caprolok/youtube-search-bar-scraper`) Actor

Enhance your video strategy with Youtube Search Bar Scraper. Dive into real-time Youtube search trends, pinpointing trending keywords and themes. Ideal for content brainstorming and optimizing uploads, a game-changer for vloggers and brands. Harness the tool's insights to captivate more viewers.

- **URL**: https://apify.com/caprolok/youtube-search-bar-scraper.md
- **Developed by:** [Caprolok](https://apify.com/caprolok) (community)
- **Categories:** SEO tools
- **Stats:** 201 total users, 2 monthly users, 100.0% runs succeeded, 17 bookmarks
- **User rating**: No ratings yet

## Pricing

$5.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period.You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#rental-actors

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

### 🔍 YouTube Search Bar Scraper

### 📌 Introduction:

Welcome to the **YouTube Search Bar Scraper**, a powerful software tool designed to help you extract and analyze search term suggestions directly from **YouTube's search bar**. Our goal is to provide you with valuable insights into current video trends, user interests, and emerging content ideas on the platform.

### 🛠️ Why Use Our YouTube SEO Tool?

- **🎯 Unmatched Data Accuracy**: Our **YouTube Search Bar Scraper** taps directly into **YouTube's search bar**, ensuring you receive authentic, real-time insights that accurately reflect current user behavior.

- **👥 User-Focused Design:** We prioritize user experience, offering a seamless journey from input to results, making research effortless and efficient.

- **💸 Budget-Friendly Solution:** Access valuable market insights without straining your budget. Our **YouTube SEO tool** is 100% free, delivering premium-level data without hidden costs.

### 📈 Key Benefits of Our YouTube Search Bar Scraper:

- **💰 Cost-Free Insights:** Gain unparalleled market insights at no cost, making it accessible to individuals, content creators, and businesses of all sizes.

- **📋 Tailored Content Strategies:** Assist content creators and marketers in crafting data-driven strategies, improving video titles, descriptions, and content promotion.

- **🔎 YouTube SEO Optimization**: Our **YouTube SEO tool** is an essential asset for developing efficient **YouTube SEO strategies** and optimizing video discoverability.

- **📊 Trend Identification**: Stay ahead of the curve by monitoring market dynamics, identifying **trending topics**, popular video ideas, and shifts in user interests.

- **🔗 Easy Integration:** Our **YouTube keyword research tool** is **API-ready**, allowing seamless integration with other software tools, analytics platforms, or content management systems.

### 🌟 Detailed Features:

- **🖱️ User-Friendly Interface:** Our interactive interface enables effortless entry of keywords or phrases. It handles single or batch keyword input without compromising speed.

- **⏱️ Real-time Data Extraction**: Sophisticated algorithms ensure that the search results closely match **real-time** or near-real-time suggestions from **YouTube**.

- **🌐 Wide Search Coverage:** Select specific **YouTube domains** or regions to ensure results are relevant to your target audience.

- **💾 Export and Sharing Options:** Export search suggestions in popular formats like **CSV**, **JSON**, or **Excel**. Generate shareable links for collaboration or presentation purposes.

### 🎥 Demo

> Here's a brief demonstration of how the **YouTube Search Bar Scraper** Tool works:

> This GIF shows how input search keywords generate real-time suggestions from Youtube's Search bar.

![input search keywords generate real-time suggestions from Youtube's Search bar.](https://caprolok-assets.s3.amazonaws.com/Youtube+Scraper+Blog+/YoutubeSearchBar.gif)

> Watch as our tool generates real-time search term suggestions directly from Youtube's search bar, providing valuable insights into user behavior and market trends.

![Watch as our tool generates real-time search term suggestions directly from Youtube's search bar](https://caprolok-assets.s3.amazonaws.com/Youtube+Scraper+Blog+/YoutubeInpOptOut.gif)

### 🔄 Workflow Overview:

- **👤 User Input:** Users input keywords or phrases they wish to explore via a clear interface.

- **🔍 Data Retrieval**: Our tool simulates user typing to fetch suggestions directly from **YouTube's search endpoint**, mimicking natural user behavior.

- **📜 Data Processing**: Suggestions from **YouTube** are efficiently processed and organized.

- **🖥️ Clear Presentation**: Data is presented in an organized, categorized manner for easy interpretation. Users can sort results based on relevance or other criteria.

- **📥 Data Export**: Easily export the entire dataset or selected entries for in-depth analysis.

### 🔚 Conclusion:

Harness the power of **real-time data** from **YouTube's vast search queries** with the **YouTube Search Bar Scraper**. This free tool empowers content creators, marketers, and researchers to make informed, strategic decisions and stay at the forefront of the ever-evolving **YouTube landscape**.

# Actor input Schema

## `keyword` (type: `string`):

The keyword you want to get suggestions for.

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

Select your country

## `langauage` (type: `string`):

Select your language

## `isAToZ` (type: `boolean`):

Get more results by selecting this option. We automatically add letters from 'a' to 'z' to your main keyword at the end.You can also add alphabets before your keyword by selecting the option below(

## Actor input object example

```json
{
  "keyword": "Best",
  "country": "us",
  "langauage": "en",
  "isAToZ": false
}
```

# 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 = {
    "keyword": "Best"
};

// Run the Actor and wait for it to finish
const run = await client.actor("caprolok/youtube-search-bar-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 = { "keyword": "Best" }

# Run the Actor and wait for it to finish
run = client.actor("caprolok/youtube-search-bar-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "keyword": "Best"
}' |
apify call caprolok/youtube-search-bar-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=caprolok/youtube-search-bar-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/xJVkPImp9hbsp6O8y/builds/XOzQ4rLYSZpFQY0r8/openapi.json
