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/successAl precio del proveedor
- Success rate
- 100 %Last 30 days · 39 calls
- Latency p50
- 5.6 sp95 10 s
- Last verified
- 28 jul 2026Verified 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
Parámetros
| Parámetro | Tipo | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Parámetros de consulta | ||||
page | entero | Opcional | Page number (starting from 1). | 1 |
keyword | cadena | Obligatorio | The search keyword. | 美食 |
duration | cadena | Opcional | 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 | cadena | Opcional | 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 | cadena | Opcional | Sorting criteria for search results. Available Values: - `_0`: General - `_1`: More likes - `_2`: Newest One of: _0, _1, _2. | _0 |
publishTime | cadena | Opcional | 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 |
- Parámetros de consulta
pageenteroOpcionalPage number (starting from 1).
Ejemplo:
1keywordcadenaObligatorioThe search keyword.
Ejemplo:
美食durationcadenaOpcionalFilter 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.
Ejemplo:
_0searchIdcadenaOpcionalSearch 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.
sortTypecadenaOpcionalSorting criteria for search results. Available Values: - `_0`: General - `_1`: More likes - `_2`: Newest One of: _0, _1, _2.
Ejemplo:
_0publishTimecadenaOpcionalFilter 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.
Ejemplo:
_0
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
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());La API de la pasarela está en versión preliminar; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra. Las llamadas se facturan a $0.01476/success, incluida la tarifa de servicio.