Search TikTok videos by keyword
scrapecreators.tiktok.search.videosSearches for TikTok videos by keyword or phrase — the general video search across all of TikTok.
- Price
- $0.00188/callPelo preço do provedor
- Success rate
- 99,6%Last 30 days · 12.085 calls
- Latency p50
- 3.8 sp95 5.5 s
- Last verified
- 28 de jul. de 2026Verified working
GEThttps://toolswitch.dev/v1/tools/scrapecreators.tiktok.search.videos?query=ai&date_posted=all-timePreviewTry onlineEm breveProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parâmetros
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de consulta | ||||
trim | booleano | Opcional | Set to true for a trimmed response | |
query | string | Obrigatório | Keyword to search for | ai |
cursor | número | Opcional | Pagination cursor from previous response cursor field | 10 |
region | string | Opcional | Does NOT filter results to that region only — it places the proxy there (use for geo-restricted posts). 2-letter codes like US, GB, FR | |
sort_by | string | Opcional | Sort by | relevance |
date_posted | string | Opcional | Time frame | all-time |
- Parâmetros de consulta
trimbooleanoOpcionalSet to true for a trimmed response
querystringObrigatórioKeyword to search for
Exemplo:
aicursornúmeroOpcionalPagination cursor from previous response cursor field
Exemplo:
10regionstringOpcionalDoes NOT filter results to that region only — it places the proxy there (use for geo-restricted posts). 2-letter codes like US, GB, FR
sort_bystringOpcionalSort by
Exemplo:
relevancedate_postedstringOpcionalTime frame
Exemplo:
all-time
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/scrapecreators.tiktok.search.videos?query=ai&date_posted=all-time' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/scrapecreators.tiktok.search.videos?query=ai&date_posted=all-time",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/scrapecreators.tiktok.search.videos?query=ai&date_posted=all-time", {
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());Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a $0.00188/call, incluindo a taxa de serviço.