# YouTube Hashtag Extractor 🎯 (`easyapi/youtube-hashtag-extractor`) Actor

Extract hashtags from YouTube videos automatically. Get organized hashtag data in both array and text formats for easy social media management and content analysis.

- **URL**: https://apify.com/easyapi/youtube-hashtag-extractor.md
- **Developed by:** [EasyApi](https://apify.com/easyapi) (community)
- **Categories:** SEO tools, Social media, Videos
- **Stats:** 5 total users, 0 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## 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 Hashtag Extractor 🎯

Extract hashtags from YouTube videos effortlessly! This actor helps content creators and social media managers analyze and collect hashtags used in YouTube videos.

### 🎯 Use Cases

- Content creators looking to analyze successful video hashtag strategies
- Social media managers planning content distribution
- Digital marketers researching trending hashtags in their niche
- YouTube SEO optimization
- Competitive analysis of hashtag usage

### ✨ Features

- 🎯 Extract hashtags from any YouTube video URL
- 📊 Get results in both array and text formats
- ⚡ Fast and efficient processing
- 🔄 Process multiple videos in one run
- 🎨 Clean and organized output structure

### 🔍 Output Format

The actor provides a clean JSON output containing:

- Original YouTube video URL
- Array of hashtags
- Concatenated hashtag text (ready for copying)

### 💡 Tips

- You can process multiple YouTube videos in a single run
- The actor automatically handles video URL validation
- Results are provided in both array and text formats for maximum flexibility

### 📝 Input Parameters

The actor accepts the following input parameters:

| Field | Type | Description |
|-------|------|-------------|
| youtubeVideoUrls | Array | List of YouTube video URLs to process |
| maxItems | Integer | Maximum number of items to extract (optional) |
| proxyConfiguration | Object | Proxy settings (optional) |

### 🔗 Integration

Perfect for integration with:

- Social media management tools
- Content planning systems
- YouTube analytics platforms
- Marketing automation workflows

### 💪 Benefits

- Save time on manual hashtag extraction
- Improve your YouTube SEO strategy
- Analyze competitor hashtag usage
- Streamline content planning
- Enhance social media engagement

### 📈 Performance

The actor is optimized for performance and reliability:

- Efficient processing of multiple videos
- Automatic retry mechanism
- Proxy support for reliable access

#### Input Example

A full explanation of an input example in JSON.

```json
{
    "youtubeVideoUrls": [
        "https://www.youtube.com/watch?v=HV23VDFWC3o"
    ]
}
```

#### Output sample

The results will be wrapped into a dataset which you can always find in the **Storage** tab. Here's an excerpt from the data you'd get if you apply the input parameters above:

And here is the same data but in JSON. You can choose in which format to download your data: JSON, JSONL, Excel spreadsheet, HTML table, CSV, or XML.

```json
[
    {
        "youtubeVideoUrl": "https://www.youtube.com/watch?v=HV23VDFWC3o",
        "hashtagsArray": [
            "#dinosaurs",
            "#tyrannosaurus",
            "#mosasaurus"
        ],
        "hashtagsText": "#dinosaurs #tyrannosaurus #mosasaurus"
    }
]
```

### Related Actors

- 🎯 [YouTube Hashtag Generator](https://apify.com/easyapi/youtube-hashtag-generator) - Generate relevant, trending hashtags in 65+ languages to boost your YouTube video visibility
- 🎯 [YouTube Tags Extractor](https://apify.com/easyapi/youtube-tags-extractor) - Extract and analyze tags from any YouTube video URL for SEO optimization
- 📝 [YouTube Description Extractor](https://apify.com/easyapi/youtube-description-extractor) - Extract complete descriptions from YouTube videos for content analysis
- 🎥 [YouTube Channel ID Extractor](https://apify.com/easyapi/youtube-channel-id-extractor) - Convert YouTube channel URLs to channel IDs for API integration
- 📊 [YouTube Video Statistics Scraper](https://apify.com/easyapi/youtube-video-statistics-scraper) - Get comprehensive video stats including views, likes, comments and metadata
- 📊 [YouTube Channel Statistics Scraper](https://apify.com/easyapi/youtube-channel-statistics-scraper) - Extract channel statistics including subscriber count and performance metrics
- 🌍 [YouTube Region Restriction Checker](https://apify.com/easyapi/youtube-region-restriction-checker) - Check video availability across 170+ countries
- 🎥 [YouTube Video Data Scraper](https://apify.com/easyapi/youtube-video-data-scraper) - Extract comprehensive video metadata for content analysis
- 📺 [YouTube Trending Videos/Shorts Scraper](https://apify.com/easyapi/youtube-trending-videos-shorts-scraper) - Get data from trending videos and shorts
- 🎮 [YouTube Gaming Trends Scraper](https://apify.com/easyapi/youtube-gaming-trends-scraper) - Scrape trending gaming videos and related content
- 🎬 [YouTube Movies Trending Scraper](https://apify.com/easyapi/youtube-movies-trending-scraper) - Extract trending movie trailers and related content
- 📱 [YouTube Channel Shorts Scraper](https://apify.com/easyapi/youtube-channel-shorts-scraper) - Scrape Shorts content from any YouTube channel
- 💬 [YouTube Comments Scraper](https://apify.com/easyapi/youtube-comments-scraper) - Extract comprehensive comment data from YouTube videos
- 🔍 [Youtube Search Scraper](https://apify.com/easyapi/youtube-search-scraper) - Fetch search results based on keywords without logging in
- 🎵 [YouTube Music Video Scraper](https://apify.com/easyapi/youtube-music-video-scraper) - Extract video information from YouTube Music search results

# Actor input Schema

## `youtubeVideoUrls` (type: `array`):

List of YouTube video URLs to extract hashtags from

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

Proxy settings for the actor

## Actor input object example

```json
{
  "youtubeVideoUrls": [
    "https://www.youtube.com/watch?v=HV23VDFWC3o"
  ],
  "proxyConfiguration": {
    "useApifyProxy": 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("easyapi/youtube-hashtag-extractor").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("easyapi/youtube-hashtag-extractor").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 '{}' |
apify call easyapi/youtube-hashtag-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,easyapi/youtube-hashtag-extractor"
        }
    }
}

```

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/ln5YTqy2ZsQxWBhcJ/builds/mUJpO0dJ5TRohYEuF/openapi.json
