Workflow guide
Collect YouTube videos, comments, and captions on a topic
Select relevant videos, then fetch comments and existing captions separately. Use the same video URLs for both branches and organize the results by videoId.
Inputs reviewed November 9, 2026. Output excerpts illustrate the structure; they are not results from a new run.
Researching a YouTube topic often calls for three kinds of material: video metadata, audience comments, and existing captions. Find relevant videos first, then collect comments and captions separately. Both branches take your selected video URLs; comments are not input to the caption tool.
First run: search for up to 5 videos, choose 1–3, and request up to 20 comments per video. Fetch captions if you need them. Start each Actor separately; this website does not execute or combine the results. Check current pricing and set a maximum run cost each time. Result limits are not spending limits.
1. Search for videos and select the links you need
Open the YouTube Search Actor ↗ and enter:
{
"searchQueries": ["Steve Jobs Stanford speech"],
"searchType": "videos",
"maxResultsPerQuery": 5,
"searchCountry": "US",
"searchLanguage": "en"
}
Inspect rows with recordType = video. Use title, channelProfile, durationText, and url to select videos. Exclude searchStatus rows, deduplicate by videoId, and keep 1–3 links. Country and language are search settings, not guarantees about the content’s language or country.
If you already have video URLs, skip the search. Both branches below use the public speech video UF8uR6Z6KLc as a standalone input example, not as a guaranteed result of this search. Replace the URLs in both inputs with the same set of videos you selected.
See the search tool’s full inputs and record examples
2A. Collect audience comments
Put video URL strings into the startUrls array and run the YouTube Comments Actor ↗:
{
"startUrls": ["https://www.youtube.com/watch?v=UF8uR6Z6KLc"],
"maxCommentsPerVideo": 20,
"sortBy": "top",
"includeReplies": false
}
This collects top-level comments only. top uses the platform’s ranking, not random sampling; choose newest for recent feedback. Treat only recordType = comment as a comment. A videoStatus row describes processing: disabled comments, an unavailable video, and no comments are different outcomes.
Keep videoId, commentId, text, likeCount, isReply, commentUrl, and scrapedAt. See comment tool details for all fields and the comment CSV guide for export steps.
2B. Fetch existing captions
Put the same video URLs into the videos array and run the YouTube Transcript Actor ↗ separately. This branch does not need to wait for the comments:
{
"videos": ["https://www.youtube.com/watch?v=UF8uR6Z6KLc"],
"languages": ["auto"],
"includeSegments": true,
"subtitleFormats": ["srt"]
}
auto uses the video’s default caption language. If you only accept English, set languages: ["en"] and fallbackToAnyLanguage: false; that does not guarantee English captions exist. Check the returned languageCode and isAutoGenerated. An uploaded caption track is not proof of human authorship.
The tool retrieves existing captions. It does not transcribe audio or translate text. Use successful recordType = transcript rows as captions; a transcriptStatus row may report noTranscript or languageUnavailable. Find SRT download references in subtitleFiles and timed text in segments.
How the fields connect
| Read from | Pass to | Remember |
|---|---|---|
The selected video row’s url |
Comments: startUrls[] |
Pass URL strings, not complete search-result objects. |
The same videos’ url values |
Transcript: videos[] |
This is a separate branch. Channel and playlist URLs are not supported here. |
videoId in all three record types |
Your spreadsheet or analysis code | Join on the ID, not the title or position in the results. |
Keep three datasets, then decide how to analyze them
Save video, comment, and caption tables separately. Many comments belong to one video; flattening everything into a single wide table repeats video metadata and long transcripts. The excerpts below refer to one fictional video. They illustrate the join, not actual collection results.
Illustrative video record
{
"recordType": "video",
"videoId": "EXAMPLE1234",
"title": "Example: building a data workflow",
"url": "https://www.youtube.com/watch?v=EXAMPLE1234"
}
Illustrative comment record
{
"recordType": "comment",
"videoId": "EXAMPLE1234",
"text": "Can this workflow export to CSV?",
"likeCount": 12,
"isReply": false
}
Illustrative caption record
{
"recordType": "transcript",
"status": "success",
"videoId": "EXAMPLE1234",
"languageCode": "en",
"isAutoGenerated": false,
"transcriptText": "This example explains a simple data workflow.",
"segments": [
{"text": "This example explains a simple data workflow.", "start": 0, "duration": 4.2}
]
}
You can now label questions in the comments, use caption timings to locate video passages, or add an analysis model. These Actors collect data; they do not automatically classify sentiment or produce research conclusions. A small set of top comments does not represent the whole audience. Platform ranking, missing captions, and collection time all affect the material available to you.
Read the Apify run and export steps
I build these paid Actors. These are regular product links. Run only the branches you need; each tool bills separately.
Inputs checked against the public default builds: Search 0.1.28, Comments 0.1.13, and Transcript 0.1.15. No new collection was started for this guide.
Want to see a finished deliverable? Open the 40-comment review worksheet example and download a CSV populated with real comments and context.