TikTok API
23 endpoints for public TikTok data, from 1 credit a call. Same response format and field names as every other platform.
curl "https://scrapeio.com/v1/tiktok/profile?handle=nike" \ -H "x-api-key: YOUR_KEY"
GET/v1/tiktok/profile1 creditTikTok profile: bio, avatar, followers, following, likes, video count.
| Parameter | Type | Description |
|---|---|---|
handlerequired | string | TikTok username, with or without @. |
curl "https://scrapeio.com/v1/tiktok/profile?handle=nike" \ -H "x-api-key: YOUR_KEY"
GET/v3/tiktok/profile/videos1 creditA profile's videos, newest first, with plays, likes, comments, shares and saves.
| Parameter | Type | Description |
|---|---|---|
handlerequired | string | TikTok username, with or without @. |
cursor | string | Cursor from the previous page's data.cursor. |
curl "https://scrapeio.com/v3/tiktok/profile/videos?handle=nike" \ -H "x-api-key: YOUR_KEY"
GET/v2/tiktok/video5 creditsOne TikTok video by URL: stats, caption, author, music, download URL.
| Parameter | Type | Description |
|---|---|---|
urlrequired | string | TikTok video URL. |
curl "https://scrapeio.com/v2/tiktok/video?url=..." \ -H "x-api-key: YOUR_KEY"
GET/v1/tiktok/video/transcript5 creditsSpoken-word transcript of a TikTok video, from its captions.
| Parameter | Type | Description |
|---|---|---|
urlrequired | string | TikTok video URL. |
language | string | Preferred language code, e.g. en. |
curl "https://scrapeio.com/v1/tiktok/video/transcript?url=..." \ -H "x-api-key: YOUR_KEY"
GET/v1/tiktok/video/comments1 creditComments on a TikTok video, most liked first.
| Parameter | Type | Description |
|---|---|---|
urlrequired | string | TikTok video URL. |
cursor | string | Cursor from the previous page's data.cursor. |
curl "https://scrapeio.com/v1/tiktok/video/comments?url=..." \ -H "x-api-key: YOUR_KEY"
GET/v1/tiktok/video/comment/replies1 creditReplies to one TikTok comment.
| Parameter | Type | Description |
|---|---|---|
urlrequired | string | TikTok video URL. |
comment_idrequired | string | Comment id from the comments endpoint. |
cursor | string | Cursor from the previous page's data.cursor. |
curl "https://scrapeio.com/v1/tiktok/video/comment/replies?url=...&comment_id=..." \ -H "x-api-key: YOUR_KEY"
GET/v1/tiktok/search/keyword5 creditsSearch TikTok videos by keyword.
| Parameter | Type | Description |
|---|---|---|
queryrequired | string | Search text. |
sort_by | relevance, most-liked, latest | Sort order. |
date_posted | all, yesterday, this-week, this-month, last-3-months, last-6-months | Posted within. |
cursor | string | Cursor from the previous page's data.cursor. |
curl "https://scrapeio.com/v1/tiktok/search/keyword?query=coffee" \ -H "x-api-key: YOUR_KEY"
GET/v1/tiktok/search/users5 creditsSearch TikTok accounts by keyword.
| Parameter | Type | Description |
|---|---|---|
queryrequired | string | Search text. |
cursor | string | Cursor from the previous page's data.cursor. |
curl "https://scrapeio.com/v1/tiktok/search/users?query=coffee" \ -H "x-api-key: YOUR_KEY"
GET/v1/tiktok/search/hashtag5 creditsVideos under a hashtag, plus the hashtag's totals.
| Parameter | Type | Description |
|---|---|---|
hashtagrequired | string | Hashtag, with or without #. |
cursor | string | Cursor from the previous page's data.cursor. |
curl "https://scrapeio.com/v1/tiktok/search/hashtag?hashtag=travel" \ -H "x-api-key: YOUR_KEY"
GET/v1/tiktok/trending5 creditsTrending feed for a region.
| Parameter | Type | Description |
|---|---|---|
region | string | Two-letter country code. Default: US. |
curl "https://scrapeio.com/v1/tiktok/trending" \ -H "x-api-key: YOUR_KEY"
GET/v1/tiktok/user/followers5 creditsA profile's followers, newest first.
| Parameter | Type | Description |
|---|---|---|
handlerequired | string | TikTok username, with or without @. |
cursor | string | Cursor from the previous page's data.cursor. |
curl "https://scrapeio.com/v1/tiktok/user/followers?handle=nike" \ -H "x-api-key: YOUR_KEY"
GET/v1/tiktok/user/liked1 creditVideos a profile has liked (when public).
| Parameter | Type | Description |
|---|---|---|
handlerequired | string | TikTok username, with or without @. |
cursor | string | Cursor from the previous page's data.cursor. |
curl "https://scrapeio.com/v1/tiktok/user/liked?handle=nike" \ -H "x-api-key: YOUR_KEY"
GET/v1/tiktok/song5 creditsA TikTok sound: title, author, duration, usage count.
| Parameter | Type | Description |
|---|---|---|
urlrequired | string | TikTok sound or video URL. |
curl "https://scrapeio.com/v1/tiktok/song?url=..." \ -H "x-api-key: YOUR_KEY"
GET/v1/tiktok/song/videos5 creditsVideos that use a sound.
| Parameter | Type | Description |
|---|---|---|
music_idrequired | string | Sound id from the song endpoint. |
cursor | string | Cursor from the previous page's data.cursor. |
curl "https://scrapeio.com/v1/tiktok/song/videos?music_id=..." \ -H "x-api-key: YOUR_KEY"
GET/v1/tiktok/collection/videos5 creditsCollection Videos
| Parameter | Type | Description |
|---|---|---|
urlrequired | string | Public TikTok collection URL |
cursor | string | Cursor to get more videos. |
curl "https://scrapeio.com/v1/tiktok/collection/videos?url=..." \ -H "x-api-key: YOUR_KEY"
GET/v1/tiktok/get-trending-feed5 creditsTrending Feed
| Parameter | Type | Description |
|---|---|---|
regionrequired | string | Where you want the proxy to be. |
trim | boolean | Set to true to get a trimmed response. |
curl "https://scrapeio.com/v1/tiktok/get-trending-feed?region=US" \ -H "x-api-key: YOUR_KEY"
GET/v1/tiktok/live5 creditsLive Info
| Parameter | Type | Description |
|---|---|---|
room_idrequired | string | TikTok live room id. |
user_idrequired | string | TikTok numeric user id for the live owner. |
curl "https://scrapeio.com/v1/tiktok/live?room_id=...&user_id=..." \ -H "x-api-key: YOUR_KEY"
GET/v1/tiktok/profile/region5 creditsProfile Region
| Parameter | Type | Description |
|---|---|---|
handlerequired | string | TikTok handle |
curl "https://scrapeio.com/v1/tiktok/profile/region?handle=nike" \ -H "x-api-key: YOUR_KEY"
GET/v1/tiktok/search/suggestions5 creditsSearch Suggestions
| Parameter | Type | Description |
|---|---|---|
queryrequired | string | Search query to get suggestions for |
region | string | Region code for suggestions |
curl "https://scrapeio.com/v1/tiktok/search/suggestions?query=coffee" \ -H "x-api-key: YOUR_KEY"
GET/v1/tiktok/search/top5 creditsTop Search
| Parameter | Type | Description |
|---|---|---|
queryrequired | string | Keyword to search for |
publish_time | yesterday, this-week, this-month, last-3-months, last-6-months, all-time | Time Frame TikTok was posted |
sort_by | relevance, most-liked, date-posted | Sort by |
region | string | Note, this doesn't filter the tiktoks only in a specfic region, it puts the proxy there. |
cursor | string | Cursor to get more videos. |
curl "https://scrapeio.com/v1/tiktok/search/top?query=coffee" \ -H "x-api-key: YOUR_KEY"
GET/v1/tiktok/user/audienceup to 130 creditsUser's Audience Demographics
| Parameter | Type | Description |
|---|---|---|
handlerequired | string | TikTok handle |
curl "https://scrapeio.com/v1/tiktok/user/audience?handle=nike" \ -H "x-api-key: YOUR_KEY"
GET/v1/tiktok/user/following5 creditsFollowing
| Parameter | Type | Description |
|---|---|---|
handlerequired | string | TikTok handle |
trim | boolean | Set to true to get a trimmed response |
min_time | string | Used to paginate. |
curl "https://scrapeio.com/v1/tiktok/user/following?handle=nike" \ -H "x-api-key: YOUR_KEY"
GET/v1/tiktok/user/live5 creditsLive
| Parameter | Type | Description |
|---|---|---|
handlerequired | string | TikTok handle |
curl "https://scrapeio.com/v1/tiktok/user/live?handle=nike" \ -H "x-api-key: YOUR_KEY"