{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/desearch-ai/json-schema/desearch-ai-tik-tok-search-request-schema.json",
  "title": "TikTokSearchRequest",
  "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/TikTokSearchRequest",
  "properties": {
    "query": {
      "type": "string",
      "title": "Query",
      "description": "Keyword or phrase to search on TikTok"
    },
    "count": {
      "type": "integer",
      "maximum": 100.0,
      "minimum": 1.0,
      "title": "Count",
      "description": "Maximum number of results to return. The provider page may be smaller.",
      "default": 10
    },
    "cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cursor",
      "description": "Opaque pagination cursor. Omit it for the first page. For the next page, send the `x-desearch-next-cursor` response header from the previous page back unchanged, on the same route with the same target (username, tag, post, or search query). A cursor is valid for 24 hours. Any other value, including an expired cursor or one issued by a different route or target, returns 422 and is not charged."
    },
    "sort": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Sort",
      "description": "Sort option when supported"
    }
  },
  "type": "object",
  "required": [
    "query"
  ]
}