{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/youtube/json-schema/youtube-comment-thread-list-response-schema.json",
  "title": "CommentThreadListResponse",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/youtube-youtube-comment-threads-api-openapi.yml#/components/schemas/CommentThreadListResponse",
  "type": "object",
  "properties": {
    "eventId": {
      "description": "Serialized EventId of the request which produced this response.",
      "type": "string",
      "deprecated": true
    },
    "pageInfo": {
      "$ref": "#/$defs/PageInfo",
      "description": "General pagination information."
    },
    "items": {
      "description": "A list of comment threads that match the request criteria.",
      "items": {
        "$ref": "#/$defs/CommentThread"
      },
      "type": "array"
    },
    "tokenPagination": {
      "$ref": "#/$defs/TokenPagination"
    },
    "kind": {
      "default": "youtube#commentThreadListResponse",
      "description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#commentThreadListResponse\".",
      "type": "string"
    },
    "etag": {
      "description": "Etag of this resource.",
      "type": "string"
    },
    "visitorId": {
      "type": "string",
      "description": "The visitorId identifies the visitor.",
      "deprecated": true
    },
    "nextPageToken": {
      "description": "The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.",
      "type": "string"
    }
  },
  "$defs": {
    "Comment": {
      "properties": {
        "snippet": {
          "$ref": "#/$defs/CommentSnippet",
          "description": "The snippet object contains basic details about the comment."
        },
        "id": {
          "description": "The ID that YouTube uses to uniquely identify the comment.",
          "type": "string"
        },
        "kind": {
          "default": "youtube#comment",
          "description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#comment\".",
          "type": "string"
        },
        "etag": {
          "type": "string",
          "description": "Etag of this resource."
        }
      },
      "description": "A *comment* represents a single YouTube comment.",
      "type": "object"
    },
    "CommentSnippet": {
      "properties": {
        "channelId": {
          "description": "The id of the corresponding YouTube channel. In case of a channel comment this is the channel the comment refers to. In case of a video or post comment it's the video/post's channel.",
          "type": "string"
        },
        "canRate": {
          "type": "boolean",
          "description": "Whether the current viewer can rate this comment."
        },
        "parentId": {
          "description": "The unique id of the top-level comment, only set for replies.",
          "type": "string"
        },
        "authorDisplayName": {
          "description": "The name of the user who posted the comment.",
          "type": "string"
        },
        "authorProfileImageUrl": {
          "description": "The URL for the avatar of the user who posted the comment.",
          "type": "string"
        },
        "textOriginal": {
          "type": "string",
          "description": "The comment's original raw text as initially posted or last updated. The original text will only be returned if it is accessible to the viewer, which is only guaranteed if the viewer is the comment's author."
        },
        "authorChannelUrl": {
          "description": "Link to the author's YouTube channel, if any.",
          "type": "string"
        },
        "likeCount": {
          "type": "integer",
          "format": "uint32",
          "description": "The total number of likes this comment has received."
        },
        "moderationStatus": {
          "enum": [
            "published",
            "heldForReview",
            "likelySpam",
            "rejected"
          ],
          "description": "The comment's moderation status. Will not be set if the comments were requested through the id filter.",
          "type": "string"
        },
        "textDisplay": {
          "description": "The comment's text. The format is either plain text or HTML dependent on what has been requested. Even the plain text representation may differ from the text originally posted in that it may replace video links with video titles etc.",
          "type": "string"
        },
        "authorChannelId": {
          "$ref": "#/$defs/CommentSnippetAuthorChannelId"
        },
        "publishedAt": {
          "format": "date-time",
          "type": "string",
          "description": "The date and time when the comment was originally published."
        },
        "updatedAt": {
          "format": "date-time",
          "description": "The date and time when the comment was last updated.",
          "type": "string"
        },
        "videoId": {
          "description": "The ID of the video the comment refers to, if any.",
          "type": "string"
        },
        "imageUrl": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The URL of the image or animated GIF attached to the comment, if any. This property is only present when a comment contains an image or GIF. The URL is served as a signed link with a six-hour time to live (TTL) and expires six hours after retrieval."
        },
        "viewerRating": {
          "type": "string",
          "description": "The rating the viewer has given to this comment. For the time being this will never return RATE_TYPE_DISLIKE and instead return RATE_TYPE_NONE. This may change in the future.",
          "enum": [
            "none",
            "like",
            "dislike"
          ]
        }
      },
      "description": "Basic details about a comment, such as its author and text.",
      "type": "object"
    },
    "CommentSnippetAuthorChannelId": {
      "properties": {
        "value": {
          "type": "string",
          "description": "The id of the author's YouTube channel."
        }
      },
      "type": "object",
      "description": "Contains the id of the author's YouTube channel, if any."
    },
    "CommentThread": {
      "properties": {
        "id": {
          "type": "string",
          "description": "The ID that YouTube uses to uniquely identify the comment thread."
        },
        "snippet": {
          "$ref": "#/$defs/CommentThreadSnippet",
          "description": "The snippet object contains basic details about the comment thread and also the top level comment."
        },
        "kind": {
          "type": "string",
          "default": "youtube#commentThread",
          "description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#commentThread\"."
        },
        "etag": {
          "description": "Etag of this resource.",
          "type": "string"
        },
        "replies": {
          "$ref": "#/$defs/CommentThreadReplies",
          "description": "The replies object contains a limited number of replies (if any) to the top level comment found in the snippet."
        }
      },
      "type": "object",
      "description": "A *comment thread* represents information that applies to a top level comment and all its replies. It can also include the top level comment itself and some of the replies."
    },
    "CommentThreadReplies": {
      "description": "Comments written in (direct or indirect) reply to the top level comment.",
      "properties": {
        "comments": {
          "items": {
            "$ref": "#/$defs/Comment"
          },
          "type": "array",
          "description": "A limited number of replies. Unless the number of replies returned equals total_reply_count in the snippet the returned replies are only a subset of the total number of replies."
        }
      },
      "type": "object"
    },
    "CommentThreadSnippet": {
      "description": "Basic details about a comment thread.",
      "properties": {
        "canReply": {
          "description": "Whether the current viewer of the thread can reply to it. This is viewer specific - other viewers may see a different value for this field.",
          "type": "boolean"
        },
        "channelId": {
          "description": "The YouTube channel the comments in the thread refer to or the channel with the video the comments refer to. If neither video_id nor post_id is set the comments refer to the channel itself.",
          "type": "string"
        },
        "topLevelComment": {
          "$ref": "#/$defs/Comment",
          "description": "The top level comment of this thread."
        },
        "totalReplyCount": {
          "type": "integer",
          "format": "uint32",
          "description": "The total number of replies (not including the top level comment)."
        },
        "videoId": {
          "description": "The ID of the video the comments refer to, if any.",
          "type": "string"
        },
        "isPublic": {
          "type": "boolean",
          "description": "Whether the thread (and therefore all its comments) is visible to all YouTube users."
        }
      },
      "type": "object"
    },
    "PageInfo": {
      "description": "Paging details for lists of resources, including total number of items available and number of resources returned in a single page.",
      "properties": {
        "resultsPerPage": {
          "format": "int32",
          "description": "The number of results included in the API response.",
          "type": "integer"
        },
        "totalResults": {
          "description": "The total number of results in the result set.",
          "type": "integer",
          "format": "int32"
        }
      },
      "type": "object"
    },
    "TokenPagination": {
      "properties": {},
      "description": "Stub token pagination template to suppress results.",
      "type": "object"
    }
  }
}