Call it
curl https://api.peume.com/v1/call/tiktok-api \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"profile_username": "",
"profile_userId": "",
"profile_secUserId": "",
"profile_region": "GB",
"usernameToId_username": "",
"followers_userId": ""
}
}'const res = await fetch("https://api.peume.com/v1/call/tiktok-api", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"profile_username": "",
"profile_userId": "",
"profile_secUserId": "",
"profile_region": "GB",
"usernameToId_username": "",
"followers_userId": ""
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/tiktok-api",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"profile_username": "",
"profile_userId": "",
"profile_secUserId": "",
"profile_region": "GB",
"usernameToId_username": "",
"followers_userId": ""
}
},
)
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-api.
Parameters
profile_usernamestringEnter one TikTok username (without the @ symbol). Example: 'katyperry'
Example:
profile_userIdstringUser ID used for identifying a TikTok account. Example: 131256363632148480
Example:
profile_secUserIdstringSecondary user ID used by TikTok for user identification. Example: MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM
Example:
profile_regionstringOptional 2-letter code for region (which might affect the data that appears). Defaults to 'GB'
Example: GB
usernameToId_usernamestringGet the user ID from the username. You'll use this ID for most requests. Example: 'katyperry'
Example:
followers_userIdstringUser ID to fetch followers for. Example: 131256363632148480
Example:
followers_secUserIdstringSecondary user ID used by TikTok for user identification. Example: MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM
Example:
followers_countintegerNumber of followers to retrieve. Default is 10.
Example: 10
followers_maxTimeintegerPagination cursor. Use the 'min_time' value from the previous response to fetch more results.
Example: 0
following_userIdstringUser ID to fetch followings for. Example: 131256363632148480
Example:
following_secUserIdstringOptional secondary user ID. Example: MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM
Example:
following_countintegerNumber of followings to retrieve. Default is 10.
Example: 10
following_maxTimeintegerPagination cursor. Use the 'min_time' value from the previous response to fetch more results.
Example: 0
post_awemeIdstringThe ID of the TikTok video post to retrieve. Example: 6811123699203329285
Example:
post_regionstringOptional 2-letter code for region (which might affect the data that appears). Defaults to 'GB'
Example: GB
userPosts_userIdstringUser ID whose posts should be retrieved. Example: 6546356850533602319
Example:
userPosts_secUserIdstringOptional secondary user ID. Example: MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM
Example:
userPosts_countintegerNumber of posts to retrieve. Default is 10.
Example: 10
userPosts_regionstringOptional 2-letter code for region (which might affect the data that appears). Defaults to 'GB'
Example: GB
userPosts_maxCursorstringPagination cursor for fetching next set of posts.
Example: 0
music_idstringThe ID of the TikTok music track to retrieve. Example: 6873491642666469377
Example:
musicPosts_musicIdstringID of the music to fetch associated video posts. Example: 7047667719411370758
Example:
musicPosts_countintegerNumber of posts to retrieve. Default is 18.
Example: 18
musicPosts_cursorintegerPagination cursor for loading additional results.
Example: 0
challengePosts_cidstringHashtag/Challenge ID used to fetch associated posts. Example: 1592380847102982
Example:
challengePosts_countintegerNumber of challenge posts to fetch. Default is 20.
Example: 20
challengePosts_cursorintegerPagination cursor to retrieve more results for a challenge.
Example: 0
commentReplies_commentIdstringID of the parent comment to fetch replies for. Example: 6999860547420766982
Example:
commentReplies_awemeIdstringID of the TikTok post containing the comment. Example: 6996617408010112262
Example:
commentReplies_countintegerNumber of replies to fetch. Default is 10.
Example: 10
commentReplies_cursorintegerPagination cursor to retrieve more comment replies.
Example: 0
listComments_awemeIdstringID of the TikTok post to fetch top-level comments for. Example: 6944028931875949829
Example:
listComments_countintegerNumber of top-level comments to fetch. Default is 10.
Example: 10
listComments_cursorintegerPagination cursor to retrieve more top-level comments.
Example: 0
userLikes_userIdstringUser ID whose liked posts should be retrieved. Example: 6546356850533602319
Example:
userLikes_countintegerNumber of liked posts to retrieve. Default is 10.
Example: 10
userLikes_maxCursorstringPagination cursor for fetching additional liked posts.
Example: 0
searchUsers_keywordstringSearch for users by keyword. Example: 'japan'
Example:
searchUsers_countintegerNumber of users to retrieve. Default is 20.
Example: 20
searchUsers_cursorintegerPagination cursor to retrieve more users.
Example: 0
searchPosts_keywordstringSearch for posts by keyword. Example: 'nike'
Example:
searchPosts_countintegerNumber of posts to retrieve. Default is 10.
Example: 10
searchPosts_offsetintegerOffset for pagination. Default is 0.
Example: 0
searchPosts_regionstringOptional 2-letter code for region (which might affect the data that appears). Defaults to 'GB'
Example: GB
searchPosts_publishTimeintegerPublish time for filtering posts. Default is 0. 0 = All Time, 1 = Yesterday, 7 = This Week, 30 = This Month, 90 = Last 3 Months, 180 = Last 6 Months
Example: 0
searchPosts_sortTypeintegerSort type for filtering posts. Default is 0. 0 = Relevance, 1 = Most Liked, 3 = Date
Example: 0
searchSounds_keywordstringSearch for sounds by keyword. Example: 'japan'
Example:
searchSounds_countintegerNumber of sounds to retrieve. Default is 10.
Example: 10
searchSounds_cursorintegerPagination cursor to retrieve more sounds.
Example: 0
searchSounds_regionstringOptional 2-letter code for region (which might affect the data that appears). Defaults to 'GB'
Example: GB
searchSounds_useFiltersbooleanWhether to use filters. Default is false. 0 is no, 1 is yes.
Example: false
searchSounds_filterByintegerFilter by. Default is 0. 0 = All, 1 = Title, 2 = Creators
Example: 0
searchSounds_sortTypeintegerSort type for filtering sounds. Default is 0. 0 = Relevance, 1 = Most used, 2 = Most recent, 3 = Shortest, 4 = Longest
Example: 0
searchHashtags_keywordstringSearch for hashtags by keyword. Example: 'japan'
Example:
searchHashtags_countintegerNumber of hashtags to retrieve. Default is 20.
Example: 20
searchHashtags_regionstringOptional 2-letter code for region (which might affect the data that appears). Defaults to 'GB'
Example: GB
searchHashtags_cursorintegerPagination cursor to retrieve more hashtags.
Example: 0
searchLives_keywordstringSearch for lives by keyword. Example: 'tiktok'
Example:
searchLives_countintegerNumber of lives to retrieve. Default is 20.
Example: 20
searchLives_offsetintegerOffset for pagination. Default is 0.
Example: 0
videoWithoutWatermark_awemeIdstringGet the video without watermark. Example: 6811123699203329285
Example:
