YouTube Hashtag Search Scraper avatar

YouTube Hashtag Search Scraper

Pricing

from $0.01 / 1,000 results

Go to Apify Store
YouTube Hashtag Search Scraper

YouTube Hashtag Search Scraper

Collect videos and Shorts posted under any YouTube hashtag. Get title, link, views, publish date, duration, description and channel. Choose videos, Shorts or both. No login or API key. Bulk input, auto proxy fallback. Export JSON, CSV or Excel.

Pricing

from $0.01 / 1,000 results

Rating

0.0

(0)

Developer

Data Minds

Data Minds

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

7 days ago

Last modified

Categories

Features

Limited permissions

Share

๐Ÿ“– What is YouTube Hashtag Search Scraper?

โšก Many hashtags in one run ยท ๐ŸŽฌ Videos, Shorts or both ยท ๐Ÿ“ฆ Export to JSON, CSV or Excel ยท ๐Ÿค– Works with AI agents

YouTube Hashtag Search Scraper collects the videos and Shorts posted under any YouTube hashtag and returns one clean row per item. Enter one or more hashtags or hashtag links, press Start, and you get titles, views, publish dates, channels and links, with likes, comments, tags and channel details when you switch them on. It suits creators, marketers and analysts, and you need no YouTube API key.

  • ๐Ÿ“ˆ See what works under a hashtag: compare views, likes, comments and publish dates across videos and Shorts.
  • ๐Ÿ‘ค Find creators in a niche: list the channels behind a hashtag with subscribers, country and joined date.
  • ๐Ÿ“ Plan your content: read the titles, tags, hashtags used and categories of videos that already perform.
  • ๐Ÿ”Ž Track a campaign or brand hashtag: collect everything posted under it and repeat the run on a schedule.
  • ๐ŸŽฏ Keep only what matters: filter by title words, minimum views, publish age and video length.
  • ๐Ÿค– Keep it running: send the rows to your sheet, your app or your AI agent.

๐Ÿ“ฆ What data can YouTube Hashtag Search Scraper extract?

Every row in the results table is one video or Short. The fields are grouped below; the main ones are described in the Output section. Fields marked with an option name appear only when that option is on.

DataFields
๐Ÿ”— Link and IDurl, id, kind (video or short), hashtag
๐Ÿ“ Title and texttitle, description (with Include full details)
๐Ÿ“Š ViewsviewCount, viewCountText
๐Ÿ‘ Likes and commentslikeCount, commentCount (with Include likes, comments and subscribers)
๐Ÿ“… Publish timepublishedAt, publishedTimeText
๐Ÿ•’ LengthdurationSeconds, durationText
๐Ÿ“ท Thumbnail and badgesthumbnailUrl, badges
๐Ÿ”– Tags and categoryhashtags, tags, category (with Include full details)
๐Ÿ‘ค Channelchannel.id, channel.title, channel.handle, channel.thumbnailUrl
โญ Channel audiencechannel.subscriberCount, channel.isVerified (with likes, comments and subscribers)
๐ŸŒ Channel profilechannel.country, channel.joinedDate, channel.viewCount, channel.videoCount, channel.description (with Include channel details)
๐ŸŒ LanguagedetectedLanguage (with Detect language)
๐Ÿ“ฆ Collection timescrapedAt

With Include full details on, you also get YouTube video tags and category for every item, and the thumbnail link of each video is always included. Turn on Detect language for YouTube video language detection from the title and description.

โ— Note: Likes are the rounded number YouTube shows, for example 3.9K is saved as 3900. Comment counts are empty when comments are turned off, and like counts are empty when likes are hidden.

โŒ What can't YouTube Hashtag Search Scraper extract?

  • โŒ Private or removed videos.
  • โŒ Comment texts. You get the comment count only.
  • โŒ Video files or transcripts.

For more YouTube data, try YouTube Shorts Scraper or YouTube Search API.


๐Ÿš€ How to scrape YouTube hashtags

YouTube Hashtag Search Scraper is designed for an easy start, even if you have never extracted data from the web before.

  1. ๐Ÿ”‘ Create a free Apify account using your email.
  2. ๐ŸŒ Open YouTube Hashtag Search Scraper and go to the Input tab.
  3. ๐Ÿ“ฅ Add one hashtag per line, with or without #, or paste a full hashtag page link.
  4. ๐ŸŽฏ Choose Content type (all, videos or Shorts) and set Max items per hashtag.
  5. ๐Ÿš€ Click Start and wait for the run to finish.
  6. ๐Ÿ“ค Open the Output tab to view the items as a table, or download them as JSON, CSV, Excel, XML or HTML.

๐Ÿš€ Quick start: the default input collects 10 items each for funny and makeup.

{
"urls": ["funny", "https://www.youtube.com/hashtag/makeup"],
"maxItemsPerKeyword": 10
}

๐Ÿ’ฐ How much does it cost to scrape YouTube hashtags?

YouTube Hashtag Search Scraper uses a pay per event model, with prices from $0.002 per result ($2.00 per 1,000 results) on the Gold plan. You pay for each video or Short saved to the dataset. Apify platform usage is billed in addition.

Apify planPrice per resultPrice per 1,000 results
๐Ÿ†“ Free$0.003$3.00
๐Ÿฅ‰ Bronze$0.0027$2.70
๐Ÿฅˆ Silver$0.0024$2.40
๐Ÿฅ‡ Gold$0.002$2.00

Each run also has one start event of $0.00005, which covers the default 1 GB of memory. Every saved result is also charged a dataset item event of $0.00001, so the cost per result is the plan price in the table plus $0.00001. The result price in the table above is the main_result event.

๐Ÿงฎ How much will scraping YouTube hashtags cost?

Results multiplied by the price of your plan (main_result price only, start event and dataset item event not included):

ResultsFreeBronzeSilverGold
100100 x $0.003 = $0.30100 x $0.0027 = $0.27100 x $0.0024 = $0.24100 x $0.002 = $0.20
1,0001,000 x $0.003 = $3.001,000 x $0.0027 = $2.701,000 x $0.0024 = $2.401,000 x $0.002 = $2.00
10,00010,000 x $0.003 = $30.0010,000 x $0.0027 = $27.0010,000 x $0.0024 = $24.0010,000 x $0.002 = $20.00

๐Ÿ†“ Is scraping YouTube hashtags free?

You can start for free. The Apify Free plan includes $5 of monthly credit. At the Free price of $0.003 per result, $5 / $0.003 = about 1,666 results before platform usage. Paid plans lower the price per result, as the table shows.

โœ… Good to know: a run stops cleanly when your spend limit is reached, and the rows saved so far stay in the dataset.


๐Ÿ”ง Input

Add the hashtags you want to read, then narrow the results with optional filters. Set the input in the Input tab or send it as JSON through the API. Only urls is required. The limit applies to each hashtag separately, so 3 hashtags with a limit of 20 return up to 60 items.

FieldTypeDefaultWhat it does
urlsarray of stringsnone (at least 1)Hashtags, one per line, with or without #, or full hashtag page links such as https://www.youtube.com/hashtag/funny. Each one is collected separately.
maxItemsPerKeywordinteger10Stop after this many items for each hashtag, from 0 to 100000. 0 collects everything available.
contentTypestringallall returns videos and Shorts mixed, videos only regular videos, shorts only Shorts.
includeDetailsbooleantrueAdds description, tags, category, hashtags used, channel, exact publish date and exact view count. Turn off for a faster run with basic fields.
includeStatsbooleanfalseAdds like count, comment count and the channel's subscriber count and verified badge. Makes the run a little slower.
includeChannelbooleanfalseAdds the channel's country, joined date, total views, total videos and description.
detectLanguagebooleanfalseAdds the language of each item, guessed from its title and description. Empty when the text is too short.
titleFilterstringnoneKeep only items whose title contains any of these words (comma separated).
excludeWordsstringnoneDrop items whose title contains any of these words (comma separated).
publishedWithinDaysinteger0Keep only items published in the last N days. 0 means any age.
minViewsinteger0Keep only items with at least this many views. 0 means no minimum.
minDurationSecondsinteger0Keep only items at least this long. 0 means no minimum.
maxDurationSecondsinteger0Keep only items at most this long. 0 means no maximum.
proxyConfigurationobjectnoneOptional network settings for the run. The defaults work for most runs.

Minimal input:

{
"urls": ["funny"]
}

Advanced input: up to 20 videos longer than five minutes from the last 30 days for two hashtags, with likes, comments and channel details:

{
"urls": ["travel", "#foodie"],
"contentType": "videos",
"maxItemsPerKeyword": 20,
"publishedWithinDays": 30,
"minDurationSeconds": 300,
"includeStats": true,
"includeChannel": true
}

Filters are applied before the limit counts, so you still get your full number of matching items when YouTube lists enough of them. Very narrow filters, such as a short publish window plus a high minimum views, can return few or no items. See the input tab for the full schema.

๐Ÿ’ก Tip: Start with a low maxItemsPerKeyword to check the sample, then raise it for the full run.


๐Ÿ“ค Output

Results are stored in a dataset, which you can open in the Output or Storage tab. View them as a table or JSON, pick only the fields you need, and download them as JSON, CSV, Excel, XML or HTML. The table has ready-made views for the overview, channel, views and engagement, and descriptions.

Through the API, read the rows from this URL pattern:

https://api.apify.com/v2/datasets/<DATASET_ID>/items?format=json

Add &view=overview (or channel, engagement, description) to get one of the views.

The main fields of each row:

FieldTypeDescription
hashtagstringThe hashtag the item was found under (lowercase, no #).
idstringYouTube video or Short ID.
kindstringvideo or short.
urlstringLink to the video or Short.
titlestringTitle of the item.
descriptionstringFull description. Empty when full details are off.
thumbnailUrlstringLargest available thumbnail.
channelobjectThe channel that published the item: id, title, handle, thumbnailUrl, plus subscriber and channel detail fields when those options are on.
viewCountintegerNumber of views.
viewCountTextstringView count as shown on YouTube.
publishedAtstringExact publish time in UTC (ISO 8601). Empty when full details are off.
publishedTimeTextstringRelative publish time as shown on YouTube.
durationSecondsintegerLength in seconds.
durationTextstringLength as m:ss or h:mm:ss.
badgesarrayBadges shown on the video, such as New or 4K.
hashtagsarrayHashtags written in the title and description.
tagsarrayKeywords the creator set on the video.
categorystringYouTube category of the video.
likeCountintegerLikes as shown by YouTube (rounded). Needs Include likes, comments and subscribers.
commentCountintegerNumber of comments. Needs Include likes, comments and subscribers.
detectedLanguagestringLanguage code guessed from title and description. Needs Detect language.
scrapedAtstringWhen the item was collected (ISO 8601, UTC).

An abridged example row (illustrative values):

{
"hashtag": "funny",
"id": "BZHfHaVrh4I",
"kind": "video",
"url": "https://www.youtube.com/watch?v=BZHfHaVrh4I",
"title": "Best funny videos compilation",
"description": "#funny #memes",
"thumbnailUrl": "https://i.ytimg.com/vi/BZHfHaVrh4I/hq720.jpg",
"channel": {
"id": "UCUUoOFcTRLKXabJMoLy_W-g",
"title": "Top American Compilation",
"handle": "TopAmericanCompilation-77",
"thumbnailUrl": null
},
"viewCount": 1500295,
"viewCountText": "1,500,295 views",
"publishedAt": "2026-09-11T11:53:15.000Z",
"publishedTimeText": "1 month ago",
"durationSeconds": 757,
"durationText": "12:37",
"badges": ["New"],
"hashtags": ["funny", "memes"],
"tags": ["funny", "comedy"],
"category": "Comedy",
"scrapedAt": "2026-11-20T15:00:00.000Z"
}

Each run also saves a small run summary in the key-value store under the key RUN_SUMMARY:

FieldTypeDescription
inputsintegerNumber of hashtags in the run.
rowsintegerItems saved to the dataset.
okintegerHashtags that returned items.
skippedintegerHashtags with no results or never reached.
failedintegerHashtags that could not be collected.
secondsnumberRun time in seconds.
spendLimitReachedbooleanTrue when the run stopped because of your spend limit.
messagestringThe final status message of the run.

๐Ÿ’ก Tips and advanced usage

โšก How to get faster or cheaper results

  • โšก Switch off Include full details if you only need titles, links and views.
  • ๐Ÿ”ง Leave likes, comments and channel details off unless you need them.
  • ๐ŸŽฏ Start with a small Max items per hashtag and raise it once the results look right.
  • ๐Ÿ“… Use Published within the last (days) on a schedule to read only the newest items.

๐Ÿ“ˆ How to build a YouTube hashtag tracker

Run the Actor on a schedule and compare the rows between runs. Views, likes and comments of each item, together with the hashtag field, are easy to chart in a sheet or dashboard. Sort by viewCount to find the most viewed videos and Shorts in your niche.

๐ŸŽฏ How to do YouTube trend research with hashtags

Pick the hashtags of your niche, collect their videos and Shorts, and sort by viewCount and publishedAt to see what is rising now.

๐Ÿข How to run a YouTube competitor analysis

Collect a competitor's brand hashtag and compare views, likes, comments and posting dates with your own hashtag.

๐Ÿ‘ค How to find influencers on YouTube

Turn on likes, comments and subscribers and channel details to see which channels use a hashtag, with their subscriber counts and countries. This makes influencer discovery on YouTube a matter of sorting a table.

๐Ÿงฉ How to run many hashtags in one run

Add all your hashtags to one run, one per line. Every row has a hashtag field that tells you where it came from, and the run summary shows how many hashtags returned items.

๐Ÿ“ฆ How to export a YouTube hashtag to CSV

Open the Output tab of the finished run, choose Export, select CSV and pick the fields you need. You can download YouTube hashtag data the same way as JSON, Excel, XML or HTML and keep one row per item. For scheduled exports, use the API or an integration instead.

๐ŸŽฌ How to collect only Shorts or only videos

Set Content type to shorts to keep only Shorts, or to videos to skip them. The default all returns both, and the kind field of every row tells them apart. Set a YouTube video length filter with the minimum and maximum length in seconds to keep only short clips or long videos.

๐Ÿ”Ž Why did I get fewer items than my limit?

YouTube lists only so many items per hashtag for the chosen content type, and your filters may skip some. The run status says when a hashtag ran out of items before your limit. Remove a filter, switch to all, or add more hashtags, then run a small test again.

โ— Known issues

  • โ— Shorts often have no description or tags on YouTube itself, so those fields can be empty for them.
  • โ— A hashtag that does not exist may be skipped and reported in the run log.

๐Ÿ”Œ Integrations and API

๐Ÿ”Œ Can I use YouTube Hashtag Search Scraper as an API?

Yes. Start runs, read results and schedule jobs through the Apify API. Use your token from Settings > API & Integrations.

ActionMethod and URL
๐Ÿš€ Start a runPOST https://api.apify.com/v2/actors/data_minds~youtube-hashtag-search-scraper/runs
โšก Run and get the results in one callPOST https://api.apify.com/v2/actors/data_minds~youtube-hashtag-search-scraper/run-sync-get-dataset-items
๐Ÿ“ฅ Read results of a runGET https://api.apify.com/v2/datasets/<DATASET_ID>/items?format=json
๐Ÿ”Œ OpenAPI definitionGET https://api.apify.com/v2/actors/data_minds~youtube-hashtag-search-scraper/builds/default/openapi.json

curl

curl -X POST "https://api.apify.com/v2/actors/data_minds~youtube-hashtag-search-scraper/run-sync-get-dataset-items" \
-H "Authorization: Bearer <YOUR_APIFY_TOKEN>" \
-H "Content-Type: application/json" \
-d '{"urls": ["travel", "#foodie"], "maxItemsPerKeyword": 20, "includeStats": true}'

Python

To scrape a YouTube hashtag with Python, use the apify-client package:

from apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("data_minds/youtube-hashtag-search-scraper").call(
run_input={"urls": ["travel", "#foodie"], "maxItemsPerKeyword": 20, "includeStats": True}
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item["hashtag"], item["title"], item["viewCount"])

JavaScript

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('data_minds/youtube-hashtag-search-scraper').call({
urls: ['travel', '#foodie'],
maxItemsPerKeyword: 20,
includeStats: true,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

CLI

$echo '{"urls": ["travel", "#foodie"], "maxItemsPerKeyword": 20, "includeStats": true}' | apify call data_minds/youtube-hashtag-search-scraper --silent --output-dataset

The one-call endpoint suits runs that finish in about five minutes. Use the start-a-run endpoint for longer jobs. More code is on the API tab.

๐Ÿงฉ Can I connect YouTube Hashtag Search Scraper to other apps?

Yes. Connect it with Make, Zapier, n8n, Slack, Google Sheets, Google Drive, Airbyte, GitHub and more through Apify integrations. Use webhooks to send new YouTube hashtag data to your team whenever a run finishes. Use schedules to run the scraper every day or week.

๐Ÿค– Can I use YouTube Hashtag Search Scraper with AI agents (MCP server)?

Yes. AI agents can call it directly through the hosted Apify MCP server. The Server tab of this Actor shows the same connection settings.

{
"mcpServers": {
"apify": {
"type": "http",
"url": "https://mcp.apify.com?tools=data_minds/youtube-hashtag-search-scraper"
}
}
}

The hosted server signs you in with OAuth the first time you connect, so no API token belongs in this configuration. If your client cannot use OAuth, send the header Authorization: Bearer <YOUR_APIFY_TOKEN>.


๐Ÿ”— Other YouTube scrapers

ScraperWhat it does
๐Ÿ”— YouTube Search APISearches YouTube by keyword and returns videos, Shorts, channels or playlists with views, likes, comments, description, hashtags, subscribers, country and contact links.
๐Ÿ”— YouTube Shorts ScraperCollects Shorts from YouTube channels: views, exact likes, comments, dates, hashtags, tags, category, engagement, transcripts and channel details.
๐Ÿ”— YouTube Trending Shorts ScraperFinds trending YouTube Shorts for any keyword or hashtag: views, likes, comments, views per day, viral score, engagement rate, channel and publish date.

โ“ FAQ

Web scraping is generally legal if you extract publicly available data. However, you should respect personal data, for example under GDPR, and intellectual property regulations, only collect personal data with a legitimate reason, and take YouTube's Terms of Service into account before you run it.

๐Ÿ”ง How does YouTube Hashtag Search Scraper work?

You add hashtags or hashtag links, choose videos, Shorts or both, optionally set filters and a limit per hashtag, and press Start. The Actor returns the public videos and Shorts it finds under each hashtag as one row per item, and every row says which hashtag it came from.

๐ŸŽฏ Why use it instead of the official YouTube Data API?

It needs no Google project or API key: you give hashtags and get rows with views, publish dates, channels and links. You can add likes, comments, tags and channel details with switches, filter by title, views, age and length, schedule runs, and download the data in common formats.

๐Ÿ”Œ Can I use YouTube Hashtag Search Scraper as an API?

Yes. Start a run with the Apify API, pass your hashtags as JSON, and read the dataset items when it finishes. A one-call endpoint returns results directly for short runs, and an OpenAPI definition is available. Ready-made curl, Python, JavaScript and CLI examples are in the Integrations and API section above.

๐Ÿค– Can I use YouTube Hashtag Search Scraper with AI agents (MCP server)?

Yes. Add the hosted Apify MCP server URL with the tools parameter set to data_minds/youtube-hashtag-search-scraper, and your AI assistant can run the Actor and read the results. The first connection signs you in with OAuth. The Server tab of the Actor shows the same connection settings.

๐Ÿงฉ Can I connect it to Google Sheets, Make or Zapier?

Yes. Apify integrations connect the Actor with Google Sheets, Make, Zapier, n8n, Slack and many other tools. Schedule a run, then use a webhook or an integration to send each new batch of videos and Shorts to your sheet, chat or workflow automatically when the run finishes.

๐Ÿ”Ž Why did I get fewer items than my limit?

YouTube lists only a limited number of items per hashtag for the chosen content type, and your filters may skip some. The run status tells you when a hashtag ran out of items. Relax the minimum views, publish window or length, try the all content type, or add more hashtags.

๐Ÿ“Š Why do the numbers differ from what YouTube shows?

Likes are the rounded number YouTube shows to visitors, for example 3.9K is saved as 3900. Counts also change over time as people keep watching, so a later run can return higher views. Comment counts are empty when comments are turned off, and like counts are empty when likes are hidden.

โ— Why is the Actor not working or returning nothing?

Check the spelling of the hashtag and relax your filters first. Open the hashtag page in a private browser window: if you cannot see videos there, the Actor cannot either. If the hashtag is public and the run still returns nothing, report it on the Issues tab.


๐Ÿ’ฌ Support and feedback

Found a bug or have a feature request? Please create an issue on the Issues tab.

Need a custom solution or more data? Contact us at hello.dataminds@gmail.com.

Built and maintained by data_minds. This Actor is an independent tool and is not affiliated with, endorsed by or sponsored by YouTube or Google.