Extract structured video data from any YouTube playlist with precision control. This scraper targets specific playlist positions, toggles metadata depth, and produces clean, ready-to-use datasets for research, analytics, and automation workflows.
Created by Bitbash, built to showcase our approach to Scraping and Automation!
If you are looking for π YouTube Playlist Scraperπ₯ you've just found your team β Letβs Chat. ππ
The YouTube Playlist Scraper retrieves titles, channels, engagement metrics, thumbnails, and metadata from YouTube playlists. It solves the need for fast, targeted extraction without scanning entire playlists. Ideal for analysts, researchers, content creators, and developers needing structured playlist insights.
- Select exact playlist positions such as β2,5β instead of scraping every video.
- Toggle additional metadata (views, likes, tags, descriptions) for lightweight or full outputs.
- Combine max video limits with positional targeting for hybrid filtering.
- Faster performance due to index-based skipping instead of full playlist scans.
- Optimized for both high-detail datasets and lightweight mobile-ready payloads.
| Feature | Description |
|---|---|
| Video Position Selection | Pick exact playlist positions (e.g., 1,3,5) without processing the entire list. |
| Metadata Toggle | Enable or disable additional video metrics to control output size and speed. |
| Hybrid Filtering | Use both maxVideosPerPlaylist and videoNumbers together for precise control. |
| Structured Output Modes | Choose full metadata or lightweight mode based on your needs. |
| Optimized Performance | Extracts only required entries, cutting processing time significantly. |
| Field Name | Field Description |
|---|---|
| playlist_url | Source playlist link. |
| video_title | Title of the video. |
| channel_name | Name of the uploaderβs channel. |
| video_url | Direct link to the video. |
| duration | Video duration in minutes/seconds format. |
| thumbnail | High-quality thumbnail URL. |
| additional_info | Optional block containing views, likes, tags, and full description. |
[
{
"playlist_url": "https://youtube.com/playlist?list=PLKqX9tEhgjeaqBzvPfRT4WZ_lLPc4gNfK",
"video_title": "Islamic background music no copyright",
"channel_name": "Islamic Music",
"video_url": "https://www.youtube.com/watch?v=u9i6OaCjhlw",
"duration": "2m 28s",
"thumbnail": "https://i.ytimg.com/vi_webp/u9i6OaCjhlw/maxresdefault.webp",
"additional_info": {
"view_count": 3576151,
"like_count": 55209,
"tags": ["islamic music", "no copyright"],
"description": "β οΈ Youβre free to use this song..."
}
}
]
π YouTube Playlist Scraperπ₯/
βββ src/
β βββ runner.js
β βββ extractors/
β β βββ playlist_parser.js
β β βββ utils_format.js
β βββ outputs/
β β βββ exporter.js
β βββ config/
β βββ settings.example.json
βββ data/
β βββ sample-playlists.txt
β βββ example-output.json
βββ package.json
βββ README.md
- Researchers use it to analyze playlist structure so they can study content sequencing and viewer engagement patterns.
- Developers integrate the scraper into APIs to deliver lightweight metadata for mobile or embedded applications.
- Content strategists track the performance of specific playlist positions to optimize placement strategies.
- Archivists preserve critical playlist entries with full metadata for long-term documentation.
- SEO analysts gather metadata-rich snapshots to compare optimization differences across playlists.
Q: Why am I only getting one or two videos even though the playlist has many? A: Ensure the videoNumbers you selected exist within the first maxVideosPerPlaylist items. Increase the limit if needed.
Q: Why is metadata missing even though includeAdditionalInfo is true? A: Some YouTube videos hide engagement data. Retry later or confirm the setting is correctly enabled.
Q: What happens if a target video index doesnβt exist? A: The scraper safely skips missing positions instead of failing the job.
Q: Can I combine positional filtering and max video limits? A: Yes β the scraper first scans up to the max limit, then extracts only the numbered positions.
Primary Metric: Extracts 20 videos with metadata in approximately 2β5 minutes on average. Reliability Metric: Maintains a stable success rate above 98% across varied playlist sizes. Efficiency Metric: Lightweight mode reduces payload size by ~20% and improves processing speed by ~40%. Quality Metric: Provides high-precision data with consistent field completeness and accurate video ordering.
