VOOZH about

URL: https://apify.com/sajjadstack/youtube-scraper

⇱ YouTube Scraper Pro Β· Apify


Pricing

Pay per usage

Go to Apify Store

YouTube Scraper Pro

Scrape YouTube videos, channels, playlists & search results without API limits. Extract title, views, likes, subscribers, subtitles & more. Export to JSON, CSV or Excel. No quotas. Powered by Crawlee & Playwright.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

πŸ‘ sajjad

sajjad

Maintained by Community

Actor stats

0

Bookmarked

14

Total users

1

Monthly active users

3 months ago

Last modified

Share

YouTube Scraper β€” Apify Actor

A high‑performance Apify Actor built with Apify SDK v3, Crawlee, and TypeScript that scrapes YouTube search results, video pages, channels, and playlists.


Features

CapabilityDetails
Search scrapingEnter keywords β†’ get structured video data
Direct URL scrapingPass video, channel, or playlist URLs
PaginationAutomatically follows YouTube continuation tokens
Search filtersFilter by upload date and video type (videos / shorts / streams)
Subtitle extractionOptionally download and parse video captions
Anti‑blockingUses Apify datacenter proxy with session rotation
Typed outputEvery record matches the VideoData TypeScript interface

Input

The Actor accepts JSON input conforming to INPUT_SCHEMA.json.

FieldTypeDefaultDescription
searchTermsstring[][]YouTube search keywords
youtubeUrlsstring[][]Direct video / channel / playlist URLs
maxResultsnumber50Maximum videos to scrape
scrapeSubtitlesbooleanfalseExtract subtitles / captions
videoTypeenum"all""videos" Β· "shorts" Β· "streams" Β· "all"
dateFilterenum"all""hour" Β· "day" Β· "week" Β· "month" Β· "year" Β· "all"

Example input

{
"searchTerms":["web scraping tutorial","node.js"],
"youtubeUrls":[
"https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"https://www.youtube.com/@Google/videos"
],
"maxResults":100,
"scrapeSubtitles":true,
"videoType":"videos",
"dateFilter":"month"
}

Output

Each video is pushed to the default Apify Dataset as a JSON record:

{
"title":"Learn Web Scraping in 20 Minutes",
"videoId":"abc123xyz",
"url":"https://www.youtube.com/watch?v=abc123xyz",
"thumbnailUrl":"https://i.ytimg.com/vi/abc123xyz/maxresdefault.jpg",
"viewCount":152340,
"likeCount":4200,
"commentsCount":312,
"duration":"20:15",
"uploadDate":"2025-12-01",
"channelName":"Code Academy",
"channelUrl":"https://www.youtube.com/channel/UC1234567890",
"subscriberCount":"1.2M subscribers",
"description":"In this tutorial we cover ...",
"hashtags":["#webscraping","#nodejs"],
"subtitles":"Hi everyone, welcome to this tutorial ...",
"scrapedAt":"2026-03-06T12:00:00.000Z"
}

Tech Stack

  • Apify SDK v3 β€” Actor lifecycle, dataset, proxy
  • Crawlee β€” CheerioCrawler with labeled routing
  • TypeScript 5 β€” strict mode, ESM
  • Node.js 20

Project Structure

β”œβ”€β”€ .actor/
β”‚ └── actor.json # Actor metadata
β”œβ”€β”€ src/
β”‚ β”œβ”€β”€ main.ts # Entry point β€” input parsing, crawler setup
β”‚ β”œβ”€β”€ scraper.ts # Crawlee router & request handlers
β”‚ β”œβ”€β”€ types.ts # TypeScript interfaces & enums
β”‚ └── utils.ts # JSON extraction, URL helpers, parsers
β”œβ”€β”€ Dockerfile # Docker image definition
β”œβ”€β”€ INPUT_SCHEMA.json # Apify input schema
β”œβ”€β”€ package.json # Dependencies & scripts
β”œβ”€β”€ tsconfig.json # TypeScript config
└── README.md # This file

Local Development

# Install dependencies
npminstall
# Create an input file
mkdir-p storage/key_value_stores/default
echo'{ "searchTerms": ["apify tutorial"], "maxResults": 5 }'\
> storage/key_value_stores/default/INPUT.json
# Run in development mode (tsx β€” no build step)
npm run dev
# Or build & run
npm start

Note: Proxy is only available when running on the Apify platform. Local runs execute without proxy and may be rate‑limited by YouTube.


Deploying to Apify

# Install the Apify CLI
npminstall-g apify-cli
# Log in
apify login
# Push the Actor to Apify
apify push

How It Works

  1. Search URLs are built from searchTerms with optional sp protobuf filters for date and video type.
  2. CheerioCrawler fetches each page and the embedded ytInitialData / ytInitialPlayerResponse JSON blobs are extracted from <script> tags β€” no browser needed.
  3. Search results are parsed and individual video page requests are enqueued (up to maxResults).
  4. Pagination uses YouTube's innertube continuation API via POST requests with the continuation token.
  5. Each video page handler extracts detailed metadata (likes, comments, subscribers, subtitles) and pushes a VideoData record to the Apify Dataset.

License

ISC

You might also like

YouTube Scraper - Search, Videos, Channels & Playlists

code-node-tools/youtube-scraper

YouTube scraper to extract video metadata from channels, playlists & search. Scrape YouTube videos without API limits - get titles, views, likes, thumbnails, transcripts & more. Fast YouTube channel scraper & playlist scraper. No YouTube API key required. Export to CSV/JSON.

14

YouTube Search Scraper - Scrape Videos by Keyword

logiover/youtube-search-scraper

YouTube keyword scraper and search API alternative. Scrape YouTube results without an API key; export videos, channels and playlists to CSV, JSON, Excel.

YouTube Scraper - Videos, Channels & Comments

pear_fight/youtube-scraper

Scrape YouTube videos, channels, playlists & search results. Extract views, likes, comments, subscribers, upload dates. No API key needed. Fast HTML parsing, no browser. Pay per result. Export JSON/CSV/Excel.

Ultimate YouTube Scraper β€” Videos, Transcripts & Comments

pro100chok/youtube-scraper-all-in-one

Scrape YouTube without an API key or limits. Extract video details, channel data, search results, Shorts, comments & replies, transcripts/subtitles and playlists β€” all in one actor. Auto-extracts emails & social links from channels. Export to JSON, CSV & Excel. Fast, bulk, no quotas.

YouTube Scraper

scrapeforge/youtube-scraper

Scrape YouTube videos, channels, playlists, and trending. Search by keyword, handle, or URL. Get titles, views, likes, descriptions, tags, and more. Fast, reliable, and export to JSON, CSV, or Excel.

YouTube Goldmine Scraper – High‑Volume Video & Channel Data

botflowtech/youtube-goldmine-scraper---high-volume-video-channel-data

Scrape YouTube at scale without API limits: channels, videos, playlists, and search results in bulk. Get normalized views, likes, subscribers, comments, hashtags, and subtitles, optimized for low cost per 1,000 results.

Youtube Scraper

happitap/youtube-scraper

Extract YouTube data without coding. Scrape video details, channel info, playlists, search results, and subtitles. Download channel name, subscribers, views, likes, and more in minutes using this fast, reliable YouTube scraper.

YouTube Scraper

streamers/youtube-scraper

YouTube crawler and video scraper. Alternative YouTube API with no limits or quotas. Extract and download channel name, likes, number of views, and number of subscribers.

89K

4.8

Youtube Scraper Plus

practicaltools/youtube-scraper-plus

YouTube Scraper is a powerful, high-performance tool designed to extract comprehensive data from YouTube without the limitations of the official YouTube Data API. Scrape videos, channels, playlists, shorts, and search results at scaleβ€” no API key or quotas required.

πŸ‘ User avatar

Practical Tools

8

Youtube Full Channel Videos Scraper - Pay per Results

scrapestorm/youtube-full-channel-videos-scraper---pay-per-results

Alternative YouTube API for unlimited access: πŸ§‘β€πŸ’» Crawl and scrape YouTube channels to extract and download details such as the title πŸ“Ί, likes πŸ‘, view count πŸ‘€, published time ⏰, and length πŸ“Š without any limits or quotas 🚫

123