Search Douyin videos by keyword
justoneapi.x.douyin-search-video-v4Searches Douyin (TikTok China) videos by keyword with sort, publish-time, duration, and page filters; later pages require the previous search ID.
- Price
- $0.01476/success제공업체 원가
- Success rate
- 100%Last 30 days · 39 calls
- Latency p50
- 5.6 sp95 10 s
- Last verified
- 2026. 7. 28.Verified working
GEThttps://toolswitch.dev/v1/tools/justoneapi.x.douyin-search-video-v4?page=1&keyword=%E7%BE%8E%E9%A3%9F&duration=_0&sortType=_0&publishTime=_0Preview- Uses platform quota
- Synchronous response
- Reads public data
파라미터
| 파라미터 | 유형 | 필수 | 설명 | 예시 |
|---|---|---|---|---|
| 쿼리 파라미터 | ||||
page | 정수 | 선택 | Page number (starting from 1). | 1 |
keyword | 문자열 | 필수 | The search keyword. | 美食 |
duration | 문자열 | 선택 | Filter by video duration. Available Values: - `_0`: No Limit - `_1`: Under 1 Minute - `_2`: 1-5 Minutes - `_3`: Over 5 Minutes One of: _0, _1, _2, _3. | _0 |
searchId | 문자열 | 선택 | Search ID; required for pages > 1. Use data.business_config.next_page.search_id from the previous response, and stop paging when data.business_config.has_more is 0. | |
sortType | 문자열 | 선택 | Sorting criteria for search results. Available Values: - `_0`: General - `_1`: More likes - `_2`: Newest One of: _0, _1, _2. | _0 |
publishTime | 문자열 | 선택 | Filter by video publish time range. Available Values: - `_0`: No Limit - `_1`: Last 24 Hours - `_7`: Last 7 Days - `_180`: Last 6 Months One of: _0, _1, _7, _180. | _0 |
- 쿼리 파라미터
page정수선택Page number (starting from 1).
예시:
1keyword문자열필수The search keyword.
예시:
美食duration문자열선택Filter by video duration. Available Values: - `_0`: No Limit - `_1`: Under 1 Minute - `_2`: 1-5 Minutes - `_3`: Over 5 Minutes One of: _0, _1, _2, _3.
예시:
_0searchId문자열선택Search ID; required for pages > 1. Use data.business_config.next_page.search_id from the previous response, and stop paging when data.business_config.has_more is 0.
sortType문자열선택Sorting criteria for search results. Available Values: - `_0`: General - `_1`: More likes - `_2`: Newest One of: _0, _1, _2.
예시:
_0publishTime문자열선택Filter by video publish time range. Available Values: - `_0`: No Limit - `_1`: Last 24 Hours - `_7`: Last 7 Days - `_180`: Last 6 Months One of: _0, _1, _7, _180.
예시:
_0
코드 예제
$TOOLSWITCH_KEY를 콘솔에서 생성한 키로 바꾸세요.
curl -X GET 'https://toolswitch.dev/v1/tools/justoneapi.x.douyin-search-video-v4?page=1&keyword=%E7%BE%8E%E9%A3%9F&duration=_0&sortType=_0&publishTime=_0' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/justoneapi.x.douyin-search-video-v4?page=1&keyword=%E7%BE%8E%E9%A3%9F&duration=_0&sortType=_0&publishTime=_0",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/justoneapi.x.douyin-search-video-v4?page=1&keyword=%E7%BE%8E%E9%A3%9F&duration=_0&sortType=_0&publishTime=_0", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());게이트웨이 API는 미리보기 버전이며 URL과 인증 방식이 변경될 수 있습니다. 예제 매개변수는 샘플 데이터입니다. 호출 요금은 $0.01476/success이며 서비스 수수료가 포함되어 있습니다.