Go to example tasks

Build a YouTube comments dataset for AI and LLMs

Turn the comments of YouTube videos into a clean dataset for training, evaluating or prompting AI models: one row per comment with its text, likes and date, plus the replies in thread order. This example reads videos about training AI models.

Try for free
YouTube Comments Scraper
YouTube Comments Scraperjclabs/youtube-comments-scraper
Video
#
Reply #
Avatar
+8 fields
Text
Number
Boolean
List
Object

Input

Videos(required):https://www.youtube.com/watch?v=fCUkvL0mbxI+2
Comments per video:300
Replies per comment:5

Output fields

Video
#
Reply #
Avatar
Author
Comment
Likes
Replies
Posted (approx.)
Pinned
Creator heart
Link

How it works

Sign up on Apify or log in

The YouTube Comments Scraper Actor is ready to run with the inputs already set for "Build a YouTube comments dataset for AI and LLMs". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Build a YouTube comments dataset for AI and LLMs" task

The YouTube Comments Scraper Actor will start running based on the input automatically. You can also change all the input fields, like videos, comments per video, and more, to match your specific use case.

Receive the "Build a YouTube comments dataset for AI and LLMs" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as video, #, reply #, and more.

Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Build a YouTube comments dataset for AI and LLMs" task via API.

Image

Integrate "Build a YouTube comments dataset for AI and LLMs" into your workflow

Connect "Build a YouTube comments dataset for AI and LLMs" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay

Frequently asked questions

The comments dataset builder returns one row per comment and per reply with clean text, likes, date and thread order, as JSON or CSV for LLM, NLP or RAG work.

Yes. Open the comments dataset builder, replace the videos with yours (links, Shorts links or video IDs, one per line) and click Start. A free Apify account is enough.

The comments dataset builder costs $1 per 1,000 comments on Apify's Free plan and as little as $0.45 per 1,000 on paid plans, with replies charged as comments. The free $5 monthly credit covers about 5,000 comments.

Yes. Schedule the comments dataset builder daily or weekly in Apify Console, or start it from the API tab with Python, JavaScript or cURL. Results can go to Make, Zapier or n8n.