Skip to Content

TikTok LIVE Search

Search TikTok LIVE rooms broadcasting right now for a keyword, and return a task_id immediately. Poll GET /tiktok/live/search/{task_id} for cursor-paginated results. Each room comes with its author, live counters (stats.viewers, likes, ...), hashtags, category, game_tags and, unless include_stream_urls is false, its playback URLs (FLV and HLS by quality, plus an audio-only stream). Results are retained for ~1 hour.

Results keep TikTok's ranking and are localized to country. TikTok serves about 50 rooms per keyword; some keywords have no live room in a given country at a given time, which completes with zero results.

Usage disclosure: this endpoint does not accept include_usage; pass include_usage=true on GET /tiktok/live/search/{task_id} once task_status=completed.

POST
/tiktok/live/search

Find TikTok LIVE rooms broadcasting right now for a keyword, with their stream URLs, and get a task_id back immediately.

Overview

This endpoint searches TikTok's LIVE tab: it returns the rooms that are live at the moment the search runs, not past videos. Each room comes with its author, live counters (current viewers, likes, ...), hashtags, category and playback URLs (FLV and HLS by quality, plus an audio-only stream).

It is asynchronous: you poll GET /tiktok/live/search/{task_id} for cursor-paginated rooms, or wait for the webhook. Results are retained for ~1 hour.

  • Rooms keep TikTok's ranking.
  • Results are localized to country (default us): the same keyword returns different rooms in different countries.
  • TikTok serves about 50 rooms per keyword. A keyword with no LIVE room in that country at that moment completes with zero results.
  • A search usually takes 20 to 50 seconds.

Looking for regular TikTok videos? Use TikTok Keyword Search. LIVE search returns rooms that are broadcasting now, each shaped like a keyword search result (id, author, stats, hashtags) plus LIVE-only fields.

Billing

  • 1 residential_request per 30 rooms returned (stats.results_count), minimum 1 per search and 1 per 5 pages read. Rooms past max_results are not billed. A keyword typically yields up to about 45 rooms, so 1 or 2 residential requests, or 1 when max_results is 30 or less.
  • Stream URLs cost nothing extra: they come in the same TikTok response.
  • No search_request is billed. A failed search is fully refunded.

Usage disclosure: this endpoint does not accept include_usage. Billing happens after the 202 response is sent. Pass include_usage=true on GET /tiktok/live/search/{task_id} instead.

Request Parameters

ParameterTypeRequiredDescription
querystringYesKeyword phrase to search LIVE rooms for (min length 2), e.g. gaming, music, football.
max_resultsintegerNoUpper bound on rooms collected. 0 (default) or omitted means as many as TikTok serves, about 50.
countrystringNoTwo-letter country code (ISO 3166-1 alpha-2, lowercase or uppercase) whose LIVE rooms you get. Default us. The request schema above lists the accepted codes; an unsupported code returns 400 invalid_country with the list.
include_stream_urlsbooleanNoDefault true: each room carries its stream_urls. Pass false to leave them out.
webhook_urlstringNoWhere to POST a notification when the task finishes. Overrides the account default set in Studio → API; pass "" to opt this task out of the default. Must be a public https URL. The event carries stats and points you to check_status_url for the rooms. See Webhooks.

Example Usage

curl -X POST "https://api.vidnavigator.com/v1/tiktok/live/search" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "gaming",
    "country": "us",
    "max_results": 20
  }'

Success Response (202 Accepted)

{
  "status": "success",
  "data": {
    "task_id": "6f1c2a8e-4b3d-4e0a-9c55-2d7f1e8b9a10",
    "task_status": "processing",
    "query": "gaming",
    "country": "us",
    "max_results": 20,
    "include_stream_urls": true,
    "expires_at": "2026-11-05T15:00:00Z",
    "check_status_url": "/v1/tiktok/live/search/6f1c2a8e-4b3d-4e0a-9c55-2d7f1e8b9a10",
    "webhook_url": null,
    "message": "Search started. Poll check_status_url for results."
  }
}

Get the result

GET /tiktok/live/search/{task_id} — poll this endpoint with the task_id (or the check_status_url) returned above, or wait for the webhook notification. Polling does not consume credits.

The playground above only covers the submit request. Call the result endpoint with cURL or your HTTP client.

Request Parameters

ParameterInRequiredDescription
task_idpathYesTask ID returned by POST /tiktok/live/search
cursorqueryNoOpaque pagination cursor from a previous response
limitqueryNoMaximum number of rooms to return, between 1 and 500. Default is 50.
include_usagequeryNoWhen true and task_status=completed, attach a usage block: 1 residential_request per 30 results_count, minimum 1 and 1 per 5 pages_fetched.

Polling Lifecycle

  • processing: the search is still running (results is empty)
  • completed: the rooms are ready
  • failed: the search ended with an error (all charges refunded)

Example Requests

curl "https://api.vidnavigator.com/v1/tiktok/live/search/6f1c2a8e-4b3d-4e0a-9c55-2d7f1e8b9a10?limit=25&include_usage=true" \
  -H "X-API-Key: YOUR_API_KEY"

Example Completed Response

{
  "status": "success",
  "data": {
    "task_id": "6f1c2a8e-4b3d-4e0a-9c55-2d7f1e8b9a10",
    "task_status": "completed",
    "query": "gaming",
    "country": "us",
    "stats": {
      "pages_fetched": 1,
      "rooms_fetched": 44,
      "results_count": 20,
      "has_more": true,
      "country": "us"
    },
    "results": [
      {
        "id": "7704440240265644830",
        "title": "Ranked grind #fortnite",
        "url": "https://www.tiktok.com/@creator/live",
        "started_at": "2026-11-04T22:04:46Z",
        "author": {
          "id": "6628548115959152646",
          "unique_id": "creator",
          "nickname": "Creator",
          "sec_uid": "MS4wLjABAAAA...",
          "followers": 576168,
          "avatar_url": "https://p16-common-sign.tiktokcdn-us.com/..."
        },
        "stats": {
          "viewers": 1296,
          "total_viewers": 232347,
          "likes": 301154,
          "comments": 12839,
          "shares": 360
        },
        "hashtags": ["fortnite"],
        "category": "Gaming",
        "game_tags": ["Fortnite"],
        "cover_url": "https://p19-common-sign.tiktokcdn-us.com/...",
        "stream_urls": {
          "default_quality": "hd",
          "flv": {
            "hd": "https://pull-f5-tt01.tiktokcdn-us.com/game/stream-3867376775231964110_hd.flv?expire=1795089584&sign=..."
          },
          "hls": {
            "hd": "https://pull-hls-f16-tt01.tiktokcdn-us.com/game/stream-3867376775231964110_hd/index.m3u8?expire=1795089584&sign=..."
          },
          "audio_only": "https://pull-f5-tt01.tiktokcdn-us.com/game/stream-3867376775231964110.flv?expire=1795089584&sign=...&only_audio=1",
          "expires_at": "2026-11-19T11:59:44Z"
        }
      }
    ],
    "pagination": {
      "limit": 25,
      "offset": 0,
      "total_items": 20,
      "has_next": false,
      "has_prev": false,
      "next_cursor": null,
      "prev_cursor": null
    },
    "download_url": "https://storage.example.com/api/tiktok_live_searches/user/task.json?X-Amz-Signature=...",
    "webhook": null,
    "created_at": "2026-11-05T14:00:00Z",
    "completed_at": "2026-11-05T14:00:31Z",
    "expires_at": "2026-11-05T15:00:00Z"
  },
  "usage": {
    "charges": [
      { "service_type": "residential_request", "quantity": 2, "credits": 0.01 }
    ],
    "total_credits": 0.01
  }
}

Understanding the Response

stats

  • rooms_fetched: distinct rooms TikTok returned, including any past max_results. Reported for information: billing follows results_count (1 residential_request per 30).
  • results_count: rooms in results
  • has_more: whether TikTok had more rooms when the search stopped
  • pages_fetched: TikTok pages fetched (up to 50 rooms each)
  • country: same as country

results

Each room is shaped like a keyword search result, plus LIVE-only fields:

FieldDescription
idLIVE room ID
titleTitle the streamer set, or null
urlhttps://www.tiktok.com/@username/live
started_atWhen the LIVE started (UTC, ISO 8601)
authorid, unique_id (username), nickname, sec_uid, followers, avatar_url
statsviewers (watching when the search ran), total_viewers (since the LIVE started), likes, comments, shares. Counters TikTok does not send are null.
hashtagsHashtags written in the title, without #
categoryThe LIVE's category on TikTok, e.g. Gaming
game_tagsGames tagged on the LIVE, e.g. Fortnite
cover_urlCover image
stream_urlsPlayback URLs (see below). Omitted when include_stream_urls is false.

stream_urls

FieldDescription
default_qualityThe quality TikTok plays by default
flvHTTP-FLV URLs keyed by quality: origin, uhd, hd, sd, ld (only those the LIVE offers)
hlsHLS (.m3u8) URLs with the same keys, when TikTok provides them. Can be empty.
audio_onlyHTTP-FLV URL of the audio-only stream
expires_atExpiry of the URL signatures

The URLs play while the LIVE is on and stop when it ends, whatever expires_at says. They work in players such as VLC, ffplay or ffmpeg (FLV and HLS), and in browsers through hls.js (HLS).

download_url

When present, a short-lived signed URL to the full result as one JSON file (same shape as the paginated results, but unsliced). Call the endpoint again to mint a fresh one.

error

Present when task_status is failed: an object with error (a code you can branch on, e.g. search_failed), message and http_status. See Errors.

query_refused (http_status 400) means TikTok does not serve LIVE search results for that keyword. Running the same search again returns the same answer: change the keyword. A refused search is not billed.

webhook

Delivery state of the task's webhook notification (status, attempts, response_status, last_error, delivered_at), or null when no webhook applies.

Error Cases

StatuserrorWhen
400request_body_requiredNo JSON body
400invalid_queryquery missing or shorter than 2 characters
400invalid_max_resultsmax_results negative or not an integer
400invalid_countrycountry not supported; the message lists the accepted codes
400invalid_include_stream_urlsinclude_stream_urls not a boolean
400invalid_cursorBad cursor on the result endpoint
404task_not_foundTask does not exist, expired, or belongs to another account

Tips

  • LIVE rooms change by the minute: run the search when you need the rooms, and read the stream URLs soon after.
  • Try several keywords and countries: a keyword can have no LIVE room in one country and dozens in another.
  • stats.viewers is a snapshot taken when the search ran. To follow a room afterwards (still live? viewers now? latest comments?), call TikTok LIVE Room with its id.

API reference

Authorization

ApiKeyAuth
headerX-API-Key<token>

API key authentication. Include your VidNavigator API key in the X-API-Key header.

Request Body

application/json
  1. body
query*string

Keyword phrase to search LIVE rooms for.

Length2 <= length
max_results?integer

Upper bound on rooms collected. 0 (the default) means as many as TikTok serves, about 50 per keyword.

Range0 <= value
Default0
country?string

Country whose LIVE rooms you get (ISO 3166-1 alpha-2, lowercase or uppercase), one of the supported countries. Default us.

Default"us"
Value in"al""am""ao""ar""at""au""az""ba""be""bf""bg""bj""bo""br""bw""by""ca""cd""ch""ci""cl""cm""co""cr""cy""cz""de""dk""do""ec""ee""es""fi""fj""fr""gb""ge""gh""gr""gt""hn""hr""ht""hu""id""ie""il""is""it""jm""jp""ke""kg""kr""kz""lk""lt""lu""lv""md""me""mg""mk""ml""mn""mt""mu""mw""mx""my""mz""na""ne""ng""ni""nl""no""np""nz""pa""pe""pg""ph""pl""pr""pt""py""ro""rs""rw""se""sg""si""sk""sn""sv""tg""th""tj""tr""tt""tw""tz""ua""ug""us""uy""uz""ve""vn""za""zm""zw"
include_stream_urls?boolean

Return each room's playback URLs in stream_urls (FLV and HLS by quality, plus an audio-only FLV). On by default. Pass false to leave them out.

Defaulttrue
webhook_url?string

Where to POST the result when the task finishes. Overrides the account-level default configured in Studio → API; pass an empty string to opt this task out of that default. Must be a publicly reachable https URL. The event is a notification, not the payload: it carries stats and tells you to read the rooms from check_status_url. See https://docs.vidnavigator.com/guides/webhooks

Formaturi

Response Body

Task accepted and queued.

application/json
  1. response
status?"success"
Value in"success"
data?
Example Request
curl -X POST 'https://api.vidnavigator.com/v1/tiktok/live/search' \  -H 'Content-Type: application/json' \  -d '{  "query": "gaming"}'
Example Response
{  "status": "success",  "data": {    "task_id": "string",    "task_status": "processing",    "query": "string",    "country": "us",    "max_results": 0,    "include_stream_urls": true,    "expires_at": "2019-08-24T14:15:22Z",    "check_status_url": "/v1/tiktok/live/search/550e8400-e29b-41d4-a716-446655440000",    "message": "string",    "webhook_url": "string"  }}

On this page