Post Comments
A post's top-level comments, 50 a page.
GET
apiKeyheader
AuthorizationBearer <token>An API key from the dashboard: Authorization: Bearer sapi_….
url?stringThe post's link.
id?stringThe post's id, instead of url.
cursor?stringnextCursor of the previous page.
maxAge?integerHow old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.
Format
int64Range
0 <= valueThe answer.
application/json- response
A page of a list, as every list endpoint answers: { "data": [...], "pagination": … }.
data*array<>pagination*import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data, pagination } = await client.tiktok.postComments({ url: "https://www.tiktok.com/@nike/video/7711465226318728461" });Example Response
{ "data": [ { "id": "7711470567174587188", "postId": "7711465226318728461", "parentId": null, "text": "day 3 for asking for free shoes or a sponsorship", "createdAt": "2026-11-23T20:44:54.000Z", "author": { "id": "7572676364739003409", "username": "mkhize_038", "displayName": "mkhiz€ _ $??", "avatarUrl": "https://p16-common-sign.tiktokcdn.com/tos-alisg-avt-0068/92b03a6787bff99c4ad5722cbbb6d833~tplv-tiktokx-cropcenter:100:100.jpg?dr=14579&refresh_token=84618990&x-expires=1795644000&x-signature=jZGiCYUL2Q2s1TgYLvvAXWnhnHA%3D&t=4d5b0474&ps=13740610&shp=30310797&shcp=ff37627b&idc=my", "verified": false, "url": "https://www.tiktok.com/@mkhize_038" }, "likes": 0, "replies": 0, "ext": { "pinned": false, "likedByCreator": false, "language": "en" } }, { "id": "7711465767753532178", "postId": "7711465226318728461", "parentId": null, "text": "The vroom sound soo real 😂😂😂", "createdAt": "2026-11-23T20:25:58.000Z", "author": { "id": "7209327424693240838", "username": "queen778887", "displayName": "Queen atelier 👞", "avatarUrl": "https://p16-common-sign.tiktokcdn.com/tos-alisg-avt-0068/e90050b9a58566070456fec057884e51~tplv-tiktokx-cropcenter:100:100.jpg?dr=14579&refresh_token=41547b71&x-expires=1795644000&x-signature=LY3w6Fzjm9hVaOelwQRH0HqCpIs%3D&t=4d5b0474&ps=13740610&shp=30310797&shcp=ff37627b&idc=my", "verified": false, "url": "https://www.tiktok.com/@queen778887" }, "likes": 1, "replies": 0, "ext": { "pinned": false, "likedByCreator": false, "language": "en" } } ], "pagination": { "nextCursor": null, "hasMore": false }}