YouTube Hashtag Video & Shorts Ranking Scraper avatar

YouTube Hashtag Video & Shorts Ranking Scraper

Pricing

from $0.49 / 1,000 results

Go to Apify Store
YouTube Hashtag Video & Shorts Ranking Scraper

YouTube Hashtag Video & Shorts Ranking Scraper

Look up one or more YouTube hashtags and get the videos and Shorts currently ranked under them, in order, with view count, channel, duration and the hashtag's own total video and channel counts.

Pricing

from $0.49 / 1,000 results

Rating

0.0

(0)

Developer

Dataspryva

Dataspryva

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Security

Limited permissions

Share

YouTube's hashtag pages are live rankings of the videos and Shorts carrying a tag. This actor reads that feed for any hashtag, pages as deep as YouTube allows, and returns each card with its channel, engagement, publish date and hashtag totals — with no login, cookies, API key or proxy setup.

What this actor does

  • Reads one or many hashtags in a single run, from bare tags, #tags or full YouTube hashtag URLs
  • Pages the whole reachable feed instead of stopping at the first screen, and handles both regular videos and Shorts
  • Adds detail data on request — exact views, likes, comments, subscriber counts, ISO publish dates, descriptions, keywords, categories, channel handles and avatars
  • Sorts and filters locally by views, duration, publish date, minimum views or earliest publish date
  • Localizes correctly with a market and language pair, including localized tab names and count formats
  • Empty fields are omitted — each record contains only the values YouTube actually supplied

Output per video or Short

FieldDescription
recordTypevideo for content rows, error for a hashtag-level failure
successfalse on error rows, omitted on content rows
typevideo or short
hashtagNormalized hashtag, without #
hashtagUrlCanonical hashtag page URL
hashtagTitleThe hashtag page's own display title
videoCountText / videoCountTotal videos tagged with the hashtag, as displayed and as an exact number when YouTube shows one
channelCountText / channelCountTotal channels posting under the hashtag, as displayed and as an exact number when available
position1-indexed position in the returned, deduplicated result set
videoIdYouTube video ID
titleVideo or Short title
urlWatch URL for videos, Shorts URL for Shorts
channelNameChannel display name
channelIdYouTube channel ID
channelUrlChannel page URL
channelHandleChannel handle such as @creator, when YouTube exposes it
channelAvatarUrlChannel avatar image URL
channelSubscriberCountTextSubscriber label as displayed, e.g. 1.2M subscribers
channelSubscriberCountExact subscriber count only when the label is not rounded
viewCountTextViews as displayed, in the selected language
viewCountExact view count when available; rounded labels stay text-only
likeCountTextLikes as displayed, e.g. 11K
likeCountExact like count only when the label is not rounded
commentCountText / commentCountComment count as displayed, and as an exact number when available
publishedTimeTextRelative publish label, e.g. 3 days ago
publishedAtISO 8601 publish date; includes the time and source offset when YouTube exposes them
durationTextDuration label such as 12:34
durationSecondsDuration in seconds, including Shorts when details are on
thumbnailUrlHighest-resolution thumbnail available
isShorttrue for a Short, false for a regular video
descriptionVideo description
keywordsVideo keywords/tags array
categoryYouTube category name
badgesContent badges such as CC or 4K
scrapedAtISO 8601 UTC timestamp of the run
errorCode / errorPresent on error rows: INVALID_HASHTAG, HASHTAG_NOT_FOUND, NO_VIDEOS or BLOCKED

Input

FieldTypeDefaultDescription
hashtagsarray–Tags to scrape, with or without #, or full hashtag URLs (required)
maxResultsPerHashtaginteger50Records to return per hashtag after sorting and filters (1–500)
contentTypestringallall, videos (regular only) or shorts (Shorts only)
marketstringUSCountry/region for the feed
languagestringautoLabel language; auto follows the market
includeVideoDetailsbooleantrueAdd exact counts, dates, descriptions and channel metadata
sortBystringdefaultdefault, viewCount, durationSeconds or publishedAt
minViewCountinteger–Drop videos below this exact view count
publishedAfterstring–Keep only videos published on or after this date (YYYY-MM-DD)

Example: one hashtag, ranked by views

{
"hashtags": ["#webscraping"],
"contentType": "all",
"maxResultsPerHashtag": 100,
"sortBy": "viewCount",
"includeVideoDetails": true
}

Example: regular videos in Germany

{
"hashtags": ["cooking"],
"contentType": "videos",
"market": "DE",
"language": "de",
"maxResultsPerHashtag": 50
}

Example: recent Shorts with a view floor

{
"hashtags": ["travel", "food"],
"contentType": "shorts",
"minViewCount": 100000,
"publishedAfter": "2026-01-01",
"sortBy": "publishedAt",
"maxResultsPerHashtag": 100
}

Example: paste a hashtag URL

{
"hashtags": ["https://www.youtube.com/hashtag/artificialintelligence"],
"contentType": "videos",
"market": "JP",
"language": "ja",
"maxResultsPerHashtag": 75
}

Use cases

  • Trend discovery — see which videos and Shorts currently rank under a topic, in a chosen market
  • Creator sourcing — find channels that repeatedly appear under a niche hashtag
  • Campaign tracking — monitor a branded hashtag's ranking and engagement over time
  • Format research — compare regular videos with Shorts using exact views, likes, comments and duration
  • Regional analysis — compare the same hashtag across markets and languages

FAQ

Do I need a YouTube account, API key or cookies? No. Hashtag pages and the detail data are public and the actor reads them anonymously.

Why are some fields missing from Shorts? Shorts cards carry less metadata than regular video cards. With includeVideoDetails on, channel, exact views, publish date and duration are filled from each Short's detail data. Rounded labels such as 1.2M views remain text-only and are never presented as exact numbers.

How many results can I get per hashtag? Up to maxResultsPerHashtag, but YouTube's hashtag feed is a ranked sample rather than a complete index. Large tags typically expose a few hundred unique cards over many pages; small or new tags may expose only a handful.

Why does the same input return a different order on another run? YouTube shuffles hashtag feeds between requests. The actor deduplicates by video ID and assigns position from the returned set; use sortBy when you need a stable order.

What does market change? It changes which videos rank and the default language. language controls only labels and formatting; set it explicitly if you want a different language from the market default.

What is the difference between viewCountText and viewCount? viewCountText is exactly what YouTube displayed. viewCount is an integer only when the source gives an unabridged number; compact labels remain text-only, so an estimate is never passed off as exact.

What happens if a hashtag has no results? The run continues to the next hashtag and writes an error row with recordType: "error", an errorCode and a readable message.

Can I scrape more than one hashtag at once? Yes. List up to 200 unique hashtags; results are combined in one dataset with per-hashtag positions.