
Tiktok API - EnsembleData
- ensembledata/tiktok-api
- Modified
- Users 69
- Runs 518
- Created by
EnsembleData
EnsembleData's powerful TikTok scraper tool, providing you with efficient, reliable and cost-optimised results.
EnsembleData's Tiktok API is a powerful scraper that allows users to effortlessly extract data from the Tiktok platform. With this tool, you can scrape various types of data such as:
- 馃搳 post info & stats
- 馃檵 author metadata
- 馃摴 video metadata
- 馃帶 audio metadata
- 馃摑 post comments
What are the costs?
We are currently offer this actor for free! There will be some minimal platform costs, but we aim to be as efficient as possible.
Input Parameters
- post_urls: a list of tiktok post urls to scrape
Example input
{ "post_info": [ "https://www.tiktok.com/@olympics/video/7200420986661965061", ], "post_comments": [ "https://www.tiktok.com/@olympics/video/7200420986661965061", ] }
Example POST_INFO output
{ "data_type": "POST_INFO", "url": "https://www.tiktok.com/@kathijunes/video/7203752996159655173", "data": { "aweme_id": "7203752996159655173", "create_time": 1677254450, "desc": "Pudding @Gunda #mama #comedy #lustig #pudding #funny #fy #funnyvideos #puddin ", "desc_language": "en", "region": "DE", "statistics": { "collect_count": 380639, "comment_count": 20946, "digg_count": 8620900, "download_count": 343, "forward_count": 0, "play_count": 92126501, "share_count": 324652, "whatsapp_share_count": 24561 }, "author": { "user_id": 110158113315454976, "sec_uid": "MS4wLjABAAAAENGTfBXIH4gu45Uub2RP4VigJXiBbnnFM24CBNFyv4gHD2naJD6WoR6yrbKtQFcj", "unique_id": "kathijunes", "nickname": "饾摎饾摢饾摻饾摫饾摬", "signature": "馃摡 kathi@pace-talents.de\nInsta: kathijunes", "region": "DE", "language": "de", "author": { "avatar_medium": "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/8037cd00dcf47eaa7d413fedbc4313a2~c5_720x720.jpeg?x-expires=1680022800&x-signature=DjGDUnc7q4xPDA%2B8hW9v%2F1KCgKk%3D" }, "socials": { "youtube": { "channel_name": "", "channel_id": "" }, "twitter": { "name": "", "id": "" }, "instagram": { "id": "kathijunes" } } }, "status": { "allow_comment": true, "allow_share": true }, "video": { "duration_ms": 26600, "cover_url": "https://p16-sign-va.tiktokcdn.com/tos-maliva-p-0068/5673676e73474394865bcf083e612fa0_1677254452~tplv-tiktokx-360p.jpeg?x-expires=1680022800&x-signature=OVBqxyfSMK5o%2BoYjkZDVUvViDkA%3D&s=AWEME_DETAIL&se=false&sh=&sc=feed_cover&l=20230327174430ED570B13C9915C135E6D", "play_url": "https://api16-normal-useast5.us.tiktokv.com/aweme/v1/play/?video_id=v09044g40000cfsdtv3c77u93q2ll76g&line=0&is_play_url=1&source=PackSourceEnum_AWEME_DETAIL&file_id=67d8d33c31304866a66fc24be90d7e7a", "music_begin_time_ms": 0, "music_end_time_ms": 26553, "width": 576, "height": 1024 }, "music": { "id": "7203753010743298821", "title": null, "author": "饾摎饾摢饾摻饾摫饾摬", "album": "", "is_original": false, "is_original_sound": true, "owner_handle": "kathijunes", "owner_id": "110158113315454976", "owner_nickname": "饾摎饾摢饾摻饾摫饾摬", "duration": 26.592625, "chorus": null, "play_url": "https://sf16-ies-music-va.tiktokcdn.com/obj/musically-maliva-obj/7203753016887921414.mp3", "avatar_medium": "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/8037cd00dcf47eaa7d413fedbc4313a2~c5_720x720.jpeg?x-expires=1680022800&x-signature=DjGDUnc7q4xPDA%2B8hW9v%2F1KCgKk%3D", "cover_medium": "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/8037cd00dcf47eaa7d413fedbc4313a2~c5_720x720.jpeg?x-expires=1680022800&x-signature=DjGDUnc7q4xPDA%2B8hW9v%2F1KCgKk%3D", "artists": [] }, "hashtags": [ { "hashtag_name": "mama", "hashtag_id": "8838" }, { "hashtag_name": "comedy", "hashtag_id": "1606334392378370" }, { "hashtag_name": "lustig", "hashtag_id": "47490" }, { "hashtag_name": "pudding", "hashtag_id": "55186" }, { "hashtag_name": "funny", "hashtag_id": "5424" }, { "hashtag_name": "fy", "hashtag_id": "153828" }, { "hashtag_name": "funnyvideos", "hashtag_id": "107738" }, { "hashtag_name": "puddin", "hashtag_id": "391365" } ], "mentions": [ { "user_id": "6846787782124897285", "sec_uid": "MS4wLjABAAAAk-zw67GcdC1ETj3lWz1x5OBWfGxkA0gr6d3LcoEk-_4ZIjHftl4WPrAb4E7YBMWF" } ] } }
Example POST_COMMENT output
{ "post_url": "https://www.tiktok.com/@kathijunes/video/7203752996159655173", "data_type": "POST_COMMENT", "data": { "aweme_id": "7203752996159655173", "comment_id": "7204949583565783851", "create_time": 1677533065, "text": "you can hear the foil seal still on lmaoo", "digg_count": 138, "replies_count": 0, "user": { "id": "6632520077664419846", "unique_id": "r34_zephyr", "nickname": "ZEPHYR", "signature": "Twitch Affiliate\n93 Accord Coupe & 98 Honda Civic \n馃嚬馃嚬\nNJ\nFollowing All Car ppl", "region": "US", "language": "en", "avatar_medium": "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/5fc24ba26b59057bf203d2a0a9257f06~c5_720x720.jpeg?x-expires=1680026400&x-signature=T3xa4CVUMA7FJQlWzJc4x5LhrVk%3D", "sec_uid": "MS4wLjABAAAAP9XYqGnCVT6bQHQzfGfjlvTiJrUvUCaIqv_esoUz3U91WC9tE6Iz_epaTuHVqzxS", "instagram_id": "drz3phyr", "youtube_channel_title": "[ZEPHYR] - 007", "twitter_name": "", "apple_account": 0, "google_account": "" }, "hashtags": [], "mentions": [] } }