{
  "type": "object",
  "properties": {
    "recordType": {
      "type": "string",
      "enum": [
        "comment",
        "videoStatus"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "invalidInput",
        "noComments",
        "commentsDisabled",
        "unavailable",
        "partial",
        "failed",
        "chargeLimitReached"
      ],
      "description": "Present on free videoStatus rows, not successful comment rows."
    },
    "inputValue": {
      "type": "string"
    },
    "errorCode": {
      "type": "string"
    },
    "errorMessage": {
      "type": "string"
    },
    "suggestion": {
      "type": "string"
    },
    "commentCount": {
      "type": "integer"
    },
    "parentCommentCount": {
      "type": "integer"
    },
    "replyCommentCount": {
      "type": "integer"
    },
    "truncated": {
      "type": "boolean"
    },
    "sourceType": {
      "type": "string",
      "enum": [
        "video",
        "short"
      ]
    },
    "videoId": {
      "type": "string"
    },
    "videoUrl": {
      "type": "string"
    },
    "videoTitle": {
      "type": [
        "string",
        "null"
      ]
    },
    "videoChannelId": {
      "type": [
        "string",
        "null"
      ]
    },
    "videoChannelName": {
      "type": [
        "string",
        "null"
      ]
    },
    "commentId": {
      "type": "string"
    },
    "commentUrl": {
      "type": "string"
    },
    "text": {
      "type": [
        "string",
        "null"
      ],
      "description": "Original comment text. Image-only or GIF-only comments can have an empty string; inspect attachments."
    },
    "attachments": {
      "type": "array",
      "description": "Present when YouTube supplies an image or animated-image attachment. URLs and dimensions come from the original response; media files are not downloaded.",
      "items": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "Original attachment URL, which can expire."
          },
          "width": {
            "type": "integer"
          },
          "height": {
            "type": "integer"
          },
          "format": {
            "type": "string",
            "description": "YouTube's imageFormatHint, such as IMAGE_FORMAT_ANIMATED_WEBP."
          }
        }
      }
    },
    "publishedTimeText": {
      "type": [
        "string",
        "null"
      ]
    },
    "publishedAtEstimated": {
      "type": [
        "string",
        "null"
      ],
      "description": "Estimated UTC publication time calculated from publishedTimeText, not an exact timestamp supplied by YouTube."
    },
    "likeCount": {
      "type": "integer"
    },
    "likeCountText": {
      "type": "string"
    },
    "replyCount": {
      "type": "integer"
    },
    "parentCommentId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Parent comment ID for a reply; null for a parent comment."
    },
    "replyDepth": {
      "type": "integer"
    },
    "isReply": {
      "type": "boolean"
    },
    "isPinned": {
      "type": "boolean"
    },
    "isHearted": {
      "type": "boolean"
    },
    "isPaid": {
      "type": "boolean"
    },
    "paidAmountText": {
      "type": [
        "string",
        "null"
      ]
    },
    "authorName": {
      "type": [
        "string",
        "null"
      ]
    },
    "authorChannelId": {
      "type": [
        "string",
        "null"
      ]
    },
    "authorChannelUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "authorAvatarUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "authorIsVerified": {
      "type": "boolean"
    },
    "authorIsVideoOwner": {
      "type": "boolean"
    },
    "authorIsMember": {
      "type": "boolean"
    },
    "authorBadges": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "sortBy": {
      "type": "string",
      "enum": [
        "top",
        "newest"
      ]
    },
    "scrapedAt": {
      "type": "string"
    }
  }
}
