Search TikTok posts by keyword
justoneapi.tiktok.search.videosSearch TikTok posts by keyword, with region, sort and publish-time filters
- Price
- $0.01476/successAu prix du fournisseur
- Success rate
- 100 %Last 30 days · 2 494 calls
- Latency p50
- 6.3 sp95 11 s
- Last verified
- 28 juil. 2026Verified working
GEThttps://toolswitch.dev/v1/tools/justoneapi.tiktok.search.videos?offset=0®ion=US&keyword=coffeePreviewTry onlineBientôtProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Paramètres
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de requête | ||||
offset | entier | Facultatif | starts at 0, steps by 20 | 0 |
region | chaîne | Facultatif | ISO 3166-1 alpha-2, default US | US |
keyword | chaîne | Obligatoire | coffee | |
sortType | chaîne | Facultatif | RELEVANCE (default) | MOST_LIKED | |
publishTime | chaîne | Facultatif | ALL (default) | ONE_DAY | ONE_WEEK | ONE_MONTH | THREE_MONTH | SIX_MONTH | |
- Paramètres de requête
offsetentierFacultatifstarts at 0, steps by 20
Exemple :
0regionchaîneFacultatifISO 3166-1 alpha-2, default US
Exemple :
USkeywordchaîneObligatoireExemple :
coffeesortTypechaîneFacultatifRELEVANCE (default) | MOST_LIKED
publishTimechaîneFacultatifALL (default) | ONE_DAY | ONE_WEEK | ONE_MONTH | THREE_MONTH | SIX_MONTH
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/justoneapi.tiktok.search.videos?offset=0®ion=US&keyword=coffee' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/justoneapi.tiktok.search.videos?offset=0®ion=US&keyword=coffee",
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.tiktok.search.videos?offset=0®ion=US&keyword=coffee", {
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.01476/success, frais de service inclus.