Call it
curl https://api.peume.com/v1/call/tiktok-user-profile-by-username-or-user-id \
-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-profile-by-username-or-user-id", {
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-profile-by-username-or-user-id",
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-profile-by-username-or-user-id.
Parameters
uniqueIdstringpublic handle from the profile URL
Example: tiktok
secUidstringopaque user id; use when the handle is unknown
Other ways to do it
Same job, other sources.
Get a user's public profileBest sourceGet a user's public profile. Checks the cheapest source first and moves to the next one until it finds an answer.A TikTok profile's statsGet one TikTok account's public profile: display name, bio, exact follower, like and video counts, and verified badge.TikTok creator info and milestones by user idGet creator info and milestonesTikTok user profile by user id, secUid or usernameGet information of specified userTikTok user profile by username or secUidPublic TikTok profile by username (uniqueId) or secUidTikTok ProfileFetch a TikTok creator's public profile (followers, likes, bio, verification) by handle.
