Call it
curl https://api.peume.com/v1/call/tiktok-user-live-stream-details-by-username \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"uniqueId": "tiktok"
}
}'const res = await fetch("https://api.peume.com/v1/call/tiktok-user-live-stream-details-by-username", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"uniqueId": "tiktok"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/tiktok-user-live-stream-details-by-username",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"uniqueId": "tiktok"
}
},
)
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-live-stream-details-by-username.
Parameters
uniqueIdRequiredstringUser uniqueId
Example: tiktok
Other ways to do it
Same job, other sources.
TikTok live room details by live room URLGet live room information via live linkTikTok live room details by room idGet data of specified live roomTikTok webcast user info by user id or secUidGet information of specified Webcast userTikTok live room info by room id or user idGets curated room-level info for a TikTok live using TokAPI's live info endpoint.
