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/callAu prix du fournisseur
- Success rate
- 99,6 %Last 30 days · 12 085 calls
- Latency p50
- 3.8 sp95 5.5 s
- Last verified
- 28 juil. 2026Verified working
GEThttps://toolswitch.dev/v1/tools/scrapecreators.tiktok.search.videos?query=ai&date_posted=all-timePreviewTry onlineBientôtProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Paramètres
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de requête | ||||
trim | booléen | Facultatif | Set to true for a trimmed response | |
query | chaîne | Obligatoire | Keyword to search for | ai |
cursor | nombre | Facultatif | Pagination cursor from previous response cursor field | 10 |
region | chaîne | Facultatif | 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 | chaîne | Facultatif | Sort by | relevance |
date_posted | chaîne | Facultatif | Time frame | all-time |
- Paramètres de requête
trimbooléenFacultatifSet to true for a trimmed response
querychaîneObligatoireKeyword to search for
Exemple :
aicursornombreFacultatifPagination cursor from previous response cursor field
Exemple :
10regionchaîneFacultatifDoes 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_bychaîneFacultatifSort by
Exemple :
relevancedate_postedchaîneFacultatifTime frame
Exemple :
all-time
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la 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());Cette API de passerelle est en préversion ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à $0.00188/call, frais de service inclus.