{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/desearch-ai/json-schema/desearch-ai-tik-tok-post-schema.json",
  "title": "TikTokPost",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/desearch-ai-tiktok-search-api-openapi.yml#/components/schemas/TikTokPost",
  "properties": {
    "id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Id"
    },
    "providerId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Providerid"
    },
    "url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Url"
    },
    "text": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Text"
    },
    "createTime": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Createtime"
    },
    "author": {
      "anyOf": [
        {
          "$ref": "#/$defs/TikTokAuthor"
        },
        {
          "type": "null"
        }
      ]
    },
    "stats": {
      "anyOf": [
        {
          "$ref": "#/$defs/TikTokStats"
        },
        {
          "type": "null"
        }
      ]
    },
    "music": {
      "anyOf": [
        {
          "$ref": "#/$defs/TikTokMusic"
        },
        {
          "type": "null"
        }
      ],
      "description": "Omitted when the provider payload has no music object. TikTok hashtag and trending responses do not include one."
    },
    "hashtags": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Hashtags",
      "description": "Hashtags from cha_list, text_extra, or #tags in the caption. Empty when none are present."
    },
    "mentions": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Mentions",
      "description": "Mentions from text_extra or @handles in the caption. Always present; empty when none are found. Hashtag and trending payloads carry no structured mentions, so there it lists only @handles in the caption."
    },
    "videoDuration": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Videoduration"
    },
    "videoWidth": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Videowidth"
    },
    "videoHeight": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Videoheight"
    },
    "thumbnailUrl": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Thumbnailurl"
    },
    "mediaUrl": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Mediaurl"
    }
  },
  "type": "object",
  "$defs": {
    "TikTokAuthor": {
      "properties": {
        "id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Id"
        },
        "username": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Username"
        },
        "nickname": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Nickname"
        },
        "avatar": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Avatar"
        },
        "verified": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Verified"
        },
        "following": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Following"
        },
        "followers": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Followers"
        },
        "heart": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Heart"
        }
      },
      "type": "object",
      "title": "TikTokAuthor"
    },
    "TikTokMusic": {
      "properties": {
        "id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Id"
        },
        "title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Title"
        },
        "authorName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Authorname"
        }
      },
      "type": "object",
      "title": "TikTokMusic"
    },
    "TikTokStats": {
      "properties": {
        "playCount": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Playcount"
        },
        "digCount": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Digcount"
        },
        "commentCount": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Commentcount"
        },
        "shareCount": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sharecount"
        },
        "collectCount": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Collectcount"
        }
      },
      "type": "object",
      "title": "TikTokStats"
    }
  }
}