YouTube Scraper — Videos, Shorts, Channels & Playlists avatar

YouTube Scraper — Videos, Shorts, Channels & Playlists

Pricing

from $2.50 / 1,000 results

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

YouTube Scraper — Videos, Shorts, Channels & Playlists

Scrape public YouTube videos, Shorts, channels and playlists: title, views, likes, duration, tags, description, subscribers. No login or API key. Respects youtube.com/robots.txt.

Pricing

from $2.50 / 1,000 results

Rating

0.0

(0)

Developer

Venkatesh Sekar

Venkatesh Sekar

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

6 days ago

Last modified

Features

Limited permissions

Share

YouTube Scraper — Videos, Shorts, Channels & Playlists (No Login)

A YouTube scraper that needs no API key, no login and no cookies. Give it video, Shorts, channel or playlist URLs and it returns clean, structured data from YouTube's public pages: views, likes, comment count, duration, publish date, tags, description, thumbnail, plus channel subscribers, video count and avatar.

This actor follows youtube.com/robots.txt. It reads only the public pages that file allows, so it does not scrape search results or comments, and it reads only the first page of a channel or playlist. That is about 30 videos per tab.

What you get

Every dataset item has a type of video or channel.

TypeFields
videoid, url, title, channelName, channelId, channelUrl, views, likes, commentCount, duration (seconds), durationText, publishedAt (ISO date), publishedText, description, tags, thumbnail, isShort, isLive, category, source
channelid, handle, url, title, subscribersText, subscribers, videoCount, description, avatar, banner

Any value YouTube does not show, such as hidden like or subscriber counts, comes back as null. The actor never makes up a number.

Use cases

  • Track videos: views, likes and comment counts for a list of videos, tracked over time.
  • Research creators: subscribers and recent uploads for a list of channels.
  • Analyse playlists: export a playlist's videos with durations and tags.

Input

FieldDefaultWhat it does
startUrls@MrBeast videos, Rick Astley videoVideo (watch, youtu.be, /shorts/), channel (@handle, /channel/ID; add /shorts or /streams for that tab) or playlist URLs
maxResults20Videos per channel tab or playlist. YouTube shows about 30 on the first page
fetchVideoDetailstrueOpens each video's page for likes, tags, the full description, comment count and the exact date
includeChannelInfotrueAdds one channel record per channel input
proxyConfigurationApify ProxyProxy used for requests
{
"startUrls": [{ "url": "https://www.youtube.com/@MrBeast/videos" }, { "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ" }],
"maxResults": 20
}

Example output

{
"type": "video",
"id": "dQw4w9WgXcQ",
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)",
"channelName": "Rick Astley",
"views": 1837517267,
"likes": 19507012,
"commentCount": 2462471,
"duration": 213,
"publishedAt": "2009-10-24T23:57:33-07:00",
"tags": ["rick astley", "Never Gonna Give You Up", "nggyu"],
"isShort": false,
"category": "Music"
}

Pricing

$0.0032 per result. A video record and a channel record each count as one result. You pay only for items scraped successfully. Failed inputs, such as an invalid URL, a private or deleted video, or a blocked request, are never charged. They are listed in the run's FAILED_ITEMS record with the exact reason.

FAQ

Why no search results or comments? youtube.com/robots.txt disallows /results (search) and /youtubei/, the endpoint that loads comments and "load more" pages. This actor respects that file. Search inputs are reported in FAILED_ITEMS as search_not_supported and are not charged.

Why only about 30 videos per channel? YouTube shows about 30 videos on the first page of a channel tab or playlist. Loading more needs the disallowed /youtubei/ endpoint. To get more videos, add the video URLs directly.

Are the numbers exact? views and likes are exact when YouTube shows them. commentCount and subscribers come from YouTube's rounded text (for example 526M subscribers), so they are approximations. The original text is kept in subscribersText.

This actor collects only public data that YouTube shows to any visitor without logging in, and it follows youtube.com/robots.txt. You are responsible for how you use the data. Make sure your use follows YouTube's Terms of Service, copyright law and data protection rules such as the GDPR. This actor is not affiliated with or endorsed by YouTube or Google.