PeumeAPI

Social media data · TikTok

TikTok API

Access TikTok mobile API data: users, videos, sounds, search, comments, followers, and hashtags.

$0.003 per call

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": ""
  }
}'

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_usernamestring

Enter one TikTok username (without the @ symbol). Example: 'katyperry'

Example:

profile_userIdstring

User ID used for identifying a TikTok account. Example: 131256363632148480

Example:

profile_secUserIdstring

Secondary user ID used by TikTok for user identification. Example: MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM

Example:

profile_regionstring

Optional 2-letter code for region (which might affect the data that appears). Defaults to 'GB'

Example: GB

usernameToId_usernamestring

Get the user ID from the username. You'll use this ID for most requests. Example: 'katyperry'

Example:

followers_userIdstring

User ID to fetch followers for. Example: 131256363632148480

Example:

followers_secUserIdstring

Secondary user ID used by TikTok for user identification. Example: MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM

Example:

followers_countinteger

Number of followers to retrieve. Default is 10.

Example: 10

followers_maxTimeinteger

Pagination cursor. Use the 'min_time' value from the previous response to fetch more results.

Example: 0

following_userIdstring

User ID to fetch followings for. Example: 131256363632148480

Example:

following_secUserIdstring

Optional secondary user ID. Example: MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM

Example:

following_countinteger

Number of followings to retrieve. Default is 10.

Example: 10

following_maxTimeinteger

Pagination cursor. Use the 'min_time' value from the previous response to fetch more results.

Example: 0

post_awemeIdstring

The ID of the TikTok video post to retrieve. Example: 6811123699203329285

Example:

post_regionstring

Optional 2-letter code for region (which might affect the data that appears). Defaults to 'GB'

Example: GB

userPosts_userIdstring

User ID whose posts should be retrieved. Example: 6546356850533602319

Example:

userPosts_secUserIdstring

Optional secondary user ID. Example: MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM

Example:

userPosts_countinteger

Number of posts to retrieve. Default is 10.

Example: 10

userPosts_regionstring

Optional 2-letter code for region (which might affect the data that appears). Defaults to 'GB'

Example: GB

userPosts_maxCursorstring

Pagination cursor for fetching next set of posts.

Example: 0

music_idstring

The ID of the TikTok music track to retrieve. Example: 6873491642666469377

Example:

musicPosts_musicIdstring

ID of the music to fetch associated video posts. Example: 7047667719411370758

Example:

musicPosts_countinteger

Number of posts to retrieve. Default is 18.

Example: 18

musicPosts_cursorinteger

Pagination cursor for loading additional results.

Example: 0

challengePosts_cidstring

Hashtag/Challenge ID used to fetch associated posts. Example: 1592380847102982

Example:

challengePosts_countinteger

Number of challenge posts to fetch. Default is 20.

Example: 20

challengePosts_cursorinteger

Pagination cursor to retrieve more results for a challenge.

Example: 0

commentReplies_commentIdstring

ID of the parent comment to fetch replies for. Example: 6999860547420766982

Example:

commentReplies_awemeIdstring

ID of the TikTok post containing the comment. Example: 6996617408010112262

Example:

commentReplies_countinteger

Number of replies to fetch. Default is 10.

Example: 10

commentReplies_cursorinteger

Pagination cursor to retrieve more comment replies.

Example: 0

listComments_awemeIdstring

ID of the TikTok post to fetch top-level comments for. Example: 6944028931875949829

Example:

listComments_countinteger

Number of top-level comments to fetch. Default is 10.

Example: 10

listComments_cursorinteger

Pagination cursor to retrieve more top-level comments.

Example: 0

userLikes_userIdstring

User ID whose liked posts should be retrieved. Example: 6546356850533602319

Example:

userLikes_countinteger

Number of liked posts to retrieve. Default is 10.

Example: 10

userLikes_maxCursorstring

Pagination cursor for fetching additional liked posts.

Example: 0

searchUsers_keywordstring

Search for users by keyword. Example: 'japan'

Example:

searchUsers_countinteger

Number of users to retrieve. Default is 20.

Example: 20

searchUsers_cursorinteger

Pagination cursor to retrieve more users.

Example: 0

searchPosts_keywordstring

Search for posts by keyword. Example: 'nike'

Example:

searchPosts_countinteger

Number of posts to retrieve. Default is 10.

Example: 10

searchPosts_offsetinteger

Offset for pagination. Default is 0.

Example: 0

searchPosts_regionstring

Optional 2-letter code for region (which might affect the data that appears). Defaults to 'GB'

Example: GB

searchPosts_publishTimeinteger

Publish 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_sortTypeinteger

Sort type for filtering posts. Default is 0. 0 = Relevance, 1 = Most Liked, 3 = Date

Example: 0

searchSounds_keywordstring

Search for sounds by keyword. Example: 'japan'

Example:

searchSounds_countinteger

Number of sounds to retrieve. Default is 10.

Example: 10

searchSounds_cursorinteger

Pagination cursor to retrieve more sounds.

Example: 0

searchSounds_regionstring

Optional 2-letter code for region (which might affect the data that appears). Defaults to 'GB'

Example: GB

searchSounds_useFiltersboolean

Whether to use filters. Default is false. 0 is no, 1 is yes.

Example: false

searchSounds_filterByinteger

Filter by. Default is 0. 0 = All, 1 = Title, 2 = Creators

Example: 0

searchSounds_sortTypeinteger

Sort type for filtering sounds. Default is 0. 0 = Relevance, 1 = Most used, 2 = Most recent, 3 = Shortest, 4 = Longest

Example: 0

searchHashtags_keywordstring

Search for hashtags by keyword. Example: 'japan'

Example:

searchHashtags_countinteger

Number of hashtags to retrieve. Default is 20.

Example: 20

searchHashtags_regionstring

Optional 2-letter code for region (which might affect the data that appears). Defaults to 'GB'

Example: GB

searchHashtags_cursorinteger

Pagination cursor to retrieve more hashtags.

Example: 0

searchLives_keywordstring

Search for lives by keyword. Example: 'tiktok'

Example:

searchLives_countinteger

Number of lives to retrieve. Default is 20.

Example: 20

searchLives_offsetinteger

Offset for pagination. Default is 0.

Example: 0

videoWithoutWatermark_awemeIdstring

Get the video without watermark. Example: 6811123699203329285

Example:

Start free · $1 of calls included

Every API your business needs. One key.

7,000+ data and AI APIs behind one key, with backup sources built in.