YouTube Scraper: Videos, Comments, Transcripts & Channels avatar

YouTube Scraper: Videos, Comments, Transcripts & Channels

Pricing

from $1.80 / 1,000 video with full details

Go to Apify Store
YouTube Scraper: Videos, Comments, Transcripts & Channels

YouTube Scraper: Videos, Comments, Transcripts & Channels

Scrape YouTube videos, Shorts, live streams, channels, playlists, search results, comments and transcripts in one run. Engagement metrics, delta monitoring and optional AI summaries. No login, no YouTube API key. From $0.80 per 1,000 videos.

Pricing

from $1.80 / 1,000 video with full details

Rating

0.0

(0)

Developer

PRS

PRS

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

13 hours ago

Last modified

Categories

Features

Limited permissions

Share

YouTube Intelligence Scraper is a YouTube scraper and YouTube API alternative that collects every kind of public YouTube data in one run: videos, Shorts, live streams, channels, playlists, search results, hashtags, comments with replies and transcripts. Paste YouTube URLs or type search terms, and get clean, typed records with engagement analytics already computed and optional AI summaries, topics, comment sentiment and sponsor detection. No login, no YouTube API key, no quota.

Why teams choose this YouTube scraper

  • ✅ Everything in one run: videos, Shorts, streams, channels, playlists, search, hashtags, comments, replies, transcripts. No second Actor, no second bill
  • ✅ Low price: from $0.80 per 1,000 videos, $1.80 with full details (Business plan). Error records are free
  • ✅ Nothing to set up: no login, cookies, YouTube API key or proxy settings. Proxies, retries and pacing are handled for you
  • ✅ Analytics built in: engagement rate, views per day, views per subscriber, upload cadence, median views, top videos
  • ✅ Monitoring that saves money: delta mode returns only new videos, or the views and likes gained since the last run
  • ✅ AI-ready: transcripts as clean text, one nested record per video for LLMs and RAG, optional AI enrichment with your own key
  • ✅ No silent failures: every input returns records or an error record with a code and a hint
  • ✅ Stable schema: recordType on every record, numbers as numbers, ISO dates, versioned

Table of contents

What can this YouTube scraper do?

You give it YouTube URLs, search terms, or both. It returns one record per video, channel, playlist, comment and transcript.

You addYou get
🎬 Video, Short or live URLthe video with full details
📺 Channel (@handle, /channel/UC…, /c/, /user/)the channel, its videos, and optionally its Shorts, streams and playlists
📃 Playlistthe playlist and its videos
🔎 Search term or search results URLmatching videos, Shorts, channels or playlists
#️⃣ Hashtag pagethe videos under that hashtag
🆔 Bare ID (dQw4w9WgXcQ, UC…, PL…, @handle)the same as its URL

URLs and search terms can be combined in one run. Anything found through several inputs is saved, and charged, once, with matchedInputs listing every input that found it.

It reads the same JSON data the YouTube website and apps use, without a browser. That makes it fast and light: in fast listing mode, a channel's 1,000 newest videos take about a dozen requests. With full details (the default), each video is opened as well.

What YouTube data can you scrape?

RecordWhat you get
🎬 Video (also Shorts, live, upcoming, premieres)title, description, links, hashtags, tags, category, thumbnails, duration, publish date, views, likes, comment count, chapters, most-replayed segments, music credits, caption languages, blocked countries, embeddable flag, live details, age-restricted / members-only / unlisted flags, channel name, handle, subscribers, verified badge
📺 Channelhandle, title, description, social links, country, join date, subscribers, total videos and views, avatar, banner, verified badge, keywords, plus a summary of its videos in this run
📃 Playlisttitle, description, owner, video count, views, last updated, the videos collected from it
💬 Commenttext, author (name, handle, channel, creator / verified badge), likes, reply count, pinned, hearted, edited, date, parent comment for replies
📝 Transcriptlanguage, manual or auto-generated, timed segments or plain text / SRT / VTT, available languages
🧠 AI (optional, on videos)summary, topics, comment sentiment with themes, sponsor segments, key moments
⚠️ Errorthe input, its URL, a code (VIDEO_UNAVAILABLE, PRIVATE, COMMENTS_DISABLED, NO_TRANSCRIPT, …), a message and a hint
FeatureHow it helps
💬 Comments in the same runno second scraper, no second bill for the same videos
📝 Existing captions as transcriptsSRT, VTT, plain text or timed segments, in the language you prefer
🔁 Delta modescheduled runs return only what is new or changed
📈 Derived metricsengagement and growth numbers on every video and channel
✅ Data quality scoredataQuality.completeness and missingFields on every video
⚡ Fast listing modetitle, views, duration and thumbnail without opening each video
🧠 AI enrichment (optional)summaries, topics, comment sentiment, sponsor segments, key moments, with your own OpenAI-compatible key
🛟 Resumable runsa server migration continues the run without duplicates or double charges

How to scrape YouTube in 5 steps

  1. Click Try for free and open the Actor in Apify Console.
  2. Add Start URLs (channels, videos, playlists, searches) and/or Search terms.
  3. Set how many videos you want per source. Turn on Include Shorts if you also want Shorts.
  4. Turn on what else you need: Comments, Transcripts, Channel playlists, AI enrichment.
  5. Click Start. Open the Videos, Engagement, Channels, Comments, Transcripts or Errors tab, or download everything as JSON, CSV, Excel, XML or HTML.

The smallest useful input:

{
"startUrls": ["https://www.youtube.com/@GoogleDevelopers"],
"maxVideos": 50
}

How much does it cost to scrape YouTube?

Pay per event: you pay only for the records you get, never for compute time or proxies. Prices depend on your Apify plan, and the higher plans get the biggest discount:

EventFree planBusiness plan (Gold discount)
Video with full details (also Shorts and live streams)$4.00 per 1,000$1.80 per 1,000
Video in fast listing mode (includeVideoDetails: false)$3.00 per 1,000$0.80 per 1,000
Channel$4.00 per 1,000$1.00 per 1,000
Comment or reply$1.00 per 1,000$0.50 per 1,000
Transcript$4.00 per 1,000$1.00 per 1,000
AI enrichment with your own key (per enriched video, plus your AI provider's tokens)$1.00 per 1,000$1.00 per 1,000
Actor start (per run, per GB of memory; the default 512 MB = 1)$0.005$0.005
Error records, playlists, failed AI callsfreefree

The Pricing tab shows the exact price for your plan.

Worked examples:

RunFree planBusiness plan
1,000 videos with full details from 5 channelsabout $4.03about $1.81
5,000 videos of one channel in fast listing modeabout $15.01about $4.01
100 videos with transcripts and AI summaries (+ your AI provider's tokens)about $0.91about $0.39
Daily delta run that finds 10 new videosabout $0.05about $0.02

On the Apify free plan, the monthly $5 credit covers about 1,250 videos with full details or about 1,650 in fast listing mode.

Set a maximum cost per run in Run options. The Actor checks the budget before fetching each item, so it never does work you will not pay for, and it stops cleanly with a status message when the limit is reached.

Input parameters

Add at least one start URL or search term. Everything else is optional.

Sources

FieldTypeDescriptionDefault
startUrlsarrayAny mix of YouTube URLs or bare IDs (see the table below)-
searchQueriesarrayKeywords to search on YouTube, e.g. python tutorial-
URL typeExample
Videohttps://www.youtube.com/watch?v=dQw4w9WgXcQ, https://youtu.be/dQw4w9WgXcQ
Shorthttps://www.youtube.com/shorts/VIDEO_ID
Live streamhttps://www.youtube.com/live/VIDEO_ID
Channelhttps://www.youtube.com/@handle, /channel/UC…, /c/name, /user/name
Channel tabhttps://www.youtube.com/@handle/videos, /shorts, /streams, /playlists
Playlisthttps://www.youtube.com/playlist?list=PL…
Search resultshttps://www.youtube.com/results?search_query=… (keeps its own filters)
Hashtaghttps://www.youtube.com/hashtag/python
Bare IDdQw4w9WgXcQ, UC_x5XG1OV2P6uZZ5FSM9Ttw, PL…, @handle

A line that is not recognised becomes an INVALID_URL error record. It does not stop the run.

Limits

Limits apply per source (per channel, playlist, search term or search URL).

FieldTypeDescriptionDefault
maxVideosintegerLong-form videos per source50
includeShortsbooleanAlso collect Shorts (see Shorts)false
maxShortsintegerShorts per source, used when includeShorts is on20
maxStreamsintegerLive streams and premieres per channel. 0 = none0
oldestPostDatestringSkip items published before this date: 2025-01-31 or 30 days-
newestPostDatestringSkip items published after this date-

What to collect

FieldTypeDescriptionDefault
includeVideoDetailsbooleanOn: likes, full description, tags, category, exact date, chapters. Off: fast listing modetrue
includeChannelInfobooleanOne channel record per channeltrue
includeCommentsbooleanCollect comments for every videofalse
maxCommentsPerVideointegerTop-level comments per video100
includeRepliesbooleanAlso collect replies (needs includeComments)false
maxRepliesPerCommentintegerReplies per comment20
commentsSortstringtop or newesttop
includeTranscriptbooleanDownload existing captions for every videofalse
transcriptLanguagesarrayLanguage codes in order of preference["en"]
preferAutoGeneratedbooleanPrefer auto-generated captions over manual onesfalse
transcriptFormatstringsegments, text, srt or vttsegments
translateTranscriptTostringAsk YouTube for its own translation, e.g. de-
includePlaylistsbooleanFor channels, also list the channel's playlistsfalse

Search filters

These apply to search terms. A search results URL keeps its own filters. type: "short" also applies to channel URLs: the channel returns only its Shorts (up to maxShorts).

FieldTypeDescriptionDefault
sortBystringrelevance, date, views, ratingrelevance
uploadDatestringany, hour, today, week, month, yearany
typestringany, video, short, channel, playlist, movieany
durationstringany, under4, 4to20, over20any
featuresarraylive, 4k, hd, subtitles, cc, 360, vr180, 3d, hdr, location, purchased-
glstringTwo-letter country code for results, e.g. US, IN, DEUS
hlstringLanguage of titles and texts, e.g. en, de, pt-BRen

Channel options

FieldTypeDescriptionDefault
channelSortBystringOrder of a channel's videos: newest, popular, oldestnewest

Monitoring

FieldTypeDescriptionDefault
deltaModebooleanSkip videos already collected by a previous run with the same state keyfalse
stateNamestringName of the store that keeps state between runs, e.g. my-channel-monitor (formerly stateKey, still accepted)-
trackStatChangesbooleanAlso re-emit known videos with the views, likes and comments gained (needs deltaMode)false

AI enrichment (optional)

FieldTypeDescriptionDefault
aiEnabledbooleanAdd an ai object to videosfalse
aiApiKeystring (secret)Your OpenAI-compatible API key. Required when aiEnabled is on-
aiBaseUrlstringOpenAI-compatible endpointhttps://api.openai.com/v1
aiModelstringModel namegpt-4o-mini
aiTasksarraysummary, topics, sentiment_of_comments, sponsor_segments, key_moments-
aiMaxVideosintegerEnrich at most this many videos per run50

Output

FieldTypeDescriptionDefault
outputModestringflat or nested (see Output layout)flat
webhookUrlstringThe run summary is POSTed here as JSON when the run finishes-

There are no proxy, concurrency or timeout settings. The Actor manages them itself.

Shorts

Shorts are collected only when you ask for them. By default a run returns long-form videos only, so you never pay for Shorts you did not want.

There are four ways to ask:

You wantSet
Shorts along with videos, from channels, searches, hashtags and playlistsincludeShorts: true, and maxShorts for how many per source
Only the Shorts of a channeladd the channel's Shorts tab: https://www.youtube.com/@handle/shorts, or set type: "short"
Only Shorts from a searchtype: "short"
One specific Shortadd its URL: https://www.youtube.com/shorts/VIDEO_ID

With includeShorts off, a Short that sits inside a playlist or among search results is skipped and not charged. Every Short record has contentType: "short" and a /shorts/ URL, so Shorts and videos are easy to tell apart in the same dataset.

{
"startUrls": ["https://www.youtube.com/@mkbhd"],
"maxVideos": 50,
"includeShorts": true,
"maxShorts": 30
}

Input examples by use case

Channel analytics: the last 100 videos of two channels

{
"startUrls": ["https://www.youtube.com/@GoogleDevelopers", "https://www.youtube.com/@mkbhd"],
"maxVideos": 100
}

You get one channel record per channel, with summary.uploadsPerWeek, medianViews and topVideoIds, and every video with its derived engagement metrics.

Fast, cheap listing of a whole channel

{
"startUrls": ["https://www.youtube.com/@GoogleDevelopers/videos"],
"maxVideos": 5000,
"includeVideoDetails": false
}

Listing mode returns title, views, duration, thumbnail and a relative date ("3 weeks ago") without opening each video: $0.80 per 1,000 on the Business plan ($3.00 on the Free plan).

{
"searchQueries": ["street food", "home workout"],
"type": "short",
"maxShorts": 100,
"uploadDate": "week"
}

Keyword research: this week's long videos about a topic

{
"searchQueries": ["home espresso", "latte art"],
"maxVideos": 50,
"uploadDate": "week",
"duration": "over20",
"gl": "US",
"hl": "en"
}

Audience research: comments and replies

{
"startUrls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"],
"includeComments": true,
"maxCommentsPerVideo": 2000,
"includeReplies": true,
"maxRepliesPerComment": 20,
"commentsSort": "newest"
}

Transcripts for search, RAG or subtitles

{
"startUrls": ["https://www.youtube.com/playlist?list=UU_x5XG1OV2P6uZZ5FSM9Ttw"],
"maxVideos": 200,
"includeTranscript": true,
"transcriptLanguages": ["en", "en-GB"],
"transcriptFormat": "srt"
}

Daily monitoring: only what changed since yesterday

{
"startUrls": ["https://www.youtube.com/@GoogleDevelopers"],
"maxVideos": 30,
"deltaMode": true,
"trackStatChanges": true,
"stateName": "google-devs-monitor",
"webhookUrl": "https://hooks.example.com/youtube"
}

Schedule it daily. The first run saves the 30 newest videos. Every later run adds new uploads and re-emits known videos with statsDelta (views, likes and comments gained), then POSTs a summary to your webhook.

AI summaries and sponsor detection

{
"startUrls": ["https://www.youtube.com/@mkbhd"],
"maxVideos": 10,
"includeTranscript": true,
"includeComments": true,
"maxCommentsPerVideo": 100,
"aiEnabled": true,
"aiApiKey": "sk-your-key",
"aiModel": "gpt-4o-mini",
"aiTasks": ["summary", "topics", "sentiment_of_comments", "sponsor_segments"]
}

AI enrichment

Turn on AI enrichment and each video gets an ai object, computed by one chat call per video to any OpenAI-compatible endpoint: OpenAI, Azure OpenAI, OpenRouter, Groq, Together, a local server, and others. You bring the key, so you choose the model and pay your provider directly.

TaskFieldNeeds
summaryai.summary-
topicsai.topics-
sentiment_of_commentsai.commentSentiment (positive / neutral / negative shares, themes)includeComments
sponsor_segmentsai.sponsorSegments (start, end, sponsor)includeTranscript with timestamps (segments, srt or vtt)
key_momentsai.keyMoments (start, title)includeTranscript with timestamps
{
"ai": {
"model": "gpt-4o-mini",
"tasks": ["summary", "topics", "sponsor_segments"],
"summary": "A hands-on review of the new phone, focused on battery life and the camera...",
"topics": ["smartphones", "battery life", "camera review"],
"sponsorSegments": [{"startSeconds": 62, "endSeconds": 118, "sponsor": "ExampleVPN", "description": "VPN ad read"}],
"skipped": [],
"error": null
}
}
  • Cost: $0.001 per enriched video ($1.00 per 1,000), plus your provider's tokens. A failed AI call is not charged.
  • Safe by design: a failed call sets ai.error and the video is still saved. A task whose input is missing is listed in ai.skipped instead of guessed.
  • Bounded: aiMaxVideos caps how many videos are enriched per run (default 50).
  • Your key is stored as a secret input and is sent only to the endpoint you set.

Output

A video record (shortened):

{
"recordType": "video",
"schemaVersion": "1.0",
"scrapedAt": "2026-11-04T17:17:30Z",
"source": "innertube",
"inputSource": "dQw4w9WgXcQ",
"matchedInputs": ["dQw4w9WgXcQ"],
"id": "dQw4w9WgXcQ",
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"contentType": "video",
"title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)",
"category": "Music",
"durationSeconds": 213,
"durationText": "3:33",
"publishedAt": "2009-10-25T06:57:33Z",
"publishedAtPrecision": "exact",
"viewCount": 1832621351,
"likeCount": 19492286,
"commentCount": 2400000,
"channelId": "UCuAXFkgsw1L7xaCfnd5JJOw",
"channelName": "Rick Astley",
"channelHandle": "@RickAstleyYT",
"channelSubscriberCount": 4550000,
"derived": {
"engagementRate": 0.011946,
"likeToViewRatio": 0.010636,
"commentToViewRatio": 0.00131,
"viewsPerDay": 294694.78,
"viewsPerSubscriber": 402.7739,
"ageDays": 6218.71
},
"dataQuality": {"completeness": 1.0, "missingFields": [], "partial": false}
}

Rules that hold for every record:

  • Every record has a recordType: video, channel, playlist, comment, transcript or error.
  • Counts are numbers, never text. Dates are ISO 8601 with a precision flag (exact, day or relative).
  • Missing values are null or [], never an error, and dataQuality.missingFields names them.
  • contentType tells a video from a short, live, upcoming or premiere.

Export as JSON, CSV, Excel, XML or HTML, or read the data through the Apify API.

Output layout: flat or nested

The Output section of the input has one choice, Output layout, and an optional Webhook URL.

Output layoutoutputModeWhat you get
Flat (one record per entity) - the defaultflatOne row per video, channel, playlist, comment and transcript. Each kind has its own table
Nested (comments and transcript inside videos)nestedOne row per video, with its comments and transcript inside it

Flat (default)

Like a spreadsheet, each table holds one kind of row:

Output tabDatasetOne row per
Videos, Engagementthe run's default datasetvideo, Short or live stream, with its channel's name, subscribers, video count, total views, country and joined date
Channelschannelschannel, with a summary of its videos in this run
Playlistsplaylistsplaylist
Commentscommentscomment or reply (replies have a parentId)
Transcriptstranscriptsvideo transcript
Errorserrorsinput or item that could not be collected, with a code and what to do

The Export button and the plain dataset API give the videos. The other tables are in the run's Storage tab and in the Output tab links. Join them on videoId / channelId.

Choose flat for spreadsheets, databases and BI tools, and whenever you collect many comments per video.

Nested

Choose Nested (comments and transcript inside videos) when you want everything about a video in one record, for example to feed an LLM or a document store:

{
"startUrls": ["https://youtu.be/dQw4w9WgXcQ"],
"includeComments": true,
"maxCommentsPerVideo": 100,
"includeTranscript": true,
"outputMode": "nested"
}

Each video then carries its comments and transcript (shortened):

{
"recordType": "video",
"id": "dQw4w9WgXcQ",
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)",
"viewCount": 1832621351,
"comments": [
{
"recordType": "comment",
"id": "UgzGvNrRmQ8ZqQ0mVbR4AaABAg",
"videoId": "dQw4w9WgXcQ",
"text": "Still a great song.",
"author": {"name": "@musicfan", "handle": "@musicfan"},
"likeCount": 1200,
"replyCount": 3
}
],
"transcript": {
"recordType": "transcript",
"videoId": "dQw4w9WgXcQ",
"language": "en",
"isAutoGenerated": false,
"format": "text",
"text": "We're no strangers to love. You know the rules and so do I..."
}
}

Channels, playlists and errors stay in their own tables in both layouts. The price is the same in both: nested comments and transcripts are charged like flat ones.

Webhook URL

Optional. When the run finishes, a JSON summary (status, record counts, dataset IDs, cost) is POSTed to this URL, e.g. https://example.com/hooks/youtube. Use it to start your own pipeline.

Built-in analytics

No spreadsheet formulas needed: the numbers analysts compute by hand are already in the records.

WhereMetricMeaning
video.derivedengagementRate(likes + comments) / views
video.derivedlikeToViewRatio, commentToViewRatiolikes or comments per view
video.derivedviewsPerDay, ageDayshow fast the video collects views
video.derivedviewsPerSubscriberreach beyond the channel's own audience
video.mostReplayedtop 5 segmentsthe strongest moments of YouTube's replay graph
video.statsDeltaviews, likes, comments gainedchange since the previous run (delta mode)
video.dataQualitycompleteness, missingFields, partialhow complete the record is, from 0 to 1
channel.summaryuploadsPerWeekupload cadence
channel.summaryavgViews, medianViews, average engagementtypical performance
channel.summarytopVideoIds, last uploadbest videos and recency

The Engagement output tab shows the video metrics as a ready-made table.

Reliability and limitations

Built inWhat it does
Managed proxiesrotating sessions, one exit IP per session, automatic switch to residential IPs when YouTube refuses datacenter ones
Adaptive pacingslows down per IP on a rate limit and speeds up again on success
Classified retriesblocks, timeouts and server errors are retried separately, with backoff
Partial records instead of lossesif YouTube refuses part of a video's data, the video is still saved and flagged dataQuality.partial
Budget check before each itemno work is done for records your maximum cost cannot pay for
Resume after migrationno duplicates and no double charges

Limitations:

  • Listing pages show relative dates ("3 weeks ago") and abbreviated subscriber and comment counts (2.68M). Details mode has exact dates, views and likes.
  • Date parsing of listing pages is English only. With another hl, listing-mode dates are null (views, durations and live status are still filled), and details mode still has exact dates.
  • Comment dates are relative.
  • Comments and transcripts of age-restricted and members-only videos need a signed-in account. This Actor never logs in, so they come back as error records (AGE_RESTRICTED, MEMBERS_ONLY); the video record itself is still saved.
  • YouTube accepts "sort by upload date" for searches but no longer applies it. Use uploadDate.
  • Caption translation is currently refused by YouTube for most videos; you then get the original language.
  • No video or audio downloads. No channel e-mails.

API, Python, JavaScript and AI agents

  • Apify API: start runs and read datasets from any language. See the API tab of this Actor.
  • Clients: Python and JavaScript.
  • No-code: Google Sheets, Zapier, Make, n8n, Slack and more through Apify integrations.
  • AI agents: use it as a tool through the Apify MCP server in Claude, Cursor or any MCP client. Every input field has a description written for agents, and the output schema is stable and versioned.
  • Scheduling: combine an Apify schedule with deltaMode for monitoring.

Python

from apify_client import ApifyClient
client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("<APIFY_USERNAME>/youtube-intelligence-scraper").call(run_input={
"startUrls": ["https://www.youtube.com/@GoogleDevelopers"],
"maxVideos": 100,
})
for video in client.dataset(run["defaultDatasetId"]).iterate_items():
print(video["title"], video["viewCount"], video["derived"]["engagementRate"])

JavaScript

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });
const run = await client.actor('<APIFY_USERNAME>/youtube-intelligence-scraper').call({
startUrls: ['https://www.youtube.com/@GoogleDevelopers'],
maxVideos: 100,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((video) => console.log(video.title, video.viewCount));

cURL: run and get the videos in one request

curl -X POST "https://api.apify.com/v2/acts/<APIFY_USERNAME>~youtube-intelligence-scraper/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>" \
-H "Content-Type: application/json" \
-d '{"startUrls": ["https://www.youtube.com/@GoogleDevelopers"], "maxVideos": 20}'

Troubleshooting

I got no Shorts

Shorts are off by default. Turn on Include Shorts, or use one of the other ways in Shorts.

I got fewer videos than I asked for

The source has no more (the run log says what each input returned), the date filter removed them, or the maximum cost per run was reached. Limits are per source, not per run.

I got fewer comments than I asked for

In Top order YouTube serves only "featured" comments, and on some videos that list ends after about 1,000. Use commentsSort: newest for every comment.

Some videos have an error record instead of data

Open the Errors tab. Each row has a code (PRIVATE, VIDEO_UNAVAILABLE, NO_TRANSCRIPT, COMMENTS_DISABLED, …) and a hint that says what to do. Error records are free.

The run fails with "aiApiKey: AI enrichment needs an API key"

AI enrichment is on but no key was given. Add your aiApiKey (and aiBaseUrl / aiModel for a non-OpenAI endpoint), or turn AI enrichment off.

Some videos have ai.error or ai.skipped

ai.error means the AI call failed (for example a wrong key, model name or provider limit); it is not charged. ai.skipped lists tasks whose input was missing, such as comment sentiment without includeComments.

Why is the channel record after its videos?

It carries a summary of those videos, so it is written when the input finishes.

Why do some Shorts have no date in listing mode?

YouTube's Shorts tab shows no dates. With includeVideoDetails on (the default), each Short gets its exact date.

Error codes: INVALID_URL, NOT_FOUND, VIDEO_UNAVAILABLE, PRIVATE, AGE_RESTRICTED, MEMBERS_ONLY, REGION_BLOCKED, CHANNEL_HAS_NO_VIDEOS, CHANNEL_HAS_NO_SHORTS, CHANNEL_HAS_NO_STREAMS, DATE_FILTER_TOO_STRICT, COMMENTS_DISABLED, NO_TRANSCRIPT, BLOCKED, NETWORK_ERROR, PARSE_ERROR.

Use cases

  • Competitor and channel analytics: upload cadence, median views and top videos of any channel.
  • Influencer vetting: real engagement rates and views per subscriber before you sign a creator.
  • Content and keyword research: what ranks for a topic this week, by region and language.
  • Shorts trend tracking: the Shorts a topic or channel is producing, with their view counts.
  • Audience and sentiment research: comments and replies at scale, with optional AI sentiment.
  • LLM and RAG pipelines: transcripts as clean text, one nested record per video.
  • Brand monitoring: scheduled delta runs that report only new videos and stat changes.
  • Sponsorship research: sponsor segments and music credits across a channel's videos.

FAQ

Do I need a YouTube API key?

No. There is no key, no quota and no login.

Is there a free way to scrape YouTube?

Yes, within Apify's free plan: its monthly $5 credit covers about 1,250 videos with full details, or about 1,650 in fast listing mode.

What does it cost per 1,000 YouTube videos?

On the Business plan, $1.80 per 1,000 videos with full details and $0.80 per 1,000 in fast listing mode; on the Free plan, $4.00 and $3.00. Comments, transcripts and channels are priced separately. See the price table.

Do I need my own proxies?

No. Proxies are included and managed by the Actor.

How many videos can I get?

Set maxVideos as high as you like. Channels and playlists are walked page by page until the limit or the end, and searches go as deep as YouTube serves results. Memory stays flat on large runs.

Can I scrape YouTube comments and transcripts?

Yes, in the same run as the videos: turn on includeComments and includeTranscript. Comments come with replies, likes and author badges; transcripts in segments, text, SRT or VTT.

Are Shorts included?

Only when you ask: turn on includeShorts, or add a Shorts URL. See Shorts.

Which output layout should I use?

Flat (the default) for tables and exports. Nested when you want one record per video with its comments and transcript inside. See Output layout.

Does it run speech-to-text?

No. Transcripts are the captions that already exist on YouTube, manual or auto-generated.

Which AI models can I use?

Any model behind an OpenAI-compatible chat endpoint: set aiBaseUrl, aiApiKey and aiModel. The default is OpenAI's gpt-4o-mini.

Can I get only new videos on each run?

Yes. Turn on deltaMode, set a stateName and schedule the Actor.

The Actor collects only public data that anyone can see without logging in. Comments contain personal data (names, handles), so make sure your use complies with GDPR and similar laws, and with YouTube's terms for your use case. If in doubt, ask a lawyer.

Something is wrong or missing. Where do I report it?

Open an issue in the Issues tab of this Actor, with the run ID. Feature requests are welcome there too.