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/callPelo preço do provedor
- 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 | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de consulta | ||||
trim | booleano | Opcional | Set to true for a trimmed down version of the response | false |
handle | string | Obrigatório | TikTok handle | stoolpresidente |
region | string | 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 | string | Opcional | What to sort by | latest |
user_id | string | Opcional | TikTok user id. Use this for faster responses. | 6659752019493208069 |
max_cursor | string | 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
Exemplo:
falsehandlestringObrigatórioTikTok handle
Exemplo:
stoolpresidenteregionstringOpcionalRegion (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.
Exemplo:
GBsort_bystringOpcionalWhat to sort by
Exemplo:
latestuser_idstringOpcionalTikTok user id. Use this for faster responses.
Exemplo:
6659752019493208069max_cursorstringOpcionalCursor to get more videos. Get 'max_cursor' from previous response.
Exemplo:
1734562353000
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no 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());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.