YouTube Hashtag Scraper avatar

YouTube Hashtag Scraper

Pricing

from $3.00 / 1,000 results

Go to Apify Store
YouTube Hashtag Scraper

YouTube Hashtag Scraper

Scrape YouTube videos and Shorts by hashtag. Extract all videos tagged with specific hashtags including views, channel info, and metadata.

Pricing

from $3.00 / 1,000 results

Rating

0.0

(0)

Developer

Crawler Bros

Crawler Bros

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

10 hours ago

Last modified

Share

Scrape YouTube videos and Shorts by hashtag. Provide one or more hashtags and extract all tagged videos including title, channel info, view counts, publish time, duration, and more — without needing cookies or a browser.

Features

  • Scrape videos from any YouTube hashtag page (youtube.com/hashtag/<tag>)
  • Supports both regular videos and Shorts
  • Filter by content type: All, Videos only, or Shorts only
  • Paginate through all available results up to your configured limit
  • Multi-market support (US, UK, Germany, India, Japan, Brazil, France, Spain, South Korea, Russia)
  • HTTP-only approach — no browser overhead, fast and cost-efficient
  • Clean output with no null fields

Input

FieldTypeDefaultDescription
hashtagsstring[](required)Hashtags to scrape. Include or omit the # prefix (e.g. #programming or programming).
maxResultsPerHashtaginteger50Maximum videos to return per hashtag (1–500).
contentTypestringallContent to collect: all, videos (regular only), or shorts (Shorts only).
marketstringUSCountry/region for localized results: US, GB, DE, IN, JP, BR, FR, ES, KR, RU.

Output

Each row in the dataset represents one video or Short:

FieldTypeDescription
hashtagstringNormalized hashtag (no # prefix).
positioninteger1-indexed position within the hashtag results.
videoIdstringYouTube video ID (use with youtube.com/watch?v=<videoId>).
titlestringVideo title.
channelNamestringName of the channel that posted the video.
channelIdstringYouTube channel ID (e.g. UCxxxxxx).
channelUrlstringFull URL to the channel page.
viewCountTextstringHuman-readable view count (e.g. 1.2M views).
publishedTimeTextstringRelative publish time (e.g. 3 days ago). Regular videos only.
durationTextstringVideo duration (e.g. 12:34). Regular videos only.
thumbnailUrlstringURL of the highest-resolution thumbnail.
isShortbooleantrue if the item is a YouTube Short; false for regular videos.
badgesstring[]Optional content badges (e.g. ["CC", "4K"]). Omitted when empty.
scrapedAtstringISO 8601 UTC timestamp of when the data was collected.

Fields that cannot be populated are omitted from the output rather than returned as null.

Example Output

[
{
"hashtag": "programming",
"position": 1,
"videoId": "dQw4w9WgXcQ",
"title": "Learn Python in 10 Minutes",
"channelName": "Code Academy",
"channelId": "UC1234567890",
"channelUrl": "https://www.youtube.com/@codeacademy",
"viewCountText": "2.4M views",
"publishedTimeText": "1 month ago",
"durationText": "10:42",
"thumbnailUrl": "https://i.ytimg.com/vi/dQw4w9WgXcQ/hqdefault.jpg",
"isShort": false,
"scrapedAt": "2026-06-19T10:00:00+00:00"
},
{
"hashtag": "programming",
"position": 2,
"videoId": "abcde12345",
"title": "#coding life 🖥️",
"viewCountText": "58K views",
"thumbnailUrl": "https://i.ytimg.com/vi/abcde12345/hqdefault.jpg",
"isShort": true,
"scrapedAt": "2026-06-19T10:00:00+00:00"
}
]

FAQ

Do I need cookies or a YouTube account? No. YouTube hashtag pages are fully public. This actor uses HTTP requests only — no browser, no login, no cookies required.

Why are some fields missing from Shorts? YouTube's Shorts cards don't expose channel info, duration, or publish time in the same way as regular videos. The scraper only outputs fields that actually contain data — no null/empty placeholders.

How many results can I get per hashtag? Up to 500 per hashtag. YouTube typically loads around 24 videos per page; the scraper automatically paginates using YouTube's InnerTube API to collect more.

What does the market setting do? It sets the gl (country) and hl (language) parameters on the request, which changes the regional ranking and language of results. Use US for English results.

Can I scrape multiple hashtags at once? Yes — just add multiple entries to the hashtags list. The actor scrapes each hashtag sequentially and combines all results in the output dataset.

What content types are available?

  • all — Scrapes the "All" tab (regular videos) plus the "Shorts" tab.
  • videos — Scrapes only the "All" tab, skipping Shorts.
  • shorts — Fetches only the "Shorts" tab content.

What if a hashtag has no videos? The actor logs a warning and continues to the next hashtag — it won't crash the run.

YouTube Scraper Suite

This actor is part of a complete YouTube data extraction toolkit. Explore the full suite:

ActorDescription
YouTube Channel ScraperChannel metadata, subscriber counts, and full video catalogs
YouTube Channel Scraper FastStreamlined channel scraper for high-volume and speed-sensitive workflows
YouTube Comment ScraperComments, replies, likes, author info, and pinned/hearted status
YouTube Email ScraperCreator contact emails from channel pages, Instagram, TikTok, and Linktree
YouTube Hashtag ScraperVideos and Shorts tagged with specific hashtags
YouTube Playlist ScraperAll videos and metadata from any YouTube playlist
YouTube Search ScraperSearch results including videos, channels, and playlists
YouTube Shorts ScraperShorts from channels or hashtags with full view and like metadata
YouTube Transcript ScraperTimed transcripts and captions with optional Whisper AI fallback
YouTube Trending ScraperRanked trending videos by category — Gaming, Music, News, Movies
YouTube Video Details ScraperComprehensive video metadata, chapters, endscreen, captions, and comments
YouTube Video DownloaderDownload videos, playlists, and channels in any quality with metadata