RealdataAPI Store - Browse tools published by our community and use them for your projects right away
logo

YouTube Scraper - Scrape YouTube Data

RealdataAPI / YouTube Scraper

Unlock the power of YouTube data with our cutting-edge YouTube Scraper. Seamlessly extract valuable information, including video details, views, likes, and comments. Empower your analytics, research, and content strategies with accurate and real-time YouTube data. Elevate your insights with our robust scraping services.

The YouTube Scraper is a powerful data extraction tool to overcome YouTube Data API limitations. It efficiently gathers public data from the YouTube video platform without constraints like quotas or units. Ideal for scraping various elements such as video details, channel information, subtitles, playlists, and search results, it offers a comprehensive solution for users needing diverse YouTube data.

Which information can be extracted using the YouTube scraping service?

  • Video title
  • Video view count
  • Video URL
  • Total views
  • Total videos
  • Subtitles
  • Social media links
  • Release date
  • Number of views
  • Number of subscribers
  • Number of likes
  • Duration
  • Comments count
  • Channel URL
  • Channel name
  • Channel location

YouTube Scraper Video Limitations Explained

Discover the video scraping capacity of YouTube Scraper, reaching up to 20,000 videos per URL. Remember that input complexity, location, and other factors influence results. While benchmarks are regularly checked, fluctuations may occur. Conduct a test run tailored to your specific use case for accurate insights.

Providing Input Examples

Configure your Actor using the fields in the Console or input data directly via JSON. Additionally, use this scraper locally by referring to the input schema tab for technical specifics.

Scraping YouTube: URL vs. Search Term

Scrape YouTube effortlessly using two methods:

URL Scraping: Extract data from videos, channels, playlists, or search results by adding multiple URLs.

Search Term Scraping: Retrieve data specifically from YouTube search results by including multiple search terms. Explore both options seamlessly.

URL Scraping Process

Simply insert a YouTube link pointing to a video, channel, playlist, or search results page. Alternatively, import a CSV file or Google Sheet containing a curated list of URLs. Select the desired number of results for extraction and initiate the process by clicking Start. Effortless data retrieval at your fingertips.

Search Term Scraping Procedure

Enter keywords just as you would in the YouTube search bar. Specify the number of desired results for extraction, then initiate the process by clicking Start. Simplified data retrieval with ease.

Example Output

View the scraped results conveniently organized as a dataset in the Storage tab. Note that the output is presented in a table format for ease of viewing, although not all fields may be displayed.

Field Preview and Download Options

Explore and preview all fields, then download your YouTube data in multiple formats such as JSON, CSV, Excel, and more. Here are a few JSON examples illustrating various YouTube scraping scenarios:

Channel Information


{
  "id": "HV6OlMPn5sI",
  "title": "Raimu - The Spirit Within 🍃 [lofi hip hop/relaxing beats]",
  "duration": "29:54",
  "channelName": "Lofi Girl",
  "channelUrl": "https://www.youtube.com/channel/UCSJ4gkVC6NrvII8umztf0Ow",
  "date": "10 months ago",
  "url": "https://www.youtube.com/watch?v=HV6OlMPn5sI",
  "viewCount": 410458,
  "fromYTUrl": "https://www.youtube.com/@LofiGirl/videos",
  "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",
  "channelJoinedDate": "Mar 18, 2015",
  "channelLocation": "France",
  "channelTotalVideos": 409,
  "channelTotalViews": "1,710,167,563",
  "numberOfSubscribers": 13100000,
  "isMonetized": true,
  "inputChannelUrl": "https://www.youtube.com/@LofiGirl/about"
}

                                                

Code for a single video


{
  "title": "Stromae - Santé (Live From The Tonight Show Starring Jimmy Fallon)",
  "id": "CW7gfrTlr0Y",
  "url": "https://www.youtube.com/watch?v=CW7gfrTlr0Y",
  "thumbnailUrl": "https://i.ytimg.com/vi/CW7gfrTlr0Y/maxresdefault.jpg",
  "viewCount": 35582192,
  "date": "2021-12-21",
  "likes": 512238,
  "location": null,
  "channelName": "StromaeVEVO",
  "channelUrl": "http://www.youtube.com/@StromaeVEVO",
  "numberOfSubscribers": 6930000,
  "duration": "00:03:17",
  "commentsCount": 14,
  "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",
  "descriptionLinks": [
    {
      "url": "https://stromae.lnk.to/la-solassitude",
      "text": "https://stromae.lnk.to/la-solassitude"
    },
    {
      "url": "https://stromae.lnk.to/multitudeID",
      "text": "https://stromae.lnk.to/multitudeID"
    },
    {
      "url": "https://www.stromae.com/fr/",
      "text": "https://www.stromae.com/fr/"
    },
    {
      "url": "https://www.tiktok.com/@stromae",
      "text": "https://www.tiktok.com/@stromae"
    },
    {
      "url": "https://www.facebook.com/stromae",
      "text": "https://www.facebook.com/stromae"
    },
    {
      "url": "https://www.instagram.com/stromae",
      "text": "https://www.instagram.com/stromae"
    },
    {
      "url": "https://twitter.com/stromae",
      "text": "https://twitter.com/stromae"
    },
    {
      "url": "https://www.youtube.com/channel/UCXF0YCBWewAj3RytJUAivGA",
      "text": "   / @stromae  "
    },
    {
      "url": "https://www.youtube.com/hashtag/stromae",
      "text": "#Stromae"
    },
    {
      "url": "https://www.youtube.com/hashtag/sante",
      "text": "#Sante"
    },
    {
      "url": "https://www.youtube.com/hashtag/jimmyfallon",
      "text": "#JimmyFallon"
    }
  ],
  "subtitles": null,
  "comments": null,
  "isMonetized": true,
  "commentsTurnedOff": false
}

                                                

For a YouTube Playlist


{
  "id": "CdgDLaxe2Q4",
  "title": "Lecture 4 | String Theory and M-Theory",
  "duration": "1:23:37",
  "channelName": "Stanford",
  "channelUrl": "https://www.youtube.com/@stanford",
  "date": "12 years ago",
  "url": "https://www.youtube.com/watch?v=CdgDLaxe2Q4&list=PL6i60qoDQhQGaGbbg-4aSwXJvxOqO6o5e&index=100",
  "viewCount": 106000,
  "fromYTUrl": "https://www.youtube.com/playlist?list=PL6i60qoDQhQGaGbbg-4aSwXJvxOqO6o5e"
},
{
  "id": "gCyImLu0HSI",
  "title": "Lecture 3 | String Theory and M-Theory",
  "duration": "1:45:47",
  "channelName": "Stanford",
  "channelUrl": "https://www.youtube.com/@stanford",
  "date": "12 years ago",
  "url": "https://www.youtube.com/watch?v=gCyImLu0HSI&list=PL6i60qoDQhQGaGbbg-4aSwXJvxOqO6o5e&index=99",
  "viewCount": 170000,
  "fromYTUrl": "https://www.youtube.com/playlist?list=PL6i60qoDQhQGaGbbg-4aSwXJvxOqO6o5e"
},
{
  "id": "-BleG7PBwEA",
  "title": "Lecture 2 | String Theory and M-Theory",
  "duration": "1:48:07",
  "channelName": "Stanford",
  "channelUrl": "https://www.youtube.com/@stanford",
  "date": "12 years ago",
  "url": "https://www.youtube.com/watch?v=-BleG7PBwEA&list=PL6i60qoDQhQGaGbbg-4aSwXJvxOqO6o5e&index=98",
  "viewCount": 317000,
  "fromYTUrl": "https://www.youtube.com/playlist?list=PL6i60qoDQhQGaGbbg-4aSwXJvxOqO6o5e"
},
{
  "id": "25haxRuZQUk",
  "title": "Lecture 1 | String Theory and M-Theory",
  "duration": "1:46:55",
  "channelName": "Stanford",
  "channelUrl": "https://www.youtube.com/@stanford",
  "date": "12 years ago",
  "url": "https://www.youtube.com/watch?v=25haxRuZQUk&list=PL6i60qoDQhQGaGbbg-4aSwXJvxOqO6o5e&index=97",
  "viewCount": 2300000,
  "fromYTUrl": "https://www.youtube.com/playlist?list=PL6i60qoDQhQGaGbbg-4aSwXJvxOqO6o5e"
},
{
  "id": "QD8SEcoFyAw",
  "title": "Lecture 10 | New Revolutions in Particle Physics: Standard Model",
  "duration": "1:38:20",
  "channelName": "Stanford",
  "channelUrl": "https://www.youtube.com/@stanford",
  "date": "13 years ago",
  "url": "https://www.youtube.com/watch?v=QD8SEcoFyAw&list=PL6i60qoDQhQGaGbbg-4aSwXJvxOqO6o5e&index=96",
  "viewCount": 57000,
  "fromYTUrl": "https://www.youtube.com/playlist?list=PL6i60qoDQhQGaGbbg-4aSwXJvxOqO6o5e"
},
{
  "id": "qzGY-BrCUgA",
  "title": "Lecture 9 | New Revolutions in Particle Physics: Standard Model",
  "duration": "1:35:34",
  "channelName": "Stanford",
  "channelUrl": "https://www.youtube.com/@stanford",
  "date": "13 years ago",
  "url": "https://www.youtube.com/watch?v=qzGY-BrCUgA&list=PL6i60qoDQhQGaGbbg-4aSwXJvxOqO6o5e&index=95",
  "viewCount": 54000,
  "fromYTUrl": "https://www.youtube.com/playlist?list=PL6i60qoDQhQGaGbbg-4aSwXJvxOqO6o5e"
},
{
  "id": "fw4K3sgza04",
  "title": "Lecture 8 | New Revolutions in Particle Physics: Standard Model",
  "duration": "1:24:00",
  "channelName": "Stanford",
  "channelUrl": "https://www.youtube.com/@stanford",
  "date": "13 years ago",
  "url": "https://www.youtube.com/watch?v=fw4K3sgza04&list=PL6i60qoDQhQGaGbbg-4aSwXJvxOqO6o5e&index=94",
  "viewCount": 58000,
  "fromYTUrl": "https://www.youtube.com/playlist?list=PL6i60qoDQhQGaGbbg-4aSwXJvxOqO6o5e"
},

                                                

For search results on YouTube


{
  "id": "CwRMBKk8St0",
  "title": "LET'S ARGUE: Beyoncé Fails the Bechdel Test!",
  "duration": "13:48",
  "channelName": "fantano",
  "channelUrl": "https://www.youtube.com/@fantano",
  "date": "5 years ago",
  "url": "https://www.youtube.com/watch?v=CwRMBKk8St0",
  "viewCount": 635379,
  "fromYTUrl": "https://www.youtube.com/results?search_query=bechdel+test"
},
{
  "id": "k86TWcdjQuM",
  "title": "This scene is the anti-Bechdel test",
  "duration": "1:00",
  "channelName": "Newbie Star Trek",
  "channelUrl": "https://www.youtube.com/@NewbieStarTrek",
  "date": "2 months ago",
  "url": "https://www.youtube.com/shorts/k86TWcdjQuM",
  "viewCount": 6907,
  "fromYTUrl": "https://www.youtube.com/results?search_query=bechdel+test"
},
{
  "id": "vKlakrW50QU",
  "title": "Inside Job passes the bechdel test",
  "duration": "0:15",
  "channelName": "Random Daydreamer",
  "channelUrl": "https://www.youtube.com/@randomdaydreamer9970",
  "date": "1 year ago",
  "url": "https://www.youtube.com/watch?v=vKlakrW50QU",
  "viewCount": 121824,
  "fromYTUrl": "https://www.youtube.com/results?search_query=bechdel+test"
},
{
  "id": "mL5hgNu4y3A",
  "title": "Jessica Chastain Describes the Importance of the 'Bechdel Test'",
  "duration": "3:05",
  "channelName": "theoffcamerashow",
  "channelUrl": "https://www.youtube.com/@theoffcamerashow",
  "date": "2 years ago",
  "url": "https://www.youtube.com/watch?v=mL5hgNu4y3A",
  "viewCount": 24145,
  "fromYTUrl": "https://www.youtube.com/results?search_query=bechdel+test"
}

                                                

Estimating YouTube Scraping Costs

Determining the cost of scraping YouTube depends on variable use cases. Run a test scrape with a small input sample and limited output to calculate your price per scrape. Multiply this by the total number of scrapes planned for accurate cost estimation.

Utilizing Scraped YouTube Data with the API

Harness the power of the YouTube API for scraping data to:

Market Monitoring: Track brand mentions, content ranking, and competitor activity for market insights.

Trend Analysis: Identify current trends and opinions shared by content creators and users through advanced criteria.

Advanced Filtering: Refine search results based on specific criteria for targeted insights.

Content Moderation: Detect harmful or illegal content to ensure a safe and compliant environment.

Subtitles Scraping: Extract subtitles for offline reading or enhanced accessibility.

Product Insights: Gather information on products and services through video reviews, automating informed buying decisions.

FAQs

Can I extract dislikes data from YouTube videos

No. Dislikes and details are removed from newer versions; dislikes are not publicly available information.

Can I extract subtitles of YouTube videos?

Yes. Utilize the scraping tool to extract all publicly available data, including autogenerated and added subtitles in various formats.

Can I integrate YouTube Scraper with other apps?

Yes. Connect YouTube Scraper with cloud services and web apps through Real Data API platform integrations, including Make, Trello, LangChain, Airbyte, GitHub, Zapier, Google Sheets, Slack, Asana, Google Drive, etc.

Can I use YouTube Scraper with the API?

Yes. The Real Data API offers programmatic access, allowing management, scheduling, and running of Real Data actors, accessing datasets, monitoring performance, fetching results, and more.

Should I use a proxy when scraping YouTube?

Yes. Proxies, especially datacenter proxies, are recommended for proper functionality, ensuring your scraper runs smoothly.

Is it legal to scrape data from YouTube?

Yes, but with considerations. Adhere to copyright and personal data regulations. The scraper handles cookies and privacy consent dialogs, but be cautious as results may contain personal information. Consult legal advice to ensure compliance with GDPR and other regulations.

Industries

Check out how industries are using YouTube Scraper around the world.

saas-btn.webp

E-commerce & Retail