API Solution

TikTok Search API

Keyword search against TikTok, delivered as structured JSON. Sort by relevance, likes, or date, limit results to a date window, filter by likes and views, and skip the search page and session plumbing entirely.

What is the TikTok Search API?
The TikTok Search API is an asynchronous REST endpoint that runs a keyword search against TikTok video search and returns structured JSON. You POST a query with an optional sort order, date window, and like and view filters, receive a task id immediately, then page results by cursor or download the full payload as one signed JSON file.

Why the TikTok Search API?

TikTok gives you no way to query its catalogue programmatically, which is why keyword monitoring usually ends up as a manual scroll. This endpoint makes it a request: send a keyword with the sort order and filters you care about, get back matching videos as structured JSON. Every result carries its video URL, so search becomes the front end for transcription and structured extraction rather than a dead end.

  • No Result Ceiling to Design Around — max_results has no hard cap, and omitting it keeps going until there is nothing left to return. You are billed for the results returned, not for the number you asked for.
  • Coverage You Control — parallel_search_slices runs 1 to 4 concurrent searches and deduplicates them for you, lifting a single search’s ~120-video return to roughly 480.
  • Sorted and Windowed by TikTok — sort_by (relevance, most liked, newest) and published_within (past 24 hours to last 6 months) are the TikTok app’s own search filters. TikTok applies them itself, so a one-week search returns this week’s videos instead of an all-time list with a few recent ones in it.
  • Filters on Date, Likes, and Views — Narrow further by after_datetime, before_datetime, min_likes, max_likes, min_views, and max_views without post-processing on your side.
  • Ordering You Choose — Newest first by default. With sort_by, TikTok’s order is kept across cursor pages, full retrieval, and the signed download payload.
  • Nothing to Operate — No credentials to rotate, no infrastructure to keep warm, no retry logic to write. You send a query and read JSON.

How It Works

1
Get Your API Key

Sign up and generate an API key in VidNavigator Studio. That is the only credential you need.

2
Submit a Query

POST a keyword query to /v1/tiktok/search, optionally with a sort order, a date window, max_results, parallel_search_slices, and like and view filters. The endpoint returns 202 Accepted with a task id.

3
Poll the Task

Poll GET /v1/tiktok/search/{task_id} until task_status leaves processing. Most searches finish in 5 to 10 seconds; allow up to 30 for the occasional slower one.

4
Read or Download the Result

Walk the cursor for incremental pages, or follow the signed download_url to pull the entire result set as one JSON file with no auth header required.

Request Parameters

ParameterBehavior
queryRequired. The keyword or phrase to search TikTok video search for.
max_resultsNo hard upper cap. 0 or omitted means unbounded — pagination stops at TikTok exhaustion or the page cap. Negative values are rejected.
parallel_search_slicesConcurrent searches, 1 (default) to 4, deduplicated for you. A coverage control, not a time filter. Cost scales roughly linearly.
sort_byrelevance, most_liked, or newest. Applied by TikTok, like the app's Sort by filter. Omitted: returned newest first.
published_withinpast_24_hours, this_week, this_month, last_3_months, last_6_months, or all. A rolling window applied by TikTok before results are returned.
countryTwo-letter code of the country the search runs from: 133 are supported, gb by default. TikTok returns the videos it serves in that country, so the same keyword gives a different list in fr, br or jp.
after_datetime / before_datetimeExact date bounds, as YYYY-MM-DD or a timezone-aware ISO datetime. Without sort_by, after_datetime also makes the search run newest first and stop at your bound.
min_likes / max_likesKeep only videos whose like count falls within the range.
min_views / max_viewsKeep only videos whose view count falls within the range.

How Many Results Can You Actually Get?

A single search returns roughly 120 unique videos at most. Running several concurrently and deduplicating them is what pushes past that, and the table below is measured behavior on a representative query rather than a theoretical maximum.

SlicesUnique videosGain over previousRelative cost
1 (default)~89baseline1x
2~127+43%up to 2x
3~155+22%up to 3x
4 (max)~175, up to ~480 on broad queries+13%up to 4x

The practical rule: leave parallel_search_slices at 1 unless you genuinely need more than about 120 results. The cap is 4 because that already saturates TikTok's natural deduplication ceiling for most queries, and further searches would add little uniqueness for proportionally more cost.

python

Built for Modern Workflows

Trend & Topic Monitoring

Track a keyword or hashtag daily with after_datetime pinned to yesterday: the search runs newest first and stops at your bound, so you get the last day of posts, newest first, with view and like counts attached, for a handful of pages. One slice is enough for a daily delta; raise slices when you need breadth for a launch week.

Creator & UGC Discovery

Search a product or category term with min_views set to your relevance floor, then feed the returned video URLs straight into transcription or claim analysis to see what creators are actually saying.

Brand & Narrative Surveillance

Watch brand terms, competitor names, and campaign hashtags on a schedule. Because filters run server-side and results arrive newest-first, alerting logic reduces to reading the top of each page.

Quickstart

Submit a query, poll the task id, then read the result. The Python example covers all three steps, including walking the cursor to the end of the result set.

Results are scoped to the API key that created them. Requesting another account's task id returns 404.

API reference
bash

From a Keyword to What People Actually Said

A list of matching video URLs is a starting point, not an answer. Every search result carries a url, so the same script that finds videos about your category can also read them — turning a keyword into a corpus of what creators are telling their audiences about it.

python

Or collapse it into a share-of-voice table

Swap get_transcript for extract_video_data with a schema and each video becomes one structured row — stance, brands named, claims made. That is a monitoring dataset rather than reading material.

python

Share of voice

Count how often you and each competitor are named on camera in your category — weighted by the views of the videos naming you.

Claim monitoring

Catch factual claims made about your product on video, where text-based social listening is structurally blind.

Creator sourcing

Find creators already talking about your category, then read their stance before you reach out — no manual watching.

Search and transcription are billed separately: the search pays for the TikTok videos it returns, the transcript pays per video (or per hour of speech-to-text when captions are absent). Full reference: GET /v1/transcript and POST /v1/extract.

Example Response

A completed task carries the matching videos with their author, engagement metrics under stats, sound and hashtags, plus cursor pagination and a signed download URL for the full payload.

json

Search TikTok LIVE Rooms

Keyword search covers published videos. POST /v1/tiktok/live/search covers what is on air: it returns the LIVE rooms broadcasting at the moment of the search for a keyword, in one of 113 countries.

It runs like the keyword search: submit, get a task id, poll GET /v1/tiktok/live/search/{task_id}. TikTok serves about 50 rooms for a keyword, and a room that ended before the search is not in the results.

A search tells you which rooms are on air. To read what is said in them while they are on air, start a real-time transcription session on a room with its id: see the TikTok LIVE Transcription API.

What each room carries

  • The streamer: username, display name, follower count and avatar.
  • The audience: viewers right now, viewers since the start, likes, comments and shares.
  • The subject: title, category (Gaming, Music...), game tags and the hashtags of the title.
  • The room itself: id, LIVE URL, start time, cover image, and the stream addresses (FLV, HLS, audio only) unless you set include_stream_urls to false.

One room, read directly

POST /v1/tiktok/live/room answers in one call, with no task to poll. Give it a room id, a username or a LIVE URL and it returns that room with its status (live or ended). With include_comments, it adds the last comments of the chat (up to 50), the pinned comment and the top viewers.

API reference
python

Pricing

A keyword search is billed by the results it returns. With VidNavigator, 1 credit = 200 residential requests.

  • 30 results returned = 1 residential request, with a minimum of 1 per search: 3 results cost the same as 30, and 31 to 60 cost 2. stats.results_count reports the count.
  • Worked example: a single-slice unbounded search returns about 89 to 120 videos, so 3 to 4 residential requests, or roughly 0.02 credits.
  • Slices are billed by what they return. Four slices return roughly twice the unique videos of one, and cost about twice as much.
  • Sort order and date windows cost nothing extra. sort_by and published_within are applied by TikTok, so a narrow window fetches fewer videos, not more.
  • Like, view, and exact date filters run after the videos are fetched. The videos they exclude are not billed, but a search that reads many pages to keep few videos is billed at least 1 residential request per 5 pages read (stats.pages_fetched).
  • Failures are reversed. If the search fails, every charge is credited back and no result is exposed.
  • Polling is free. Only the search itself is billed.
  • LIVE search follows the same rule: 30 rooms returned = 1 residential request, with the same minimums. One LIVE room read directly costs 1 residential request, or 2 with its comments.

Because you pay for pages rather than results, an ambitious max_results is safe: asking for 3,000 videos on a query that only serves 120 costs the same as asking for 120.

Frequently Asked Questions

What is the TikTok Search API?
The TikTok Search API is an asynchronous REST endpoint that runs a keyword search against TikTok video search and returns structured JSON. You POST a query to /v1/tiktok/search with an optional sort order, date window, and like and view filters, receive a task id immediately, then page through results by cursor or download the full payload as one signed JSON file.
How many results can one search return?
TikTok caps a single search at roughly 120 unique videos, and in practice one search yields about 89 to 120. Raising parallel_search_slices runs additional concurrent searches and deduplicates them for you, lifting the ceiling to roughly 480 unique videos at the maximum of 4 slices.
Is there a maximum on max_results?
No. max_results has no hard upper cap, and omitting it (or sending 0) means unbounded: pagination continues until TikTok reports no more results, the page cap is reached, or a positive max_results count is collected. Asking for 3,000 results does not fail — you are billed for the results actually returned and receive whatever TikTok serves.
What does parallel_search_slices actually do?
It controls how many concurrent searches run for one query, from 1 (default) to 4, with the results deduplicated for you. It is a coverage control, not a time filter — time windows go through published_within, after_datetime, and before_datetime. Cost scales roughly linearly: 4 slices bill up to about 4x a single search.
Can I sort by date or by most liked?
Yes. sort_by accepts relevance, most_liked, or newest, the same choices as the Sort by filter in the TikTok app, and TikTok applies the order itself. published_within accepts past_24_hours, this_week, this_month, last_3_months, or last_6_months: rolling windows that TikTok applies before returning results, so a this_week search contains only this week's videos. If you set only after_datetime, the search runs newest first and stops once it passes your bound, so you get more recent videos for fewer pages.
How much extra coverage does each slice buy?
On a representative query, 2 slices returned about 43% more unique videos than 1 slice (89 to 127), 3 slices added about 22% over 2, and 4 slices added about 13% over 3. Returns diminish sharply, so set slices above 1 only when you genuinely need more than roughly 120 results.
How is a keyword search billed?
Every 30 results returned cost 1 residential request, with a minimum of 1 per search, at 1 credit per 200 residential requests: 3 results cost the same as 30, and 31 to 60 cost 2. A single-slice unbounded search returns roughly 89 to 120 videos, or about 0.02 credits. sort_by and published_within are applied by TikTok and cost nothing extra. Like, view, and exact date filters run after the videos are fetched: the videos they exclude are not billed, but a search that reads many pages to keep few videos is billed at least 1 residential request per 5 pages read. If the search fails, every charge is reversed automatically.
Can I search TikTok LIVE streams?
Yes. POST /v1/tiktok/live/search returns the LIVE rooms on air at the moment of the search for a keyword, in one of 113 countries (us by default). Each room comes with its streamer, current and total viewers, likes, comments, shares, category, game tags, start time and stream addresses. POST /v1/tiktok/live/room reads a single room by id, username or LIVE URL in one call, with its last comments on request. A LIVE search is billed 1 residential request per 30 rooms returned, a single room 1 residential request, or 2 with its comments. To read what is said in a room while it is on air, see the TikTok LIVE Transcription API.
Which countries can a search run from?
A keyword search runs from one of 133 countries, chosen with the country parameter (gb by default), and a LIVE search from one of 113 (us by default). TikTok localizes its results: the same keyword returns different videos, or different LIVE rooms, from one country to another. The documentation lists the accepted codes; any other code is refused with a 400.
How long does a search take?
Typically 5 to 10 seconds. An occasional first request after an idle period takes longer, around 15 to 25 seconds, while capacity warms up. Poll the task rather than assuming a fixed duration, and treat anything under 30 seconds as normal.

Related Solutions

Related Guides