YouTube Channels Video Scraper avatar

YouTube Channels Video Scraper

Try for free

3 days trial then $20.00/month - No credit card required now

Go to Store
YouTube Channels Video Scraper

YouTube Channels Video Scraper

topaz_sharingan/youtube-video-scraper
Try for free

3 days trial then $20.00/month - No credit card required now

YouTube Channels Video Scraper is a powerful and user-friendly tool designed to extract valuable data from YouTube channels. This actor allows you to effortlessly collect detailed information about YouTube Videos from a Channel, including video IDs, titles, URLs, views, likes, published times, etc.

YouTube Channel Video Scraper

Introduction

YouTube Video Scraper is a versatile tool designed to extract valuable data from YouTube channels. With this actor, you can effortlessly scrape YouTube video data, including video IDs, titles, URLs, views, thumbnails, durations, published times, and description snippets. Additionally, you can retrieve basic channel information such as the channel title, handle, and URL.

Key Features

  • Extract YouTube video data with ease.
  • Retrieve essential channel information.
  • Configure the maximum number of videos to scrape.
  • Control the rate of requests with an optional setting.

Typical Use Cases

  • Content Analysis: Analyze the performance of YouTube videos from specific channels.
  • Competitive Research: Monitor your competitors' video content and engagement.
  • Content Aggregation: Collect YouTube video data for research or reporting purposes.

Inputs

Data Input

The actor takes the following inputs:

  • Start URLs: A list of YouTube channel names or URLs you want to scrape videos from.
  • Number of Videos: The maximum number of YouTube videos to scrape from each specified channel.
  • Maximum Requests per Time: An optional setting to control the rate of requests to YouTube's servers. Use this to prevent overloading the server with too many requests in a short time.
  • All Videos (Optional): An optional boolean setting to scrape all videos from the channel (true) or only the most recent ones (false).

Input Examples

Start URLs:

  • Example 1: ["Filmento"]
  • Example 2: ["https://www.youtube.com/@Filmento"]

Number of Videos:

  • Example 1: 50
  • Example 2: 100

Maximum Requests per Time (optional):

  • Example 1: 5 requests per second
  • Example 2: No limit (default)

All Videos (Optional):

  • Example 1: false
  • Example 2: true

Outputs

The actor produces the following outputs:

  • YouTube Video Data: A JSON array containing details of each scraped YouTube video, including video IDs, titles, URLs, views, thumbnails, durations, published times, and description snippets.
  • Channel Details: A JSON object with basic channel information, including the channel title, handle, and URL.

Output Examples

YouTube Video Data:

1[
2    {
3        "video_id": "TfxGyz3SBAw",
4        "video_title": "How I made $12,000 using ICT Concepts | Weekly Review",
5        "video_url": "https://www.youtube.com/watch?v=TfxGyz3SBAw",
6        "views": "11,305 views",
7        "likes": "571",
8        "video_thumbnail": "https://i.ytimg.com/vi/TfxGyz3SBAw/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLBVl9RgxcEGyfwoQ-ZCwV2CPvj1hA",
9        "video_duration": "36 minutes, 25 seconds",
10        "published_time": "17 hours ago",
11        "description_snippet": "Reviewing my trades from last week as I had my best performance on funded accounts ever. \n\nThe journal I use is Tradezella -- Get 10% off the monthly plan with code TANJA10 and 20% off the...",
12        "channel_info": {
13            "channel_title": "Tanja Trades",
14            "channel_handle": "@TanjaTrades",
15            "channel_url": "https://www.youtube.com/@TanjaTrades"
16        }
17    },
18    // Additional videos...
19]

Usage

How to Run the Actor

  1. Go to Apify and log in or create an account if you don't have one.
  2. Create a new task and select the "YouTube Video Scraper" actor.
  3. Configure the actor's input settings by providing the YouTube channel names or URLs, specifying the maximum number of videos to scrape, and adjusting other optional settings.
  4. (Optional) Adjust the maximum number of requests per time if needed.
  5. Start the task and wait for it to complete.
  6. Once the task is finished, you can access the scraped data in the task's dataset.

How to Interpret the Actor's Results

The actor will provide you with a JSON dataset containing the scraped YouTube video data and channel details. Each video will have its own set of properties, as described in the "Outputs" section.

Examples

Example 1: Scraping YouTube Videos from a Channel

In this example, we will scrape YouTube video data from the channel "Filmento" with a limit of 50 videos.

1{
2    "startUrls": ["Filmento"],
3    "number_of_videos": 50,
4    "maxRequest": 5,
5    "all_videos": false
6}

Example 2: Scraping All Videos with Rate Limit

In this example, we will scrape all videos from a channel with a rate limit of 5 requests per second to avoid overloading the server.

1{
2    "startUrls": ["https://www.youtube.com/Channel"],
3    "number_of_videos": 100,
4    "maxRequest": 5,
5    "all_videos": true
6}

Troubleshooting

Common Problems and Solutions

  • Problem: The actor is not returning any data.

    • Solution: Check if the YouTube channel names or URLs are correct. Ensure that the channels have videos available.
  • Problem: Rate limiting issues.

    • Solution: If you encounter rate limiting issues, try adjusting the "Maximum Requests per Time" input to a lower value or contact Apify support for assistance.

Additional Information

Acknowledgements

This actor is powered by Apify, a leading web scraping and automation platform. Special thanks to the Apify team for their contributions.

Developer
Maintained by Community

Actor Metrics

  • 5 monthly users

  • 3 stars

  • >99% runs succeeded

  • Created in Dec 2023

  • Modified 7 months ago