Skip to content

Hashtags

One challenge. The title is stored without a hash. The videos that use the tag are not in this index.

POST /hashtags/search14 columns

Request

POST /hashtags/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
{
  "title": { "match": "fyp" },
  "is_deleted": { "eq": false },
  "linked_videos_count": { "gt": 0 },
  "limit": 20
}

Soft-deleted challenges stay until you set is_deleted. video_count is the challenge total. linked_videos_count is how many of those videos we have linked.

Options

matchstring

Full-text query against the title. @ 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.

Example row. TikTok's challenge count is 120000. We have linked 40 videos. The max-views rollup has not run, so linked_videos_max_views is -1 and its clock is 0.

Response
{
  "total": 1,
  "limit": 20,
  "offset": 0,
  "hits": [
    {
      "id": "9876543210987654321",
      "title": "fyp",
      "video_count": 120000,
      "view_count": 9000000,
      "linked_videos_count": 40,
      "linked_videos_max_views": -1,
      "is_deleted": false,
      "first_seen_at": 1767225600000,
      "last_seen_at": 1767300000000,
      "updated_at": 1767300000000,
      "deleted_at": 0,
      "trigger_hashtag_detailed_at": 1767300000000,
      "trigger_hashtag_rollup_count_at": 1767300000000,
      "trigger_hashtag_rollup_views_at": 0
    }
  ]
}

Identity

idid

TikTok challenge id. Decimal string.

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

titletext

Tag text without a leading #. match of fyp hits the title fyp.

match, eq, neq

Counts

video_countint

Video count reported for the whole challenge. -1 means we never fetched the challenge. 0 is a real zero. Leave -1 out before an average.

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

view_countint

View count reported for the whole challenge. -1 means we never fetched the challenge. 0 is a real zero.

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

linked_videos_countint

How many videos we have linked to this tag in our own data. -1 means that rollup has not run. 0 is a real zero. The links themselves are not in this index. This number is not the challenge total in video_count.

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

linked_videos_max_viewsint

Highest views among the videos we linked to this tag. -1 means the max-views rollup has not run.

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

Flags

is_deletedbool

The challenge is soft-deleted. The row stays until reconcile drops it. Send {"eq":false} for live tags. This API does not add that filter for you.

eq

Clocks

first_seen_atint

When we first stored the challenge, in Unix milliseconds.

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

last_seen_atint

When we last observed the challenge, in Unix milliseconds.

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

updated_atint

When the last detail write touched this challenge, in Unix milliseconds.

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

deleted_atint

When the challenge 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

trigger_hashtag_detailed_atint

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

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

trigger_hashtag_rollup_count_atint

When the last link-count rollup ran, in Unix milliseconds. 0 means that rollup has never run.

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

trigger_hashtag_rollup_views_atint

When the last max-views rollup ran, in Unix milliseconds. 0 means that rollup has never run.

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

Videos, Authors, Comments, Health.