YouTube Hashtag Extractor avatar

YouTube Hashtag Extractor

Pricing

from $2.99 / 1,000 hashtags

Go to Apify Store
YouTube Hashtag Extractor

YouTube Hashtag Extractor

Extract deduplicated hashtags and supporting metadata from validated YouTube video URLs and IDs.

Pricing

from $2.99 / 1,000 hashtags

Rating

0.0

(0)

Developer

w3crawler

w3crawler

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Categories

Features

Limited permissions

Share

Extract the hashtags written in a public YouTube video's description, together with the video's embedded metadata, channel details, thumbnail set, duration, and view statistics. Supply watch, Shorts, embed, or live URLs (or bare 11-character IDs); the Actor reads the public watch page, extracts hashtags from the description only, and keeps YouTube keyword tags in a separate videoTags field.

Get started

  1. Open the Actor Store page and select Try for free or open the Input tab.
  2. Add at least one URL or ID to videoUrls or videoIds. Watch, Shorts, embed, live, and youtu.be links are accepted.
  3. Keep maxItems small for the first run. The default is 50; the hard limit is 200.
  4. Start the Actor, open the dataset, and export the saved records as JSON, CSV, or Excel. Open Run summary (OUTPUT) to check the outcome and request counts.

Input

At least one value in videoUrls or videoIds is required at runtime, even though the schema marks every property optional. All other fields have defaults. Invalid or unsupported URLs and out-of-range values are rejected before any request starts.

FieldTypeRequired?DefaultMeaning
videoUrlsstring arrayOptionalPrefilled with ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"]YouTube watch, Shorts, embed, live, or youtu.be URLs, or bare 11-character IDs. Up to 200 items.
videoIdsstring arrayOptionalNot suppliedAdditional bare 11-character IDs. Deduplicated with videoUrls. Up to 200 items.
maxItemsintegerOptional50Maximum unique videos processed after deduplication, from 1 to 200.
enableProxyFallbackbooleanOptionaltrueTry the fallback route after direct access fails. The fallback needs a usable proxy configuration.
maxRetriesintegerOptional2Retry attempts per route after a failed watch-page request, from 0 to 3.
requestDelayMsintegerOptional250Delay between videos, from 0 to 5,000 ms.
requestTimeoutSecsintegerOptional60Timeout for one watch-page request, from 15 to 180 seconds.
proxyConfigurationobjectOptionalPrefilled with {"useApifyProxy": false}Standard Apify Proxy configuration. Proxy URLs must be credential-free.

Example input using the prefilled URL and the schema defaults:

{
"videoUrls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"],
"maxItems": 50,
"enableProxyFallback": true,
"maxRetries": 2,
"requestDelayMs": 250,
"requestTimeoutSecs": 60,
"proxyConfiguration": {
"useApifyProxy": false
}
}

The runtime also accepts includeDiagnostics (boolean, default true), which is recorded in OUTPUT but is not exposed in the Console input schema.

The Actor requests public watch pages over HTTPS. It does not use the YouTube Data API, a signed-in session, or browser fingerprints. URLs are normalized to https://www.youtube.com/watch?v=<id>; duplicate IDs keep the first supplied URL as originalUrl.

Output

The dataset contains one row per video whose public watch page exposed embedded metadata. Missing optional values are omitted rather than guessed, and no diagnostic or placeholder rows are written.

FieldTypeAvailabilityMeaning
recordTypestringAlwaysRecord type; always youtube_video_hashtag.
videoIdstringAlways11-character YouTube video ID parsed from the supplied URL or ID.
urlstringAlwaysCanonical HTTPS watch URL built from the video ID.
originalUrlstringAlwaysTarget exactly as supplied, before normalization.
sourceUrlstringAlwaysPublic watch-page URL requested for the video.
titlestringWhen the page exposes itVideo title from the embedded player data.
descriptionstringWhen the video has a descriptionFull public description text.
descriptionLengthintegerWhen the video has a descriptionLength of description in JavaScript string units (UTF-16 code units).
thumbnailstringWhen thumbnails existLargest thumbnail URL in the set.
thumbnailsobject arrayWhen thumbnails existUp to 16 thumbnail objects with url, width, and height.
thumbnailCountintegerAlwaysNumber of entries in thumbnails; 0 when the page exposes no thumbnails.
hashtagsstring arrayWhen the description contains hashtagsUnique hashtags found in the description, in first-seen order and original case.
hashtagsTextstringWhen the description contains hashtagsSpace-joined hashtag string.
hashtagCountintegerAlwaysNumber of unique description hashtags; 0 when none were found.
videoTagsstring arrayWhen the page exposes keywordsUp to 100 YouTube keyword tags. These are not description hashtags.
channelobjectWhen owner data is availableChannel id, name, url, and subscriberCountText when each is present.
statisticsobjectWhen statistics are availableviewCount, likeCount when the page shows a like count, and durationSeconds.
metadataobjectWhen microformat data is availablecategory, publishedDate, uploadDate, isFamilySafe, and isLiveContent when present.
durationTextstringWhen duration is availableDuration formatted as M:SS or H:MM:SS.
durationSecondsintegerWhen duration is availableDuration in seconds from the embedded player data.
isLivebooleanAlwaysWhether the video is marked live or live content; false when no live signal is present.
isShortbooleanAlwaystrue when the duration is 60 seconds or less; false also covers an unknown duration. Duration-based, not URL-based.
publicMetadataAvailablebooleanAlwaysAlways true for saved rows.
metadataSourcestringAlwaysAlways youtube-public-watch-page-embedded-data.
extractionMethodstringAlwaysAlways youtube-public-watch-page-embedded-player-and-initial-data.
sourceTypestringAlwaysAlways youtube-watch-page.
sourcestringAlwaysAlways youtube-public-watch-page.
scrapedAtstringAlwaysTime the row was saved, in ISO UTC.

hashtags and videoTags are different signals: hashtags are parsed only from description, while videoTags are the keywords YouTube stores for the upload. likeCount and some metadata subfields are often absent because the public page does not render them.

The example below is a real saved row from the 2026-10-25 run. The description, thumbnail list, and video-tag list are shortened for readability; every other field is complete.

{
"recordType": "youtube_video_hashtag",
"videoId": "dQw4w9WgXcQ",
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"originalUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"sourceUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)",
"description": "The official video for “Never Gonna Give You Up” by Rick Astley. Never: The Autobiography 📚 OUT NOW! Follow this link to get your copy and listen to Rick’s ‘Never’ playlist ❤️ #RickAstleyNever https://linktr.ee/rickastleynever “Never Gonna Give You Up” was a global smash on its release in July 1987, topping the charts in 25 countries including Rick’s native UK and the US Billboard Hot 100. It als…",
"descriptionLength": 2350,
"thumbnail": "https://i.ytimg.com/vi_webp/dQw4w9WgXcQ/maxresdefault.webp",
"thumbnails": [
{
"url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLDd2KtelLHaNSXrI9_5K-NvTscKNw",
"width": 168,
"height": 94
},
{
"url": "https://i.ytimg.com/vi_webp/dQw4w9WgXcQ/maxresdefault.webp",
"width": 1920,
"height": 1080
}
],
"thumbnailCount": 5,
"hashtags": [
"#RickAstleyNever",
"#RickAstley",
"#NeverGonnaGiveYouUp",
"#WheneverYouNeedSomebody",
"#OfficialMusicVideo"
],
"hashtagsText": "#RickAstleyNever #RickAstley #NeverGonnaGiveYouUp #WheneverYouNeedSomebody #OfficialMusicVideo",
"hashtagCount": 5,
"videoTags": [
"rick astley",
"Never Gonna Give You Up",
"nggyu"
],
"channel": {
"id": "UCuAXFkgsw1L7xaCfnd5JJOw",
"name": "Rick Astley",
"url": "https://www.youtube.com/channel/UCuAXFkgsw1L7xaCfnd5JJOw",
"subscriberCountText": "4.55M subscribers"
},
"statistics": {
"viewCount": 1830487421,
"durationSeconds": 213
},
"metadata": {
"category": "Music",
"publishedDate": "2009-10-24T23:57:33-07:00",
"uploadDate": "2009-10-24T23:57:33-07:00",
"isFamilySafe": true,
"isLiveContent": false
},
"durationText": "3:33",
"durationSeconds": 213,
"isLive": false,
"isShort": false,
"publicMetadataAvailable": true,
"metadataSource": "youtube-public-watch-page-embedded-data",
"extractionMethod": "youtube-public-watch-page-embedded-player-and-initial-data",
"sourceType": "youtube-watch-page",
"source": "youtube-public-watch-page",
"scrapedAt": "2026-10-25T20:49:33.085Z"
}

Run summary

Run summary is stored separately from the dataset in the run's key-value store under OUTPUT.

FieldMeaning
runTypeRun type; always youtube-public-video-hashtag-extraction-run.
statusActor process outcome: SUCCEEDED or FAILED.
dataStatusDataset completeness: COMPLETE, PARTIAL, NO_RESULTS, or FAILED.
dataAvailableWhether at least one video row was saved.
requestedVideoCountUnique targets remaining after deduplication and the maxItems cap.
processedVideoCountVideos attempted, whether or not a row was saved.
itemCountVideo rows saved to the dataset.
requestCountWatch-page requests started; retries made inside a request are not counted separately.
diagnosticCountDistinct operational issues recorded for the run.
failedCountVideos that failed plus a fatal input or runtime failure, if any.
blockedCountFailed videos or runs whose error matched an access-block signal.
proxyRequestedWhether proxy use was requested explicitly or through fallback.
proxyConfiguredWhether at least one proxy URL was obtained during the run.
includeDiagnosticsWhether diagnostics were recorded; default true.
enableProxyFallbackWhether the proxy fallback flag was enabled.
maxItemsEffective unique-video cap, from 1 to 200.
maxRetriesRetries per route, from 0 to 3.
requestDelayMsDelay between videos, from 0 to 5,000 ms.
requestTimeoutSecsPer-request timeout, from 15 to 180 seconds.
durationMsElapsed run time in milliseconds.
finishedAtTime the summary was written, in ISO UTC.
runStatusCanonical run status; matches status.
StatusData statusMeaning
SUCCEEDEDCOMPLETEAt least one row was saved and no video failed.
SUCCEEDEDPARTIALRows were saved, but at least one video failed. Saved rows remain available.
SUCCEEDEDNO_RESULTSNo row was saved and no failure was recorded. Input validation normally prevents this state.
FAILEDFAILEDNo row was saved and at least one request or the input failed.

Example OUTPUT from the 2026-10-25 run:

{
"runType": "youtube-public-video-hashtag-extraction-run",
"status": "SUCCEEDED",
"dataStatus": "COMPLETE",
"dataAvailable": true,
"requestedVideoCount": 1,
"processedVideoCount": 1,
"itemCount": 1,
"requestCount": 1,
"diagnosticCount": 0,
"failedCount": 0,
"blockedCount": 0,
"proxyRequested": false,
"proxyConfigured": false,
"includeDiagnostics": true,
"enableProxyFallback": false,
"maxItems": 1,
"maxRetries": 2,
"requestDelayMs": 0,
"requestTimeoutSecs": 60,
"durationMs": 1485,
"finishedAt": "2026-10-25T20:49:33.164Z",
"runStatus": "SUCCEEDED"
}

Coverage and limitations

The Actor reads only public YouTube watch pages. It does not scrape hashtag result pages, channel pages, comments, or transcripts, and it cannot recover a video whose page withholds embedded metadata or returns an access block. Hashtags are taken from the description text only; a hashtag used in the title, keywords, or thumbnail is not added to hashtags. videoTags is a separate keyword list and may contain terms that never appear as hashtags.

Shorts, embed, and live URLs are normalized to watch pages, so the output does not preserve which URL form was supplied beyond originalUrl. isShort is inferred from a duration of 60 seconds or less and can be wrong for a long-form video that is short, or a Short longer than 60 seconds. Counts, like visibility, channel subscriber text, and metadata subfields are point-in-time values that YouTube can change or omit.

A failed video does not create a dataset row; failures are counted in OUTPUT and summarized in the log. If at least one row was saved, the run remains successful with dataStatus: "PARTIAL". Input validation failures happen before requests and produce no rows.

Usage and support

Cost depends on Apify compute, the number of watch-page requests, and any proxy use. Each video needs one request plus retries when it fails. Start with a small maxItems, inspect the dataset and OUTPUT, then scale. See the Actor's Pricing tab for current account rates.

Use the Actor Issues page to report a problem. Include the run ID, the input used, and the OUTPUT summary; do not include tokens, cookies, or private data. This Actor is not affiliated with, endorsed by, or sponsored by YouTube or Google. Use it only for public data and in accordance with the source's terms, robots guidance, and applicable law. Public pages can contain personal information; use the output only for lawful purposes.