Youtube Search Scraper

Youtube Search Scraper

by thenetaji

Scrape YouTube search results, channels, videos, and Shorts with advanced filters. A fast, affordable alternative to the official API for developers and researchers.

14 runs
2 users
Try This Actor

Opens on Apify.com

About Youtube Search Scraper

Need to pull data from YouTube search results without hitting API limits or breaking the bank? I've been there. This scraper is my go-to for getting clean, structured data from YouTube searches. You can filter results by upload date, duration, features (like 4K or live streams), and sort by relevance, date, or view count. It pulls everything you'd need: full video details, channel info, and even those popular Shorts. I use it for competitor analysis, tracking trending topics, and gathering data for content research. The real win is that it's both affordable and fast—you get the data you need without the typical YouTube Data API quota headaches. It runs on Apify's platform, so you can schedule runs, integrate it into your workflows, and get the results in JSON, CSV, or other handy formats. If you're looking to automate your YouTube data collection, this is the simplest and most cost-effective way I've found to do it.

What does this actor do?

Youtube Search Scraper 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

  1. Click "Try This Actor" to open it on Apify
  2. Create a free Apify account if you don't have one
  3. Configure the input parameters as needed
  4. Run the actor and download your results

Documentation

YouTube Search Scraper

Scrapes YouTube search results for videos, channels, playlists, movies, shows, and Shorts. It supports advanced filtering and sorting to extract structured data for analysis and automation.

Key Features

  • Multi-type search: Retrieve videos, channels, playlists, movies, shows, or Shorts.
  • Advanced filtering: Filter by duration, upload date, and features (HD, subtitles, 4K, etc.).
  • Sorting options: Order results by relevance, rating, upload date, or view count.
  • Geographic & language targeting: Specify country (geo) and language (lang) for localized results.
  • Pagination: Automatically paginates to collect results; use resumeToken to continue interrupted runs.
  • Structured output: Returns clean JSON objects for each result type.

How to Use

Configure the actor with an input JSON object. Only type and searchQuery are mandatory.

Basic Example

{
  "type": "search",
  "searchQuery": "cat videos",
  "searchType": "video",
  "maxItem": 50
}

Advanced Example

{
  "type": "search",
  "searchQuery": "machine learning tutorial",
  "searchType": "video",
  "sortBy": "views",
  "duration": "long",
  "uploadDate": "year",
  "features": "HD,subtitles",
  "maxItem": 100,
  "geo": "US",
  "lang": "en"
}

Input Parameters

Field Type Required Description Default
type string Yes Must be "search". -
searchQuery string Yes Keywords to search for. -
searchType string No Result type: video, channel, playlist, movie, show, shorts. video
sortBy string No Sort order: relevance, rating, date, views. relevance
duration string No Video length: short (<4 min), medium (4-20 min), long (>20 min). -
uploadDate string No Upload window: hour, today, week, month, year. -
features string No Comma-separated features (e.g., HD,subtitles,4K). -
maxItem number No Maximum number of results to return. 100
resumeToken string No Token from a previous run to resume scraping. -
geo string No ISO 3166-2 country code for geo-specific results. US
lang string No Language code for results. en

Output

The actor outputs an array of items, where each item is a structured object based on the searchType.

Video Object

{
  "type": "video",
  "videoId": "dQw4w9WgXcQ",
  "title": "Never Gonna Give You Up",
  "thumbnails": [...],
  "channel": { "id": "UC...", "name": "Rick Astley", "thumbnails": [...] },
  "duration": "213",
  "viewCount": "1234567890",
  "publishedTimeText": "14 years ago",
  "badges": ["CC"]
}

Channel Object

{
  "type": "channel",
  "channelId": "UCuAXFkgsw1L7xaCfnd5JJOw",
  "name": "Rick Astley",
  "handle": "@RickAstley",
  "thumbnails": [...],
  "subscriberCount": "5.2M subscribers",
  "videoCount": "234 videos",
  "description": "Official channel..."
}

Playlist Object

{
  "type": "playlist",
  "playlistId": "PLrAXtmErZgOeiKm4sgNOknGvNjby9efdf",
  "title": "Machine Learning Course",
  "channel": { "id": "UCxxx...", "name": "Stanford University" },
  "videoCount": 42,
  "thumbnails": [...]
}

Notes

  • The free tier is limited to 100 results (maxItem).
  • General searches may return mixed content types; use searchType for precise filtering.
  • Some filters (like specific features) can reduce the total number of available results.
  • For best results with YouTube Shorts, explicitly set "searchType": "shorts".

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 Scraper now on Apify. Free tier available with no credit card required.

Start Free Trial

Actor Information

Developer
thenetaji
Pricing
Paid
Total Runs
14
Active Users
2
Apify Platform

Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.

Learn more about Apify

Need Professional Help?

Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.

Find a Specialist

Trusted by millions | Money-back guarantee | 24/7 Support