Call it
curl https://api.peume.com/v1/call/tiktok-user-s-recent-videos-by-secuid \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"secUid": "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM",
"cursor": 0,
"count": 5
}
}'const res = await fetch("https://api.peume.com/v1/call/tiktok-user-s-recent-videos-by-secuid", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"secUid": "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM",
"cursor": 0,
"count": 5
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/tiktok-user-s-recent-videos-by-secuid",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"secUid": "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM",
"cursor": 0,
"count": 5
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: tiktok-user-s-recent-videos-by-secuid.
Parameters
secUidRequiredstringuser secUid — obtain it from tiktok.user.profile first; this endpoint does NOT accept a username
Example: MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM
cursorintegerpage cursor
Example: 0
countintegeritems per page (default 20)
Example: 5
coverFormatintegercover image format (default 2)
post_item_list_request_typeintegersort type (default 0)
Other ways to do it
Same job, other sources, cheapest first.
List a user's recent videosBest sourceList a user's recent videos. Checks the cheapest source first and moves to the next one until it finds an answer.A TikTok account's latest videosList the latest videos of a public TikTok account, newest first, with text, plays, likes, comments, shares and length.TikTok user's videos by secUid or usernameGet user homepage video data V1TikTok user's videos by secUid or usernameGet user homepage video data V2TikTok user's videos by secUid or username, simplifiedGet user homepage video data V3 (simplified data - faster)TikTok Profile VideosList a TikTok creator's recent videos (views, likes, comments) by handle with cursor pagination.
