YouTube Hashtag Video & Shorts Scraper
Pricing
from $2.99 / 1,000 hashtag videos & shorts
YouTube Hashtag Video & Shorts Scraper
Collect current YouTube hashtag videos and Shorts through YouTube browse continuations, with source-provided metadata.
Pricing
from $2.99 / 1,000 hashtag videos & shorts
Rating
0.0
(0)
Developer
w3crawler
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
Features
Share
Collect public video and Shorts cards from YouTube search results for one or more hashtags. The Actor searches the ordinary public results page with #hashtag, reads the embedded initial data on the first page, and saves one row per unique video ID per hashtag with title, channel, views, publish age, duration, thumbnails, and badges. It does not open hashtag landing pages, individual videos, continuation endpoints, or a signed-in client.
Get started
- Open the Actor Store page and select Try for free or open the Input tab.
- Enter one to 50 hashtags in
hashtags; a leading#is optional. - Set
maxItemsfor the per-hashtag row cap and choose alocaleif you need a specific public result context. - Start the Actor, open the dataset, and export the rows as JSON, CSV, or Excel. Open Run summary (
OUTPUT) to check page, item, and failure counts.
Input
hashtags is required; all other fields are optional. Unsupported field names and out-of-range values are rejected before requests start.
| Field | Type | Required? | Default | Meaning |
|---|---|---|---|---|
hashtags | string array | Required | Prefilled with ["travel"] | One to 50 hashtags using letters, numbers, underscores, or hyphens. A leading # is stripped; duplicates are removed case-insensitively. |
maxItems | integer | Optional | 20 | Maximum unique video or Short rows per hashtag, from 1 to 200. |
locale | string | Optional | en-US | Public page language-country locale such as en-US or de-DE. A language-only value uses US as the country. |
enableProxyFallback | boolean | Optional | true | Try a configured proxy route after direct access fails. The fallback needs a usable proxy configuration. |
requestDelayMs | integer | Optional | 250 | Delay between hashtag requests, from 0 to 5,000 ms. |
requestTimeoutSecs | integer | Optional | 60 | Timeout for one public search page request, from 15 to 180 seconds. |
proxyConfiguration | object | Optional | Prefilled with {"useApifyProxy": false} | Standard Apify Proxy configuration. Proxy URLs must be credential-free. |
Example input using the saved run's settings:
{"hashtags": ["travel"],"maxItems": 5,"locale": "en-US","enableProxyFallback": false,"requestDelayMs": 0,"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.
Each hashtag is requested once from https://www.youtube.com/results with search_query=#<hashtag>, the video result filter, and hl/gl derived from locale. hashtagUrl is a constructed landing-page URL; that landing page is not fetched.
Output
The dataset contains one row per unique video ID per hashtag, up to maxItems per hashtag. Missing optional metadata is omitted rather than inferred, and no diagnostic or placeholder rows are written.
| Field | Type | Availability | Meaning |
|---|---|---|---|
recordType | string | Always | Record type; always youtube_hashtag_video_short. |
hashtag | string | Always | Hashtag without #, preserving the input letter case. |
hashtagNormalized | string | Always | Lowercase hashtag without #. |
rank | integer | Always | One-based position among unique saved rows for this hashtag, following search page order. |
type | string | Always | video or short. |
videoId | string | Always | 11-character YouTube video ID. |
title | string | Always | Video title from the search card. |
description | string | When the card includes a snippet | Short result description. |
descriptionLength | integer | When a description exists | Length of description in JavaScript string units (UTF-16 code units). |
accessibilityText | string | When exposed | Accessibility label for the card or title. |
url | string | Always | Shorts URL for a Short, otherwise the watch URL. |
watchUrl | string | Always | Canonical https://www.youtube.com/watch?v=<id> URL for either type. |
shortsUrl | string | When type is short | Shorts URL. |
thumbnailUrl | string | When thumbnails exist | Largest thumbnail URL. |
thumbnails | object array | When thumbnails exist | Up to 16 thumbnail objects with url, width, and height. |
thumbnailCount | integer | Always | Number of thumbnail entries; 0 when none were exposed. |
viewCountText | string | When exposed | View count as displayed, such as 750,050 views. |
viewCount | integer | When the displayed count parses | Numeric view count; rounded when the text uses K/M/B. |
duration | string | When exposed | Duration as displayed, such as 21:27. |
durationSeconds | integer | When duration parses | Duration converted to seconds. |
channelName | string | When the card exposes a channel | Channel display name. |
channelId | string | When the card exposes a channel | Channel ID. |
channelUrl | string | When the card exposes a channel | Public channel or handle URL. |
channelProfileUrl | string | When the card exposes a channel | Same value as channelUrl in saved video rows. |
verified | boolean | When badges are exposed | Whether a badge matched verified, official artist, or music. |
isVerified | boolean | When badges are exposed | Same value as verified. |
badges | string array | When badges are exposed | Up to 20 badge labels such as 4K. |
publishedTimeText | string | When exposed | Relative publish text, such as 2mo ago. |
metadataLines | string array | When metadata is exposed | Displayed view and publish lines from a video card. |
isShort | boolean | Always | Whether the row is classified as a Short. |
isLive | boolean | Always | Whether the card carries a live label. Shorts and lockup cards default to false. |
isUpcoming | boolean | Always | Whether the card exposes an upcoming-event field. |
query | string | Always | Search query; # plus the hashtag. |
page | integer | Always | Search page number; always 1. |
resultSource | string | Always | Embedded data shape that produced the row: ytInitialData.videoRenderer, ytInitialData.lockupViewModel, or ytInitialData.shortsLockupViewModel. |
hashtagUrl | string | Always | Constructed https://www.youtube.com/hashtag/<tag> URL. |
sourceUrl | string | Always | Exact public search URL requested. |
locale | string | Always | Normalized locale used for the run. |
languageCode | string | Always | Language portion of locale. |
countryCode | string | Always | Country portion of locale; US when no region was supplied. |
requestedMaxItems | integer | Always | The maxItems value used for this run. |
paginationMethod | string | Always | Always public-search-page-query. |
metadataEnriched | boolean | Always | Always true. |
metadataSource | string | Always | Always youtube-public-search-page. |
extractionMethod | string | Always | Always youtube-public-search-page-embedded-initial-data. |
sourceType | string | Always | Always youtube-hashtag-search. |
source | string | Always | Always youtube-public-hashtag-search. |
scrapedAt | string | Always | Time the row was saved, in ISO UTC. |
rank is assigned after duplicate video IDs are removed for that hashtag, so gaps in the raw card order can appear. viewCount and durationSeconds are derived from displayed text and may be rounded or absent when parsing fails.
The example below is a real saved row from the 2026-10-25 run.
{"recordType": "youtube_hashtag_video_short","hashtag": "travel","hashtagNormalized": "travel","rank": 1,"type": "video","videoId": "btYXsKGUhrQ","title": "We Travelled Europe for 9 Months | These Are the 7 Places We'd Go Back To","accessibilityText": "We Travelled Europe for 9 Months | These Are the 7 Places We'd Go Back To 21 minutes","url": "https://www.youtube.com/watch?v=btYXsKGUhrQ","watchUrl": "https://www.youtube.com/watch?v=btYXsKGUhrQ","thumbnailUrl": "https://i.ytimg.com/vi/btYXsKGUhrQ/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBqLzl_8DDgjj18fTBhjg6gQg4KgB&rs=AOn4CLDWlG1I9L4uG3WfkbeCTFp5Tk33Gg&usqp=CBU","thumbnails": [{"url": "https://i.ytimg.com/vi/btYXsKGUhrQ/hq720.jpg?sqp=-oaymwEcCOgCEMoBSFXyq4qpAw4IARUAAIhCGAFwAcABBqLzl_8DDgjj18fTBhjg6gQg4KgB&rs=AOn4CLDllAg4ZwG90tW1WpWLkGFERGvUtw&usqp=CBU","width": 360,"height": 202},{"url": "https://i.ytimg.com/vi/btYXsKGUhrQ/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBqLzl_8DDgjj18fTBhjg6gQg4KgB&rs=AOn4CLDWlG1I9L4uG3WfkbeCTFp5Tk33Gg&usqp=CBU","width": 720,"height": 404}],"thumbnailCount": 2,"viewCountText": "750,050 views","viewCount": 750050,"duration": "21:27","durationSeconds": 1287,"channelName": "Fit Nomads","channelId": "UC0D8hqVmVCBlftYTr_T6QTQ","channelUrl": "https://www.youtube.com/@fitnomads","channelProfileUrl": "https://www.youtube.com/@fitnomads","verified": false,"isVerified": false,"badges": ["4K"],"publishedTimeText": "2mo ago","metadataLines": ["750,050 views","2mo ago"],"isShort": false,"isLive": false,"isUpcoming": false,"query": "#travel","page": 1,"resultSource": "ytInitialData.videoRenderer","hashtagUrl": "https://www.youtube.com/hashtag/travel","sourceUrl": "https://www.youtube.com/results?search_query=%23travel&hl=en&gl=US&sp=EgIQAQ%3D%3D","locale": "en-US","languageCode": "en","countryCode": "US","requestedMaxItems": 5,"paginationMethod": "public-search-page-query","metadataEnriched": true,"metadataSource": "youtube-public-search-page","extractionMethod": "youtube-public-search-page-embedded-initial-data","sourceType": "youtube-hashtag-search","source": "youtube-public-hashtag-search","scrapedAt": "2026-10-25T20:58:48.295Z"}
Run summary
Run summary is stored separately from the dataset in the run's key-value store under OUTPUT.
| Field | Meaning |
|---|---|
runType | Run type; always youtube-public-hashtag-search-run. |
status | Actor process outcome: SUCCEEDED or FAILED. |
dataStatus | Dataset completeness: COMPLETE, PARTIAL, NO_RESULTS, or FAILED. |
dataAvailable | Whether at least one video row was saved. |
hashtags | Cleaned hashtags used for the run, without #. |
locale | Normalized locale used for the run. |
maxItemsPerHashtag | Per-hashtag unique-row cap. |
hashtagsProcessed | Hashtags attempted, including those whose page failed. |
pagesFetched | Search pages fetched successfully. |
pagesWithResults | Search pages that produced at least one saved row. |
itemCount | Video and Short rows saved to the dataset. |
diagnosticCount | Distinct operational issues recorded. |
failedCount | Failed hashtag requests plus a fatal input or runtime failure, if any. |
blockedCount | Failures whose error matched an access-block signal. |
proxyRequested | Whether proxy use was requested explicitly or through fallback. |
proxyConfigured | Whether at least one proxy URL was obtained during the run. |
includeDiagnostics | Whether diagnostics were recorded; default true. |
enableProxyFallback | Whether the proxy fallback flag was enabled. |
requestDelayMs | Delay between hashtags, from 0 to 5,000 ms. |
requestTimeoutSecs | Per-request timeout, from 15 to 180 seconds. |
paginationMethod | Always public-search-page-query. |
durationMs | Elapsed run time in milliseconds. |
finishedAt | Time the summary was written, in ISO UTC. |
runStatus | Canonical run status; matches status. |
| Status | Data status | Meaning |
|---|---|---|
SUCCEEDED | COMPLETE | Rows were saved and no hashtag request failed. |
SUCCEEDED | PARTIAL | Rows were saved, but at least one hashtag request failed. Saved rows remain available. |
SUCCEEDED | NO_RESULTS | No row was saved and no failure was recorded. |
FAILED | FAILED | No row was saved and at least one request or the input failed. |
Example OUTPUT from the 2026-10-25 run:
{"runType": "youtube-public-hashtag-search-run","status": "SUCCEEDED","dataStatus": "COMPLETE","dataAvailable": true,"hashtags": ["travel"],"locale": "en-US","maxItemsPerHashtag": 5,"hashtagsProcessed": 1,"pagesFetched": 1,"pagesWithResults": 1,"itemCount": 5,"diagnosticCount": 0,"failedCount": 0,"blockedCount": 0,"proxyRequested": false,"proxyConfigured": false,"includeDiagnostics": true,"enableProxyFallback": false,"requestDelayMs": 0,"requestTimeoutSecs": 60,"paginationMethod": "public-search-page-query","durationMs": 2070,"finishedAt": "2026-10-25T20:58:48.676Z","runStatus": "SUCCEEDED"}
Coverage and limitations
The Actor inspects only the first public search results page for each hashtag. It applies YouTube's video result filter and does not follow continuation tokens, change pages, or open the hashtag landing page, individual videos, channels, comments, or transcripts. The dataset describes cards exposed on that first page, not a complete inventory of videos using the hashtag.
hashtagUrl is constructed from the input tag and is not evidence that the landing page was reached. hashtag values omit #, while query includes it. A video can appear under more than one requested hashtag, so the same videoId can be saved once per hashtag. maxItems applies per hashtag after deduplication, so the total dataset can exceed it when several hashtags are supplied.
Channel and playlist search results are discarded because they have no video ID. Shorts are retained and marked from the public card type; a Short's url is its Shorts URL while watchUrl remains available. Views, badges, publish text, and durations are display values that YouTube can round, localize, or change. rank follows the page's card order after deduplication and is not a stable ranking claim.
A failed hashtag produces no rows for that hashtag and is counted in OUTPUT. If other rows were saved, the run remains successful with dataStatus: "PARTIAL". Input validation failures occur before requests and produce no rows.
Usage and support
Each hashtag normally costs one public search request, with extra attempts only for the configured proxy fallback. maxItems changes the number of saved rows, not the number of page requests. Start with one or two hashtags and a small cap, 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.