
Tiktok User API
- novi/tiktok-user-api
- Modified
- Users 40
- Runs 485
- Created by
Novi
Get video list of a TikTok user with blazing fast API.
🍕🍕 All in one TikTok API 🍕🍕
https://apify.com/novi/fast-tiktok-api
Since TikTok doesn't provide a good and free API, this actor should help you to retrieve data from it as an Unofficial API.
The TikTok User data scraper supports the following features:
-
Search any user - Any users can be scraped by keywords.
-
Scrape video - Scrape any video from TikTok and retrieve all the data out of it.
-
Music details - Get any music information that is used in the video.
-
User details - Retrieve all user-related information.
Bugs, fixes, updates and changelog
This scraper is under active development. If you have any feature requests you can create an issue from here.
Input Parameters
The input of this scraper should be JSON containing the list of pages on TikTok User API that should be visited. Required fields are:
FIELD | Type | Description | ||
---|---|---|---|---|
username (default: viral) | String | Username of User to scrap. use when you don't want to use full URL. Use either username or url. Name has higher priority. | ||
url | String | User URL from TikTok. Ex: https://www.tiktok.com/@nickiminai | ||
isCollectUserInfo (default: true) | boolean | Should collect user information or not | ||
isCollectVideoList (default: true) | boolean | Should collect video list or not | ||
limit | Integer | You can limit scraped results. | ||
proxyConfiguration | Object\Proxy configuration | Either your own proxy servers or you can use Apify Proxy. | ||
Compute Unit Consumption
The actor optimized to run blazing fast and scrape many as listings as possible. Therefore, it forefronts all listing detail requests. If actor doesn't block very often it'll scrape 100 listings in 30 seconds with ~0.03-0.07 compute units.
TikTok User API Scraper Input example
{ "username": "nickiminai", "limit": 100, "proxyConfiguration": { "useApifyProxy": true, "apifyProxyCountry": "US" } }
or if you want to use url:
{ "url": "https://www.tiktok.com/@nickiminai", "limit": 100, "proxyConfiguration": { "useApifyProxy": true, "apifyProxyCountry": "US" } }
During the Run
During the run, the actor will output messages letting you know what is going on. Each message always contains a short label specifying which page from the provided list is currently specified. When items are loaded from the page, you should see a message about this event with a loaded item count and total item count for each page.
If you provide incorrect input to the actor, it will immediately stop with failure state and output an explanation of what is wrong.
Tiktok User API Export
During the run, the actor stores results into a dataset. Each item is a separate item in the dataset.
You can manage the results in any language (Python, PHP, Node JS/NPM). See the FAQ or our API references to learn more about getting results from this TikTok User API actor.
Item Detail
{ "userInfo": { "stats": { "followerCount": 17000000, "followingCount": 0, "heart": 94500000, "heartCount": 94500000, "videoCount": 134, "diggCount": 0, "needFix": true }, "data": { "id": "224891697648857088", "shortId": "", "uniqueId": "nickiminaj", "nickname": "Nicki Minaj", "avatarLarger": "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/751556c65be266b973dca10b753bd73d~c5_1080x1080.jpeg?x-expires=1675008000&x-signature=VlIq3El0U7%2BGI8IM%2B5u7pPWU4oI%3D", "avatarMedium": "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/751556c65be266b973dca10b753bd73d~c5_720x720.jpeg?x-expires=1675008000&x-signature=JOquFuT7spO%2FA7YYkZ%2Bg5NwDh3g%3D", "avatarThumb": "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/751556c65be266b973dca10b753bd73d~c5_100x100.jpeg?x-expires=1675008000&x-signature=OHW3Dwnub9DKsExkIy3K%2F%2FG3EsE%3D", "signature": "SUPER FREAKY GIRL", "createTime": 0, "verified": true, "secUid": "MS4wLjABAAAAs5jkeWdu5hM55BndQETUnl4rll7H8fthkyz5JmF3P5qKdh_mLcAUVGJ16WPpEI_M", "ftc": false, "relation": 0, "openFavorite": false, "bioLink": { "link": "https://nickiminaj.lnk.to/QueenRadioVol1", "risk": 0 }, "commentSetting": 0, "commerceUserInfo": { "commerceUser": false }, "duetSetting": 0, "stitchSetting": 0, "privateAccount": false, "secret": false, "isADVirtual": false, "roomId": "", "uniqueIdModifyTime": 0, "ttSeller": false, "region": "US", "downloadSetting": 0, "profileTab": { "showMusicTab": true, "showQuestionTab": false, "showPlayListTab": false }, "followingVisibility": 1, "recommendReason": "", "nowInvitationCardUrl": "", "nickNameModifyTime": 0, "isEmbedBanned": false, "profileEmbedPermission": 1, "extraInfo": { "statusCode": 0 } } }, "dataList": [ { "id": "7165671980094606634", "desc": "Your Love ", "createTime": "1668388030", "scheduleTime": 0, "video": { "id": "7165671980094606634", "height": 1024, "width": 576, "duration": 45, "ratio": "720p", "cover": "https://p19-sign.tiktokcdn-us.com/obj/tos-useast5-p-0068-tx/086b63c83ba1493b95f9d917a0eefe0c_1668388031?x-expires=1674856800&x-signature=j9KG0V8xMMe6cwvRo6kfCehs1pk%3D", "originCover": "https://p16-sign.tiktokcdn-us.com/obj/tos-useast5-p-0068-tx/ea7d446423794571b6dfeea5d6880a66_1668388031?x-expires=1674856800&x-signature=2E3ZVftcZkG%2FgfFBU9tR%2B3KPcKc%3D", "dynamicCover": "https://p19-sign.tiktokcdn-us.com/obj/tos-useast5-p-0068-tx/b2861f8efedb430abfc8a194eb7c1635_1668388031?x-expires=1674856800&x-signature=VfptitxaPDVjzlHnTdLUdPBA8GE%3D", "playAddr": "https://v16-webapp.tiktok.com/5f8db81726222d5a19aed390f8834e24/63d45447/video/tos/maliva/tos-maliva-ve-0068c799-us/5ebf07c9a5e54d67a8ef6f7f1d31e500/?a=1988&ch=0&cr=0&dr=0&lr=tiktok_m&cd=0%7C0%7C1%7C0&cv=1&br=928&bt=464&cs=0&ds=3&ft=H3bLjvyBQ9wUxn_K82HC~MiygGa-W.RUXcZ4ga6a-x4kS&mime_type=video_mp4&qs=0&rc=ZTs7NDM0NGc7NzQ5aDk2NkBpajx0amU6ZnNzZzMzZzczNEAzNjFfXzMtX2MxMjQwMzM2YSNtZDAycjRnNGxgLS1kMS9zcw%3D%3D&l=202301271645451B4EF4186DC1FB6A9FE3&btag=80000", "downloadAddr": "https://v16-webapp.tiktok.com/5f8db81726222d5a19aed390f8834e24/63d45447/video/tos/maliva/tos-maliva-ve-0068c799-us/5ebf07c9a5e54d67a8ef6f7f1d31e500/?a=1988&ch=0&cr=0&dr=0&lr=tiktok_m&cd=0%7C0%7C1%7C0&cv=1&br=928&bt=464&cs=0&ds=3&ft=H3bLjvyBQ9wUxn_K82HC~MiygGa-W.RUXcZ4ga6a-x4kS&mime_type=video_mp4&qs=0&rc=ZTs7NDM0NGc7NzQ5aDk2NkBpajx0amU6ZnNzZzMzZzczNEAzNjFfXzMtX2MxMjQwMzM2YSNtZDAycjRnNGxgLS1kMS9zcw%3D%3D&l=202301271645451B4EF4186DC1FB6A9FE3&btag=80000", "shareCover": [ "", "https://p16-sign.tiktokcdn-us.com/tos-useast5-p-0068-tx/ea7d446423794571b6dfeea5d6880a66_1668388031~tplv-tiktok-play.jpeg?x-expires=1675440000&x-signature=4%2Bk8gOy5%2Fk5sCm0xlElbLravZTE%3D", "https://p16-sign.tiktokcdn-us.com/tos-useast5-p-0068-tx/ea7d446423794571b6dfeea5d6880a66_1668388031~tplv-tiktokx-share-play.jpeg?x-expires=1675440000&x-signature=O6ZgXWmUVpdhiXjz%2FGOBxyy%2F5k8%3D" ], "reflowCover": "https://p16-sign.tiktokcdn-us.com/obj/tos-useast5-p-0068-tx/086b63c83ba1493b95f9d917a0eefe0c_1668388031?x-expires=1674856800&x-signature=L%2B0VHi7x%2FkKKbqzP0paX0zqK8CE%3D", "bitrate": 475952, "encodedType": "normal", "format": "mp4", "videoQuality": "normal", "encodeUserTag": "", "codecType": "h264", "definition": "720p", "subtitleInfos": [], "zoomCover": { "240": "https://p19-sign.tiktokcdn-us.com/tos-useast5-p-0068-tx/086b63c83ba1493b95f9d917a0eefe0c_1668388031~tplv-r00ih4996s-1:240:240.jpeg?x-expires=1674856800&x-signature=gzlQialborTMhjQOzPosfzo7S8E%3D", "480": "https://p16-sign.tiktokcdn-us.com/tos-useast5-p-0068-tx/086b63c83ba1493b95f9d917a0eefe0c_1668388031~tplv-r00ih4996s-1:480:480.jpeg?x-expires=1674856800&x-signature=gOmc5r15uuSm4TqDJ9qfpT5gmu0%3D", "720": "https://p16-sign.tiktokcdn-us.com/tos-useast5-p-0068-tx/086b63c83ba1493b95f9d917a0eefe0c_1668388031~tplv-r00ih4996s-1:720:720.jpeg?x-expires=1674856800&x-signature=hnVEw9hF0xmpYfQA5z6gydMeAlA%3D", "960": "https://p16-sign.tiktokcdn-us.com/tos-useast5-p-0068-tx/086b63c83ba1493b95f9d917a0eefe0c_1668388031~tplv-r00ih4996s-1:960:960.jpeg?x-expires=1674856800&x-signature=UVXSq2hmf1SEOZSVZCm64ns1LKM%3D" }, "volumeInfo": { "Loudness": -11.7, "Peak": 0.74989 }, "bitrateInfo": [ { "GearName": "normal_720_0", "Bitrate": 475952, "QualityType": 10, "PlayAddr": { "Uri": "v12044gd0000cdop7pjc77ub5g3qg9pg", "UrlList": [ "https://v16-webapp.tiktok.com/5f8db81726222d5a19aed390f8834e24/63d45447/video/tos/maliva/tos-maliva-ve-0068c799-us/5ebf07c9a5e54d67a8ef6f7f1d31e500/?a=1988&ch=0&cr=0&dr=0&lr=tiktok_m&cd=0%7C0%7C1%7C0&cv=1&br=928&bt=464&cs=0&ds=3&ft=H3bLjvyBQ9wUxn_K82HC~MiygGa-W.RUXcZ4ga6a-x4kS&mime_type=video_mp4&qs=0&rc=ZTs7NDM0NGc7NzQ5aDk2NkBpajx0amU6ZnNzZzMzZzczNEAzNjFfXzMtX2MxMjQwMzM2YSNtZDAycjRnNGxgLS1kMS9zcw%3D%3D&l=202301271645451B4EF4186DC1FB6A9FE3&btag=80000", "https://v16-webapp.tiktok.com/5f8db81726222d5a19aed390f8834e24/63d45447/video/tos/maliva/tos-maliva-ve-0068c799-us/5ebf07c9a5e54d67a8ef6f7f1d31e500/?a=1988&ch=0&cr=0&dr=0&lr=tiktok_m&cd=0%7C0%7C1%7C0&cv=1&br=928&bt=464&cs=0&ds=3&ft=H3bLjvyBQ9wUxn_K82HC~MiygGa-W.RUXcZ4ga6a-x4kS&mime_type=video_mp4&qs=0&rc=ZTs7NDM0NGc7NzQ5aDk2NkBpajx0amU6ZnNzZzMzZzczNEAzNjFfXzMtX2MxMjQwMzM2YSNtZDAycjRnNGxgLS1kMS9zcw%3D%3D&l=202301271645451B4EF4186DC1FB6A9FE3&btag=80000" ], "DataSize": "2721320", "UrlKey": "v12044gd0000cdop7pjc77ub5g3qg9pg_h264_720p_475952", "FileHash": "1205127d657f3cb7e5f8564fbc57ea5a", "FileCs": "c:0-38834-86ac" }, "CodecType": "h264" } ] }, "author": "nickiminaj", "music": { "id": "7165672031122393899", "title": "original sound", "playUrl": "https://sf16-ies-music-va.tiktokcdn.com/obj/ies-music-ttp-dup-us/7165672019894291243.mp3", "coverLarge": "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/751556c65be266b973dca10b753bd73d~c5_1080x1080.jpeg?x-expires=1675008000&x-signature=VlIq3El0U7%2BGI8IM%2B5u7pPWU4oI%3D", "coverMedium": "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/751556c65be266b973dca10b753bd73d~c5_720x720.jpeg?x-expires=1675008000&x-signature=JOquFuT7spO%2FA7YYkZ%2Bg5NwDh3g%3D", "coverThumb": "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/751556c65be266b973dca10b753bd73d~c5_100x100.jpeg?x-expires=1675008000&x-signature=OHW3Dwnub9DKsExkIy3K%2F%2FG3EsE%3D", "authorName": "Nicki Minaj", "original": true, "duration": 45, "album": "", "scheduleSearchTime": 0 }, "challenges": [], "stats": { "diggCount": 87900, "shareCount": 169, "commentCount": 1367, "playCount": 2900000 }, "duetInfo": { "duetFromId": "0" }, "warnInfo": [], "originalItem": false, "officalItem": false, "textExtra": [], "secret": false, "forFriend": false, "digged": false, "itemCommentStatus": 0, "showNotPass": false, "vl1": false, "takeDown": 0, "itemMute": false, "effectStickers": [], "authorStats": { "followerCount": 17000000, "followingCount": 0, "heart": 94500000, "heartCount": 94500000, "videoCount": 134, "diggCount": 5252 }, "privateItem": false, "duetEnabled": true, "stitchEnabled": true, "stickersOnItem": [ { "stickerText": [ "\nI’ll be in the ✨ \nFind me in your ♥️ " ], "stickerType": 4 } ], "isAd": false, "shareEnabled": true, "comments": [], "duetDisplay": 0, "stitchDisplay": 0, "indexEnabled": true, "diversificationLabels": [ "Music", "Entertainment Culture", "Entertainment" ], "adAuthorization": false, "adLabelVersion": 0, "locationCreated": "US", "BAInfo": "", "nickname": "Nicki Minaj", "authorId": "224891697648857088", "authorSecId": "MS4wLjABAAAAs5jkeWdu5hM55BndQETUnl4rll7H8fthkyz5JmF3P5qKdh_mLcAUVGJ16WPpEI_M", "avatarThumb": "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/751556c65be266b973dca10b753bd73d~c5_100x100.jpeg?x-expires=1675008000&x-signature=OHW3Dwnub9DKsExkIy3K%2F%2FG3EsE%3D", "downloadSetting": 0, "authorPrivate": false } ] }