100 free credits. No credit card required. Get a key

TikTok video API

One TikTok video or photo post by id or URL: caption, author, plays, likes, comments, shares and saves, music, hashtags, mentions, the country it was posted from and its caption tracks.

GET /v1/tiktok/videos/{id}1 credit per callRefunded on failure
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/tiktok/videos/7707446852798549279",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
Response
200 · 1 credit
{
"itemInfo": {
"itemStruct": {
"id": "7707446852798549279",
"desc": "30-Minute Garlic Butter Steak Bites & Potatoes 🥩🥔🧄 If you need a quick and easy …",
"createTime": 1794529821,
"author": {
"id": "6984625953838629894",
"uniqueId": "tastewithnicki",
"nickname": "Nicki Mejia",
"secUid": "MS4wLjABAAAAu9rP1LyAuFo7sMDNeuwiLyblG8x_L8K_JNU95rzJRIG_ykvSurNwtKrUoMZTd3LI",
"signature": "• Food • Recipes • Local Spots •\n📍Cleveland Foodie, Blogger, & Mom 👩🏽‍🍳✨",
"verified": false,
"privateAccount": false,
"avatarLarger": "https://p16-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/38b3cdddae3bde…",
"avatarThumb": "https://p19-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/38b3cdddae3bde…",
"UserStoryStatus": 0,
"…": "12 more fields"
},
"authorStats": {
"followerCount": 76800,
"followingCount": 1242,
"heartCount": 6400000,
"heart": 6400000,
"videoCount": 560,
"diggCount": 30800,
"friendCount": 0
},
"stats": {
"playCount": 6600000,
"diggCount": 628800,
"commentCount": 935,
"shareCount": 104700,
"collectCount": 298100
},
"statsV2": {
"collectCount": "298124",
"commentCount": "935",
"diggCount": "628800",
"playCount": "6600000",
"repostCount": "0",
"shareCount": "104700"
},
"video": {
"duration": 61,
"cover": "https://p16-common-sign.tiktokcdn-us.com/tos-useast8-p-0068-tx2/o0aDBAv3Z5B0iiQI…",
"playAddr": "https://v16-webapp-prime.us.tiktok.com/video/tos/useast8/tos-useast8-ve-0068c001…",
"subtitleInfos": [
"…"
],
"PlayAddrStruct": {
"…": "8 fields"
},
"VQScore": "72",
"bitrate": 1946036,
"bitrateInfo": [
"…"
],
"claInfo": {
"…": "5 fields"
},
"codecType": "h264",
"…": "16 more fields"
},
"music": {
"id": "7024767431834863618",
"title": "There Is Something On Your Mind",
"authorName": "Big Jay McNeely",
"original": false,
"duration": 223,
"playUrl": "https://sf16.tiktokcdn-us.com/obj/tos-alisg-ve-2774/4510db0484ef4f0fa3c30c69d757…",
"coverLarge": "https://p16-common.tiktokcdn-us.com/tos-alisg-v-2774/o0AAnIAPUzoCIre5kZE1BFytZBx…",
"album": "Lowrider Oldies Vol.7",
"coverMedium": "https://p16-common.tiktokcdn-us.com/tos-alisg-v-2774/o0AAnIAPUzoCIre5kZE1BFytZBx…",
"coverThumb": "https://p16-common.tiktokcdn-us.com/tos-alisg-v-2774/o0AAnIAPUzoCIre5kZE1BFytZBx…",
"…": "6 more fields"
},
"challenges": [
{
"…": "9 fields"
},
"… 4 more"
],
"…": "30 more fields"
}
},
"shareMeta": {
"title": "Nicki Mejia on TikTok",
"desc": "30-Minute Garlic Butter Steak Bites & Potatoes 🥩🥔🧄 If you need a quick and easy …"
}
}

Parameters

NameTypeDescription
idpath · requiredstringA video (or photo post) id, or its URL (www.tiktok.com/@user/video/<id>). Example: 7707446852798549279.
Response fields

200 with a TikTokVideoResponse, in TikTok’s own web JSON (itemStruct, userInfo, comments).

FieldTypeDescription
itemInfoobject
shareMetaobject
Status codes
StatusMeaning
200The video (itemInfo.itemStruct).
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404The account, video, comment, hashtag or sound does not exist on TikTok, or was removed.
429Too many requests. Wait for Retry-After seconds.
503TikTok is temporarily unavailable. Retryable; nothing was charged.

Every error has code, message, hint and retryable. All error codes

TikTok is a trademark of ByteDance Ltd. We are not affiliated with or endorsed by TikTok or ByteDance.