YouTube Hashtag Extractor
Pricing
from $3.99 / 1,000 results
YouTube Hashtag Extractor
Extract hashtags from YouTube videos automatically. Get organized hashtag data in both array and text formats for social media management and content analysis.
Pricing
from $3.99 / 1,000 results
Rating
0.0
(0)
Developer
Coding Frontned
Maintained by CommunityActor stats
0
Bookmarked
3
Total users
2
Monthly active users
a day ago
Last modified
Categories
Features
Share
Collect hashtags and available public details for individual YouTube videos. Supply video links, 11-character video IDs, or both. The actor does not search for videos or access private account data.
Run it
- In Apify Console, open Input and add at least one video link or ID.
- Set Maximum videos if you want to change the default limit.
- Start the run, then open Results for the saved video records. The separate Output summary shows whether the run completed fully.
Input
All inputs are optional in the schema, but you must provide at least one entry across videoUrls and videoIds. Each list accepts at most 200 entries. Unsupported fields and invalid values are rejected.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
videoUrls | Array of strings | No* | No value; the Apify form is prefilled with two video links | HTTPS links on youtube.com, www.youtube.com, m.youtube.com, music.youtube.com, or youtu.be. Supported routes are watch, Shorts, embed, and live videos. Put bare IDs in videoIds. |
videoIds | Array of strings | No* | No value | Bare 11-character YouTube video IDs using letters, numbers, _, or -. URLs are not accepted here. |
maxItems | Integer | No | 50 (range 1–200) | Maximum number of unique videos to process after duplicate IDs are removed. |
proxyConfiguration | Object | No | { "useApifyProxy": false } | Standard Apify proxy settings. Direct requests are used by default. |
* At least one of videoUrls or videoIds must contain an entry. The actor validates both lists, removes duplicate videos by native ID, keeps the first submitted form, and applies maxItems to the remaining unique videos. URL entries are considered before ID entries.
Watch links require one v parameter. Optional link parameters are limited to t, si, feature, utm_source, hl, and gl, with no repeated or unknown parameters. Links with credentials, explicit ports, fragments, or unsupported routes are rejected.
You can use standard proxy settings when needed:
| Proxy setting | Type | Default | Description |
|---|---|---|---|
useApifyProxy | Boolean | false | Set to true to route requests through Apify Proxy. |
apifyProxyGroups | Array of strings | Not set | Up to 10 managed proxy group names; these require useApifyProxy: true. |
apifyProxyCountry | Two-letter country code | Not set | Optional managed-proxy country; this requires useApifyProxy: true. |
proxyUrls | Array of strings | Not set | Up to 25 custom HTTP or HTTPS proxy origins (each at most 2,048 characters, without a path, query, or fragment). Custom proxies cannot be combined with Apify Proxy groups or country settings. |
The proxy editor accepts standard Apify proxy options. Proxy usage may incur charges under your Apify account. Keep any credentials in custom proxy URLs private.
Example input:
{"videoUrls": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"],"maxItems": 1}
Results
The dataset is a JSON array with one object per video the actor successfully processes. Each record contains the video ID, canonical watch URL, title, a hashtag array, and its hashtag count. A video with no hashtags is still a valid result: hashtags is [] and hashtagCount is 0. Other fields appear only when YouTube publishes usable values for them.
The actor reads public watch-page data. It does not sign in, and it does not access private analytics or comments. Video availability, regional restrictions, and changes to public page data can affect which fields are available.
Dataset example
[{"videoId": "jNQXAC9IVRw","url": "https://www.youtube.com/watch?v=jNQXAC9IVRw","title": "Me at the zoo","description": "Microplastics are accumulating in human brains at an alarming rate\nhttps://www.youtube.com/watch?v=0PT5c1z3LL8\n\n“Nanoplastics and Human Health” with Matthew J Campen, PhD, MSPH\nhttps://www.youtube.com/watch?v=RRBN_4L09Mg\n\n00:00 Intro\n00:05 The cool thing\n00:17 End","thumbnail": "https://i.ytimg.com/vi/jNQXAC9IVRw/hqdefault.jpg?sqp=-oaymwE9CNACELwBSFryq4qpAy8IARUAAAAAGAElAADIQj0AgKJDeAHwAQH4Ab4CgALwAYoCDAgAEAEYVSBZKGUwDw==&rs=AOn4CLBPARomE9JM9xE0EoyWO64qj4coxw","hashtags": [],"hashtagCount": 0,"videoTags": ["me at the zoo","jawed karim","first youtube video"],"thumbnails": [{"url": "https://i.ytimg.com/vi/jNQXAC9IVRw/hqdefault.jpg?sqp=-oaymwE8CKgBEF5IWvKriqkDLwgBFQAAAAAYASUAAMhCPQCAokN4AfABAfgBvgKAAvABigIMCAAQARhVIFkoZTAP&rs=AOn4CLAURrefIOEjlywjb_uwXLQWr2rVvw","width": 168,"height": 94},{"url": "https://i.ytimg.com/vi/jNQXAC9IVRw/hqdefault.jpg?sqp=-oaymwE8CMQBEG5IWvKriqkDLwgBFQAAAAAYASUAAMhCPQCAokN4AfABAfgBvgKAAvABigIMCAAQARhVIFkoZTAP&rs=AOn4CLAIpSoarkeRFlRMHP_JQqQNlcCopg","width": 196,"height": 110},{"url": "https://i.ytimg.com/vi/jNQXAC9IVRw/hqdefault.jpg?sqp=-oaymwE9CPYBEIoBSFryq4qpAy8IARUAAAAAGAElAADIQj0AgKJDeAHwAQH4Ab4CgALwAYoCDAgAEAEYVSBZKGUwDw==&rs=AOn4CLBEFNva7_mzA4UnDXd5N6iBggPhKA","width": 246,"height": 138},{"url": "https://i.ytimg.com/vi/jNQXAC9IVRw/hqdefault.jpg?sqp=-oaymwE9CNACELwBSFryq4qpAy8IARUAAAAAGAElAADIQj0AgKJDeAHwAQH4Ab4CgALwAYoCDAgAEAEYVSBZKGUwDw==&rs=AOn4CLBPARomE9JM9xE0EoyWO64qj4coxw","width": 336,"height": 188},{"url": "https://i.ytimg.com/vi/jNQXAC9IVRw/hqdefault.jpg?sqp=-oaymwEmCOADEOgC8quKqQMa8AEB-AG-AoAC8AGKAgwIABABGFUgWShlMA8=&rs=AOn4CLA9eLBatYv9WbkD4BbZ2Im-biSPTw"}],"channel": {"id": "UC4QobU6STFB0P71PMvOGN5A","name": "jawed","url": "https://www.youtube.com/@jawed","subscriberCountText": "6.67M subscribers","isVerified": true},"statistics": {"viewCount": 442257947,"likeCount": 20041353,"durationSeconds": 19},"metadata": {"category": "Film & Animation","publishedDate": "2005-04-23T20:31:52-07:00","uploadDate": "2005-04-23T20:31:52-07:00","isFamilySafe": true,"isLiveContent": false,"isUnlisted": false,"isPrivate": false},"chapters": [{"title": "Intro","startTimeSeconds": 0},{"title": "The cool thing","startTimeSeconds": 5},{"title": "End","startTimeSeconds": 17}]}]
This complete record was saved by a live run of this actor. Counts and descriptions can change; optional fields are included only when the video page publishes them. This video has no hashtags, so its empty hashtag array is a valid result.
Dataset fields
| Field | Type | Required | Description |
|---|---|---|---|
videoId | String | Yes | YouTube's 11-character video ID. |
url | HTTPS URL | Yes | Canonical YouTube watch URL for the video. |
title | String | Yes | Video title published by YouTube. |
description | String | No | Public description, when available. |
thumbnail | HTTPS URL | No | Primary video thumbnail URL. |
thumbnails | Array of objects | No | Source-published thumbnails and dimensions. |
thumbnails[].url | HTTPS URL | Yes per item | URL for this thumbnail. |
thumbnails[].width | Integer | No | Thumbnail width in pixels. |
thumbnails[].height | Integer | No | Thumbnail height in pixels. |
hashtags | Array of strings | Yes | Unique hashtags collected from linked title hashtags, title, and description. This may be empty. |
hashtagsText | String | No | The hashtags joined with spaces, when at least one is present. |
hashtagCount | Nonnegative integer | Yes | Number of entries in hashtags, including a valid value of 0. |
videoTags | Array of strings | No | Public video keywords returned in source data. |
chapters | Array of objects | No | Chapter titles and start times published for the video. |
chapters[].title | String | Yes per item | Chapter title. |
chapters[].startTimeSeconds | Nonnegative integer | Yes per item | Chapter start time in seconds. |
chapters[].endTimeSeconds | Nonnegative integer | No | Chapter end time in seconds, only when explicitly published. |
channel | Object | No | Available channel details. Nested values are optional. |
channel.id | String | No | YouTube channel ID. |
channel.name | String | No | Channel name. |
channel.url | HTTPS URL | No | Public YouTube channel URL. |
channel.subscriberCount | Nonnegative integer | No | Exact subscriber count when published as a number. |
channel.subscriberCountText | String | No | Subscriber count as displayed on the page. |
channel.isVerified | Boolean | No | Whether YouTube shows a verified-channel badge. |
statistics | Object | No | Exact numeric video statistics when available. Nested values are optional. |
statistics.viewCount | Nonnegative integer | No | Video view count. |
statistics.likeCount | Nonnegative integer | No | Video like count. |
statistics.commentCount | Nonnegative integer | No | Video comment count when available. |
statistics.durationSeconds | Nonnegative integer | No | Video duration in seconds. |
metadata | Object | No | Additional public video details. Nested values are optional. |
metadata.category | String | No | YouTube video category. |
metadata.publishedDate | String | No | Published date or timestamp as supplied by YouTube. |
metadata.uploadDate | String | No | Upload date or timestamp as supplied by YouTube. |
metadata.language | String | No | Source-published language code. |
metadata.isFamilySafe | Boolean | No | Whether YouTube marks the video as family-safe. |
metadata.isLiveContent | Boolean | No | Whether YouTube marks the video as live content. |
metadata.isUnlisted | Boolean | No | Whether YouTube explicitly marks the video as unlisted. |
metadata.isPrivate | Boolean | No | Whether YouTube explicitly marks the video as private. |
Output summary
The separate OUTPUT_SUMMARY record is stored in the run's default key-value store. It contains exactly these three fields:
{"status": "SUCCEEDED","itemsStored": 2,"isPartial": false}
This summary comes from the same live run, which saved two requested videos.
| Field | Type | Description |
|---|---|---|
status | String | SUCCEEDED when one or more valid video records were saved; otherwise FAILED. |
itemsStored | Nonnegative integer | Number of dataset records whose writes were acknowledged. |
isPartial | Boolean | true when the run saved at least one record but could not process every requested video. With no saved records, this is false. |
Reaching maxItems is an intentional limit and does not by itself make a run partial. Check the run log for collection failures.
Costs and support
Apify charges depend on your account plan and the resources used by each run. Optional proxy use may have separate charges. Check current billing details in Apify Console. For account or run-specific help, use the support link shown for this actor in Apify Store.