TikTok user videos by username or id
scrapecreators.x.v3-tiktok-profile-videosFetches videos posted by a TikTok user, sortable by latest or most popular — use this to get a creator's video feed or TikToks.
- Price
- $0.00188/callAu prix du fournisseur
- Success rate
- 99,6 %Last 30 days · 47 726 calls
- Latency p50
- 3.1 sp95 6.1 s
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/scrapecreators.x.v3-tiktok-profile-videos?handle=stoolpresidentePreview- 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 down version of the response | false |
handle | chaîne | Obligatoire | TikTok handle | stoolpresidente |
region | chaîne | Facultatif | Region (country) for the proxy. Defaults to GB. If a profile should have videos but returns none, try US or another relevant two-letter country code. | GB |
sort_by | chaîne | Facultatif | What to sort by | latest |
user_id | chaîne | Facultatif | TikTok user id. Use this for faster responses. | 6659752019493208069 |
max_cursor | chaîne | Facultatif | Cursor to get more videos. Get 'max_cursor' from previous response. | 1734562353000 |
- Paramètres de requête
trimbooléenFacultatifSet to true for a trimmed down version of the response
Exemple :
falsehandlechaîneObligatoireTikTok handle
Exemple :
stoolpresidenteregionchaîneFacultatifRegion (country) for the proxy. Defaults to GB. If a profile should have videos but returns none, try US or another relevant two-letter country code.
Exemple :
GBsort_bychaîneFacultatifWhat to sort by
Exemple :
latestuser_idchaîneFacultatifTikTok user id. Use this for faster responses.
Exemple :
6659752019493208069max_cursorchaîneFacultatifCursor to get more videos. Get 'max_cursor' from previous response.
Exemple :
1734562353000
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.
curl -X GET 'https://toolswitch.dev/v1/tools/scrapecreators.x.v3-tiktok-profile-videos?handle=stoolpresidente' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/scrapecreators.x.v3-tiktok-profile-videos?handle=stoolpresidente",
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.x.v3-tiktok-profile-videos?handle=stoolpresidente", {
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.