AniList · Schema

ThreadComment

Forum Thread Comment

AnimeMangaEntertainmentMediaSocialDatabaseGraphQLOAuth2Public APIs

Properties

Name Type Description
id integer The id of the comment
userId integer The user id of the comment's owner
threadId integer The id of thread the comment belongs to
comment string The text content of the comment (Markdown)
likeCount integer The amount of likes the comment has
isLiked boolean If the currently authenticated user liked the comment
siteUrl string The url for the comment page on the AniList website
createdAt integer The time of the comments creation
updatedAt integer The time of the comments last update
thread object The thread the comment belongs to
user object The user who created the comment
likes array The users who liked the comment
childComments object The comment's child reply comments
isLocked boolean If the comment tree is locked and may not receive replies or edits
View JSON Schema on GitHub

JSON Schema

anilist-threadcomment-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/anilist/refs/heads/main/json-schema/anilist-threadcomment-schema.json",
  "title": "ThreadComment",
  "description": "Forum Thread Comment",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "The id of the comment"
    },
    "userId": {
      "type": "integer",
      "description": "The user id of the comment's owner"
    },
    "threadId": {
      "type": "integer",
      "description": "The id of thread the comment belongs to"
    },
    "comment": {
      "type": "string",
      "description": "The text content of the comment (Markdown)"
    },
    "likeCount": {
      "type": "integer",
      "description": "The amount of likes the comment has"
    },
    "isLiked": {
      "type": "boolean",
      "description": "If the currently authenticated user liked the comment"
    },
    "siteUrl": {
      "type": "string",
      "description": "The url for the comment page on the AniList website"
    },
    "createdAt": {
      "type": "integer",
      "description": "The time of the comments creation"
    },
    "updatedAt": {
      "type": "integer",
      "description": "The time of the comments last update"
    },
    "thread": {
      "$ref": "./anilist-thread-schema.json",
      "description": "The thread the comment belongs to"
    },
    "user": {
      "$ref": "./anilist-user-schema.json",
      "description": "The user who created the comment"
    },
    "likes": {
      "type": "array",
      "items": {
        "$ref": "./anilist-user-schema.json"
      },
      "description": "The users who liked the comment"
    },
    "childComments": {
      "type": "object",
      "description": "The comment's child reply comments"
    },
    "isLocked": {
      "type": "boolean",
      "description": "If the comment tree is locked and may not receive replies or edits"
    }
  },
  "required": [
    "id",
    "likeCount",
    "createdAt",
    "updatedAt"
  ]
}