TikTok sound detail API
Get one TikTok sound (music) by its ID or the link to its music page: name, author, length, album, cover, and the number of videos posted with it as TikTok counts them. A song of the library or a video's original sound. One object a call; $0.0010 per call. Errors, timeouts and objects that do not exist are not charged.
Try it
Change a value and the request on the right follows.Sign in to run it; it runs on your own balance. New accounts can try this endpoint free, up to 100 calls.
curl -G "https://api.dataxapi.com/v1/tiktok/music/get" \ --data-urlencode "id=7085461187713828866" \ -H "Authorization: Bearer $DATAXAPI_API_KEY"
{
"code": "ok",
"request_id": "01f252ee-cc2a-4928-8294-ae555ec5a99a",
"data": {
"item": {
"id": "7731790573494440867",
"title": "Summit (Acoustic)",
"author": "Northbound",
"duration": 60,
"cover_url": "https://p16-sign-va.tiktokcdn.com/tos-maliva-p-0068/7dc222083bfb2de27c6d~c5_720x720.jpeg"
}
},
"warnings": [],
"meta": {
"capability": "tiktok.music.get",
"result_status": "complete",
"fetched_at": "2026-12-02T13:08:12.000Z",
"cached": false,
"replayed": false,
"unavailable": {
"audio_url": "capability",
"is_commercial": "capability",
"is_original": "capability",
"users": "capability"
},
"billing": {
"amount": "0.001",
"currency": "USD",
"balance_after": "9.999"
}
}
}From a response recorded 2026-12-02 13:08 UTC. Names, text and IDs are examples, and so are the links: none is the recorded one (the page shows no one's personal data); the figures are as recorded. Long lists are cut. The request ID, cursor and balance are made up.
Size as sent: 632 B in the standard view (514 B compact, 688 B full).
curl -G "https://api.dataxapi.com/v1/tiktok/music/get" \ --data-urlencode "id=7085461187713828866" \ -H "Authorization: Bearer $DATAXAPI_API_KEY"
# pip install dataxapi from dataxapi import DataXAPI dx = DataXAPI() # reads DATAXAPI_API_KEY result = dx.tiktok.music.get(id="7085461187713828866") print(result["data"]["item"])
// npm i @dataxapi/sdk import { DataXAPI } from "@dataxapi/sdk"; const dx = new DataXAPI(); // reads DATAXAPI_API_KEY const result = await dx.tiktok.music.get({ id: "7085461187713828866" }); console.log(result.data.item);
dataxapi call tiktok.music.get id=7085461187713828866
{
"mcpServers": {
"dataxapi": {
"type": "http",
"url": "https://api.dataxapi.com/mcp",
"headers": {
"Authorization": "Bearer ${DATAXAPI_API_KEY}"
}
}
}
}Add this to your MCP client, then ask your agent to call tiktok.music.get.
Parameters
id, urlSound (music) ID, a string of digits: the number at the end of the link to its TikTok music page. Example: 7085461187713828866.
id, urlLink to the TikTok music page, written https://www.tiktok.com/music/name-ID. Example: https://www.tiktok.com/music/Interstellar-on-Piano-7085461187713828866. Full link: https://www.tiktok.com/music/Interstellar-on-Piano-7085461187713828866.
How much of each item to return. All three cost the same. Values: compact, standard (default), full.
Return only these fields. Each by its path, such as author.name.
Known limits
- One object per call: there is nothing to page.
- 4 fields of the object are not available from this endpoint
Returned fields
data.item is one music object. Stable: fields are only ever added.
Music ID; pass it unchanged to the music endpoint
Name of the music
Author or performer, by the name the platform shows
Length, in seconds
Address of the audio file (mostly an MP3)
Address of the cover image
Show all 14 fields →
Whether Douyin marks the music as commercial music (in Douyin's commercial music library); the platform's mark, not a licence to use it
Whether it is a video's original sound rather than a song of the library
People who have posted with the music (the platform's count of its uses)
The album it is from, as the platform words it; null where there is none, as for a video's original sound
Videos posted with the sound, as TikTok counts them; a new sound's count may lag behind
Which numbers of this item are approximate or lower bounds; absent when all are exact
Path of the field, such as metrics.views
Approximate, or a lower boundapproximatelower_bound
Typical size of one item: compact 99 B, standard 217 B, full 273 B (measured on the response recorded 2026-12-02 13:08 UTC).
What this endpoint cannot give
audio_urlNot provided hereis_commercialNot provided hereis_originalNot provided hereusersNot provided hereWhen you are charged
X-Max-Price to refuse anything above your own limit)Prices as read 2026-12-05 10:35 UTC, under price book 66, in effect since 2026-12-04 18:35 UTC; the Playground reads the price in force before a run.
If the object does not exist
The answer is 404 not_found and nothing is charged. reason says which: not_found (it does not exist) or private_or_deleted.
Errors
What this endpoint can answer with; codes all endpoints share are on the full list.
invalid_paramsA parameter is invalidRetry: After a fixNoinsufficient_balanceThe balance is too lowRetry: After a fixNonot_foundThe object does not exist, is private or was deletedRetry: NoNoupstream_failedNo result came back this time and nothing was charged; retry shortlyRetry: YesNotimeoutThe data did not arrive in time; retry with the same idempotency keyRetry: YesNoQuestions
How much does the TikTok sound detail API cost?
$0.0010 per call. The most one call can cost is $0.0010.
When am I not charged?
Errors, timeouts and objects that do not exist are not charged.
What happens if the object does not exist?
The answer is 404 not_found and nothing is charged. reason says which: not_found (it does not exist) or private_or_deleted.
30-day availability
3 days are on record. The share is written here once 14 days are.
A failed call is not charged.
Every endpoint's state now, and each incident with whether anyone was charged: the status page →
All 19 TikTok endpoints
Use it in your AI
Copy this prompt
Your API key is built in, so there is nothing to configure.
No account yet? Sign-up takes an email and no card, and a failed call is never charged.
Paste it into your agent
It reads the page the prompt points to and connects itself.
Now ask something
Use one of these, or your own words.
Prefer to set it up by hand?
dataxapi setupgives the agents on your machine (Claude Code, Codex, Cursor) the DataXAPI MCP server and the base skill. The key is read from DATAXAPI_API_KEY; none is written into a file.MCP server: https://api.dataxapi.com/mcp. The entry for your client is under MCP in the request examples of this page; then ask your agent to call tiktok.music.get.Other clients →Show the text
Use the DataXAPI endpoint tiktok.music.get (TikTok sound detail). Get one TikTok sound (music) by its ID or the link to its music page: name, author, length, album, cover, and the number of videos posted with it as TikTok counts them. A song of the library or a video's original sound. Call GET https://api.dataxapi.com/v1/tiktok/music/get with the header "Authorization: Bearer $DATAXAPI_API_KEY". Read the key from the environment variable DATAXAPI_API_KEY; never write it into code. Parameters: - id: Sound (music) ID, a string of digits: the number at the end of the link to its TikTok music page. Example: 7085461187713828866. - url: Link to the TikTok music page, written https://www.tiktok.com/music/name-ID. Example: https://www.tiktok.com/music/Interstellar-on-Piano-7085461187713828866. Full link: https://www.tiktok.com/music/Interstellar-on-Piano-7085461187713828866. - view: How much of each item to return. All three cost the same. Values: compact, standard (default), full. - fields: Return only these fields. Each by its path, such as author.name. Price: $0.0010 per call. Errors, timeouts and objects that do not exist are not charged. The answer is JSON: data.item holds music; meta.billing.amount is what this call was charged. Example: curl -G "https://api.dataxapi.com/v1/tiktok/music/get" \ --data-urlencode "id=7085461187713828866" \ -H "Authorization: Bearer $DATAXAPI_API_KEY" Full reference in Markdown: https://dataxapi.com/apis/tiktok/music/get.md
Names and identifiers
- In Chinese
- TikTok 音乐详情 API
- Endpoint ID
tiktok.music.get- Endpoint
GET /v1/tiktok/music/get
Start with one key.
254 endpoints on 21 platforms, from $0.0003 a call. Errors and timeouts are not charged.