YouTube Scraper avatar

YouTube Scraper

Try for free

Pay $5.00 for 1,000 videos

Go to Store
YouTube Scraper

YouTube Scraper

streamers/youtube-scraper
Try for free

Pay $5.00 for 1,000 videos

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.

Do you want to learn more about this Actor?

Get a demo

What does YouTube Scraper do?

YouTube Scraper is a data extraction tool created to go beyond the limitations of the YouTube Data API. It extracts public data from YouTube video platform without limitations such as quotas or units. This tool is perfect for you if you need to:

  • scrape YouTube channel videos, titles, description, metadata, etc.
  • scrape YouTube videos with view count, release date, number of likes, number of comments, etc.
  • scrape YouTube subtitles
  • scrape YouTube playlists and streams
  • scrape YouTube search results

What data can you scrape from YouTube?

📺 Channel name👍 Number of likes
📱 Social media links💬 Comments count
📝 Video title🔗 Video URL
🖍 Subtitles📍 Channel location
📼 Total videos🌐 Channel URL
👀 Number of views👁️ Video view count
🧿 Total views📈 Number of subscribers
⏱️ Duration📅 Release date

How many videos can you scrape with YouTube Scraper?

YouTube Scraper can extract up to 20,000 videos per URL. However, you have to keep in mind that scraping youtube.com has many variables to it and may cause the results to fluctuate case by case. There’s no one-size-fits-all-use-cases number. The maximum number of results may vary depending on the complexity of the input, location, and other factors.

Therefore, while we regularly run scraper tests to keep the benchmarks in check, the results may also fluctuate without our knowing. The best way to know for sure for your particular use case is to do a test run yourself.

⬇️ Input example

For input, you can either use the fields in Console to set up your Actor or input it directly via JSON. You can also use this scraper locally — head over to the input schema tab for technical details.

🔗 How to scrape YouTube by URL or search term

There are two ways you can scrape YouTube: either by URL or by search term.

  1. Scraping by URL 🔗 will get you data from any video, channel, playlist, or search results. You can add as many URLs as you want.
  2. Scraping by search term 🔑 will get you data from YouTube search results. You can also add as many search terms as you want.
Scraping by URL

Paste a YouTube link to a YouTube video, channel, playlist, or search results page. You can also import a CSV file or Google Sheet with a prepared list of URLs. Then choose how many results you would like to extract and click Start.

Scraping using search termType in keywords as you would normally do it in the YouTube search bar. Then choose how many results you would like to extract and click Start.

⬆️ Output example

The scraped results will be shown as a dataset which you can find in the Storage tab. Note that the output is organized as a table for viewing convenience, but it doesn’t show all the fields:


You can preview all the fields and download the file with YouTube data in various formats (JSON, CSV, Excel, and more). Here’s a few JSON examples of different YouTube scraping cases:

💁‍♂️ Channel info

1{
2  "id": "HV6OlMPn5sI",
3  "title": "Raimu - The Spirit Within 🍃 [lofi hip hop/relaxing beats]",
4  "duration": "29:54",
5  "channelName": "Lofi Girl",
6  "channelUrl": "https://www.youtube.com/channel/UCSJ4gkVC6NrvII8umztf0Ow",
7  "date": "10 months ago",
8  "url": "https://www.youtube.com/watch?v=HV6OlMPn5sI",
9  "viewCount": 410458,
10  "fromYTUrl": "https://www.youtube.com/@LofiGirl/videos",
11  "channelDescription": "\"That girl studying by the window non-stop\"\n\n🎧 | Listen on Spotify, Apple music and more\n→   https://bit.ly/lofigirl-playlists\n\n💬 | Join the Lofi Girl community \n→   https://bit.ly/lofigirl-discord\n→   https://bit.ly/lofigirl-reddit\n\n🌎 | Lofi Girl on all social media\n→   https://bit.ly/lofigirl-sociaI",
12  "channelDescriptionLinks": [
13    {
14        "text": "Discord",
15        "url": "https://discord.com/invite/hUKvJnw"
16    },
17    {
18        "text": "Tiktok",
19        "url": "https://www.tiktok.com/@lofigirl/"
20    },
21    {
22        "text": "Instagram",
23        "url": "https://www.instagram.com/lofigirl/"
24    },
25    {
26        "text": "Twitter",
27        "url": "https://twitter.com/lofigirl"
28    },
29    {
30        "text": "Spotify",
31        "url": "https://open.spotify.com/playlist/0vvXsWCC9xrXsKd4FyS8kM"
32    },
33    {
34        "text": "Apple music",
35        "url": "https://music.apple.com/fr/playlist/lofi-hip-hop-music-beats-to-relax-study-to/pl.u-2aoq8mqiGo7J6A0"
36    },
37    {
38        "text": "Merch",
39        "url": "https://lofigirlshop.com/"
40    }
41  ],
42  "channelJoinedDate": "Mar 18, 2015",
43  "channelLocation": "France",
44  "channelTotalVideos": 409,
45  "channelTotalViews": "1,710,167,563",
46  "numberOfSubscribers": 13100000,
47  "isMonetized": true,
48  "inputChannelUrl": "https://www.youtube.com/@LofiGirl/about"
49}

📹 A single video

1{
2  "title": "Stromae - Santé (Live From The Tonight Show Starring Jimmy Fallon)",
3  "id": "CW7gfrTlr0Y",
4  "url": "https://www.youtube.com/watch?v=CW7gfrTlr0Y",
5  "thumbnailUrl": "https://i.ytimg.com/vi/CW7gfrTlr0Y/maxresdefault.jpg",
6  "viewCount": 35582192,
7  "date": "2021-12-21",
8  "likes": 512238,
9  "location": null,
10  "channelName": "StromaeVEVO",
11  "channelUrl": "http://www.youtube.com/@StromaeVEVO",
12  "numberOfSubscribers": 6930000,
13  "duration": "00:03:17",
14  "commentsCount": 14,
15  "text": "Stromae - Santé (Live From The Tonight Show Starring Jimmy Fallon on NBC)\nListen to \"La solassitude\" here: https://stromae.lnk.to/la-solassitude\nOrder my new album \"Multitude\" here: https://stromae.lnk.to/multitudeID\n--\nhttps://www.stromae.com/fr/\nhttps://www.tiktok.com/@stromae\nhttps://www.facebook.com/stromae\nhttps://www.instagram.com/stromae\nhttps://twitter.com/stromae\n   / @stromae  \n--\nMosaert\nPaul Van Haver (Stromae) : creative direction\nCoralie Barbier : creative direction and fashion design\nLuc Van Haver : creative direction\nGaëlle Birenbaum : communication & project manager\nEvence Guinet-Dannonay : executive assistant\nGaëlle Cools : content & community manager\nRoxane Hauzeur : textile product manager\nDiego Mitrugno : office manager\n\nPartizan\nProducer : Auguste Bas\nLine Producer : Zélie Deletrain \nProduction coordinator : Lou Bardou-Jacquet \nProduction assistant : Hugo Dao\nProduction assistant : Adrien Bossa\nProduction assistant : Basile Jan\n\nDirector : Julien Soulier \n1st assistant director : Mathieu Perez \n2nd assistant director : Leila Gentet \n\nDirector of Photography : Kaname Onoyama \n1st assistant operator : Micaela albanese\n2nd assistant operator : Florian Rey \nDoP Mantee : Zhaopeng Zhong\nMaking of : Adryen Barreyat\n\nHead Gaffer : Sophie Delorme \nElectrician : Sacha Brauman\nElectrician: Tom Devianne\nLighting designer : Aurélien Dayot\nPrelight electrician : Emmanuel Malherbe\n\nHead Grip : Dioclès Desrieux \nBest Boy grip : Eloi Perrin \nPrelight Grip : Vladimir Duranovic \n\nLocation manager : Léo Rodriguez \nLocation manager assistant : Grégoire Décatoire \nLocation manager assistant : Mathieu Barazer \n\nStylist : Sandra Gonzalez \nStylist assistant : Sarah Bernard\n\nMake Up and Hair Artist : Camille Roche \nMake up Artist : Carla Lange \nMake Up and Hair Artist : Victoria Pinto \n\nSound Engineer : Lionel Capouillez \nBackliner : Nicolas Fradet \n\nProduction Designer : Penelope Hemon \n\nChoreographer : Marion Motin \nChoreographer assistant : Jeanne Michel \n\nPost production : Royal Post\nPost-Production Director : Cindy Durand Paucsik\nEditor : Marco Novoa\nEditor assistant : Térence Nury \nGrader : Vincent Amor\nVFX Supervisor : Julien Laudicina\nGraphic designer : Quentin Mesureux \nGraphic designer : Lucas Ponçon \nFilm Lab Assistant : Hadrian Kalmbach\n\nMusicians:\nFlorian Rossi \nManoli Avgoustinatos\nSimon Schoovaerts \nYoshi Masuda \n\nDancers: \nJuliana Casas\nLydie Alberto \nRobinson Cassarino\nYohann Hebi daher\nChris Fargeot \nAudrey Hurtis \nElodie Hilsum\nDaya jones \nThéophile Bensusan \nBrandon Masele \nJean Michel Premier \nKevin Bago\nAchraf Bouzefour\nPauline Journe \nCaroline Bouquet \nManon Bouquet\nAshley Biscette \nJocelyn Laurent \nOumrata Konan\nKylian Toto\nEnzo Lesne \nSalomon Mpondo-Dicka\nSandrine Monar \nKarl-Ruben Noel\n\n#Stromae #Sante #JimmyFallon",
16  "descriptionLinks": [
17    {
18      "url": "https://stromae.lnk.to/la-solassitude",
19      "text": "https://stromae.lnk.to/la-solassitude"
20    },
21    {
22      "url": "https://stromae.lnk.to/multitudeID",
23      "text": "https://stromae.lnk.to/multitudeID"
24    },
25    {
26      "url": "https://www.stromae.com/fr/",
27      "text": "https://www.stromae.com/fr/"
28    },
29    {
30      "url": "https://www.tiktok.com/@stromae",
31      "text": "https://www.tiktok.com/@stromae"
32    },
33    {
34      "url": "https://www.facebook.com/stromae",
35      "text": "https://www.facebook.com/stromae"
36    },
37    {
38      "url": "https://www.instagram.com/stromae",
39      "text": "https://www.instagram.com/stromae"
40    },
41    {
42      "url": "https://twitter.com/stromae",
43      "text": "https://twitter.com/stromae"
44    },
45    {
46      "url": "https://www.youtube.com/channel/UCXF0YCBWewAj3RytJUAivGA",
47      "text": "   / @stromae  "
48    },
49    {
50      "url": "https://www.youtube.com/hashtag/stromae",
51      "text": "#Stromae"
52    },
53    {
54      "url": "https://www.youtube.com/hashtag/sante",
55      "text": "#Sante"
56    },
57    {
58      "url": "https://www.youtube.com/hashtag/jimmyfallon",
59      "text": "#JimmyFallon"
60    }
61  ],
62  "subtitles": null,
63  "comments": null,
64  "isMonetized": true,
65  "commentsTurnedOff": false
66}

🎧 YouTube playlist

1{
2  "id": "CdgDLaxe2Q4",
3  "title": "Lecture 4 | String Theory and M-Theory",
4  "duration": "1:23:37",
5  "channelName": "Stanford",
6  "channelUrl": "https://www.youtube.com/@stanford",
7  "date": "12 years ago",
8  "url": "https://www.youtube.com/watch?v=CdgDLaxe2Q4&list=PL6i60qoDQhQGaGbbg-4aSwXJvxOqO6o5e&index=100",
9  "viewCount": 106000,
10  "fromYTUrl": "https://www.youtube.com/playlist?list=PL6i60qoDQhQGaGbbg-4aSwXJvxOqO6o5e"
11},
12{
13  "id": "gCyImLu0HSI",
14  "title": "Lecture 3 | String Theory and M-Theory",
15  "duration": "1:45:47",
16  "channelName": "Stanford",
17  "channelUrl": "https://www.youtube.com/@stanford",
18  "date": "12 years ago",
19  "url": "https://www.youtube.com/watch?v=gCyImLu0HSI&list=PL6i60qoDQhQGaGbbg-4aSwXJvxOqO6o5e&index=99",
20  "viewCount": 170000,
21  "fromYTUrl": "https://www.youtube.com/playlist?list=PL6i60qoDQhQGaGbbg-4aSwXJvxOqO6o5e"
22},
23{
24  "id": "-BleG7PBwEA",
25  "title": "Lecture 2 | String Theory and M-Theory",
26  "duration": "1:48:07",
27  "channelName": "Stanford",
28  "channelUrl": "https://www.youtube.com/@stanford",
29  "date": "12 years ago",
30  "url": "https://www.youtube.com/watch?v=-BleG7PBwEA&list=PL6i60qoDQhQGaGbbg-4aSwXJvxOqO6o5e&index=98",
31  "viewCount": 317000,
32  "fromYTUrl": "https://www.youtube.com/playlist?list=PL6i60qoDQhQGaGbbg-4aSwXJvxOqO6o5e"
33},
34{
35  "id": "25haxRuZQUk",
36  "title": "Lecture 1 | String Theory and M-Theory",
37  "duration": "1:46:55",
38  "channelName": "Stanford",
39  "channelUrl": "https://www.youtube.com/@stanford",
40  "date": "12 years ago",
41  "url": "https://www.youtube.com/watch?v=25haxRuZQUk&list=PL6i60qoDQhQGaGbbg-4aSwXJvxOqO6o5e&index=97",
42  "viewCount": 2300000,
43  "fromYTUrl": "https://www.youtube.com/playlist?list=PL6i60qoDQhQGaGbbg-4aSwXJvxOqO6o5e"
44},
45{
46  "id": "QD8SEcoFyAw",
47  "title": "Lecture 10 | New Revolutions in Particle Physics: Standard Model",
48  "duration": "1:38:20",
49  "channelName": "Stanford",
50  "channelUrl": "https://www.youtube.com/@stanford",
51  "date": "13 years ago",
52  "url": "https://www.youtube.com/watch?v=QD8SEcoFyAw&list=PL6i60qoDQhQGaGbbg-4aSwXJvxOqO6o5e&index=96",
53  "viewCount": 57000,
54  "fromYTUrl": "https://www.youtube.com/playlist?list=PL6i60qoDQhQGaGbbg-4aSwXJvxOqO6o5e"
55},
56{
57  "id": "qzGY-BrCUgA",
58  "title": "Lecture 9 | New Revolutions in Particle Physics: Standard Model",
59  "duration": "1:35:34",
60  "channelName": "Stanford",
61  "channelUrl": "https://www.youtube.com/@stanford",
62  "date": "13 years ago",
63  "url": "https://www.youtube.com/watch?v=qzGY-BrCUgA&list=PL6i60qoDQhQGaGbbg-4aSwXJvxOqO6o5e&index=95",
64  "viewCount": 54000,
65  "fromYTUrl": "https://www.youtube.com/playlist?list=PL6i60qoDQhQGaGbbg-4aSwXJvxOqO6o5e"
66},
67{
68  "id": "fw4K3sgza04",
69  "title": "Lecture 8 | New Revolutions in Particle Physics: Standard Model",
70  "duration": "1:24:00",
71  "channelName": "Stanford",
72  "channelUrl": "https://www.youtube.com/@stanford",
73  "date": "13 years ago",
74  "url": "https://www.youtube.com/watch?v=fw4K3sgza04&list=PL6i60qoDQhQGaGbbg-4aSwXJvxOqO6o5e&index=94",
75  "viewCount": 58000,
76  "fromYTUrl": "https://www.youtube.com/playlist?list=PL6i60qoDQhQGaGbbg-4aSwXJvxOqO6o5e"
77},

🔎 YouTube search results

1{
2  "id": "CwRMBKk8St0",
3  "title": "LET'S ARGUE: Beyoncé Fails the Bechdel Test!",
4  "duration": "13:48",
5  "channelName": "fantano",
6  "channelUrl": "https://www.youtube.com/@fantano",
7  "date": "5 years ago",
8  "url": "https://www.youtube.com/watch?v=CwRMBKk8St0",
9  "viewCount": 635379,
10  "fromYTUrl": "https://www.youtube.com/results?search_query=bechdel+test"
11},
12{
13  "id": "k86TWcdjQuM",
14  "title": "This scene is the anti-Bechdel test",
15  "duration": "1:00",
16  "channelName": "Newbie Star Trek",
17  "channelUrl": "https://www.youtube.com/@NewbieStarTrek",
18  "date": "2 months ago",
19  "url": "https://www.youtube.com/shorts/k86TWcdjQuM",
20  "viewCount": 6907,
21  "fromYTUrl": "https://www.youtube.com/results?search_query=bechdel+test"
22},
23{
24  "id": "vKlakrW50QU",
25  "title": "Inside Job passes the bechdel test",
26  "duration": "0:15",
27  "channelName": "Random Daydreamer",
28  "channelUrl": "https://www.youtube.com/@randomdaydreamer9970",
29  "date": "1 year ago",
30  "url": "https://www.youtube.com/watch?v=vKlakrW50QU",
31  "viewCount": 121824,
32  "fromYTUrl": "https://www.youtube.com/results?search_query=bechdel+test"
33},
34{
35  "id": "mL5hgNu4y3A",
36  "title": "Jessica Chastain Describes the Importance of the 'Bechdel Test'",
37  "duration": "3:05",
38  "channelName": "theoffcamerashow",
39  "channelUrl": "https://www.youtube.com/@theoffcamerashow",
40  "date": "2 years ago",
41  "url": "https://www.youtube.com/watch?v=mL5hgNu4y3A",
42  "viewCount": 24145,
43  "fromYTUrl": "https://www.youtube.com/results?search_query=bechdel+test"
44},
45{

How much will scraping YouTube cost you?

When it comes to scraping, it can be challenging to estimate the resources needed to extract data as use cases may vary significantly. That's why the best course of action is to run a test scrape with a small sample of input data and limited output. You’ll get your price per scrape, which you’ll then multiply by the number of scrapes you intend to do.

Watch this video for a few helpful tips. And don't forget that choosing a higher plan will save you money in the long run.

How to scrape YouTube data

You can scrape YouTube data by search term or a direct URL of a video, search results page, playlist, or channel. If both fields are filled out, the scraper prioritizes the URLs. Check out how to scrape YouTube in this step-by-step tutorial or this video.

How to use data scraped from YouTube

You can use this YouTube API to scrape data in order to:

  • Monitor the market: see mentions of your brand, the position of your content in search results or get insights into the activity of competitors
  • Find current trends and opinions shared by content creators and commenting users
  • Filter your search results based on more advanced criteria
  • Identify harmful or illegal content
  • Scrape subtitles for offline reading or increased accessibility
  • Accumulate information on products and services from video reviews and automate your buying decisions

Need to scrape YouTube comments or Shorts?

If you want to extract specific YouTube data, you can use one of the specialized scrapers below, each built particularly for the relevant YouTube data scraping case, whether it's Shorts, comments, or channels:

💬 YouTube Comments Scraper🏎 Fast YouTube Channel Scraper▶️ YouTube Shorts Scraper

If you need to download scraped YouTube videos, you can use YouTube Video Downloader ⬇️.

We also have other video-related scrapers in stock for you; to see more of those, check out the Video APIs in Apify Store or the compilation of Social media scrapers.

❓FAQ

Can I scrape dislikes from YouTube videos?

No. Both dislike and details properties have been removed altogether from new versions. Dislikes are not public info so you cannot scrape them.

Can I scrape subtitles from YouTube videos?

Yes. You can scrape all publicly available data from YouTube using a web scraper, including subtitles. Using this scraping tool, you can extract both autogenerated and added subtitles in SRT, WEBVTT, XML, or plain text format.

Can I integrate this YouTube scraper with other apps?

Last but not least, YouTube Scraper can be connected with almost any cloud service or web app thanks to integrations on the Apify platform. You can integrate with LangChain, Make, Trello, Zapier, Slack, Airbyte, GitHub, Google Sheets, Google Drive, Asana, and more.

You can also use webhooks to carry out an action whenever an event occurs, e.g., get a notification whenever YouTube Scraper successfully finishes a run.

Can I use YouTube Scraper with the API?

The Apify API gives you programmatic access to the Apify platform. The API is organized around RESTful HTTP endpoints that enable you to manage, schedule, and run Apify actors. The API also lets you access any datasets, monitor actor performance, fetch results, create and update versions, and more.

To access the API using Node.js, use the apify-client NPM package. To access the API using Python, use the apify-client PyPI package. Check out the Apify API reference docs for full details or click on the API tab for code examples.

Should I use a proxy when scraping YouTube?

Just like with other social media-related actors, using a proxy is essential if you want your scraper to run properly. You can either use your own proxy or stick to the default Apify Proxy servers. Datacenter proxies are recommended for use with this Actor.

Scraping YouTube is legal as long as you adhere to regulations concerning copyright and personal data. This scraper deals with cookies and privacy consent dialogs on your behalf, so be aware that the results from your YouTube scrape might contain personal information.

Personal data is protected by GDPR (EU Regulation 2016/679), and by other regulations around the world. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your reason is legitimate, please consult your lawyers. You can also read our blog post on the legality of web scraping.

Your feedback

We're always working on improving the performance of our Actors. So if you've got any technical feedback on YouTube Scraper, or simply found a bug, please create an issue on the Actor's Issues tab in Apify Console.

Developer
Maintained by Apify

Actor Metrics

  • 1.7k monthly users

  • 254 stars

  • 88% runs succeeded

  • 2.3 days response time

  • Created in Jul 2023

  • Modified a day ago