Youtube Video Scraper By Hashtag
by scrapio
Scrape YouTube videos by hashtag to get titles, views, likes, comments, and channel data. Export to JSON/CSV for content research, trend analysis, and marketing insights.
Opens on Apify.com
About Youtube Video Scraper By Hashtag
Need to track what's trending on YouTube or find content by topic? This scraper pulls videos using any hashtag you choose, grabbing the details that actually matter. You'll get titles, view counts, likes, comment numbers, channel info, and upload dates—all structured and ready to use. I run it to dump data into clean JSON or CSV files, which saves me hours of manual searching. It's perfect for seeing what kind of videos are popping off under a specific tag, researching competitors' content, or understanding what an audience is engaging with. Whether you're building a marketing report, looking for influencers, or just analyzing trends, having this data on tap lets you make decisions based on what's really happening on the platform, not just guesswork. It handles the heavy lifting so you can focus on the insights.
What does this actor do?
Youtube Video Scraper By Hashtag is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.
Key Features
- Cloud-based execution - no local setup required
- Scalable infrastructure for large-scale operations
- API access for integration with your applications
- Built-in proxy rotation and anti-blocking measures
- Scheduled runs and webhooks for automation
How to Use
- Click "Try This Actor" to open it on Apify
- Create a free Apify account if you don't have one
- Configure the input parameters as needed
- Run the actor and download your results
Documentation
YouTube Video Scraper by Hashtag
Overview
This Apify Actor scrapes YouTube videos based on hashtags, keywords, or usernames. It extracts video metadata from search results, including titles, thumbnails, view counts, and URLs. The actor is designed for bulk processing and includes automatic proxy fallback to handle blocking.
Key Features
- Multiple Input Types: Scrape using hashtags (e.g.,
#chatgpt), plain keywords, or usernames. - Bulk Processing: Run multiple hashtags or keywords in a single actor execution.
- Shorts Filtering: Optional toggle to scrape only YouTube Shorts.
- Proxy Fallback System: Automatically escalates through proxy options if blocked: no proxy → datacenter proxy → residential proxy.
- Pagination Handling: Uses continuation tokens to scrape beyond initial results.
- Duplicate Detection: Prevents duplicate videos in the output dataset.
- Detailed Logging: Real-time progress monitoring and proxy switch notifications.
Input Configuration
Configure the actor using a JSON input object. Here’s the structure:
{
"hashtags": ["chatgpt", "Bangladesh"],
"maxResults": 100,
"scrapeShortsOnly": false,
"sortOrder": "relevance",
"proxyConfiguration": {
"useApifyProxy": false
}
}
Input Fields:
- hashtags (required): Array of strings. Can include hashtags (#chatgpt), keywords (chatgpt), or usernames.
- maxResults (optional, default: 100): Number of videos to scrape per hashtag/keyword. Range: 1-1000.
- scrapeShortsOnly (optional, default: false): Set to true to scrape only YouTube Shorts.
- sortOrder (optional, default: "relevance"): Sort results by "relevance", "date", "viewCount", or "rating".
- proxyConfiguration (optional): By default, no proxy is used. The actor will automatically fall back to datacenter then residential proxies if requests are blocked.
Output
The actor outputs an array of video objects in JSON format.
Example Output Item:
{
"thumbnailUrl": "https://i.ytimg.com/vi/f2mRAGvKca8/hq720.jpg",
"title": "How To Use ChatGPT in Bengali",
"id": "f2mRAGvKca8",
"url": "https://www.youtube.com/watch?v=f2mRAGvKca8",
"viewCount": 1224495,
"type": "video",
"hashtagCategoryData.categoryInfoText": "1.9M videos • 577K channels"
}
Output Fields:
- thumbnailUrl: URL for the video's thumbnail image.
- title: The video title.
- id: YouTube's unique video ID.
- url: Full watch URL for the video.
- viewCount: View count as an integer.
- type: Either "video" or "shorts".
- hashtagCategoryData.categoryInfoText: Category info text from YouTube's UI.
How to Use (Apify Console)
- Log in at https://console.apify.com and navigate to Actors.
- Find the
youtube-video-scraper-by-hashtagactor and select it. - In the Input tab, configure your settings using the JSON structure above.
- Run the actor.
- Monitor execution logs in real-time to see scraping progress and any proxy fallback events.
- Once finished, access the scraped data in the Dataset tab.
- Export results as JSON, CSV, or other supported formats.
Common Use Cases
- Content & Trend Research: Discover trending videos for specific hashtags or topics.
- Competitor Monitoring: Track videos from targeted keywords or channels.
- Data Aggregation: Collect video metadata for analysis or machine learning projects.
- SEO & Performance Analysis: Gather view counts and engagement data by topic.
Notes & Limitations
- The actor scrapes video metadata only. It does not scrape comments, likes, or descriptions.
- It cannot access private or unlisted videos.
- The
maxResultslimit is applied per hashtag/keyword in the input array. - If YouTube blocks a request, the actor will retry up to 3 times with the next proxy tier in the fallback sequence.
Categories
Common Use Cases
Market Research
Gather competitive intelligence and market data
Lead Generation
Extract contact information for sales outreach
Price Monitoring
Track competitor pricing and product changes
Content Aggregation
Collect and organize content from multiple sources
Ready to Get Started?
Try Youtube Video Scraper By Hashtag now on Apify. Free tier available with no credit card required.
Start Free TrialActor Information
- Developer
- scrapio
- Pricing
- Paid
- Total Runs
- 17
- Active Users
- 2
Related Actors
🏯 Tweet Scraper V2 - X / Twitter Scraper
by apidojo
Google Search Results Scraper
by apify
Instagram Profile Scraper
by apify
Tweet Scraper|$0.25/1K Tweets | Pay-Per Result | No Rate Limits
by kaitoeasyapi
Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.
Learn more about ApifyNeed Professional Help?
Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.
Trusted by millions | Money-back guarantee | 24/7 Support