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/callAl precio del proveedor
- 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
Parámetros
| Parámetro | Tipo | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Parámetros de consulta | ||||
trim | booleano | Opcional | Set to true for a trimmed down version of the response | false |
handle | cadena | Obligatorio | TikTok handle | stoolpresidente |
region | cadena | Opcional | 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 | cadena | Opcional | What to sort by | latest |
user_id | cadena | Opcional | TikTok user id. Use this for faster responses. | 6659752019493208069 |
max_cursor | cadena | Opcional | Cursor to get more videos. Get 'max_cursor' from previous response. | 1734562353000 |
- Parámetros de consulta
trimbooleanoOpcionalSet to true for a trimmed down version of the response
Ejemplo:
falsehandlecadenaObligatorioTikTok handle
Ejemplo:
stoolpresidenteregioncadenaOpcionalRegion (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.
Ejemplo:
GBsort_bycadenaOpcionalWhat to sort by
Ejemplo:
latestuser_idcadenaOpcionalTikTok user id. Use this for faster responses.
Ejemplo:
6659752019493208069max_cursorcadenaOpcionalCursor to get more videos. Get 'max_cursor' from previous response.
Ejemplo:
1734562353000
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
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());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.00188/call, incluida la tarifa de servicio.