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

TikTok sound videos API

Videos made with a TikTok sound, about 30 a page.

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

res = requests.get(
    "https://api.groundsocial.dev/v1/tiktok/songs/7515269970908252177/videos",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
Response
200 · 1 credit
{
"itemList": [
{
"id": "7564082124588977421",
"desc": "got cameras flashing @CORTIS ❤️‍🔥 #KATSEYE #CORTIS",
"createTime": 1761150128,
"author": {
"id": "7224705740216747050",
"uniqueId": "katseyeworld",
"nickname": "KATSEYE",
"secUid": "MS4wLjABAAAAwLjRyetAU8ofBicCQWoH5Gc6wr6lxcbe9f5FsopqpDsVZO1ozgIOntqd3OV1hRYX",
"signature": "welcome to KATSEYE world 🌐\nWILD out now!!",
"verified": true,
"privateAccount": false,
"avatarLarger": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/fc2aacc9ec77e5e…",
"avatarThumb": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/fc2aacc9ec77e5e…",
"avatarMedium": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/fc2aacc9ec77e5e…",
"…": "11 more fields"
},
"authorStats": {
"followerCount": 22600000,
"followingCount": 8,
"heartCount": 1300000000,
"heart": 1300000000,
"videoCount": 1424,
"diggCount": 3353,
"friendCount": 0
},
"stats": {
"playCount": 44000000,
"diggCount": 5600000,
"commentCount": 31000,
"shareCount": 203200,
"collectCount": 378300
},
"statsV2": {
"collectCount": "378311",
"commentCount": "31000",
"diggCount": "5600000",
"playCount": "44000000",
"repostCount": "0",
"shareCount": "203200"
},
"video": {
"duration": 36,
"cover": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-p-0068-tx/oMOkp5I6riDgEK4sB…",
"playAddr": "https://v16-webapp-prime.us.tiktok.com/video/tos/useast5/tos-useast5-ve-0068c003…",
"PlayAddrStruct": {
"…": "8 fields"
},
"VQScore": "65.23",
"bitrate": 1556844,
"bitrateInfo": [
"…"
],
"claInfo": {
"…": "3 fields"
},
"codecType": "h264",
"definition": "540p",
"…": "15 more fields"
},
"music": {
"id": "7515269970908252177",
"title": "Gabriela",
"authorName": "KATSEYE",
"original": false,
"duration": 60,
"playUrl": "https://sf16.tiktokcdn-us.com/obj/tos-alisg-ve-2774/oIVprwgVfCQ2rN6zdDZoctBM5EBQ…",
"coverLarge": "https://p16-common.tiktokcdn-us.com/tos-alisg-v-2774/okAIAI4ANefICVeepAQpCe8PAmH…",
"album": "Gabriela",
"coverMedium": "https://p16-common.tiktokcdn-us.com/tos-alisg-v-2774/okAIAI4ANefICVeepAQpCe8PAmH…",
"coverThumb": "https://p16-common.tiktokcdn-us.com/tos-alisg-v-2774/okAIAI4ANefICVeepAQpCe8PAmH…",
"…": "6 more fields"
},
"challenges": [
{
"…": "9 fields"
},
"… 1 more"
],
"…": "30 more fields"
},
"… 1 more"
],
"cursor": "30",
"hasMore": true
}

Parameters

NameTypeDescription
idpath · requiredstringSound id, or its tiktok.com/music/… URL. Example: 7515269970908252177.
cursorquerystringThe previous page’s cursor, for the next page. Omit for the first.
Response fields

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

FieldTypeDescription
itemListTikTokItem[]
cursorstringPass as cursor for the next page. Its meaning is the list’s own (a time or an offset).
hasMoreboolean
Status codes
StatusMeaning
200A page of videos.
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.