Back to TikTok
Apify·TikTok

TikTok API

/scraptik/tiktok-apiasync$0.003 / call

Apify’s LOWEST-COST TikTok Scraper ($0.002/request). Access the TikTok mobile API for user, posts, sounds, search, comments, followers, and more. Unlock TikTok data at scale. Have custom needs? Visit scraptik.com to get in touch. Runs as an Apify actor (20–120 s); results are dataset rows.

Input
FieldTypeRequiredDescription
profile_usernamestringEnter one TikTok username (without the @ symbol). Example: 'katyperry' (default "")
profile_userIdstringUser ID used for identifying a TikTok account. Example: 131256363632148480 (default "")
profile_secUserIdstringSecondary user ID used by TikTok for user identification. Example: MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM (default "")
profile_regionstringOptional 2-letter code for region (which might affect the data that appears). Defaults to 'GB' (default "GB")
usernameToId_usernamestringGet the user ID from the username. You'll use this ID for most requests. Example: 'katyperry' (default "")
followers_userIdstringUser ID to fetch followers for. Example: 131256363632148480 (default "")
followers_secUserIdstringSecondary user ID used by TikTok for user identification. Example: MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM (default "")
followers_countintegerNumber of followers to retrieve. Default is 10. (default 10)
followers_maxTimeintegerPagination cursor. Use the 'min_time' value from the previous response to fetch more results. (default 0)
following_userIdstringUser ID to fetch followings for. Example: 131256363632148480 (default "")
following_secUserIdstringOptional secondary user ID. Example: MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM (default "")
following_countintegerNumber of followings to retrieve. Default is 10. (default 10)
following_maxTimeintegerPagination cursor. Use the 'min_time' value from the previous response to fetch more results. (default 0)
post_awemeIdstringThe ID of the TikTok video post to retrieve. Example: 6811123699203329285 (default "")
post_regionstringOptional 2-letter code for region (which might affect the data that appears). Defaults to 'GB' (default "GB")
userPosts_userIdstringUser ID whose posts should be retrieved. Example: 6546356850533602319 (default "")
userPosts_secUserIdstringOptional secondary user ID. Example: MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM (default "")
userPosts_countintegerNumber of posts to retrieve. Default is 10. (default 10)
userPosts_regionstringOptional 2-letter code for region (which might affect the data that appears). Defaults to 'GB' (default "GB")
userPosts_maxCursorstringPagination cursor for fetching next set of posts. (default "0")
music_idstringThe ID of the TikTok music track to retrieve. Example: 6873491642666469377 (default "")
musicPosts_musicIdstringID of the music to fetch associated video posts. Example: 7047667719411370758 (default "")
musicPosts_countintegerNumber of posts to retrieve. Default is 18. (default 18)
musicPosts_cursorintegerPagination cursor for loading additional results. (default 0)
challengePosts_cidstringHashtag/Challenge ID used to fetch associated posts. Example: 1592380847102982 (default "")
challengePosts_countintegerNumber of challenge posts to fetch. Default is 20. (default 20)
challengePosts_cursorintegerPagination cursor to retrieve more results for a challenge. (default 0)
commentReplies_commentIdstringID of the parent comment to fetch replies for. Example: 6999860547420766982 (default "")
commentReplies_awemeIdstringID of the TikTok post containing the comment. Example: 6996617408010112262 (default "")
commentReplies_countintegerNumber of replies to fetch. Default is 10. (default 10)
commentReplies_cursorintegerPagination cursor to retrieve more comment replies. (default 0)
listComments_awemeIdstringID of the TikTok post to fetch top-level comments for. Example: 6944028931875949829 (default "")
listComments_countintegerNumber of top-level comments to fetch. Default is 10. (default 10)
listComments_cursorintegerPagination cursor to retrieve more top-level comments. (default 0)
userLikes_userIdstringUser ID whose liked posts should be retrieved. Example: 6546356850533602319 (default "")
userLikes_countintegerNumber of liked posts to retrieve. Default is 10. (default 10)
userLikes_maxCursorstringPagination cursor for fetching additional liked posts. (default "0")
searchUsers_keywordstringSearch for users by keyword. Example: 'japan' (default "")
searchUsers_countintegerNumber of users to retrieve. Default is 20. (default 20)
searchUsers_cursorintegerPagination cursor to retrieve more users. (default 0)
searchPosts_keywordstringSearch for posts by keyword. Example: 'nike' (default "")
searchPosts_countintegerNumber of posts to retrieve. Default is 10. (default 10)
searchPosts_offsetintegerOffset for pagination. Default is 0. (default 0)
searchPosts_regionstringOptional 2-letter code for region (which might affect the data that appears). Defaults to 'GB' (default "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 (default 0)
searchPosts_sortTypeintegerSort type for filtering posts. Default is 0. 0 = Relevance, 1 = Most Liked, 3 = Date (default 0)
searchSounds_keywordstringSearch for sounds by keyword. Example: 'japan' (default "")
searchSounds_countintegerNumber of sounds to retrieve. Default is 10. (default 10)
searchSounds_cursorintegerPagination cursor to retrieve more sounds. (default 0)
searchSounds_regionstringOptional 2-letter code for region (which might affect the data that appears). Defaults to 'GB' (default "GB")
searchSounds_useFiltersbooleanWhether to use filters. Default is false. 0 is no, 1 is yes. (default false)
searchSounds_filterByintegerFilter by. Default is 0. 0 = All, 1 = Title, 2 = Creators (default 0)
searchSounds_sortTypeintegerSort type for filtering sounds. Default is 0. 0 = Relevance, 1 = Most used, 2 = Most recent, 3 = Shortest, 4 = Longest (default 0)
searchHashtags_keywordstringSearch for hashtags by keyword. Example: 'japan' (default "")
searchHashtags_countintegerNumber of hashtags to retrieve. Default is 20. (default 20)
searchHashtags_regionstringOptional 2-letter code for region (which might affect the data that appears). Defaults to 'GB' (default "GB")
searchHashtags_cursorintegerPagination cursor to retrieve more hashtags. (default 0)
searchLives_keywordstringSearch for lives by keyword. Example: 'tiktok' (default "")
searchLives_countintegerNumber of lives to retrieve. Default is 20. (default 20)
searchLives_offsetintegerOffset for pagination. Default is 0. (default 0)
videoWithoutWatermark_awemeIdstringGet the video without watermark. Example: 6811123699203329285 (default "")

Run it

curl -s https://sooma.dev/v1/run \ -H "Authorization: Bearer $SOOMA_API_KEY" \ -H "Content-Type: application/json" \ -d '{"provider":"apify","endpoint":"/scraptik/tiktok-api","input":{}}'

Or ask your agent: it will call inspect for this schema and run it over MCP.