Build a YouTube comments dataset for AI and LLMs
Julián Camilo López Sánchez
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.
Input
Output fields
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.

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
n8n
Make
Zapier
Airbyte
Keboola
IFTTT
Hubspot
GDrive
Gmail
Apify MCP
GitHub
Slack
LangChain
LlamaIndex
Flowise
Pinecone
OpenAI
Mastra
Clay
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.