Sand AISand AI MAGI-2MAGI-2 agora está na SandBase: vídeo em 1080p com áudio nativoExperimente agora

TikTok Web Stream Search

Docs da API
https://api.sandbase.ai/v1/api/tiktok/web/search-live

Searches active TikTok web broadcasts matching a specified keyword. Returns stream details with pagination controls via count and offset parameters.

Preço
$0.001USD / chamada
Método
POST
Resposta
JSON
Parâmetros
1 obrigatórios · 3 opcionais

Playground

Entrada
Search keyword
Number per page
Page offset, 0 for the first request, need to provide for the second paging.
Search id, empty for the first request, need to provide for the second paging, need to get it from the return response of the last request.
SaídaExemplo
Respostaoutputs · 2.2 KB · 42 linhas
[
  {
    "data": {
      "backtrace": "",
      "cookie": "tt_chain_token=psb8vKZSOvCjUpqv7Wr3aw==;",
      "cursor": 20,
      "data": [
        {
          "live_info": {
            "raw_data": "{\"id\":7693515274179414814,\"id_str\":\"7693515274179414814\",\"status\":2,\"owner_user_id\":7593786017787167758,\"title\":\"The camp is open!!\",\"user_count\":34,\"client_version\":13702,\"cover\":{\"url_list\":[\"https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/f9ffcf5a11c32e756660687107560321~tplv-tiktokx-cropcenter:720:720.webp?dr=9640\\u0026refresh_token=6faa4cf5\\u0026x-expires=1791457200\\u0026x-signature=1B3n0i%2Bf4O7OIWGo%2F%2BAzehx1lP8%3D\\u0026t=4d5b0474\\u0026ps=13740610\\u0026shp=a5d48078\\u0026shcp=fdd36af4\\u0026idc=useast5\",\"https://p19-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/f…",
            "room_info": {
              "has_commerce_goods": false,
              "is_battle": false
            }
          }
        },
        {
          "live_info": {
            "raw_data": "{\"id\":7693531072277793556,\"id_str\":\"7693531072277793556\",\"status\":2,\"owner_user_id\":6759413627788608514,\"title\":\"open to talk\",\"user_count\":2,\"client_version\":470000,\"cover\":{\"url_list\":[\"https://p19-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/a1b4a4be805e1784b0fa368f2a7a8566~tplv-tiktokx-cropcenter:720:720.webp?dr=9640\\u0026refresh_token=78540ffa\\u0026x-expires=1791460800\\u0026x-signature=cfZYvNohBm1CXqWZtnZski7Sybc%3D\\u0026t=4d5b0474\\u0026ps=13740610\\u0026shp=a5d48078\\u0026shcp=fdd36af4\\u0026idc=useast5\",\"https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/a1b4a4be805e1784b0fa368…",
            "room_info": {
              "has_commerce_goods": false,
              "is_battle": false
            }
          }
        }
      ],
      "extra": {
        "api_debug_info": null,
        "fatal_item_ids": [],
        "logid": "2026100612392491357DFAABB02F05831F",
        "now": 1791290365000,
        "search_request_id": ""
      },
      "has_more": 0,
      "log_pb": {
        "impr_id": "2026100612392491357DFAABB02F05831F"
      },
      "status_code": 0,
      "tt_chain_token": "psb8vKZSOvCjUpqv7Wr3aw=="
    }
  }
]

Exemplos

Selecione um exemplo para carregar as entradas e o resultado no playground.

README da API

TikTok Web Stream Search API

This API searches live TikTok broadcasts that match a keyword. It needs one input, keyword, and returns a list of live rooms plus paging values.

Use cases

  • Find live rooms on TikTok that mention a brand or product name such as openai.
  • Collect room titles and viewer counts for a topic to see which streams are active.
  • Check which matching rooms sell goods or run battles by reading the room flags.
  • Build a paged list of live results for a keyword by passing the paging values back in.

Request

curl -X POST "https://api.sandbase.ai/v1/api/tiktok/web/search-live" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword": "openai"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
keywordstringYesSearch keyword
countintegerNoNumber per page
offsetintegerNoPage offset, 0 for the first request, need to provide for the second paging.
search_idstringNoSearch id, empty for the first request, need to provide for the second paging, need to get it from the return response of the last request.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "backtrace": "",
  "cookie": "tt_chain…",
  "cursor": 20,
  "data": [
    {
      "live_info": {
        "raw_data": "{\"id\":7703772241024142094,\"id_str\":\"7703772241024142094\",\"status\":2,\"owner_user_…",
        "room_info": {
          "has_commerce_goods": false,
          "is_battle": false
        }
      }
    }
  ],
  "extra": {
    "api_debug_info": null,
    "fatal_item_ids": [],
    "logid": "202611030744286B42605440E85F01DADD",
    "now": 1793691869000,
    "search_request_id": ""
  },
  "has_more": 0,
  "log_pb": {
    "impr_id": "202611030744286B42605440E85F01DADD"
  },
  "status_code": 0,
  "tt_chain_token": "R2aMeDVd…"
}

Response fields

FieldMeaning
data[].live_info.raw_dataA JSON string with the full room record. It includes the room id, id_str, status, owner_user_id, title and user_count. Parse the string to read these values.
data[].live_info.room_info.has_commerce_goodstrue if the room has commerce goods attached, false if not.
data[].live_info.room_info.is_battletrue if the room is in a battle, false if not.
cursorPosition value for the next page. The sample shows 20 for a request with the default count.
has_morePaging flag. 0 in the sample, which means no further page was signaled.
extra.search_request_idSearch request ID for the call. It was an empty string in this sample.
extra.nowTimestamp attached to the response, shown as a 13-digit number.
extra.logid / log_pb.impr_idRequest log ID and impression ID. They carry the same value in the sample.
status_code0 in the sample, which marks a successful call.
tt_chain_tokenToken string that also appears inside the cookie field.

Notes

  • Set count to control how many rooms come back per page. The default is 20.
  • For the next page, send the cursor value as offset and add the search_id the schema asks for. Check has_more first.
  • Room data sits inside the raw_data string, so parse it as JSON to read the room id_str.
  • To check whether a room is still live, call TikTok Stream Status Check. For more room detail, call TikTok Stream Room Information.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Explorar mais

APIs relacionadas

Todas as APIs
APIPreçoResposta
TikTok$0.001 por chamadaJSON
TikTok$0.001 por chamadaJSON
TikTok$0.001 por chamadaJSON
TikTok$0.001 por chamadaJSON
TikTok$0.001 por chamadaJSON
TikTok$0.05 por chamadaJSON

Guias:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

Perguntas

FAQ

Como eu uso a API TikTok Web Stream Search?

Envie uma solicitação POST para https://api.sandbase.ai/v1/api/tiktok/web/search-live com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.

Quanto custa a API TikTok Web Stream Search?

$0.001 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.

Quais parâmetros a API TikTok Web Stream Search aceita?

Obrigatórios: keyword (string). Opcionais: count (integer), offset (integer) e search_id (string). A tabela de Parâmetros e o Playground nesta página listam todos os campos.

O que a API TikTok Web Stream Search retorna?

Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.

Preciso de uma conta de desenvolvedor TikTok ou de uma chave de API?

Não. TikTok Web Stream Search funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do TikTok separadamente.