GET/desearch/tiktok/post/{id}

    Retrieve TikTok Post by ID

    Retrieve normalized metadata for a public TikTok post by ID. This endpoint does not expose no-watermark/download-only media URLs. 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 Post by ID when your application needs search-grounded AI results without maintaining its own crawler, social-data pipeline, or retrieval infrastructure. Look up normalized metadata for one public TikTok post by assigning its video or post ID to the required path string id. This single-post operation declares neither count nor cursor; its success response describes an object, with TikTokPost and a general object as the accepted schema alternatives. It does not expose no-watermark or download-only media URLs. The nullable mediaUrl and thumbnailUrl properties are part of the normalized metadata and do not change that endpoint limitation. A record can include string-or-null id, providerId, url, text, and createTime. Optional fields must be read according to their types: the post schema has no required-property list. For example, music references a nullable TikTokMusic object and is omitted when TikTok supplies no music object. Inside music, authorName, title, and id are nullable strings. hashtags is a string array populated from structured cha_list or text_extra tags, or #tags in the caption, with no tags represented by an empty array. mentions is always available as an array, populated from text_extra or caption @handles and empty if none are found. The video's posting country can appear in the nullable region string when exposed by TikTok. pinned permits boolean or null; true denotes a video at the top of a profile. imageCount is a nullable integer describing images in a /photo/ post, and is omitted for videos. The nullable integer fields for video geometry are videoWidth and videoHeight, alongside nullable integer videoDuration; no unit for duration is declared in the schema. For engagement, nullable stats references TikTokStats. Its playCount and digCount, plus commentCount, shareCount, and collectCount, all accept an integer or null. A nullable author object can identify the creator through id, username, nickname, and avatar strings, each nullable. Author verified also permits null, as do its integer counters following, followers, and heart. A successful billable lookup reports cost using X-Desearch-Cost-Usd and usage using X-Desearch-Usage-Count; the associated service and currency headers are X-Desearch-Service and X-Desearch-Currency. The JSON object may additionally have optional billing properties cost_usd, usage_count, service, and currency. These are billing metadata, with current prices linked from the API specification rather than fixed in this reference note. To retrieve discussion for a known video ID, use TikTok comments, whose route accepts video_id and pagination controls. The TikTok API overview links the other public-post operations. 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/post/{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

    idstringrequired

    TikTok video/post ID

    Responses

    200A normalized TikTok post object.
    301Moved Permanently
    304Not Modified
    401Unauthorized
    422Validation Error
    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/post/7620891413932166433" \
      -H "Authorization: YOUR_API_KEY" \
      -H "Content-Type: application/json"
    GET /desearch/tiktok/post/{id}
    ResponseSchema
    {
      "id": "7620891413932166433",
      "providerId": "string",
      "url": "https://www.tiktok.com/@tiktok/video/7620891413932166433",
      "text": "caption text",
      "createTime": "2024-01-15T10:30:00Z",
      "author": {
        "id": "12345",
        "username": "desearch",
        "nickname": "Desearch",
        "avatar": "https://example.com/avatar.jpg",
        "verified": true,
        "following": 1200,
        "followers": 50000,
        "heart": 300000
      },
      "stats": {
        "playCount": 120000,
        "digCount": 5000,
        "commentCount": 120,
        "shareCount": 45,
        "collectCount": 10
      },
      "music": {
        "id": "67890",
        "title": "Song Name",
        "authorName": "Artist"
      },
      "hashtags": [
        "string"
      ],
      "mentions": [
        "string"
      ],
      "region": "GE",
      "pinned": true,
      "imageCount": 0,
      "videoDuration": 15000,
      "videoWidth": 1080,
      "videoHeight": 1920,
      "thumbnailUrl": "https://example.com/thumb.jpg",
      "mediaUrl": "https://example.com/video.mp4"
    }
    Status codes200301304401422429500