Call it
curl https://api.peume.com/v1/call/tiktok-videos-by-user \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"limit": 30,
"username": "your username"
}
}'const res = await fetch("https://api.peume.com/v1/call/tiktok-videos-by-user", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"limit": 30,
"username": "your username"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/tiktok-videos-by-user",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"limit": 30,
"username": "your username"
}
},
)
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-videos-by-user.
Parameters
min_likesintegerNumeric threshold filtering videos by minimum like count. It applies to user_videos only and does not filter author follower counts or comment like thresholds.
page_tokenstringPage token. To paginate, pass an empty string (`page_token=""`) for the first page, then pass back the previous response's `next_page_token` exactly as received, with the other parameters unchanged. A request without `page_token` is also the first page, but its response may not include `next_page_token`. Each page holds about 30 videos, newest first, and counts as one call. Tokens last 24 hours, and the last page has no `next_page_token`. Only newest-first requests (`sort` omitted or `newest`) without `until` or `min_likes` can page.
limitintegerMaximum number of results, 1 to 50 (default 30). For some actions it counts pages or items per parent rather than final rows.
Example: 30
untilstringSets an upper date bound for video publication time rather than data ingestion time. It applies to user_videos only.
sortstringSorts author video lists in the `user_videos` action. Allowed values are `newest`, `oldest`, and `popular`. It applies to `user_videos` only. One of: newest, oldest, popular.
newest · oldest · popular
usernameRequiredstringPublic TikTok handle, which may optionally include the leading `@`. Do not supply Douyin `secUid` tokens or full profile URLs.
