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/successAt provider cost
- Success rate
- 100%Last 30 days · 91,582 calls
- Latency p50
- 518 msp95 1.2 s
- Last verified
- Oct 4, 2026Verified working
GEThttps://toolswitch.dev/v1/tools/tikhub.tiktok.user.videos?count=5&secUid=MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiMPreview- Uses platform quota
- Synchronous response
- Reads public data
Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
count | integer | Optional | items per page (default 20) | 5 |
cursor | integer | Optional | page cursor | 0 |
secUid | string | Required | user secUid — obtain it from tiktok.user.profile first; this endpoint does NOT accept a username | MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM |
coverFormat | integer | Optional | cover image format (default 2) | |
post_item_list_request_type | integer | Optional | sort type (default 0) | |
- Query parameters
countintegerOptionalitems per page (default 20)
Example:
5cursorintegerOptionalpage cursor
Example:
0secUidstringRequireduser secUid — obtain it from tiktok.user.profile first; this endpoint does NOT accept a username
Example:
MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiMcoverFormatintegerOptionalcover image format (default 2)
post_item_list_request_typeintegerOptionalsort type (default 0)
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
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());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.001/success, including the service fee.