Call it
curl https://api.peume.com/v1/call/tiktok-user-s-liked-videos-by-secuid-2 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"secUid": "MS4wLjABAAAAq1iRXNduFZpY301UkVpJ1eQT60_NiWS9QQSeNqmNQEDJp0pOF8cpleNEdiJx5_IU",
"cursor": 0,
"count": 20,
"coverFormat": 2,
"post_item_list_request_type": 0
}
}'const res = await fetch("https://api.peume.com/v1/call/tiktok-user-s-liked-videos-by-secuid-2", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"secUid": "MS4wLjABAAAAq1iRXNduFZpY301UkVpJ1eQT60_NiWS9QQSeNqmNQEDJp0pOF8cpleNEdiJx5_IU",
"cursor": 0,
"count": 20,
"coverFormat": 2,
"post_item_list_request_type": 0
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/tiktok-user-s-liked-videos-by-secuid-2",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"secUid": "MS4wLjABAAAAq1iRXNduFZpY301UkVpJ1eQT60_NiWS9QQSeNqmNQEDJp0pOF8cpleNEdiJx5_IU",
"cursor": 0,
"count": 20,
"coverFormat": 2,
"post_item_list_request_type": 0
}
},
)
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-liked-videos-by-secuid-2.
Parameters
secUidRequiredstringUser secUid
Example: MS4wLjABAAAAq1iRXNduFZpY301UkVpJ1eQT60_NiWS9QQSeNqmNQEDJp0pOF8cpleNEdiJx5_IU
cursorintegerPage cursor
Example: 0
countintegerNumber per page
Example: 20
coverFormatintegerCover format
Example: 2
post_item_list_request_typeintegerSort type
Example: 0
Other ways to do it
Same job, other sources.
