API · TikTok
GET /tiktok/songs/{id}
A TikTok sound: title, author, duration and how many videos use it.
| Request | GET /v1/tiktok/songs/{id} |
| Operation id | tiktok.song.get |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
A TikTok sound: title, author, duration and how many videos use it.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | Sound id, or its tiktok.com/music/… URL. Example: 7515269970908252177. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | The sound (musicInfo). | TikTokSongResponse |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The account, video, comment, hashtag or sound does not exist on TikTok, or was removed. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | TikTok is temporarily unavailable. Retryable; nothing was charged. | Error |
TikTokSongResponse fields
| Field | Type | Description |
|---|---|---|
musicInfo | object |
Errors use one shape everywhere; see Errors for every code and what to do.