Call it
curl https://api.peume.com/v1/call/list-tiktok-profile-videos-2 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"handle": "your handle"
}
}'const res = await fetch("https://api.peume.com/v1/call/list-tiktok-profile-videos-2", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"handle": "your handle"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/list-tiktok-profile-videos-2",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"handle": "your handle"
}
},
)
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: list-tiktok-profile-videos-2.
Parameters
include_pinnedbooleanWhether to include pinned posts. Defaults to true. Set to false to exclude posts marked as pinned, including with trim=true. Keep this value unchanged while paginating. Filtering can produce shorter or empty pages; follow has_more and max_cursor.
trimbooleanSet to true for a trimmed down version of the response
user_idstringTikTok user id. Use this for faster responses.
max_cursorstringCursor to get more videos. Get 'max_cursor' from previous response.
handleRequiredstringTikTok handle
sort_bystringWhat to sort by
latest · popular
regionstringCountry code passed to the profile-feed source. Defaults to US. If a profile should have videos but returns none, try another relevant two-letter country code. Changing this value does not guarantee that region-restricted posts will appear.
