{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scrapefield-com/json-schema/scrapefield-com-tiktok-video-schema.json",
  "title": "tiktok_video",
  "description": "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_video",
  "type": "object",
  "required": [
    "id",
    "share_url",
    "username",
    "video_description",
    "create_time",
    "duration",
    "cover_image_url",
    "play_url",
    "view_count",
    "like_count",
    "comment_count",
    "share_count",
    "favorites_count",
    "hashtag_names",
    "region_code",
    "music",
    "duet_enabled",
    "stitch_enabled"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "TikTok's numeric id — the number at the end of the URL."
    },
    "share_url": {
      "type": "string",
      "format": "uri",
      "description": "The video."
    },
    "username": {
      "type": "string",
      "description": "Who posted it."
    },
    "video_description": {
      "type": [
        "string",
        "null"
      ],
      "description": "The caption."
    },
    "create_time": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When it was posted. `null` when the source does not say."
    },
    "duration": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Seconds. `null` when the source does not give it."
    },
    "cover_image_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "The video's cover image. On TikTok's CDN. TikTok signs the link, and it can stop working within hours, so fetch the file soon. We do not rehost media."
    },
    "play_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "The video file. On TikTok's CDN. TikTok signs the link, and it can stop working within hours, so fetch the file soon. We do not rehost media."
    },
    "view_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "`null` when the source does not give it."
    },
    "like_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "`null` when the source does not give it."
    },
    "comment_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "`null` when the source does not give it."
    },
    "share_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "`null` when the source does not give it."
    },
    "favorites_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Saves. `null` where the page does not show them."
    },
    "hashtag_names": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "One hashtag."
      },
      "description": "Without the #."
    },
    "region_code": {
      "type": [
        "string",
        "null"
      ],
      "description": "Where it was posted from, ISO 3166-1 alpha-2."
    },
    "music": {
      "type": [
        "object",
        "null"
      ],
      "required": [
        "id",
        "title",
        "author",
        "original"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "TikTok's id for the sound."
        },
        "title": {
          "type": "string",
          "description": "The sound's name, as TikTok shows it."
        },
        "author": {
          "type": [
            "string",
            "null"
          ],
          "description": "Who the sound is credited to."
        },
        "original": {
          "type": "boolean",
          "description": "An original sound rather than a track."
        }
      },
      "additionalProperties": false,
      "description": "The sound."
    },
    "duet_enabled": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "`null` where that is not known."
    },
    "stitch_enabled": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "`null` where that is not known."
    }
  },
  "additionalProperties": false
}