YouTube Scraper for AI: Videos, Comments and Transcripts
Pricing
from $1.50 / 1,000 videos
YouTube Scraper for AI: Videos, Comments and Transcripts
Scrape YouTube search results, channels and playlists into clean video data: views, likes, dates, description, tags. Add top comments and transcripts with token chunks in the same item. Pay only for successful results.
Pricing
from $1.50 / 1,000 videos
Rating
0.0
(0)
Developer
Wilson Anibe
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
3 days ago
Last modified
Categories
Features
Share
Scrape YouTube search results, channels and playlists into clean, structured video data: title, views, likes, exact publish time, duration, description, tags and category. You can add each video's top comments and its transcript, with token-sized chunks for AI, in the same result. Every video comes back with a clear status, and you pay only for what was extracted.
What you can use it for
- AI and RAG pipelines. Get a video's details, transcript chunks and top comments together in one item, ready to embed or pass to a language model.
- Market and competitor research. Track what a channel publishes, how fast videos gain views and likes, and which tags and categories competitors use.
- Trend and topic discovery. Search any keyword, filtered by upload date and length or sorted by view count, to see what is working right now.
- Audience research. Read what viewers say in top comments, with like and reply counts, for sentiment analysis or product feedback.
- Influencer and creator lists. Collect videos and channel links for any niche from search results.
What you can give it
| Input | Examples |
|---|---|
| Search terms | sourdough bread recipe, electric car review |
| Channels | https://www.youtube.com/@NASA, @kurzgesagt, UCAuUUnT6oDeKwE6v1NGQxug |
| Playlists | https://www.youtube.com/playlist?list=PL... or the playlist ID |
| Videos | watch, youtu.be, Shorts, embed or live URLs, or 11-character IDs |
You can mix all four in one run. A video found by more than one source is returned and charged once.
Sample output
One item per video. This is a real result, shortened where marked with ...:
{"videoId": "-moW9jvvMr4","url": "https://www.youtube.com/watch?v=-moW9jvvMr4","title": "A Simple Way to Break a Bad Habit | Judson Brewer | TED","description": "Visit http://TED.com to get our entire library of TED Talks, ...","channelName": "TED","channelId": "UCAuUUnT6oDeKwE6v1NGQxug","channelUrl": "https://www.youtube.com/@TED","durationSeconds": 565,"viewCount": 17385956,"likeCount": 332765,"commentCount": 5700,"publishedAt": "2016-02-24T09:53:22-08:00","publishedDate": "2016-02-24","category": "Science & Technology","keywords": ["TED Talk", "Judson Brewer", "addiction", "mindfulness", "..."],"isLiveContent": false,"isLiveNow": false,"isFamilySafe": true,"isUnlisted": false,"thumbnailUrl": "https://i.ytimg.com/vi/-moW9jvvMr4/maxresdefault.jpg?...","sourceType": "video","source": "https://www.youtube.com/watch?v=-moW9jvvMr4","position": 1,"comments": [{"commentId": "UgyeZeqG1BVfIq_4Z-B4AaABAg","text": "I quit smoking 12 years ago. The physical withdraw just lasted the first 48 hours, ...","author": "@PorteñaAzul","authorChannelId": "UCwOeAC_gEhXGQHXJRrlusVA","isCreator": false,"isVerified": false,"likeCount": 7500,"replyCount": 120,"publishedTimeText": "8 years ago"},"..."],"commentsStatus": "ok","transcript": "When I was first learning to meditate, the instruction was to simply pay attention to my breath, ...","transcriptLanguage": "en","transcriptIsAutoGenerated": false,"transcriptWordCount": 1509,"chunks": [{ "index": 0, "text": "When I was first learning to meditate, ...", "start": 12.76, "end": 80.616, "tokenCount": 274 },"..."],"transcriptStatus": "ok","status": "ok","statusReason": "Video details extracted"}
comments and the transcript fields are filled only when you turn them on. Otherwise commentsStatus and transcriptStatus are not_requested.
How much does it cost?
You pay per result, never for failures:
| Event | Price | When it is charged |
|---|---|---|
| Video | $1.50 per 1,000 ($0.0015 each) | A video whose details were extracted |
| Comment | $0.50 per 1,000 ($0.0005 each) | Each comment returned |
| Transcript | $4.00 per 1,000 ($0.004 each) | A video whose transcript was returned |
There is also a tiny charge of $0.00005 when a run starts.
Examples:
- 1,000 videos from a search, details only: $1.50
- 100 videos with 20 top comments each: $0.15 + $1.00 = $1.15
- 500 channel videos with transcripts: $0.75 + $2.00 = $2.75
Deleted, private or blocked videos, unreadable sources, videos without comments and videos without a transcript are not charged. If you set a maximum charge per run, the run stops cleanly at that limit and never charges more.
Input options
- Max videos per search, channel or playlist (
maxResults): default 50, up to 10,000. - Search filters: sort by relevance, view count or rating; upload date (last hour, today, this week, this month, this year); length (under 4 minutes, 4 to 20 minutes, over 20 minutes).
- Channel content (
channelContent): any ofvideos,shortsandstreams. Channels are listed newest first. - Top comments per video (
maxComments): 0 (off) to 5,000. Comments come in the order YouTube shows as Top comments. - Include transcript (
includeTranscript) with preferred languages, a format (text,segmentswith timings, ormarkdownwith chapter headings) and an optional chunk size in tokens for RAG. - Proxy: residential proxy is the default and is recommended. Search, listings and comments are tried without the proxy first to keep runs fast.
Example input:
{"searchQueries": ["home workout no equipment"],"uploadDate": "month","sortBy": "viewCount","channels": ["@kurzgesagt"],"maxResults": 100,"maxComments": 20,"includeTranscript": true,"chunkTokens": 500}
Statuses
Every video gets a status, plus a statusReason in plain words:
| status | Meaning | Charged |
|---|---|---|
ok | Details extracted | Yes |
deleted | Video removed or never existed | No |
private | Private or members-only video | No |
age_restricted | Video needs sign-in to confirm age | No |
blocked | YouTube refused the request after all retries | No |
error | Something else went wrong after all retries | No |
source_not_found | Channel or playlist does not exist | No |
source_error | A search, channel or playlist could not be listed | No |
invalid_input | Input not recognised as a channel, playlist or video | No |
commentsStatus is ok, none (no comments yet), disabled (the creator turned comments off, or a live stream using live chat), error, or cut_by_charge_limit. transcriptStatus is ok, no_captions, language_not_available, live_not_finished, unavailable, blocked, error, or cut_by_charge_limit.
Output views and run summary
The dataset has four views: Overview (rank, title, channel, views, likes, duration, date, status), Details (thumbnail, description, tags, category), Comments and Transcripts. You can export as JSON, CSV, Excel or XML, or read results through the Apify API.
Each run also saves a SUMMARY record with counts per status, the number of charged videos, comments and transcripts, and whether the run stopped at your maximum charge.
Reliability
- Failed requests are retried with new proxy sessions and backoff. Transcripts fall back to a second, independent extraction method.
- If Apify restarts or migrates the run, it resumes where it stopped without processing or charging finished videos twice.
- Sources that fail are reported as their own result with a reason, so nothing silently goes missing.
Notes and limits
- Only public data is collected. The scraper never signs in, so private, members-only and age-restricted videos are reported, not scraped.
- View, like and comment counts come from YouTube at the time of the run.
commentCountand comment like counts are rounded the way YouTube shows them, for example 5.7K becomes 5700. - Comments are top-level comments only, without replies.
replyCounttells you how many replies each has. - Durations of ongoing live streams are not reported.
- No video or audio is downloaded.
- You are responsible for using the data in line with YouTube's terms and the laws that apply to you, especially for personal data such as commenter names.
Questions and feedback
Open an issue on the Actor's Issues tab if something does not work or a field you need is missing. Reports with a run ID get fixed fastest.