VOOZH about

URL: https://apify.com/pintostudio/youtube-video-actor

โ‡ฑ Youtube Video Actor ยท Apify


Pricing

$11.00 / 1,000 results

Go to Apify Store

This Apify Actor allows you to extract detailed information from YouTube videos. You can fetch video details, comments, transcripts, and recommendations with just a video URL.

Pricing

$11.00 / 1,000 results

Rating

0.0

(0)

Developer

๐Ÿ‘ Pinto Studio

Pinto Studio

Maintained by Community

Actor stats

0

Bookmarked

19

Total users

2

Monthly active users

4 months ago

Last modified

Share

YouTube Video Scraper - Apify Actor Documentation

Overview

This Apify Actor allows you to extract detailed information from YouTube videos. You can fetch video details, comments, transcripts, and recommendations with just a video URL.

Features

The actor supports four main operations:

  • Video Information - Get metadata about a video (title, views, likes, description, etc.)
  • Video Comments - Extract comments from a video with sorting options
  • Video Transcript - Retrieve the video's transcript/captions
  • Video Recommendations - Get a list of recommended videos

Input Configuration

Required Fields

  • operation (required): Choose what data you want to extract

    • info - Video information
    • comments - Video comments
    • transcript - Video transcript/captions
    • recommendations - Related video recommendations
  • videoUrl (required): The YouTube video URL you want to scrape

    • Accepts full URLs: https://www.youtube.com/watch?v=VIDEO_ID
    • Also works with short URLs: https://youtu.be/VIDEO_ID
    • Works with Shorts: https://www.youtube.com/shorts/VIDEO_ID

Optional Fields

  • commentsSortBy (for comments operation only):

    • TOP_COMMENTS - Sort by most popular comments (default)
    • NEWEST_FIRST - Sort by newest comments first
  • page (for comments/recommendations):

    • Page number to fetch (1-50)
    • Default: 1
    • Use higher numbers to get more results

Usage Examples

Example 1: Get Video Information

{
"operation":"info",
"videoUrl":"https://www.youtube.com/watch?v=dQw4w9WgXcQ"
}

Returns: Video title, channel name, view count, likes, description, upload date, duration, and more.


Example 2: Extract Comments

{
"operation":"comments",
"videoUrl":"https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"commentsSortBy":"TOP_COMMENTS",
"page":1
}

Returns: List of comments with author names, comment text, like counts, and reply counts.


Example 3: Get Video Transcript

{
"operation":"transcript",
"videoUrl":"https://www.youtube.com/watch?v=dQw4w9WgXcQ"
}

Returns: Full transcript with timestamps and text segments in the video's language.


Example 4: Fetch Video Recommendations

{
"operation":"recommendations",
"videoUrl":"https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"page":1
}

Returns: List of recommended videos with titles, channels, thumbnails, and video IDs.

Output Format

The actor returns data in JSON format. Each operation returns a structured object with:

{
"operation":"info|comments|transcript|recommendations",
"videoId":"extracted-video-id",
"data":{ ... },
"page":1// (for paginated results)
}

Success Response Structure

All successful responses include:

  • operation - The operation that was performed
  • videoId - The extracted YouTube video ID
  • data - The actual results (structure varies by operation)

Error Response Structure

If an error occurs:

{
"operation":"...",
"videoId":"...",
"error":"Error message",
"success":false
}

Important Notes

  1. No API Key Required: This actor scrapes YouTube directly without needing YouTube API credentials.

  2. Video ID Extraction: You can use any valid YouTube URL format - the actor automatically extracts the video ID.

  3. Pagination: For comments and recommendations, increase the page parameter to fetch more results. Each page typically contains 20-50 items.

  4. Transcript Availability: Not all videos have transcripts. If a video doesn't have captions/subtitles, the transcript operation may return empty results.

  5. Performance: The actor includes random delays and retry mechanisms to ensure reliable data extraction.

Tips for Best Results

  • Start with page 1: Always begin with the first page and increment if you need more data
  • Check transcript availability: Use the info operation first to verify if transcripts are available
  • Use TOP_COMMENTS: For most use cases, top comments are more valuable than newest
  • Handle errors gracefully: The actor returns error messages if something goes wrong

Common Use Cases

  • Content Analysis: Extract video metadata and transcripts for analysis
  • Comment Research: Study audience reactions and engagement
  • Competitive Analysis: Monitor competitor video performance
  • SEO Research: Analyze video recommendations and related content
  • Content Creation: Research popular topics and comment trends

Support

If you encounter issues:

  1. Verify your video URL is correct and the video is publicly accessible
  2. Check if the video has the feature you're trying to access (e.g., comments enabled, captions available)
  3. Try reducing the page number if you're hitting limits
  4. Contact us via Telegram: @pintoflow for support

You might also like

Youtube Video Comments Scraper

bhansalisoft/youtube-video-comments-scraper

Youtube Comments Scraper : Scrap all comments with user detail and video information from any youtube video url

YouTube Video Downloader

randominique/youtube-video-downloader

This Apify Actor lets you download YouTube videos directly from a provided URL.

Youtube Channel Video Scraper

vistics/youtube-channel-video-scraper

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

52

5.0

Youtube Video Comments

mohamedgb00714/youtube-video-comments

Scrapes public comments from any YouTube video.

๐Ÿ‘ User avatar

mohamed el hadi msaid

9

Youtube Video Details Scraper

crawlerbros/youtube-video-details-scraper

Extract comprehensive details from YouTube videos including metadata, channel information, transcripts, comments, and engagement metrics.

15

5.0

YouTube Channels Video Scraper

topaz_sharingan/YouTube-Video-Scraper

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.

126

YouTube Video Details Scraper

igview-owner/youtube-video-details-scraper

Scrape complete YouTube video details from just video IDs. This actor extracts rich video metadata, statistics, thumbnails, captions and more โ€“ perfect for SEO research, content analysis, reporting, and automation.

๐Ÿ‘ User avatar

Sachin Kumar Yadav

7

2.0

YouTube To Transcript

hexa-api/youtube-to-transcript

Extract YouTube transcripts from public video URLs

YouTube Video Details Scraper

deanter/youtube-video-details-scraper

Input: YouTube video link | ๐Ÿ‘‰ Output: Transcript, video description, video title ๐Ÿ‘Œ๐Ÿ‘‰ This actor processes a YouTube video link and extracts the transcript, description, and title of the video. It's perfect for gathering video metadata and subtitles for further analysis or content creation.

YouTube Transcript Scraper

happy_b/youtube-transcript-scraper

Extract YouTube video transcripts with timestamps, word counts, and full video metadata.

Related articles

How to scrape YouTube data: A step-by-step guide
Read more