TikTok data API

TikTok Audio API

Send a TikTok video URL and get the sound it uses: the title, the artist, the length, the cover art and a direct link to the audio. You can also check any sound by its id or music page link.

Request

GET /v1/tiktok/audio · 1 credit per successful call

cURL
curl "https://api.igramapi.com/v1/tiktok/audio?url=https%3A%2F%2Fwww.tiktok.com%2F%40example_creator%2Fvideo%2F7401234567890123456" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

200 OK · application/json
{
  "audio_id": "7401234500000000001",
  "partial": false,
  "audio_type": "original_sound",
  "title": "original sound",
  "artist": {
    "name": "Example Creator",
    "username": "example_creator",
    "avatar": "https://v16-webapp-prime.tiktok.com/video/tos/example/avatar.jpeg",
    "is_verified": true
  },
  "duration_seconds": 27,
  "cover_artwork_url": "https://v16-webapp-prime.tiktok.com/video/tos/example/sound.jpeg",
  "download_url": "https://v16-webapp-prime.tiktok.com/video/tos/example/sound.mp3",
  "preview_url": null,
  "is_original": true,
  "canonical_url": "https://www.tiktok.com/music/original-sound-7401234500000000001",
  "cached": false
}

All values above are made-up examples. Media links are temporary TikTok CDN addresses.

Parameters

NameInDescription
urlrequired query A TikTok video URL (full details), or a music page URL or numeric audio id (artist only).
audio_id path Alternative: GET /v1/tiktok/audio/{audio_id}. Confirms the sound and names its artist.

Response fields

FieldTypeDescription
audio_idstringTikTok's id for the sound.
partialbooleanTrue for a lookup by id or music URL: only artist.name and canonical_url are known.
audio_type / is_originalstring / boolean | nulloriginal_sound or licensed_music; null when partial.
titlestring | nullThe sound's title; null when partial.
artistobjectname, plus username, avatar and is_verified when the video's creator made the sound.
duration_secondsnumber | nullLength of the sound.
cover_artwork_url / download_urlstring | nullCover art and the audio file (temporary links).
preview_urlnullAlways null: TikTok has no separate preview clip.
canonical_urlstring | nullThe sound's page on TikTok.

From any video

Paste the link of a video that uses the sound and get its title, artist, duration and cover art.

A direct audio link

download_url points to the audio file on TikTok's CDN and plays in a browser. For a stored MP3, use the Downloader API with type: audio.

Original or licensed

audio_type is original_sound for a creator's own sound and licensed_music for a track from TikTok's library.

Check a sound by id

An id or music page link confirms the sound exists and names its artist, marked partial: true.

Full details or a quick check

TikTok shares the details of a sound on the pages of the videos that use it. So a **video URL** returns everything: title, artist, duration_seconds, cover_artwork_url and download_url. A **music page URL or an id** only confirms that the sound exists and names its artist; the other fields are null and partial is true.

When a video uses someone else's sound, artist.name is the sound's creator, not the video's. artist.username and artist.avatar are filled only when the video's creator made the sound.

About the audio link

download_url is a TikTok CDN link. It works in a browser or from a server for a while and then expires. To give a user a file to keep, send the video to the TikTok Downloader API with type: audio, which returns a stable link to an MP3.

Licensed music belongs to its rights holders. Use audio files only where you have the right to.

Frequently asked questions

Why is the title null when I look a sound up by id?

TikTok only names the artist of a sound looked up by id. Its other details appear on the pages of videos that use it, so look the sound up with one of those video URLs.

Can I get an MP3?

download_url is the audio file on TikTok's CDN. For a stored MP3 with a stable link, send the video to the TikTok Downloader API with type: audio.

Does it list the videos that use a sound?

No. TikTok serves those lists only to signed requests, so the API returns the sound itself.

What happens if the sound does not exist?

The API returns HTTP 404 with the error code audio_not_found.

Our errors cost nothing. Failures on our side (status 500 or above) and invalid requests (400, 422) are refunded, and every error has the same shape. See error handling and credits and rate limits.

Try the TikTok Audio API free

Create a key and make your first request in minutes. 100 free credits every month.