Youtube Scraper By Channel
Pricing
$10.00/month + usage
Go to Apify Store
Youtube Scraper By Channel
Search for videos or shorts on YouTube by channel, for example "@nike", "@apple".
0.0 (0)
Pricing
$10.00/month + usage
0
1
1
Last modified
5 days ago
This Apify Actor is designed to scrape YouTube videos or shorts from a specific channel. It retrieves detailed information about the videos or shorts, including metadata such as title, description, view count, and more.
How to Use
1. Input Configuration
The Actor requires an input JSON object to define the scraping parameters. The structure of the input is as follows:
{"channel": "@nike","type": "videos","size": 10,"sort": "Latest"}
channel
: (Required) The YouTube channel identifier. For example,@nike
or@apple
.type
: (Required) The type of content to scrape. Options are:videos
: Regular YouTube videos.shorts
: YouTube Shorts.
size
: (Required) The number of videos or shorts to retrieve. Default is 10.sort
: (Optional) The sort order of the videos. Options are:Latest
: Fetch the latest videos.Popular
: Fetch the most popular videos.Oldest
: Fetch the oldest videos.
2. Output Data
The Actor returns an array of objects containing information about the YouTube videos or shorts. The structure of each object is as follows:
{"id": "abc123","url": "https://www.youtube.com/watch?v=abc123","title": "Example Video Title","description": "This is an example description.","lengthSeconds": 300,"thumbnails": [{"url": "https://example.com/thumbnail.jpg","width": 1280,"height": 720}],"channelId": "xyz789","channelName": "Example Channel","channelUrl": "https://www.youtube.com/channel/xyz789","viewCount": 10000,"publishDate": "2023-01-01","likeCount": 500,"commentCount": 100}
id
: The unique ID of the video or short.url
: The URL of the video or short.title
: The title of the video or short.description
: The description of the video or short.lengthSeconds
: The duration of the video in seconds.thumbnails
: An array of thumbnail images with their dimensions.channelId
: The unique ID of the channel.channelName
: The name of the channel.channelUrl
: The URL of the channel.viewCount
: The number of views the video has received.publishDate
: The date the video was published.likeCount
: The number of likes the video has received.commentCount
: The number of comments on the video.
3. Running the Actor
- Deploy the Actor on the Apify platform.
- Provide the input JSON in the Actor's input configuration.
- Run the Actor to scrape data.
- The results will be available in the Actor's dataset.
4. Example Use Case
To scrape the latest 5 videos from the YouTube channel @nike
:
- Set the input as:
{"channel": "@nike","type": "videos","size": 5,"sort": "Latest"}
- Run the Actor.
- Retrieve the output dataset containing the video details.
Notes
- This Actor uses YouTube's public interface and may be subject to rate limits or restrictions.
- Ensure that the input channel identifier is valid.
- The Actor is optimized for performance but may require adjustments based on YouTube's response behavior.
On this page
Share Actor: