TikTok Video Scraper API
Send a handle, get its videos: caption, post time, play, like, comment and share counts, duration and the sound used. About 30 per call with count=30.
Account
Endpoint
curl "https://api.toolzerhub.com/v2/tiktok/app/user/posts?unique_id=nba&count=3" \
-H "x-api-key: $TOOLZERHUB_API_KEY"{
"data": {
"has_more": 1,
"max_cursor": 1795717144678,
"aweme_list": [
{
"aweme_id": "7710094873822530829",
"desc": "Wemby looks like heβs taking a jump shot but heβs already above the rim π½ #NBA #Basketball #Wemby #VictorWembanyama #Spurs ",
"create_time": 1795146367,
"statistics": {
"play_count": 6352859,
"digg_count": 452467,
"comment_count": 1697,
"share_count": 38617
},
"video": {
"duration": 6934
},
"music": {
"title": "εε£° - NBA"
},
"author": {
"unique_id": "nba"
}
},
{
"aweme_id": "7702956518437702942",
"desc": "β¦ wait for the cape drop π WEMBY THE WITCHER π π¬ #NBA #Basketball #Wemby #VictorWembanyama #Halloween",
"create_time": 1793484339,
"statistics": {
"play_count": 15151368,
"digg_count": 1453758,
"comment_count": 7274,
"share_count": 129898
},
"video": {
"duration": 9067
},
"music": {
"title": "εε£° - NBA"
},
"author": {
"unique_id": "nba"
}
},
{
"aweme_id": "7702677121671597342",
"desc": "π CAN YOU BELIEVE CHEF CURRY π¨βπ³ π±π€― π #NBA #Basketball #StephCurry #StephenCurry #Warriors",
"create_time": 1793419283,
"statistics": {
"play_count": 8350260,
"digg_count": 929875,
"comment_count": 7266,
"share_count": 132098
},
"video": {
"duration": 8934
},
"music": {
"title": "εε£° - NBA"
},
"author": {
"unique_id": "nba"
}
}
]
}
}- 2
- 30
- $0.11
- $0.06
Inputs
What you send
GET /v2/tiktok/app/user/posts with your key in the x-api-key header.
| Parameter | Example | Notes |
|---|---|---|
| unique_idrequired | nba | Handle without the @. Or send sec_user_id. |
| count | 30 | Items per page. count=30 returned 33 for @nba. |
| max_cursor | 0 | 0 for page one, then max_cursor from the previous page. |
Limits
Good to know
- Statistics are a snapshot at call time.
How it works
From key to JSON
- 01x-api-keyβ’β’β’β’β’β’β’β’β’β’Get a key
- 02GET/v2/tiktok/app/user/postsSend a request
- 03{ data, status }200Get JSON
Pricing
1,000 videos cost $0.11
34 calls at 2 credits each is 68 credits: $0.11 on the $5 3K pack, down to $0.06 on the largest plan. The free 100 credits a month cover about 1,500 videos, and failed calls are not charged.
FAQ
Questions
- How do I get all videos from a TikTok user?
- Are the play counts exact?
- Can I download the MP4s?
Related
Often used with it
Same key, same credits. Every TikTok endpoint is on the TikTok API page.
Try the TikTok Video API free
Every new workspace gets 100 credits a month. Buy credits only when you need more.
Get free API key(opens in new tab)