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

TikTok sound API

A TikTok sound by id or music URL: title, author, duration, original flag and how many videos use it.

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

res = requests.get(
    "https://api.groundsocial.dev/v1/tiktok/songs/7515269970908252177",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
Response
200 · 1 credit
{
"musicInfo": {
"music": {
"id": "7515269970908252177",
"title": "Gabriela",
"authorName": "KATSEYE",
"original": false,
"duration": 60,
"playUrl": "https://sf16.tiktokcdn-us.com/obj/tos-alisg-ve-2774/oIVprwgVfCQ2rN6zdDZoctBM5EBQFt8NLPqYey",
"coverLarge": "https://p16-common.tiktokcdn-us.com/tos-alisg-v-2774/okAIAI4ANefICVeepAQpCe8PAmHGrKLFACKMpj~tplv-tiktokx-cropcenter:720:…",
"album": "Gabriela",
"coverMedium": "https://p16-common.tiktokcdn-us.com/tos-alisg-v-2774/okAIAI4ANefICVeepAQpCe8PAmHGrKLFACKMpj~tplv-tiktokx-cropcenter:200:…",
"coverThumb": "https://p16-common.tiktokcdn-us.com/tos-alisg-v-2774/okAIAI4ANefICVeepAQpCe8PAmHGrKLFACKMpj~tplv-tiktokx-cropcenter:100:…",
"isCopyrighted": true,
"is_commerce_music": false,
"is_unlimited_music": false,
"private": false,
"shoot_duration": 60,
"tt2dsp": {
"tt_to_dsp_song_infos": [
{
"meta_song_id": "7507095790251329537",
"platform": 1,
"song_id": "1811464273",
"token": {
"…": "1 fields"
}
},
{
"meta_song_id": "7507095790251329537",
"platform": 3,
"song_id": "0MGGSLk5473zXpYhEdxHT1"
}
]
}
},
"stats": {
"videoCount": 839600
},
"artist": {
"avatarLarger": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/fc2aacc9ec77e5e3290fbfda46e40cd2~tplv-tiktokx-cropcente…",
"avatarMedium": "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/fc2aacc9ec77e5e3290fbfda46e40cd2~tplv-tiktokx-cropcente…",
"avatarThumb": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/fc2aacc9ec77e5e3290fbfda46e40cd2~tplv-tiktokx-cropcente…",
"ftc": false,
"id": "7224705740216747050",
"nickname": "KATSEYE",
"openFavorite": false,
"privateAccount": false,
"relation": 0,
"secUid": "MS4wLjABAAAAwLjRyetAU8ofBicCQWoH5Gc6wr6lxcbe9f5FsopqpDsVZO1ozgIOntqd3OV1hRYX",
"secret": false,
"signature": "welcome to KATSEYE world 🌐\nWILD out now!!",
"uniqueId": "katseyeworld"
},
"artists": [
{
"avatarLarger": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/fc2aacc9ec77e5e3290fbfda46e40cd2~tplv-tiktokx-cropcente…",
"avatarMedium": "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/fc2aacc9ec77e5e3290fbfda46e40cd2~tplv-tiktokx-cropcente…",
"avatarThumb": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/fc2aacc9ec77e5e3290fbfda46e40cd2~tplv-tiktokx-cropcente…",
"ftc": false,
"id": "7224705740216747050",
"nickname": "KATSEYE",
"openFavorite": false,
"privateAccount": false,
"relation": 0,
"secUid": "MS4wLjABAAAAwLjRyetAU8ofBicCQWoH5Gc6wr6lxcbe9f5FsopqpDsVZO1ozgIOntqd3OV1hRYX",
"secret": false,
"signature": "welcome to KATSEYE world 🌐\nWILD out now!!",
"uniqueId": "katseyeworld"
}
]
}
}

Parameters

NameTypeDescription
idpath · requiredstringSound id, or its tiktok.com/music/… URL. Example: 7515269970908252177.
Response fields

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

FieldTypeDescription
musicInfoobject
Status codes
StatusMeaning
200The sound (musicInfo).
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.