Skip to content

TikTok Comments API

Top-level comments on a TikTok, with like counts, reply counts, pinned status and a flag for the creator's own replies. Use tiktok.commentReplies to expand a thread. Calls cost 1 credit each. A cache hit is free, and a failed or empty response is never charged.

Try it

Prefilled with the request that produced the example below. No key yet? Get a free key.

Request

GET/v1/tiktok/comments
ParameterTypeRequiredDescription
urlstringyesVideo URL (preferred), share link, or numeric video id
countnumbernoItems per page (default 20, max 50)
cursorstringnopagination.cursor from a previous response

Also accepts cache_max_age (a hit costs 0 credits) and include_raw (returns the untouched upstream payload under raw).

curl
curl "$API/v1/tiktok/comments?url=https%3A%2F%2Fwww.tiktok.com%2F%40nike%2Fvideo%2F7698749827965799693&cache_max_age=7d" \
  -H "x-api-key: $KEY"
JavaScript
const query = new URLSearchParams({
  url: 'https://www.tiktok.com/@nike/video/7698749827965799693',
  cache_max_age: '7d',
});

const response = await fetch(`${API}/v1/tiktok/comments?${query}`, {
  headers: { 'x-api-key': KEY },
});

const body = await response.json();
if (!body.success) throw new Error(body.error.code);

// 1 credit, 0 on a cache hit
console.log(body.data, body.meta.creditsCharged);
Python
import os, httpx

r = httpx.get(
    f"{os.environ['API']}/v1/tiktok/comments",
    params={
        "url": "https://www.tiktok.com/@nike/video/7698749827965799693",
        "cache_max_age": "7d",
    },
    headers={"x-api-key": os.environ["KEY"]},
    timeout=30,
)

body = r.json()
if not body["success"]:
    raise RuntimeError(body["error"]["code"])

print(body["data"], body["meta"]["creditsCharged"])

Example response

Captured on , with raw removed and lists cut to two items. A live call returns current data.

response
{
  "success": true,
  "data": {
    "items": [
      {
        "platform": "tiktok",
        "id": "7698772899498902293",
        "postId": "7698749827965799693",
        "parentId": null,
        "text": "DAY3 OF ASKING FOR FOOTBALL BOOT",
        "authorId": "example-user-1",
        "authorHandle": "example_user_1",
        "authorName": "Example User 1",
        "authorAvatarUrl": "https://example.com/media/1.jpg",
        "likeCount": 0,
        "replyCount": 0,
        "isPinned": false,
        "isAuthorReply": null,
        "publishedAt": "2026-10-20T15:30:59.000Z"
      },
      {
        "platform": "tiktok",
        "id": "7698807753930392340",
        "postId": "7698749827965799693",
        "parentId": null,
        "text": "ser a jike me notar eu faço tudo oq ela quizer",
        "authorId": "example-user-2",
        "authorHandle": "example_user_2",
        "authorName": "Example User 2",
        "authorAvatarUrl": "https://example.com/media/2.jpg",
        "likeCount": 0,
        "replyCount": 0,
        "isPinned": false,
        "isAuthorReply": null,
        "publishedAt": "2026-10-20T17:46:18.000Z"
      }
    ]
  },
  "pagination": {
    "cursor": "20",
    "hasMore": true,
    "count": 19
  },
  "meta": {
    "platform": "tiktok",
    "endpoint": "tiktok.comments",
    "creditsCharged": 1,
    "cached": false,
    "cacheAgeSeconds": null,
    "durationMs": 1329,
    "requestId": "req_uehjcqt2mbwclts4g6ah"
  }
}

Returns

Returns a list of Comment in data.items.

Cost and behaviour

Credits1 per live request, 0 on a cache hit
Cacheableyes: cache_max_age accepts a cached copy
Batchableyes: usable as a target in POST /v1/jobs/batch
Subscribableyes: as often as every 3600 seconds, firing a webhook only on a change

Other TikTok endpoints