YouTube Scraper - Videos, Shorts, Channels & Playlists avatar

YouTube Scraper - Videos, Shorts, Channels & Playlists

Pricing

from $1.50 / 1,000 results

Go to Apify Store
YouTube Scraper - Videos, Shorts, Channels & Playlists

YouTube Scraper - Videos, Shorts, Channels & Playlists

[$1.5/1000] Scrape YouTube videos, shorts, live streams, channels and playlists from links or @handles: views, likes, tags, chapters, captions list, related videos and channel stats. No key needed; your own free API key adds comments and full pagination.

Pricing

from $1.50 / 1,000 results

Rating

0.0

(0)

Developer

Amethys

Amethys

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Categories

Features

Limited permissions

Share

YouTube Scraper: videos, shorts, live streams, channels and playlists

Paste any mix of YouTube links, IDs or @handles and get clean, structured data back. Each video is opened in full, so you get much more than what the listing card shows.

  • Works without a key. It reads YouTube's public pages: exact views and likes, tags, chapters, caption languages, related videos, channel stats and links.
  • Add your own free YouTube Data API key (optional) to unlock comments with replies, every video of a channel or playlist, extra exact statistics, and per-country most-popular charts. You use your own free daily quota and pay nothing extra.

What you can scrape

InputWhat you get
Video link, youtu.be link, Shorts or Live link, or video IDOne full video item
Channel (@handle, /channel/UC..., /c/..., /user/...)A channel profile, plus the videos, shorts, live streams and playlists from the tabs you pick
Playlist link or IDA playlist item, plus its videos in order
Country codes (needs a key)YouTube's official most-popular chart for each country, with rank

Data per video

  • Basics: title, URL, full description, links found in the description, hashtags, tags, category, duration, and publish and upload dates.
  • Stats: exact view count, like count and comment count.
  • Channel: ID, name, @handle, URL, verified or artist badge, subscriber count and avatar.
  • Chapters: start time and title for each chapter.
  • Captions: which caption languages the video has, including auto-generated ones. This is the list of languages, not the caption text.
  • Related videos: about 20 related videos with title, channel, views and duration.
  • Status: live, upcoming and Shorts flags, age restriction, family-safe, unlisted, and the number of countries where the video is available.
  • Images: thumbnail URLs in every size.
  • With your API key: comments (author, text, likes, date, replies), definition (HD/SD), license, embeddable, made-for-kids, topic categories, region restrictions, and live viewers and start/end times.

Data per channel

Subscriber count, total views, exact video count, joined date, country, description, links (Instagram, X, websites and so on), avatar, banner, verified badge, keywords and the list of available tabs. With a key you also get the uploads playlist ID, topic categories and made-for-kids.

Key or no key

No keyYour own API key
Video detail (views, likes, tags, chapters, related videos)YesYes, plus extra fields
Channel profileYesYes
Videos per channel tabFirst page (about 30 videos, 48 shorts, 30 streams, 30 playlists)All of them, up to your limit
Videos per playlistFirst 100All of them, up to your limit
Comments and repliesNoYes
Most-popular charts by countryNoYes

How to get a free API key (about 2 minutes)

  1. Open the Google Cloud Console and create a project.
  2. Go to APIs & Services > Library, search for YouTube Data API v3 and click Enable.
  3. Go to APIs & Services > Credentials > Create credentials > API key, and copy the key.
  4. Paste it into the Your YouTube Data API key field. It is stored encrypted.

Every Google project gets 10,000 free quota units a day. This actor's calls cost 1 unit each. For example, 50 videos' statistics cost 1 unit, 100 comments cost 1 unit, and 50 playlist videos cost 1 unit. A normal run uses a few dozen units. If the quota runs out, the actor keeps going with key-free data and logs a warning.

What this actor does not do

  • No transcripts or caption text. YouTube's robots.txt disallows the caption endpoint, and the official API only lets a video's owner download captions. You do get the list of caption languages.
  • No keyword search here. Use the separate YouTube Search Scraper.
  • No video downloads. You get metadata, thumbnails and links, not video files.
  • Without a key, channel tabs and playlists stop after the first page. YouTube loads more through an internal API that robots.txt disallows for all crawlers, so this actor never calls it.

Input example

{
"targets": ["@NASA", "https://youtu.be/dQw4w9WgXcQ", "https://www.youtube.com/playlist?list=PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI"],
"channelTabs": ["videos", "shorts", "streams", "playlists"],
"maxVideosPerTab": 30,
"scrapeVideoDetails": true,
"youtubeApiKey": "AIza...optional",
"maxCommentsPerVideo": 100,
"maxRepliesPerComment": 10,
"trendingRegions": ["US", "ID"]
}

Output example (video, shortened)

{
"type": "video",
"video_id": "dQw4w9WgXcQ",
"title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)",
"view_count": 1838391725,
"like_count": 19510466,
"comment_count": 2400000,
"duration_text": "3:33",
"published_at": "2009-10-24T23:57:33-07:00",
"category": "Music",
"channel_name": "Rick Astley",
"channel_handle": "@RickAstleyYT",
"channel_verified": true,
"hashtags": ["#OfficialMusicVideo", "#NeverGonnaGiveYouUp"],
"caption_languages": [{"language_code": "en", "name": "English", "auto_generated": false}],
"related_videos": [{"video_id": "yPYZpwSpKmA", "title": "Rick Astley - Together Forever", "view_count": 208000000}],
"data_sources": ["watch_page"]
}

Every item has a type field (video, channel or playlist) and a data_sources list that shows where each item's data came from. The dataset has ready-made views for Videos, Channels, Playlists and Comments.

Tips

  • If you only need channel and listing data, turn off Open every video for full detail. Runs are much faster, but you get card-level fields only (views rounded, like "75M").
  • If YouTube starts asking runs to "confirm you're not a bot", set a residential proxy. Most runs don't need a proxy.

Pricing

$1.5 per 1,000 results. One result is one video, channel or playlist item. Comments are nested inside their video and don't count as separate results.