One comment we fetched. This table is sparse next to the comment count on a video. There is no delete flag. Replies are not nested.
matchstringFull-text query against the comment body. @ is rejected. The full-text rules are on the API page.
1 to 512 characters. @ is rejected.
sortarrayOne to three keys, each field and direction. Direction is asc or desc. Field is a column on this route, or weight when a match is set. An explicit sort replaces the default and does not add id.
1 to 3 keys.
limitintPage size. Default 20. Minimum 1. Maximum 100.
default 20.
offsetintMatching rows to skip. Default 0. offset plus limit cannot exceed 1000.
default 0.
total is how many rows match the filter, before paging. It is not the length of this page. limit and offset are the values after defaults. hits holds at most limit rows, and each row has every column, in the order below. No rows is still 200, with total 0 and hits empty. 0, an empty string, and -1 stay as stored. They are not turned into null. The response sends Cache-Control: no-store.
Example row. reply_count is the thread size, not a list of replies. Both scores are 0, which means the stored value was empty.
{
"total": 1,
"limit": 20,
"offset": 0,
"hits": [
{
"id": "7123456789012348673",
"video_id": "7123456789012348672",
"author_id": "1234567890123456789",
"text": "love this outfit",
"created_at": 1767225600000,
"language": "en",
"likes": 12,
"reply_count": 3,
"author_liked": true,
"author_pinned": false,
"is_high_purchase_intent": false,
"is_translatable": true,
"reply_score": 0,
"show_more_score": 0,
"first_seen_at": 1767225601000,
"last_seen_at": 1767300000000,
"updated_at": 1767300000000
}
]
}ididTikTok comment id, the cid. Decimal string.
eq, neq, gt, gte, lt, lte, in
video_ididThe post this comment is on. Decimal string. The same value as id on Videos.
eq, neq, gt, gte, lt, lte, in
author_ididThe commenter. Decimal string. The profile is often a stub author row that has not had a detail scrape.
eq, neq, gt, gte, lt, lte, in
texttextComment body. The JSON name is text. match searches this field only.
match, eq, neq
created_atintWhen the comment was written, in Unix milliseconds.
eq, neq, gt, gte, lt, lte, in
languagestringDetected language of the comment, or an empty string when it is unknown. eq is exact and case-sensitive.
eq, neq, in, regex
likesintLike count on the comment from the last sync.
eq, neq, gt, gte, lt, lte, in
reply_countintThread size reported for this comment. Child replies are not nested objects in this table.
eq, neq, gt, gte, lt, lte, in
author_likedboolThe creator of the video liked this comment.
eq
author_pinnedboolThe creator of the video pinned this comment.
eq
is_high_purchase_intentboolCommerce-intent flag on the comment.
eq
is_translatableboolTranslatable flag on the comment.
eq
reply_scorefloatRank score returned for the reply. The number is opaque. 0 means the stored value was empty.
eq, neq, gt, gte, lt, lte, in
show_more_scorefloatRank score returned for show-more. The number is opaque. 0 means the stored value was empty.
eq, neq, gt, gte, lt, lte, in
first_seen_atintWhen we first stored the comment, in Unix milliseconds.
eq, neq, gt, gte, lt, lte, in
last_seen_atintWhen we last observed the comment, in Unix milliseconds.
eq, neq, gt, gte, lt, lte, in
updated_atintWhen the last write touched this comment, in Unix milliseconds.
eq, neq, gt, gte, lt, lte, in
Request
POST /comments/search
An empty JSON object is the first page. A column you omit is not filtered. A column value is an object, and an empty object is rejected. Operators on one column are combined, and columns are combined with each other. Unknown fields are rejected. A JSON string is not a number, and a JSON number is not an id.
A comment removed upstream disappears here only after reconcile. This route does not add a deleted filter, because the column does not exist.