Call it
curl https://api.peume.com/v1/call/tiktok-user-profile-by-user-id-secuid-or-username \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"sec_user_id": "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM"
}
}'const res = await fetch("https://api.peume.com/v1/call/tiktok-user-profile-by-user-id-secuid-or-username", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"sec_user_id": "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/tiktok-user-profile-by-user-id-secuid-or-username",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"sec_user_id": "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM"
}
},
)
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-user-id-secuid-or-username.
Parameters
user_idstringUser uid (optional, pure number)
sec_user_idstringUser sec_user_id
Example: MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM
unique_idstringUser unique_id (username)
Other ways to do it
Same job, other sources, cheapest first.
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 username or secUidPublic TikTok profile by username (uniqueId) or secUidTikTok ProfileFetch a TikTok creator's public profile (followers, likes, bio, verification) by handle.TikTok user profile by username or id — bio, statsFetches public profile data for a TikTok user by their handle or user_id — useful for looking up a creator's identity, bio, and account stats.
