YouTube Hashtag Extractor avatar

YouTube Hashtag Extractor

Pricing

from $3.99 / 1,000 results

Go to Apify Store
YouTube Hashtag Extractor

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

Coding Frontned

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

2

Monthly active users

a day ago

Last modified

Features

Limited permissions

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

  1. In Apify Console, open Input and add at least one video link or ID.
  2. Set Maximum videos if you want to change the default limit.
  3. 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.

FieldTypeRequiredDefaultDescription
videoUrlsArray of stringsNo*No value; the Apify form is prefilled with two video linksHTTPS 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.
videoIdsArray of stringsNo*No valueBare 11-character YouTube video IDs using letters, numbers, _, or -. URLs are not accepted here.
maxItemsIntegerNo50 (range 1–200)Maximum number of unique videos to process after duplicate IDs are removed.
proxyConfigurationObjectNo{ "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 settingTypeDefaultDescription
useApifyProxyBooleanfalseSet to true to route requests through Apify Proxy.
apifyProxyGroupsArray of stringsNot setUp to 10 managed proxy group names; these require useApifyProxy: true.
apifyProxyCountryTwo-letter country codeNot setOptional managed-proxy country; this requires useApifyProxy: true.
proxyUrlsArray of stringsNot setUp 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

FieldTypeRequiredDescription
videoIdStringYesYouTube's 11-character video ID.
urlHTTPS URLYesCanonical YouTube watch URL for the video.
titleStringYesVideo title published by YouTube.
descriptionStringNoPublic description, when available.
thumbnailHTTPS URLNoPrimary video thumbnail URL.
thumbnailsArray of objectsNoSource-published thumbnails and dimensions.
thumbnails[].urlHTTPS URLYes per itemURL for this thumbnail.
thumbnails[].widthIntegerNoThumbnail width in pixels.
thumbnails[].heightIntegerNoThumbnail height in pixels.
hashtagsArray of stringsYesUnique hashtags collected from linked title hashtags, title, and description. This may be empty.
hashtagsTextStringNoThe hashtags joined with spaces, when at least one is present.
hashtagCountNonnegative integerYesNumber of entries in hashtags, including a valid value of 0.
videoTagsArray of stringsNoPublic video keywords returned in source data.
chaptersArray of objectsNoChapter titles and start times published for the video.
chapters[].titleStringYes per itemChapter title.
chapters[].startTimeSecondsNonnegative integerYes per itemChapter start time in seconds.
chapters[].endTimeSecondsNonnegative integerNoChapter end time in seconds, only when explicitly published.
channelObjectNoAvailable channel details. Nested values are optional.
channel.idStringNoYouTube channel ID.
channel.nameStringNoChannel name.
channel.urlHTTPS URLNoPublic YouTube channel URL.
channel.subscriberCountNonnegative integerNoExact subscriber count when published as a number.
channel.subscriberCountTextStringNoSubscriber count as displayed on the page.
channel.isVerifiedBooleanNoWhether YouTube shows a verified-channel badge.
statisticsObjectNoExact numeric video statistics when available. Nested values are optional.
statistics.viewCountNonnegative integerNoVideo view count.
statistics.likeCountNonnegative integerNoVideo like count.
statistics.commentCountNonnegative integerNoVideo comment count when available.
statistics.durationSecondsNonnegative integerNoVideo duration in seconds.
metadataObjectNoAdditional public video details. Nested values are optional.
metadata.categoryStringNoYouTube video category.
metadata.publishedDateStringNoPublished date or timestamp as supplied by YouTube.
metadata.uploadDateStringNoUpload date or timestamp as supplied by YouTube.
metadata.languageStringNoSource-published language code.
metadata.isFamilySafeBooleanNoWhether YouTube marks the video as family-safe.
metadata.isLiveContentBooleanNoWhether YouTube marks the video as live content.
metadata.isUnlistedBooleanNoWhether YouTube explicitly marks the video as unlisted.
metadata.isPrivateBooleanNoWhether 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.

FieldTypeDescription
statusStringSUCCEEDED when one or more valid video records were saved; otherwise FAILED.
itemsStoredNonnegative integerNumber of dataset records whose writes were acknowledged.
isPartialBooleantrue 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.