TTechAPI
Apify

YouTube comments and replies, ready for analysis

Collect the comments and replies of YouTube videos and Shorts, the newest videos of whole channels, and playlists: text, author, likes, reply count, date, and whether the creator pinned or hearted it. No YouTube API key, no quota, no proxies to set up.

Open on Apify

What you get

Replies in order

Ask for replies and each one comes right after the comment it answers.

Creator signals

isPinned, isHearted and isFromCreator show what the creator noticed.

Top or newest

Comments as YouTube ranks them, pinned first, or the newest first.

Channels and playlists

Read the comments of a channel's or playlist's newest videos in one run.

Dates you can sort

YouTube's text ("2 days ago") and the date it means.

Comments off is free

Videos with comments turned off are skipped at no charge.

Who it is for

Sentiment and audience research

See what viewers say about a video, a product or a brand.

AI and LLM apps

Summarize, classify and find topics in comments with your model.

Creators and marketers

Find questions, feedback and ideas; track reactions to launches.

Competitor research

Compare how audiences react across channels.

How to use it

  1. Open the Actor on Apify and sign in.
  2. Paste YouTube links: videos, Shorts, channels, @handles or playlists.
  3. Set comments per video, replies per comment and the order.
  4. Click Start and download one row per comment as JSON, CSV or Excel.

Call it from code

cURL
curl -X POST "https://api.apify.com/v2/acts/ttechx~youtube-comments-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"links": ["https://www.youtube.com/watch?v=arj7oStGLkU"], "maxComments": 500, "maxRepliesPerComment": 5, "sortBy": "newest"}'

Get your token in Apify Console > Settings > API & Integrations. In n8n, Make or Zapier, use the Apify app and pick this Actor.

Input

FieldTypeWhat it does
linksarray of stringsRequiredVideos, Shorts, channels or playlists, one per line.
maxCommentsinteger, 1-100,000The most comments per video, replies included. Default 100.
maxRepliesPerCommentinteger, 0-10,000Replies of each comment, right after it. Default 0 (no replies).
sortBytop | newestTop comments (pinned first) or the newest first. Default top.
maxVideosinteger, 1-10,000Videos to read from each channel (newest first) or playlist. Default 10.
Example input
{
  "links": [
    "https://www.youtube.com/watch?v=arj7oStGLkU"
  ],
  "maxComments": 500,
  "maxRepliesPerComment": 5,
  "sortBy": "newest"
}

Output

One row per comment or reply:

FieldWhat it is
textThe comment
type, parentIdcomment, or reply with the id of the comment it answers
author, authorChannelId, authorThumbnailWho wrote it
likes, likesTextExact likes when YouTube shows them (under 1,000), and YouTube's text (3K)
replyCountHow many replies the comment has
isPinned, isHeartedPinned or hearted by the creator
isFromCreator, isVerifiedWritten by the video's channel; a verified author
publishedTimeText, publishedDateYouTube's text and the date it means
commentId, commentUrlThe comment and a link that opens the video at it
videoId, videoUrl, videoTitle, videoChannelTitleThe video
Example output
{
  "commentId": "UgzRh8Bx6IGwA_5EqER4AaABAg",
  "type": "comment",
  "parentId": null,
  "text": "Enjoying this talk? You'll love the brand new TED Radio Hour series ...",
  "author": "@nprpodcasts",
  "publishedTimeText": "3 years ago (edited)",
  "publishedDate": "2023-11-26",
  "likes": null,
  "likesText": "3K",
  "replyCount": 42,
  "isPinned": true,
  "isHearted": false,
  "isFromCreator": false,
  "isVerified": true,
  "commentUrl": "https://www.youtube.com/watch?v=arj7oStGLkU&lc=UgzRh8Bx6IGwA_5EqER4AaABAg",
  "videoId": "arj7oStGLkU",
  "videoTitle": "Inside the Mind of a Master Procrastinator | Tim Urban | TED",
  "videoChannelTitle": "TED"
}

Use it with AI agents

Through Apify the Actor is one tool, ttechx/youtube-comments-scraper. Pick your assistant:

Run this, then type /mcp in Claude Code and sign in to Apify.

Terminal
claude mcp add --transport http ttech-comments "https://mcp.apify.com/?tools=ttechx/youtube-comments-scraper"

No browser sign-in? Add --header "Authorization: Bearer YOUR_APIFY_TOKEN".

Brief for any LLM

Endpoints, inputs, outputs, examples and MCP setup in one Markdown text. Paste it into ChatGPT, Claude or Gemini and ask for the code you need. Also at /youtube-comments-scraper.md.

Good to know

  • Up to 100,000 comments per video.
  • publishedDate is approximate for older comments, since YouTube shows "3 years ago".
  • Private, deleted and comments-off videos are skipped, free.

FAQ

Are replies included?

Only when you ask: set replies per comment above 0. They count towards the comments per video.

Why are likes sometimes empty?

YouTube shows exact likes only under 1,000. Above that, likesText has YouTube's rounded text.

Is there a REST endpoint instead of an Actor?

Yes: the YouTube Data API has GET /comments, 20 comments a page.