TikTok user's recent videos by secUid
tikhub.tiktok.user.videosRecent videos posted by a TikTok user (keyed by secUid, not username)
- Price
- $0.001/successプロバイダー原価
- Success rate
- 100%Last 30 days · 91,582 calls
- Latency p50
- 518 msp95 1.2 s
- Last verified
- 2026/10/04Verified working
GEThttps://toolswitch.dev/v1/tools/tikhub.tiktok.user.videos?count=5&secUid=MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiMPreviewTry online近日公開Provider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| クエリパラメータ | ||||
count | 整数 | 任意 | items per page (default 20) | 5 |
cursor | 整数 | 任意 | page cursor | 0 |
secUid | 文字列 | 必須 | user secUid — obtain it from tiktok.user.profile first; this endpoint does NOT accept a username | MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM |
coverFormat | 整数 | 任意 | cover image format (default 2) | |
post_item_list_request_type | 整数 | 任意 | sort type (default 0) | |
- クエリパラメータ
count整数任意items per page (default 20)
例:
5cursor整数任意page cursor
例:
0secUid文字列必須user secUid — obtain it from tiktok.user.profile first; this endpoint does NOT accept a username
例:
MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiMcoverFormat整数任意cover image format (default 2)
post_item_list_request_type整数任意sort type (default 0)
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/tikhub.tiktok.user.videos?count=5&secUid=MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/tikhub.tiktok.user.videos?count=5&secUid=MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/tikhub.tiktok.user.videos?count=5&secUid=MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM", {
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());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は $0.001/success です。サービス料を含みます。