Skip to content
//YouTube Comments Scraper example\\

Comments from the last 30 days, 5 comments

Newest comments on a video within a time window.

Updated October 21, 2026

Input

The input this example runs YouTube Comments Scraper with. “Try this input” opens it in the console, where you can run it as-is or change any field first.

Video URLsstartUrls
https://www.youtube.com/watch?v=dQw4w9WgXcQ
Maximum comments per videomaxComments
5
Comments published afteroldestCommentDate
30 days
.json
{
  "startUrls": [
    {
      "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
    }
  ],
  "maxComments": 5,
  "oldestCommentDate": "30 days"
}

The internet is full of data.
Start owning yours.

Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes. The advantage lasts forever.

No credit card. No setup calls.