Tiktok API - EnsembleData avatar
Tiktok API - EnsembleData
Try for free

No credit card required

View all Actors
Tiktok API - EnsembleData

Tiktok API - EnsembleData

ensembledata/tiktok-api
Try for free

No credit card required

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.

Find more of our APIs on our website or on our documentation.

Input Parameters

  • post_urls: a list of tiktok post urls to scrape

Example input

1{
2  "post_info": [
3    "https://www.tiktok.com/@olympics/video/7200420986661965061",
4  ],
5  "post_comments": [
6    "https://www.tiktok.com/@olympics/video/7200420986661965061",
7  ]
8}

Example POST_INFO output

1{
2  "data_type": "POST_INFO",
3  "url": "https://www.tiktok.com/@kathijunes/video/7203752996159655173",
4  "data": {
5    "aweme_id": "7203752996159655173",
6    "create_time": 1677254450,
7    "desc": "Pudding @Gunda #mama #comedy #lustig #pudding #funny #fy #funnyvideos #puddin ",
8    "desc_language": "en",
9    "region": "DE",
10    "statistics": {
11      "collect_count": 380639,
12      "comment_count": 20946,
13      "digg_count": 8620900,
14      "download_count": 343,
15      "forward_count": 0,
16      "play_count": 92126501,
17      "share_count": 324652,
18      "whatsapp_share_count": 24561
19    },
20    "author": {
21      "user_id": 110158113315454976,
22      "sec_uid": "MS4wLjABAAAAENGTfBXIH4gu45Uub2RP4VigJXiBbnnFM24CBNFyv4gHD2naJD6WoR6yrbKtQFcj",
23      "unique_id": "kathijunes",
24      "nickname": "饾摎饾摢饾摻饾摫饾摬",
25      "signature": "馃摡 kathi@pace-talents.de\nInsta: kathijunes",
26      "region": "DE",
27      "language": "de",
28      "author": {
29        "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"
30      },
31      "socials": {
32        "youtube": {
33          "channel_name": "",
34          "channel_id": ""
35        },
36        "twitter": {
37          "name": "",
38          "id": ""
39        },
40        "instagram": {
41          "id": "kathijunes"
42        }
43      }
44    },
45    "status": {
46      "allow_comment": true,
47      "allow_share": true
48    },
49    "video": {
50      "duration_ms": 26600,
51      "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",
52      "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",
53      "music_begin_time_ms": 0,
54      "music_end_time_ms": 26553,
55      "width": 576,
56      "height": 1024
57    },
58    "music": {
59      "id": "7203753010743298821",
60      "title": null,
61      "author": "饾摎饾摢饾摻饾摫饾摬",
62      "album": "",
63      "is_original": false,
64      "is_original_sound": true,
65      "owner_handle": "kathijunes",
66      "owner_id": "110158113315454976",
67      "owner_nickname": "饾摎饾摢饾摻饾摫饾摬",
68      "duration": 26.592625,
69      "chorus": null,
70      "play_url": "https://sf16-ies-music-va.tiktokcdn.com/obj/musically-maliva-obj/7203753016887921414.mp3",
71      "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",
72      "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",
73      "artists": []
74    },
75    "hashtags": [
76      {
77        "hashtag_name": "mama",
78        "hashtag_id": "8838"
79      },
80      {
81        "hashtag_name": "comedy",
82        "hashtag_id": "1606334392378370"
83      },
84      {
85        "hashtag_name": "lustig",
86        "hashtag_id": "47490"
87      },
88      {
89        "hashtag_name": "pudding",
90        "hashtag_id": "55186"
91      },
92      {
93        "hashtag_name": "funny",
94        "hashtag_id": "5424"
95      },
96      {
97        "hashtag_name": "fy",
98        "hashtag_id": "153828"
99      },
100      {
101        "hashtag_name": "funnyvideos",
102        "hashtag_id": "107738"
103      },
104      {
105        "hashtag_name": "puddin",
106        "hashtag_id": "391365"
107      }
108    ],
109    "mentions": [
110      {
111        "user_id": "6846787782124897285",
112        "sec_uid": "MS4wLjABAAAAk-zw67GcdC1ETj3lWz1x5OBWfGxkA0gr6d3LcoEk-_4ZIjHftl4WPrAb4E7YBMWF"
113      }
114    ]
115  }
116}

Example POST_COMMENT output

1{
2  "post_url": "https://www.tiktok.com/@kathijunes/video/7203752996159655173",
3  "data_type": "POST_COMMENT",
4  "data": {
5    "aweme_id": "7203752996159655173",
6    "comment_id": "7204949583565783851",
7    "create_time": 1677533065,
8    "text": "you can hear the foil seal still on lmaoo",
9    "digg_count": 138,
10    "replies_count": 0,
11    "user": {
12      "id": "6632520077664419846",
13      "unique_id": "r34_zephyr",
14      "nickname": "ZEPHYR",
15      "signature": "Twitch Affiliate\n93 Accord Coupe & 98 Honda Civic \n馃嚬馃嚬\nNJ\nFollowing All Car ppl",
16      "region": "US",
17      "language": "en",
18      "avatar_medium": "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/5fc24ba26b59057bf203d2a0a9257f06~c5_720x720.jpeg?x-expires=1680026400&x-signature=T3xa4CVUMA7FJQlWzJc4x5LhrVk%3D",
19      "sec_uid": "MS4wLjABAAAAP9XYqGnCVT6bQHQzfGfjlvTiJrUvUCaIqv_esoUz3U91WC9tE6Iz_epaTuHVqzxS",
20      "instagram_id": "drz3phyr",
21      "youtube_channel_title": "[ZEPHYR] - 007",
22      "twitter_name": "",
23      "apple_account": 0,
24      "google_account": ""
25    },
26    "hashtags": [],
27    "mentions": []
28  }
29}
Developer
Maintained by Community
Actor metrics
  • 15 monthly users
  • 100.0% runs succeeded
  • 1.3 days response time
  • Created in Mar 2023
  • Modified 27 days ago
Categories