All endpoints
TikTok Music Details

TikTok Music Details API

Get a sound's details by music URL or numeric music ID. Returns its title, artist, album, duration, playback URL, cover image, and the number of videos using it.

Price: $0.006 per request
Free tier: 50 requests/month
Endpoint
GET /v1/tiktok/music

Parameters

url
TikTok music URL, e.g. https://www.tiktok.com/music/Face-Off-7016547803243022337 (max 500 characters). Provide exactly one of url or music_id.
music_id
Numeric music ID: the number at the end of a music URL, also returned as music_id on every video. Provide exactly one of url or music_id.

Response fields

music
Sound data
music_id
Numeric music ID
title
Sound title
artist
Artist / creator of the sound
album
Album, or empty string
is_original
Whether it is an original sound rather than a licensed track
duration
Duration in seconds
play_url
Audio playback URL
cover
Cover image URL
video_count
Number of videos using the sound
url
Link to the sound page

Example Request

curl "https://apidirect.io/v1/tiktok/music?url=https://www.tiktok.com/music/Face-Off-7016547803243022337"   -H "X-API-Key: YOUR_API_KEY"

Example Response

{
  "music": {
    "music_id": "7016547803243022337",
    "title": "Face Off - Dwayne Johnson",
    "artist": "Tech N9ne & Joey Cool & King Iso & Dwayne Johnson",
    "album": "Face Off - Dwayne Johnson",
    "is_original": false,
    "duration": 60,
    "play_url": "https://sf16-ies-music-sg.tiktokcdn.com/.../audio.mp3",
    "cover": "https://p16-sg.tiktokcdn.com/.../cover.jpeg",
    "video_count": 729613,
    "url": "https://www.tiktok.com/music/Face-Off-Dwayne-Johnson-7016547803243022337"
  }
}

Frequently asked questions

Where do I get the music ID?

It is the number at the end of a TikTok music URL, and every video returned by the other TikTok endpoints carries it as music_id.

How does pricing work?

You only pay for successful requests. The TikTok Music Details API costs $0.006 per request. There are no monthly fees or commitments. You get 50 free requests per endpoint every month.

Do I need a credit card to start?

No. You can sign up and use the free tier (50 requests/endpoint/month) without adding a payment method. You only need to add a card when you want to exceed the free tier.

Are there rate limits?

Yes, there's a concurrency limit of 10 simultaneous requests per endpoint per user. If you need more, just get in touch.

Start using the TikTok Music Details API

Get your API key and start making requests in minutes. 50 requests/month free every month.

Get API Key