{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scrapefield-com/json-schema/scrapefield-com-tiktok-comment-schema.json",
  "title": "tiktok_comment",
  "description": "A comment on a TikTok video.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scrapefield-com-tiktok-api-openapi.yml#/components/schemas/tiktok_comment",
  "type": "object",
  "required": [
    "id",
    "video_id",
    "parent_comment_id",
    "username",
    "text",
    "create_time",
    "like_count",
    "reply_count"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "TikTok's id for the comment."
    },
    "video_id": {
      "type": "string",
      "description": "The video it is on."
    },
    "parent_comment_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "The comment it replies to. `null` for a top-level comment."
    },
    "username": {
      "type": "string",
      "description": "Who wrote it, without the @."
    },
    "text": {
      "type": [
        "string",
        "null"
      ],
      "description": "`null` for a comment with no words, such as a sticker."
    },
    "create_time": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "`null` when the source does not say."
    },
    "like_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "`null` when the source does not give it."
    },
    "reply_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "`null` when the source does not give it."
    }
  },
  "additionalProperties": false
}