{
  "title": "YouTube Comments Scraper input",
  "description": "Add up to 20 public YouTube video or Shorts URLs. Return a ranked sample, or set Maximum comments per video to 0 to collect all available public comment pages. Replies are optional.",
  "type": "object",
  "schemaVersion": 1,
  "additionalProperties": false,
  "properties": {
    "startUrls": {
      "title": "YouTube video or Shorts URLs / IDs",
      "type": "array",
      "description": "Enter one public video/Shorts URL or 11-character video ID per item. Supports watch, youtu.be, shorts, embed, and live URLs. Invalid entries receive a free status record; duplicate video IDs are processed once. Existing API inputs with {url: ...} entries are also accepted.",
      "editor": "stringList",
      "placeholderValue": "YouTube URL or 11-character video ID",
      "prefill": [
        "https://www.youtube.com/watch?v=YE7VzlLtp-4"
      ],
      "default": [
        "https://www.youtube.com/watch?v=YE7VzlLtp-4"
      ],
      "minItems": 1,
      "maxItems": 20
    },
    "maxCommentsPerVideo": {
      "title": "Maximum comments per video (0 = all)",
      "type": "integer",
      "description": "Maximum comment and reply records saved per video; free status rows do not count toward this limit. Set to 0 to follow all available public parent-comment pages using Newest first. Included replies remain subject to Maximum replies per comment, the run budget, and YouTube availability.",
      "default": 100,
      "minimum": 0,
      "maximum": 5000,
      "unit": "comments"
    },
    "sortBy": {
      "title": "Sort comments by",
      "type": "string",
      "description": "Choose Top comments for a ranked sample or Newest first for chronological results. When Maximum comments per video is 0, the Actor automatically uses Newest first for the most complete collection.",
      "editor": "select",
      "default": "top",
      "enum": [
        "top",
        "newest"
      ],
      "enumTitles": [
        "Top comments — ranked results",
        "Newest first — recommended for full collection"
      ]
    },
    "includeReplies": {
      "title": "Include replies",
      "type": "boolean",
      "description": "Expand replies below each parent comment. Leave disabled for the fastest run.",
      "default": false
    },
    "maxRepliesPerThread": {
      "title": "Maximum replies per comment",
      "type": "integer",
      "description": "Maximum replies saved per parent comment, from 1 to 500. Ignored when Include replies is disabled. This limit still applies when Maximum comments per video is 0; full collection does not mean unlimited replies.",
      "default": 10,
      "minimum": 1,
      "maximum": 500,
      "unit": "replies"
    }
  },
  "required": [
    "startUrls"
  ]
}
