# Youtube Tags or Hashtags Scraper (`alpha-scraper/my-actor-4`) Actor

Extracts \[ TAGS OR HASHTAGS ] and related metadata from public YouTube videos using video URLs. It returns hashtags and tags in both array and text formats, along with thumbnail links, making it ideal for content research, SEO analysis, and automation workflows.

- **URL**: https://apify.com/alpha-scraper/my-actor-4.md
- **Developed by:** [Alpha Scraper](https://apify.com/alpha-scraper) (community)
- **Categories:** Social media, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$5.99/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/actors/running/actors-in-store.md#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 Tags or Hashtags Scraper

A powerful and easy-to-use actor that extracts **hashtags and related metadata from public YouTube videos** using only video URLs.
Designed for creators, marketers, researchers, and automation workflows that need clean, ready-to-use hashtag data at scale 🚀

***

### ✨ Overview

The **YouTube Hashtags Scraper** allows you to submit **one or multiple YouTube video URLs** and receive structured hashtag data along with helpful video metadata.

It works with:

- Standard YouTube URLs

- Short `youtu.be` URLs

- Public videos only

- No login or cookies are required.

***

### 📦 What Data Does This Actor Provide?

For **each YouTube video URL**, the actor provides:

- 🎯 Video URL reference
- 🖼️ Best available thumbnail URL
- 🏷️ Video tags (as array & text)
- \#️⃣ Extracted hashtags (as array & text)

All outputs are structured and automation-ready.

***

### 📤 Output Data Explained (Field by Field)

Each result item contains the following fields:

#### 🔗 `youtubeVideoUrl`

- The original YouTube video URL that was processed
- Useful for tracking and mapping results back to inputs

***

#### 🖼️ `thumbnailUrl`

- A direct link to the **highest available quality thumbnail**
- Ideal for previews, dashboards, or content analysis

***

#### 🏷️ `tagsArray`

- An array of all tags associated with the video
- Example:

```json
["music", "pop", "official", "viral"]
```

***

#### 🧾 `tagsText`

- Same tags as `tagsArray`, but formatted as a single comma-separated string
- Perfect for exporting to CSV or text-based systems

***

#### #️⃣ `hashtagsArray`

- A **unique, sorted array** of all hashtags found in:

  - Video title
  - Video description
- Example:

```json
["#music", "#viral", "#youtube"]
```

***

#### 🧵 `hashtagsText`

- All hashtags combined into a **space-separated string**
- Ready for copy-paste into:

  - YouTube uploads
  - Instagram captions
  - SEO tools

***

### 📥 Input Format

#### Required Input

You must provide at least **one YouTube video URL**.

#### Input Field

##### 🟢 `startUrls`

- Type: Array
- Description: List of YouTube video URLs
- Supports multiple URLs in a single run

***

#### 📌 Input Example

```json
{
  "startUrls": [
    { "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ" },
    { "url": "https://youtu.be/9bZkp7q19f0" }
  ]
}
```

***

### 📤 Output Example

```json
[
  {
    "youtubeVideoUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "thumbnailUrl": "https://i.ytimg.com/vi/dQw4w9WgXcQ/maxresdefault.jpg",
    "tagsArray": [
      "rick astley",
      "Never Gonna Give You Up",
      "nggyu",
      "never gonna give you up lyrics",
      "rick rolled",
      "Rick Roll",
      "rick astley official",
      "rickrolled",
      "Fortnite song",
      "Fortnite event",
      "Fortnite dance",
      "fortnite never gonna give you up",
      "rick roll",
      "rickrolling",
      "rick rolling",
      "never gonna give you up",
      "80s music",
      "rick astley new",
      "animated video",
      "rickroll",
      "meme songs",
      "never gonna give u up lyrics",
      "Rick Astley 2022",
      "never gonna let you down",
      "animated",
      "rick rolls 2022",
      "never gonna give you up karaoke"
    ],

    "tagsText": "rick astley, Never Gonna Give You Up, nggyu, never gonna give you up lyrics, rick rolled, Rick Roll, rick astley official, rickrolled, Fortnite song, Fortnite event, Fortnite dance, fortnite never gonna give you up, rick roll, rickrolling, rick rolling, never gonna give you up, 80s music, rick astley new, animated video, rickroll, meme songs, never gonna give u up lyrics, Rick Astley 2022, never gonna let you down, animated, rick rolls 2022, never gonna give you up karaoke",
    
    "hashtagsArray": [
      "#NeverGonnaGiveYouUp",
      "#OfficialMusicVideo",
      "#RickAstley",
      "#RickAstleyNever",
      "#WheneverYouNeedSomebody"
    ],
    "hashtagsText": "#NeverGonnaGiveYouUp #OfficialMusicVideo #RickAstley #RickAstleyNever #WheneverYouNeedSomebody"
  },
  {
    "youtubeVideoUrl": "https://youtu.be/9bZkp7q19f0",
    "thumbnailUrl": "https://i.ytimg.com/vi/9bZkp7q19f0/maxresdefault.jpg",
    "tagsArray": [
      "PSY",
      "싸이",
      "강남스타일",
      "뮤직비디오",
      "Music Video",
      "Gangnam Style",
      "KOREAN SINGER",
      "KPOP",
      "KOERAN WAVE",
      "PSY 6甲",
      "6th Studio Album",
      "싸이6집",
      "육갑",
      "Psy Gangnam Style"
    ],

    "tagsText": "PSY, 싸이, 강남스타일, 뮤직비디오, Music Video, Gangnam Style, KOREAN SINGER, KPOP, KOERAN WAVE, PSY 6甲, 6th Studio Album, 싸이6집, 육갑, Psy Gangnam Style",
    
    "hashtagsArray": [
      "#GANGNAMSTYLE",
      "#PSY",
      "#강남스타일",
      "#싸이"
    ],
    "hashtagsText": "#GANGNAMSTYLE #PSY #강남스타일 #싸이"
  }
]
```

***

### 🌟 Features & Highlights

- ✅ Supports **multiple video URLs** in one run
- ✅ Extracts hashtags from **both title and description**
- ✅ Removes duplicate hashtags automatically
- ✅ Provides hashtags in **array + text formats**
- ✅ Includes video tags for extended SEO analysis
- ✅ Returns **best quality thumbnail available**
- ✅ Clean JSON output, perfect for automation
- ✅ Beginner-friendly and production-ready

***

### 🚀 Benefits & Advantages

#### 📈 For Content Creators

- Find hashtags used by successful videos
- Optimize your own video metadata
- Improve discoverability and reach

#### 📊 For Marketers & Analysts

- Analyze hashtag trends across videos
- Compare tags and hashtags at scale
- Export results to spreadsheets or BI tools

#### 🤖 For Automation & SaaS

- Plug directly into workflows
- Use structured output for pipelines
- No manual cleaning required

***

### 🧠 Best Practices

- ✔ Use **public videos only**
- ✔ Submit **multiple URLs** to save runtime
- ✔ Always use **full video URLs** when possible
- ✔ Store `hashtagsArray` for analysis
- ✔ Use `hashtagsText` for publishing or SEO tools

***

### ⚠️ Possible Errors & How to Avoid Them

#### ❌ Invalid or Broken URL

**Cause:** URL is incorrect or incomplete
✅ **Solution:** Double-check the video URL format

***

#### 🔒 Private or Removed Video

**Cause:** Video is private, age-restricted, or deleted
✅ **Solution:** Use only publicly accessible videos

***

#### 🚫 No Hashtags Found

**Cause:** Video does not contain hashtags
✅ **Solution:** This is normal — output will be empty, not an error

***

#### 🌐 Temporary Access Issues

**Cause:** Network or availability issue
✅ **Solution:** Retry the run after a short time

***

### 📌 Use Cases

- YouTube hashtag research
- Viral content analysis
- SEO keyword discovery
- Social media automation
- Competitor video analysis
- Data collection for dashboards

***

### 🏁 Summary

The **YouTube Hashtags Scraper** is a reliable, scalable solution for extracting hashtags and tag data from YouTube videos in a clean, structured format.

If your goal is:

- 📊 Analysis
- 📢 Growth
- 🤖 Automation

This actor is built for exactly that.

***

## Here my another actors :

### Youtube Iteams:

- [🎶 Youtube Audio Downloader (Video/Shorts)](https://console.apify.com/actors/lTUPL4gmLTDNXBeWw/source)
- [Youtube Video Downloader Advanced](https://console.apify.com/actors/XOpQsUkgGZLGSCJd0/source)
- [Youtube Video Downloader ( Soundless )](https://console.apify.com/actors/gFsczW1QplIquv9eL/source)
- [Youtube Video Downloader](https://console.apify.com/actors/9kZQcUlHZRKp1ilZA/source)
- [Youtube Video Details Scraper](https://console.apify.com/actors/On4VfiWjGnT79clm1/source)
- [Youtube Transcript Ninja (Subtitles) ](https://console.apify.com/actors/eWrsJHhdeEbVHChpX/source)
- [Youtube Thumbnails Downloader & Scraper](https://console.apify.com/actors/YShot3wkL0HJdRkD0/source)
- [Youtube Tags or Hashtags Scraper](https://console.apify.com/actors/O1FU99ID2ccR5wcS8/source)
- [Youtube Tags Scraper](https://console.apify.com/actors/1wVokAhQLbbeeFVfR/source)
- [Youtube Shorts Scraper lite](https://console.apify.com/actors/bOyWDt1IbXZsadWRp/source)
- [Youtube Shorts Downloader Pro](https://console.apify.com/actors/bN1AjNRMops81rGkg/source)
- [Youtube Shorts Comments Scraper](https://console.apify.com/actors/ON1C4qgHaEQEhhEmI/source)
- [Youtube Community Posts Scraper](https://console.apify.com/actors/X38E51BParHFNaCw1/source)
- [Youtube Channel Id Scraper Pro](https://console.apify.com/actors/2uuIEovgGHcYjEKyN/source)
- [Youtube Video Transcript  Scraper ( Subtitles )](https://console.apify.com/actors/IEmSN6FkNn0tw10BA/source)
- [Youtube Video Comments Scraper](https://console.apify.com/actors/URh4zBT1aesfE8QKc/source)
- [Youtube Shorts Scraper  Pro](https://console.apify.com/actors/G4McyHJJzc2TbUSo6/source)
- [Youtube Shorts Scraper](https://console.apify.com/actors/XP0WgKweF1M83FnmR/source)
- [Youtube Channel Scraper](https://console.apify.com/actors/ufMZfwMgyHeaoDdAd/source)
- [YouTube Video Description Extractor](https://console.apify.com/actors/Xqae3CmxqT3HfHaJ5/source)
- [YouTube Hashtag Scraper](https://console.apify.com/actors/d4bYqQ0LWuczEgumx/source)
- [YouTube Description Scraper pro](https://console.apify.com/actors/OVymx0bku0C8gowB0/source)
- [YouTube Comments Scraper | Pay Per Result](https://console.apify.com/actors/ict6AecoJ85T4RthZ/source)
- [YouTube Channel ID Scraper](https://console.apify.com/actors/P9XlG8ylMGqfoelOg/source)

### Tiktok Iteams:

- [Tiktok Video Downloader](https://console.apify.com/actors/dlyQGIrqOracdqOeb/source)
- [Tiktok Video Details Scraper Pro](https://console.apify.com/actors/kZMMAHBehLOdG2FBb/source)
- [Tiktok Profile Scraper](https://console.apify.com/actors/C9mdCvPs7mDV8AYdd/source)
- [TikTok Video Scraper](https://console.apify.com/actors/7NjipRJbS73X9Io90/source)
- [TikTok Profile Videos Scraper](https://console.apify.com/actors/F6ar6Hu5STLp5mdAf/source)
- [TikTok Profile Scraper pro](https://console.apify.com/actors/3fmkMmoCBQ4SBIIAN/source)
- [TikTok Audio Downloader 🎵](https://console.apify.com/actors/jHipu7fQihSVhBE3x/source)

### Snapchat Iteams:

- [Snapchat Video Downloader (Spotlight )](https://console.apify.com/actors/yKz99HNmn4AgmhPOf/source)
- [Snapchat Video  Details Scraper (Spotlight)](https://console.apify.com/actors/fyV48EkRqcNoeq2kH/source)
- [Snapchat Followers Scraper](https://console.apify.com/actors/PxBiNYw0mgZOagGyD/source)
- [Snapchat Profile     Scraper](https://console.apify.com/actors/siCUsZdm6xmc3g7HF/source)
- [Snapchat Profile Scraper  Mini](https://console.apify.com/actors/qhkQO51Cv6iHJxdAs/source)

### Instagram Iteams:

- [Instagram video Downloader + Scraper](https://console.apify.com/actors/zIpixF6ZjlbelQDrY/source)
- [Instagram Video Downloader (Soundlss)](https://console.apify.com/actors/QQkJuhIQp4pexakls/source)
- [Instagram Thumbnail Scraper Video & Reels](https://console.apify.com/actors/z8JOosBY8hlqiUthl/source)
- [Instagram Reels  Downloader](https://console.apify.com/actors/VRbovYCWXTZXuVaN2/source)
- [Instagram Profile URL to Username Converter & Extractor](https://console.apify.com/actors/FOApkedA1VuG6ncno/source)
- [Instagram Profile Scraper](https://console.apify.com/actors/5dvorBkg7ccX95wAg/source)
- [Instagram Post Videos Downloader](https://console.apify.com/actors/h95ZexZ0ifOX4JEYQ/source)
- [Instagram Followers Scraper](https://console.apify.com/actors/c55pdH9mCE02sj7Dg/source)
- [Instagram Audio Downloader](https://console.apify.com/actors/MQRNuEHUqKreEi8gI/source)
- [Instagram Video Scraper + Downloader](https://console.apify.com/actors/63Z5eSy3IxgdIEYOX/source)
- [Instagram Video  scraper Advanced](https://console.apify.com/actors/79ng2nukXLzUn0aWg/source)
- [Instagram Video Details  scraper](https://console.apify.com/actors/VLyBXSwQpHTFwUcds/source)
- [Instagram Reels Details scraper](https://console.apify.com/actors/oGR3xfeXTuIirhdlZ/source)
- [Instagram Followers Scraper Pro](https://console.apify.com/actors/MqW3EtUZXm6OHdvcI/source)

### Facebook Iteams:

- [Facebook reels Downloader  (Separate audio or video)](https://console.apify.com/actors/nuvIRaMeRIzz3cfxK/source)
- [Facebook Video Downloader advanced](https://console.apify.com/actors/2SU8ZuABbAVFNKMZa/source)
- [Facebook Video Details Scraper Advanced](https://console.apify.com/actors/umYouAXm92472jIdY/source)
- [Facebook Video Details Scraper](https://console.apify.com/actors/cQi4k63arffL6Cn0m/source)
- [Facebook Transcript & Subtitle scraper](https://console.apify.com/actors/hMNe1QYDOtcTc95qI/source)
- [Facebook Thumbnail Downloader Video & Reels](https://console.apify.com/actors/9SmYiqGTUia29Yd1Y/source)
- [Facebook Reels Downloader Advanced](https://console.apify.com/actors/3Zdnp9TnvltdoC44T/source)
- [Facebook Reels Details Scraper  Best and  Affordable](https://console.apify.com/actors/nuzr418MKJltywrCh/source)
- [Facebook Reels Details Scraper](https://console.apify.com/actors/OGBA89e5Ki6Y5amko/source)
- [Facebook Page Details Scraper](https://console.apify.com/actors/PL9nP9BrKDSsKwSZF/source)
- [Facebook Audio Downloader](https://console.apify.com/actors/uVrcf4OJ9VW8iCybQ/source)

### Amazon Iteams:

- [Amazon Search Scraper](https://console.apify.com/actors/YcgJR1WP1cHJhHzvH/source)
- [Amazon Product Details Scraper ](https://console.apify.com/actors/1twpltijc10KFaVeb/source)

# Actor input Schema

## `startUrls` (type: `array`):

List of one or more YouTube video URLs

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
    },
    {
      "url": "https://youtu.be/9bZkp7q19f0"
    }
  ]
}
```

# 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 = {
    "startUrls": [
        {
            "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
        },
        {
            "url": "https://youtu.be/9bZkp7q19f0"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("alpha-scraper/my-actor-4").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 = { "startUrls": [
        { "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ" },
        { "url": "https://youtu.be/9bZkp7q19f0" },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("alpha-scraper/my-actor-4").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 '{
  "startUrls": [
    {
      "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
    },
    {
      "url": "https://youtu.be/9bZkp7q19f0"
    }
  ]
}' |
apify call alpha-scraper/my-actor-4 --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,alpha-scraper/my-actor-4"
        }
    }
}

```

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/O1FU99ID2ccR5wcS8/builds/Suo0edhJxiJdHG7Zv/openapi.json
