Youtube Search
by maged120
An Apify actor that scrapes YouTube search results for video titles, channels, views, and dates. Perfect for automated competitive research and data collection.
Opens on Apify.com
About Youtube Search
Need to pull data from YouTube search results without getting your hands dirty with the API? I've been there. This Apify actor is basically a headless browser that does the grunt work for you, visiting YouTube, typing in your search term, and scraping all the metadata from the results page. It grabs the video titles, URLs, channel info, view counts, and upload dates—everything you see in the grid. I use it for quick competitive research to see what's ranking for specific keywords or to gather a dataset for content analysis. It's straightforward: you give it a search query (and optionally, a country/language for geo-specific results), and it returns a clean JSON or spreadsheet. It runs reliably in the cloud, so you don't have to worry about your own IP getting blocked or managing proxies. For anyone in marketing, research, or development who needs structured data from YouTube searches on a regular basis, this automates a pretty tedious manual process.
What does this actor do?
Youtube Search 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 Search Scraper
Overview
This Apify actor scrapes metadata from YouTube search results. You provide a search query, and it returns structured data for each video, including title, uploader, view count, and duration. It handles filtering, sorting, and uses proxies for reliable operation.
Key Features
- Extracts comprehensive video data: Title, video ID, URL, uploader, upload date, duration, view count, thumbnail, and Shorts status.
- Flexible search filters: Filter by Shorts (
shorts_only,exclude_shorts), duration, upload date (last 24h, week, month, year), and sort by relevance, date, view count, or rating. - Built for reliability: Uses Apify's proxies, includes configurable retry logic with exponential backoff, and has timeouts to prevent hangs.
- Multiple access points: Run via the Apify UI, CLI, API, or SDKs (Python, Node.js, etc.).
- Structured output: Results are stored in an Apify dataset and can be exported as JSON or CSV.
How to Use
Configure the actor using a JSON input. The only required field is the search query. You can run it directly on the Apify platform or integrate it into your code using the API.
Input Configuration
The actor accepts input with the following fields:
| Field | Type | Description | Required | Default |
|---|---|---|---|---|
query |
String | YouTube search query. | Yes | - |
max_results |
Integer | Number of videos to scrape (1-100). | No | 10 |
shorts_only |
Boolean | Only include Shorts. | No | false |
exclude_shorts |
Boolean | Exclude Shorts. | No | false |
min_duration |
Integer | Minimum duration in seconds. | No | - |
max_duration |
Integer | Maximum duration in seconds. | No | - |
upload_date_filter |
String | Filter by date: last_24h, last_week, last_month, last_year. |
No | "" |
sort_by |
String | Sort order: relevance, date, view_count, rating. |
No | relevance |
sleep_interval |
Integer | Seconds to wait between requests. | No | 2 |
max_retries |
Integer | Max retry attempts for failed requests. | No | 3 |
Notes:
* shorts_only and exclude_shorts cannot both be true.
* Increase sleep_interval or max_retries for large jobs or if you encounter errors.
Example Input:
{
"query": "python tutorial",
"max_results": 20,
"exclude_shorts": true,
"min_duration": 300,
"upload_date_filter": "last_month",
"sort_by": "view_count"
}
Output Format
Results are saved to an Apify dataset. Each item includes the following fields: title, video_id, url, uploader, uploader_id, upload_date (YYYYMMDD), duration (seconds), view_count, thumbnail, short (boolean), and an optional error field.
Example Output Item:
{
"title": "Python Tutorial for Beginners",
"video_id": "abc123",
"url": "https://www.youtube.com/watch?v=abc123",
"uploader": "CodingChannel",
"uploader_id": "UC_xyz",
"upload_date": "20231015",
"duration": 1200,
"view_count": 150000,
"thumbnail": "https://i.ytimg.com/vi/abc123/hqdefault.jpg",
"short": false
}
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 Search now on Apify. Free tier available with no credit card required.
Start Free TrialActor Information
- Developer
- maged120
- Pricing
- Paid
- Total Runs
- 204
- Active Users
- 16
Related Actors
Video Transcript Scraper: Youtube, X, Facebook, Tiktok, etc.
by invideoiq
Linkedin Profile Details Scraper + EMAIL (No Cookies Required)
by apimaestro
Twitter (X.com) Scraper Unlimited: No Limits
by apidojo
Content Checker
by jakubbalada
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