YouTube Hashtag Scraper - Videos, Views & Channels by Hashtag avatar

YouTube Hashtag Scraper - Videos, Views & Channels by Hashtag

Pricing

from $1.60 / 1,000 video scrapeds

Go to Apify Store
YouTube Hashtag Scraper - Videos, Views & Channels by Hashtag

YouTube Hashtag Scraper - Videos, Views & Channels by Hashtag

Scrape YouTube videos by hashtag: one row per video with title, channel, views, likes, comments, duration, keywords and publish date. Track several hashtags at once for trend monitoring, influencer discovery and content research. No API key or quota needed.

Pricing

from $1.60 / 1,000 video scrapeds

Rating

0.0

(0)

Developer

SR

SR

Maintained by Community

Actor stats

0

Bookmarked

7

Total users

0

Monthly active users

2 months ago

Last modified

Features

Limited permissions

Share

YouTube Hashtag Scraper

YouTube Hashtag Scraper collects the videos YouTube shows on a hashtag page and delivers one dataset row per unique video, with title, channel, views, likes, comments, duration, keywords and publish date. Enter a list of hashtags, choose the maximum videos per hashtag and optionally include full video descriptions and engagement statistics. Use it to monitor topics, follow trending hashtags, discover channels and creators, and compare videos across the hashtags you track. You do not need a YouTube API key or quota.

How to use YouTube hashtag search with this scraper

  1. Enter one or more hashtags, such as webscraping or #travel. The leading # is optional.
  2. Set max_results to the number of videos you want per hashtag, with a default of 20.
  3. Keep fetch_details on for likes, comments, keywords, categories and exact publish dates. Turn it off to collect only the hashtag feed fields.
  4. Optionally choose country and language for localized texts.
  5. Start the run, then download the dataset as JSON, CSV, Excel or HTML, or read it through the Apify API.

YouTube Hashtag Scraper input

The hashtags field accepts hashtags with or without the leading #. Enter one hashtag per line in the input form, or supply an array of strings through the API. A string containing separate lines also works. Empty lines are ignored. The actor processes up to fifty hashtags in their original order. Spaces inside a hashtag are removed, and a hashtag consisting only of # is skipped.

The default input is the hashtag webscraping. max_results defaults to 20 and applies separately to every hashtag, before duplicate videos are removed across the full input. Values are limited to the range 1–1000. This setting is a ceiling on returned videos, rather than a promise that YouTube has that many results available.

fetch_details defaults to true. It adds details available for each video, including full descriptions, keywords, publication dates, categories and statistics. Set it to false when you need only the fields shown in the hashtag feed. This produces smaller records and generally completes sooner.

country defaults to US and selects the country passed to YouTube. Lowercase country codes are accepted. language defaults to en and changes localized texts such as publication age and formatted view counts. For example, a German travel feed returned German publication and view-count text with country: "de" and language: "de".

{"hashtags":["webscraping"]}

This is the original input of the real run used for the output example below. Omitted settings use the defaults described above. Saved tasks and API integrations can keep using the existing names hashtags, max_results, fetch_details, country and language.

YouTube hashtag scraper output

Results are written to the default dataset. The feed fields are video_id, url, title, description_snippet, channel_name, channel_id, channel_url, published_text, view_count, view_count_text, duration_text, thumbnail_url, is_live and hashtag. fetched_in_seconds reports collection time as a number.

With details enabled, a row can additionally include description, keywords, duration_seconds, published_date, upload_date, category, like_count, channel_subscribers and comment_count. These fields depend on what YouTube makes available for the video. An unavailable detail field is omitted. A full description can be empty, and a keyword list can contain no keywords. view_count is an integer or null; duration and engagement counts are integers when present.

published_date and upload_date preserve the complete timestamp returned by YouTube, including its timezone offset. published_text is a relative, localized label rather than an exact timestamp. With details enabled, the numeric view count can be more precise than the text shown in the feed; both values are retained.

Additional fields include fetched_at, a UTC collection timestamp, and normalized identifiers platform, post_id and post_url. posted_at is the UTC form of an available publication timestamp. channel_handle and author_handle appear only when YouTube supplies an actual handle. These fields supplement the existing output fields.

The following record is the first video of a real webscraping run with the default settings. Only the long description field is left out here:

{
"video_id": "WXK0u2yXLrU",
"url": "https://www.youtube.com/watch?v=WXK0u2yXLrU",
"title": "Web Scraping in Power Automate for Desktop (Full Tutorial)",
"description_snippet": "",
"channel_name": "Anders Jensen",
"channel_id": "UCPdtz4gd_iYebJFYq9N8pWA",
"channel_url": "https://www.youtube.com/channel/UCPdtz4gd_iYebJFYq9N8pWA",
"published_text": "4 years ago",
"view_count": 202013,
"view_count_text": "202,009 views",
"duration_text": "51:31",
"thumbnail_url": "https://i.ytimg.com/vi/WXK0u2yXLrU/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLANY-h3TTYQZuXqKGvdleYOFeocVA",
"is_live": false,
"hashtag": "#webscraping",
"duration_seconds": 3090,
"keywords": [
"anders jensen",
"extract data from web page",
"how to scrape in power automate",
"how to web scrape in power automate desktop",
"power automate desktop regex",
"power automate desktop tutorial",
"power automate for desktop",
"scrape multiple pages power automate desktop",
"scraping power automate desktop",
"web scraping in power automate for desktop",
"web scraping power automate",
"web scraping power automate desktop",
"web scraping to excel",
"web scraping tutorial"
],
"published_date": "2022-05-25T04:03:47-07:00",
"upload_date": "2022-05-25T04:03:47-07:00",
"category": "Science & Technology",
"like_count": 3269,
"channel_subscribers": 92500,
"comment_count": 493,
"fetched_in_seconds": 10.26
}

The key-value store contains summary with itemCount and errorCount. When individual hashtags fail, the errors record contains codes and messages. It is absent when no errors occurred. The run output also reports whether collection was partial and any available warnings.

Use cases

  • Trend monitoring. Run the same hashtags daily or weekly and compare which videos, channels and view counts appear. Trending YouTube hashtags become a time series you can chart.
  • Influencer and creator discovery. Every row carries the channel name, channel ID and, with details, the subscriber count, so you can shortlist creators who publish under a topic.
  • Content research. Titles, keywords, categories and durations show how successful videos under a hashtag are packaged, which helps when you plan your own videos or hashtags.
  • Brand and campaign tracking. Follow a campaign hashtag and see which videos use it, how many views and comments they collect and when they were published.
  • Datasets for analysis and AI. Structured JSON or CSV rows with stable video IDs feed spreadsheets, BI dashboards, or classification and summarization pipelines.

How it compares

Browsing a hashtag page on YouTube by hand shows the same videos, but without exportable numbers, likes, comment counts or exact dates. The official YouTube Data API has no hashtag feed endpoint; a keyword search costs quota and needs your own API key and project setup. This actor reads the hashtag feed that YouTube itself shows, adds the per-video details in the same run and returns everything as one flat table, without any key or quota on your side.

Compared with hashtag generators, which suggest tags for your own uploads, this scraper answers a different question: which videos YouTube actually lists under a hashtag right now, and how they perform. It does not extract hashtags from a single video URL either; it starts from the hashtag.

Ordering and result availability

Hashtags are processed in input order. Within each hashtag, videos keep their feed order. A video found under multiple hashtags appears once, attributed to the first hashtag that produced it. The actor reads the hashtag feed itself, so it reflects the videos YouTube exposes on that surface at collection time.

Hashtag feeds usually contain a single page with approximately five to thirty videos and no additional page. Consequently, requesting 1000 videos does not guarantee 1000 results. Feeds can change between runs, even with the same input. An unknown hashtag can return no videos. An empty feed produces a successful, empty run.

Large inputs are collected in resumable parts automatically. Ordinary Apify runs do not require you to manage continuation fields. A shorter timeout explicitly chosen for your run can still interrupt a large job. If a video detail request fails, the feed row remains available and the run reports a warning.

Pricing and free plan

The price is $0.0016 per delivered video, plus the platform Actor Start event of $0.002 per GB of memory, with a minimum of one start event. At the default memory of 1 GB or less, that is one start event per run. Twenty delivered videos therefore correspond to twenty video events and one start event, $0.034 in total.

Duplicate videos are delivered and charged once. A run with no video rows incurs no video events; the platform start event still applies. Details do not introduce a separate paid event. Non-paying Apify users receive at most ten results per run and are charged only for those delivered videos. Paying users retain their requested volume, subject to source availability and the selected run limits.

FAQ

How do I search hashtags on YouTube in bulk?

Put all hashtags in the hashtags field, one per line or as an array through the API. The actor runs a YouTube hashtag search for each one in input order and returns a single dataset in which the hashtag field tells you which hashtag produced each video.

Why did I receive fewer videos than max_results?

max_results sets a limit per hashtag. YouTube often exposes only one short hashtag-feed page. Duplicate videos across hashtags are removed, and unavailable or empty feeds reduce the final count. Increasing the limit cannot create videos that the feed does not provide.

Why are likes or comment counts missing?

First check that fetch_details is enabled. YouTube may hide a statistic, disable comments or return incomplete detail information for a particular video. The actor retains the video and omits unavailable fields. Check the run warnings if detail requests could not be completed.

Does an empty hashtag make the run fail?

A hashtag with no videos produces a successful empty result. A failure while fetching one hashtag is recorded separately, and other hashtags continue. Missing usable hashtag input also completes without video rows, with an input-error record explaining the issue.

Can I compare view counts across languages?

Use numeric view_count rather than view_count_text. The text is localized and can be rounded. When full details are available, the numeric value comes from the video detail response and can differ from the feed label. Publication timestamps are likewise more suitable for comparisons than relative age text.

Do I need a YouTube API key?

No. The actor collects public hashtag pages and video details itself. You only need an Apify account; results are billed per delivered video as described under pricing.