Skip to content

Videos

One TikTok post, video or photo carousel. Soft-deleted and moderated rows stay in the results until you filter them out.

POST /videos/search32 columns

Request

POST /videos/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.

Request
{
  "match": "dance tutorial",
  "description": { "neq": "" },
  "language": { "eq": "en" },
  "is_deleted": { "eq": false },
  "is_moderated": { "eq": false },
  "views": { "gte": 10000 },
  "sort": [{ "field": "views", "direction": "desc" }],
  "limit": 20,
  "offset": 0
}

Soft-deleted rows stay until you set is_deleted. Moderated rows stay until you set is_moderated. The numbers in the response are the example from the contract.

Options

matchstring

Full-text query against the caption. A field match on description searches the caption only. @ is rejected. The full-text rules are on the API page.

1 to 512 characters. @ is rejected.

sortarray

One 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.

limitint

Page size. Default 20. Minimum 1. Maximum 100.

default 20.

offsetint

Matching rows to skip. Default 0. offset plus limit cannot exceed 1000.

default 0.

Response

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.

The hit is the example from the contract. rate_engagement on that row is (180000 + 4200 + 8900 + 3200) / 2500000.

Response
{
  "total": 48220,
  "limit": 20,
  "offset": 0,
  "hits": [
    {
      "id": "7123456789012348672",
      "description": "wait for it #fyp",
      "author_id": "1234567890123456789",
      "music_id": "0",
      "language": "en",
      "source_url": "",
      "views": 2500000,
      "likes": 180000,
      "comments": 3200,
      "shares": 4200,
      "saves": 8900,
      "duration": 15,
      "image_count": 0,
      "is_ad": false,
      "is_photo": false,
      "can_duet": true,
      "can_stitch": true,
      "can_share": true,
      "is_deleted": false,
      "is_moderated": false,
      "created_at": 1767225600000,
      "first_seen_at": 1767225601000,
      "last_seen_at": 1767300000000,
      "updated_at": 1767300000000,
      "deleted_at": 0,
      "moderated_at": 0,
      "trigger_video_detailed_at": 1767300000000,
      "rate_engagement": 0.07852,
      "rate_likes": 0.072,
      "rate_shares": 0.00168,
      "rate_saves": 0.00356,
      "rate_comments": 0.00128
    }
  ]
}

Post

idid

TikTok's id for the post, also called the aweme id. Decimal string, the same id as the video row. Ids of 0 and below are not stored. Many of these ids are larger than 2^53 - 1, so a JSON number would change them.

eq, neq, gt, gte, lt, lte, in

descriptiontext

The caption. An empty string means the caption was missing. HTML is left as stored. match searches this field only. A stored #fyp matches the query fyp. eq and neq compare the stored caption, which is how you drop empty captions.

match, eq, neq

author_idid

The account that posted it. Decimal string. The same value as id on Authors.

eq, neq, gt, gte, lt, lte, in

music_idid

The sound attached to the post. "0" means no sound. There is no sound row 0, and this index does not store the sound title.

eq, neq, gt, gte, lt, lte, in

languagestring

Detected language of the caption, or an empty string when it is unknown. Codes seen include en, ja, and un. eq is exact and case-sensitive. A case-insensitive pattern uses (?i).

eq, neq, in, regex

source_urlstring

The watch URL kept by the scrape. Often empty. This API does not build one.

eq, neq, in, regex

Counts

viewsint

Play count from the last sync. Not a live count.

eq, neq, gt, gte, lt, lte, in

likesint

Like count from the last sync.

eq, neq, gt, gte, lt, lte, in

commentsint

Comment count reported on the post at the last sync. This is not how many comment rows we stored. The comments route only has comments we fetched.

eq, neq, gt, gte, lt, lte, in

sharesint

Share count from the last sync.

eq, neq, gt, gte, lt, lte, in

savesint

Bookmark count from the last sync.

eq, neq, gt, gte, lt, lte, in

durationint

Length in seconds. Photo posts are often 0.

eq, neq, gt, gte, lt, lte, in

image_countint

Stills in a photo carousel. 0 on an ordinary video.

eq, neq, gt, gte, lt, lte, in

Flags

is_adbool

The post was marked as an ad or branded content.

eq

is_photobool

The post is a photo or slideshow, not a video.

eq

can_duetbool

Duet is allowed. A stub that has never had a detail scrape often still shows allowed.

eq

can_stitchbool

Stitch is allowed.

eq

can_sharebool

Share is allowed.

eq

is_deletedbool

The post is soft-deleted. The row stays until it is hard-deleted and the sync drops it. Send {"eq":false} to keep live posts. This API does not add that filter for you.

eq

is_moderatedbool

The payload was redacted. Send {"eq":false} to drop those rows. This API does not add that filter for you.

eq

Clocks

created_atint

When the post was uploaded, in Unix milliseconds. 1767225600000 is 2026-01-01 00:00:00 UTC.

eq, neq, gt, gte, lt, lte, in

first_seen_atint

When we first stored the row, in Unix milliseconds.

eq, neq, gt, gte, lt, lte, in

last_seen_atint

When we last observed the row, in Unix milliseconds.

eq, neq, gt, gte, lt, lte, in

updated_atint

When the last detail write touched the row, in Unix milliseconds. The sync uses this clock. A stub that was inserted and never detail-updated has updated_at less than or equal to first_seen_at. This API cannot compare the two clocks in one filter.

eq, neq, gt, gte, lt, lte, in

deleted_atint

When the post was marked deleted, in Unix milliseconds. 0 means not set, not 1970. Use is_deleted to test deletion.

eq, neq, gt, gte, lt, lte, in

moderated_atint

When the post was marked moderated, in Unix milliseconds. 0 means not set, not 1970.

eq, neq, gt, gte, lt, lte, in

trigger_video_detailed_atint

When the last video-detail scrape ran, in Unix milliseconds. 0 means that scrape has never run.

eq, neq, gt, gte, lt, lte, in

Rates

rate_engagementfloat

(likes + shares + saves + comments) / views when views is above 0, otherwise 0. Copied at sync. This API does not recompute it. On the example row that is (180000 + 4200 + 8900 + 3200) / 2500000.

eq, neq, gt, gte, lt, lte, in

rate_likesfloat

likes / views when views is above 0, otherwise 0. Copied at sync.

eq, neq, gt, gte, lt, lte, in

rate_sharesfloat

shares / views when views is above 0, otherwise 0. Copied at sync.

eq, neq, gt, gte, lt, lte, in

rate_savesfloat

saves / views when views is above 0, otherwise 0. Copied at sync.

eq, neq, gt, gte, lt, lte, in

rate_commentsfloat

comments / views when views is above 0, otherwise 0. The comments value is the count on the post, not the number of stored comment rows. Copied at sync.

eq, neq, gt, gte, lt, lte, in

Authors, Hashtags, Comments, Health.