keywordstring필수
Search keyword
https://api.sandbase.ai/v1/api/tiktok/web/search-liveSearches active TikTok web broadcasts matching a specified keyword. Returns stream details with pagination controls via count and offset parameters.
[
{
"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=="
}
}
]예시를 선택하면 입력값과 결과가 플레이그라운드에 로드됩니다.
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.
openai.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.
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | Yes | Search keyword |
count | integer | No | Number per page |
offset | integer | No | Page offset, 0 for the first request, need to provide for the second paging. |
search_id | string | No | 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. |
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…"
}
| Field | Meaning |
|---|---|
data[].live_info.raw_data | A 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_goods | true if the room has commerce goods attached, false if not. |
data[].live_info.room_info.is_battle | true if the room is in a battle, false if not. |
cursor | Position value for the next page. The sample shows 20 for a request with the default count. |
has_more | Paging flag. 0 in the sample, which means no further page was signaled. |
extra.search_request_id | Search request ID for the call. It was an empty string in this sample. |
extra.now | Timestamp attached to the response, shown as a 13-digit number. |
extra.logid / log_pb.impr_id | Request log ID and impression ID. They carry the same value in the sample. |
status_code | 0 in the sample, which marks a successful call. |
tt_chain_token | Token string that also appears inside the cookie field. |
count to control how many rooms come back per page. The default is 20.cursor value as offset and add the search_id the schema asks for. Check has_more first.raw_data string, so parse it as JSON to read the room id_str.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
빌드를 시작하세요
통합 인증 및 사용량 추적이 있는 플랫폼 API 엔드포인트입니다.
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 '{
"count": 1,
"offset": 0,
"keyword": "openai",
"search_id": ""
}'서버 환경에 SandBase API 키를 설정하세요. 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하지 마세요.
keywordstring필수Search keyword
countintegerNumber per page
기본값: 20
offsetintegerPage offset, 0 for the first request, need to provide for the second paging.
기본값: 0
search_idstringSearch 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.
기본값: ""
이 API의 저장된 예시 응답입니다. 확인할 때 라이브 요청은 실행되지 않습니다.
[
{
"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=="
}
}
]더 살펴보기
| API | 가격 | 응답 |
|---|---|---|
TikTok | $0.001 / 호출 | JSON |
TikTok | $0.001 / 호출 | JSON |
TikTok | $0.001 / 호출 | JSON |
TikTok | $0.001 / 호출 | JSON |
TikTok | $0.001 / 호출 | JSON |
TikTok | $0.05 / 호출 | JSON |
가이드:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
질문
Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/tiktok/web/search-live에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
호출당 $0.001, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.
필수: keyword (string). 선택: count (integer), offset (integer) 및 search_id (string). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.
같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.
아니요. TikTok Web Stream Search은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. TikTok API 액세스를 별도로 신청할 필요는 없습니다.