# TikTok Music detail API (tiktok.music_detail)

- Canonical page: [https://everyinfra.com/en/tiktok-api/music_detail](https://everyinfra.com/en/tiktok-api/music_detail?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "tiktok", "action": "music_detail", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: single object
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=tiktok&action=music_detail

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| music_id | not declared | yes | not declared | A numeric music ID, such as the `id` from `music_search` or `music_chart` or a video's `music.id`, or a https://www.tiktok.com/music/<name>-<ID> link. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
| url | Link to the record on the platform. |
| title | Title. null when the platform has no titles (for example text-only posts). |
| author_name | Author's display name. |
| author_username | Author's username (@handle), usually usable in URLs. |
| author_id | Author's unique ID on the platform. |
| author_sec_uid | platform-native meaning |
| album | platform-native meaning |
| duration_seconds | Duration in seconds. null for content that is not video or audio. |
| duration_sec | platform-native meaning |
| use_count | platform-native meaning |
| is_original | platform-native meaning |
| is_commercial | platform-native meaning |
| is_copyrighted | platform-native meaning |
| is_private | platform-native meaning |
| cover_image_url | platform-native meaning |
| audio_url | platform-native meaning |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "tiktok",
  "action": "music_detail",
  "params": {
    "music_id": "7252896191606835201"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "tiktok",
        "action": "music_detail",
        "params": {
            "music_id": "7252896191606835201",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-11-21T07:21:31Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "tiktok",
  "action": "music_detail",
  "results": {
    "id": "•••",
    "url": "https://www.tiktok.com/music/Enchanted-(Taylor's-Version)-7252896191606835201",
    "title": "Enchanted (Taylor's Version)",
    "author_name": "T•••t",
    "album": "Speak Now (Taylor's Version)",
    "duration_seconds": 60,
    "use_count": 439400,
    "is_original": false,
    "is_copyrighted": true,
    "cover_image_url": "https://p16-common.tiktokcdn-us.com/tos-alisg-v-2774/ooblA8sF6kVQIgDoS6ZeutinBeACpIZPVEQCAB~tplv-tiktokx-cropcenter:720:720.jpeg?dr=9584&t=4d5b0474&ps=933b5bde&shp=08d74b56&shcp=81f88b70&idc=useast5",
    "audio_url": "https://sf16.tiktokcdn-us.com/obj/tos-alisg-ve-2774/oQMfgHZ2yCAQeFFzvD7YinadqsaaALfRnJ4DEg",
    "platform": "tiktok",
    "duration_sec": 60
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=tiktok
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
