YouTube Transcript Scraper
Pricing
from $5.00 / 1,000 results
YouTube Transcript Scraper
Extract complete transcripts from any YouTube video with precise timestamps. Auto-selects English captions. Perfect for AI training, content analysis, SEO & research. Export to JSON/CSV/Excel.
Pricing
from $5.00 / 1,000 results
Rating
0.0
(0)
Developer

Sachin Kumar Yadav
Actor stats
0
Bookmarked
2
Total users
1
Monthly active users
3 days ago
Last modified
Categories
Share
YouTube Transcript Scraper π¬π
Extract complete transcripts from YouTube videos with precise timestamps and metadata. This actor processes a single YouTube video and returns the full transcript with timing information, perfect for content analysis, research, accessibility, and video archiving.
π Table of Contents
- Overview
- Key Features
- When to Use This Actor
- Input Parameters
- Output Data
- How to Use on Apify
- Examples
- Best Practices
- FAQ
- Tags
π Overview
The YouTube Transcript Scraper actor makes it easy to:
- Extract complete transcripts from any YouTube video
- Get precise timestamps (start/end times in milliseconds) for each text segment
- Auto-select English transcripts when default transcript is not available
- Receive clean, structured JSON output ready for processing
You can export the dataset to JSON, CSV or Excel and plug it into your own tools, dashboards, NLP/AI pipelines or automations.
β¨ Key Features
- Flexible input β accepts either a full YouTube URL or just the video ID
- Auto-language selection β automatically selects English transcript if default is unavailable
- Precise timestamps β includes
startMs,endMs, andstartTimefor each entry - Section headers β captures chapter/section information when available
- Duration metadata β includes duration in milliseconds for each transcript entry
- Clean, structured output β organized transcript array with consistent fields
- Clear error messages β failures are stored as simple, readable error items
π― When to Use This Actor
Use this actor when you want to:
- Build a transcript dataset for NLP, AI training, or content analysis
- Create searchable text from video content
- Generate video summaries or content indexes
- Enable accessibility features for video content
- Archive video transcripts for research or compliance
βοΈ Input Parameters
Your input lives in the actor's INPUT store and is controlled by the Apify UI form.
| Field | Type | Required | Description |
|---|---|---|---|
videoId | string | Yes | YouTube video ID or full video URL. The actor automatically extracts the video ID. |
Notes
videoIdaccepts both:- Full URL:
https://www.youtube.com/watch?v=5MgBikgcWnY - Raw ID:
5MgBikgcWnY - Shorts URL:
https://www.youtube.com/shorts/abc123
- Full URL:
π€ Output Data
Each successful dataset item contains the complete transcript for the requested video.
| Field | Type | Description |
|---|---|---|
transcript | array | Array of transcript entries (text segments and section headers). |
language | string | Language of the transcript (only present when auto-selected). |
Transcript Entry Fields (type: text)
| Field | Type | Description |
|---|---|---|
type | string | Entry type: text for transcript text. |
text | string | The transcript text content. |
startMs | string | Start time in milliseconds. |
endMs | string | End time in milliseconds. |
startTime | string | Formatted start time (e.g., 0:05). |
duration | number | Duration in milliseconds. |
Section Header Fields (type: section)
| Field | Type | Description |
|---|---|---|
type | string | Entry type: section for chapter headers. |
headline | string | Section/chapter title. |
startMs | string | Start time in milliseconds. |
endMs | string | End time in milliseconds. |
If the actor cannot fetch a transcript for the video, you will see an error item:
| Field | Type | Description |
|---|---|---|
videoId | string | YouTube video ID. |
videoUrl | string | Full video URL. |
status | string | no_transcript or failed. |
message | string | Human-readable status message. |
availableTranscripts | array | List of available transcript options (if any). |
error | string | Error message (for failed status). |
httpStatus | number | HTTP status code (for failed status). |
π How to Use on Apify
- Open the actor on Apify.
- Click Run.
- In the input form:
- Paste a YouTube video URL or ID into the
videoIdfield.
- Paste a YouTube video URL or ID into the
- Start the run.
- When the run finishes, open the Dataset tab to see the transcript.
- Export the dataset as JSON, CSV or Excel for further use.
π‘ Examples
Example 1 β Using full YouTube URL
{"videoId": "https://www.youtube.com/watch?v=5MgBikgcWnY"}
Example 2 β Using video ID only
{"videoId": "5MgBikgcWnY"}
Sample Output
{"transcript": [{"type": "text","text": "Hello and welcome to this video","startMs": "0","endMs": "3500","startTime": "0:00","duration": 3500},{"type": "section","headline": "Introduction","startMs": "5000","endMs": "60000"}]}
β Best Practices
- Use public YouTube videos that are available worldwide.
- Prefer full video URLs if you are unsure about the video ID format.
- The actor auto-selects English transcripts when the default is unavailable.
- After the run finishes, export the dataset for processing in external tools.
β FAQ
Q: Does this actor download the actual video?
A: No, the actor only extracts the transcript text and metadata. No video files are downloaded.
Q: Can I scrape multiple videos in one run?
A: This actor is designed for one video per run. For multiple videos, create a workflow that runs the actor for each video ID.
Q: What languages are supported?
A: The actor fetches the default transcript. If unavailable, it auto-selects English if available. Other languages are listed in availableTranscripts.
Q: What happens if no transcript is available?
A: The actor returns a no_transcript status with a list of available transcript options (if any).
Q: Why do I see error items in the dataset?
A: Error items appear when the transcript service cannot return data (invalid video ID, unavailable video, or technical issues).
π·οΈ Tags
youtube transcript scraper, youtube transcript api, youtube captions extractor, youtube transcript dataset, download youtube transcript, youtube video transcript, youtube text extraction, video transcript scraper, youtube subtitle text, youtube transcript downloader
π Get Started Now
Ready to extract YouTube video transcripts?
- π₯ Enter a YouTube video URL or ID
- βΆοΈ Click Start to run the actor
- π₯ Download your transcript in JSON, CSV, or Excel format
- Click "Try for free" to test the actor
β Star this actor if it helps you extract YouTube transcripts efficiently!
Related Actors π€
Looking for more YouTube data? Check out these complementary actors:
- YouTube Video Downloader
- YouTube Comment Scraper
- YouTube Search Scraper
- YouTube Video Scraper
- YouTube Subtitles Scraper
Built with β€οΈ by Sachin Kumar Yadav using Apify Platform