Call it
curl https://api.peume.com/v1/call/tiktok-douyin-user-videos-by-user-id-newest-or \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"secUid": "your secUid",
"maxCursor": "0",
"sortType": "LATEST"
}
}'const res = await fetch("https://api.peume.com/v1/call/tiktok-douyin-user-videos-by-user-id-newest-or", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"secUid": "your secUid",
"maxCursor": "0",
"sortType": "LATEST"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/tiktok-douyin-user-videos-by-user-id-newest-or",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"secUid": "your secUid",
"maxCursor": "0",
"sortType": "LATEST"
}
},
)
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-douyin-user-videos-by-user-id-newest-or.
Parameters
secUidRequiredstringThe unique user ID (sec_user_id) on Douyin.
maxCursorstringPagination cursor; use 0 for the first page, and the `max_cursor` from the previous response for subsequent pages.
Example: 0
sortTypestringSort order: `LATEST` for newest first (default), or `MOST_POPULAR` for most popular first. Available Values: - `LATEST`: Newest first (default) - `MOST_POPULAR`: Most popular first One of: LATEST, MOST_POPULAR.
LATEST · MOST_POPULAR
Example: LATEST
Other ways to do it
Same job, other sources, cheapest first.
