Get TikTok Music Info

Look up the sound behind a TikTok music ID. The response holds the track record together with the artist attached to it, covering title, cover art, duration and the artist profile, so a sound can be labelled properly inside your own interface. It is the companion call to music-posts: identify the track first, then pull everything filmed over it.

Try on Playground
Endpoint Info
Request Method
:
GET
Request URL
:
https://api.primeapi.co/music-info?musicId={musicId}
Required Parameters
:
musicId
Request Examples
Request Flow
:
Music Info is a single GET call to /music-info, and musicId has to travel with it in the query string. Swap YOUR_API_KEY for your own key and both snippets below run as they are.
Authentication
:
Header based. Send X-PrimeAPI-Key with every request — there is no OAuth handshake and no token to refresh.
Credits
:
One Music Info call costs 1 credit. Your remaining balance comes back on every response in the X-PrimeAPI-Balance header, so you can watch usage without a second lookup.
cURL
curl -X GET "https://api.primeapi.co/music-info?musicId=7224128604890990593" \
  -H "X-PrimeAPI-Key: YOUR_API_KEY"
Python - Requests
import requests

url = "https://api.primeapi.co/music-info?musicId=7224128604890990593"
headers = {"X-PrimeAPI-Key": "YOUR_API_KEY"}

response = requests.get(url, headers=headers)

print(response.json())
print("Credits left:", response.headers.get("X-PrimeAPI-Balance"))
Endpoint Response
Example URL
:
https://api.primeapi.co/music-info?musicId=7224128604890990593
Content Type
:
JSON
Example Response
{
    "extra": {
        "fatal_item_ids": [],
        "logid": "20250118002509BA031AE296BEF43651BF",
        "now": 1737159910000
    },
    "log_pb": {
        "impr_id": "20250118002509BA031AE296BEF43651BF"
    },
    "musicInfo": {
        "artist": {
            "avatarLarger": "https://p16-sign-sg.tiktokcdn.com/aweme/1080x1080/tos-alisg-avt-0068/c14a92a8e2e23babececab98c0f67fac.jpeg?lk3s=a5d48078&nonce=22586&refresh_token=2ed7c385d5b6387225e5ca7b884cbb6c&x-expires=1737331200&x-signature=yktKYLBNHKenjxST0a9dTjdVfZ8%3D&shp=a5d48078&shcp=81f88b70",
            "avatarMedium": "https://p16-sign-sg.tiktokcdn.com/aweme/720x720/tos-alisg-avt-0068/c14a92a8e2e23babececab98c0f67fac.jpeg?lk3s=a5d48078&nonce=13547&refresh_token=922fef29f5d5bc0df94065b93edc93b6&x-expires=1737331200&x-signature=OapPpUTWLbX7UowWyCYg0bLvu2M%3D&shp=a5d48078&shcp=81f88b70",
            "avatarThumb": "https://p16-sign-sg.tiktokcdn.com/aweme/100x100/tos-alisg-avt-0068/c14a92a8e2e23babececab98c0f67fac.jpeg?lk3s=a5d48078&nonce=84097&refresh_token=f29f00f0c487d396e222f624686a6e15&x-expires=1737331200&x-signature=shMTalscfi99HpDHTZNL0rjjpuM%3D&shp=a5d48078&shcp=81f88b70",
            "ftc": false,
            "id": "6558620982306471938",
            "nickname": "Son Tung M-TP",
            "openFavorite": false,
            "privateAccount": false,
            "relation": 0,
            "secUid": "MS4wLjABAAAA2C4c6NPUJUCFYrLrqjXbtiZJC1xjBQ6BZyRLtbZ2tGneHZzG32J4-p9tEktu0B8w",
            "secret": false,
            "signature": "\u0110\u1eeaNG L\u00c0M TR\u00c1I TIM ANH \u0110AU\n\u2764\ufe0f\u200d\ud83e\ude79\n\n\ud83e\udde9WATCH NOW\ud83c\udfa7",
            "uniqueId": "capyboiii_7"
        },
        "artists": [
            {
                "avatarLarger": "https://p16-sign-sg.tiktokcdn.com/aweme/1080x1080/tos-alisg-avt-0068/c14a92a8e2e23babececab98c0f67fac.jpeg?lk3s=a5d48078&nonce=22586&refresh_token=2ed7c385d5b6387225e5ca7b884cbb6c&x-expires=1737331200&x-signature=yktKYLBNHKenjxST0a9dTjdVfZ8%3D&shp=a5d48078&shcp=81f88b70",
                "avatarMedium": "https://p16-sign-sg.tiktokcdn.com/aweme/720x720/tos-alisg-avt-0068/c14a92a8e2e23babececab98c0f67fac.jpeg?lk3s=a5d48078&nonce=13547&refresh_token=922fef29f5d5bc0df94065b93edc93b6&x-expires=1737331200&x-signature=OapPpUTWLbX7UowWyCYg0bLvu2M%3D&shp=a5d48078&shcp=81f88b70",
  ... (truncated)
Related Endpoints

More TikTok Music Endpoints

View all Music Endpoints
Contact
You can contact us via Telegram or Gmail
Telegram Logo
Telegram
@primeapi_co
Gmail Logo
Gmail
primeapico@gmail