GET/desearch/tiktok/comments/{video_id}

    Retrieve TikTok Comments

    Retrieve normalized public comments for a TikTok video/post. Billing metadata: successful billable responses include the `X-Desearch-Cost-Usd`, `X-Desearch-Usage-Count`, `X-Desearch-Service`, and `X-Desearch-Currency` headers. JSON object responses also include optional `cost_usd`, `usage_count`, `service`, and `currency` fields. Current prices are at https://desearch.ai/pricing. JSON arrays, text, and streaming responses keep their body shape and expose billing metadata only through headers.

    Base URL

    https://api.desearch.ai

    Implementation guidance

    Use Retrieve TikTok Comments when your application needs search-grounded AI results without maintaining its own crawler, social-data pipeline, or retrieval infrastructure. Retrieve normalized public comments for a TikTok video by placing the video or post ID in the required video_id path string. Unlike the post-metadata lookup, this response is a comment collection: its 200 schema allows a TikTokComment array or a JSON object. The optional query integer count sets a maximum from 1 through 100 and defaults to 20; a comment page can hold fewer items. Do not provide cursor for the first comments page. When a response includes x-desearch-next-cursor, send precisely that token as the next cursor, keeping the same comments route and video ID. Its absence indicates the last comment page. A cursor expires after 24 hours and cannot be transferred to another video or route. Any invalid value, including an expired or mismatched token, gets status 422 before a search runs, with no charge for that rejection. A comment's id is TikTok's cid; it is omitted when the page did not expose it. Both that property and videoId, text, and createTime are nullable strings. The schema does not mark those properties required or declare a timestamp format for createTime. A comment can carry nullable integer likes. Its replies field is an array whose entries are objects; the schema does not define their internal properties, so it supplies no required reply-ID or reply-count fields. The nullable comment author references TikTokAuthor, with nullable username, nickname, avatar, and id strings identifying the author when supplied. The author record also permits a nullable boolean verified, and nullable integers heart, following, and followers. Those author properties are distinct from the comment-level likes count. Successful billable comment requests use X-Desearch-Cost-Usd to report request cost, X-Desearch-Usage-Count for applied usage units, X-Desearch-Service for the priced service name, and X-Desearch-Currency for currency. An object response may expose the optional body properties cost_usd, usage_count, service, and currency; a comment array keeps its body shape, reporting billing only through headers. For the video's own normalized metadata, follow TikTok post by ID, using the id parameter on that separate route. The broader set of public post and comment endpoints is linked from the TikTok API overview. The endpoint returns structured data that can be consumed by agents, research tools, dashboards, and retrieval-augmented generation workflows. Keep the request focused on the minimum fields your workflow needs so responses remain fast and easy to validate.

    Send requests to GET /desearch/tiktok/comments/{video_id} with your Desearch API key in the authorization header. Treat the key as a server-side secret, validate all required parameters before sending the request, and handle non-2xx responses explicitly. Production integrations should use sensible timeouts, retry only transient failures with backoff, and record the response status and request identifier for troubleshooting.

    Test the example request below before integrating it into a larger workflow. Confirm that the returned fields, links, and timestamps meet your freshness requirements, then add schema validation at the application boundary. For agentic systems, preserve source URLs with the generated answer so users can inspect evidence and your application can avoid presenting unsupported claims.

    Path Parameters

    video_idstringrequired

    TikTok video/post ID

    Query Parameters

    countinteger

    Maximum number of items to return. A page may hold fewer.

    Default: 20

    cursorstring

    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.

    Responses

    200A list of normalized TikTok comments.
    301Moved Permanently
    304Not Modified
    401Unauthorized
    422Validation Error, or the `cursor` is not one this route issued for this target, or it has expired. An invalid cursor is rejected before any search runs and is not charged.
    429Too Many Requests
    500Internal Server Error
    Authorization

    Your API key is sent in the Authorization header.

    Request
    curl -X GET "https://api.desearch.ai/desearch/tiktok/comments/7620891413932166433" \
      -H "Authorization: YOUR_API_KEY" \
      -H "Content-Type: application/json"
    GET /desearch/tiktok/comments/{video_id}
    ResponseSchema
    [
      {
        "id": "7620891413932166433",
        "videoId": "7620891413932166433",
        "text": "comment text",
        "createTime": "2024-01-15T11:00:00Z",
        "author": {
          "id": "12345",
          "username": "desearch",
          "nickname": "Desearch",
          "avatar": "https://example.com/avatar.jpg",
          "verified": true,
          "following": 1200,
          "followers": 50000,
          "heart": 300000
        },
        "likes": 42,
        "replies": [
          {}
        ]
      }
    ]
    Status codes200301304401422429500