Douyin music detail API
Get one piece of Douyin music by its ID: name, author, length, the address of its audio file (mostly an MP3), cover, whether Douyin marks it as commercial music (in its commercial music library), whether it is a video's original sound, and how many people have posted with it. The ID is that of a video's background music, or an id of the music chart. One object a call; $0.0020 per call. Errors and timeouts 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 50 calls.
curl -G "https://onefeedapi.com/v1/douyin/music/get" \ --data-urlencode "id=7694940164468722473" \ -H "Authorization: Bearer $ONEFEED_API_KEY"
{
"code": "ok",
"request_id": "97c335a8-3bba-4df4-a225-8b177ba6d154",
"data": {
"item": {
"id": "7174719555330904443",
"title": "关于周末露营,我踩过的五个坑",
"author": "周末的周末露营日常,随手记录一下",
"duration": 17,
"audio_url": null,
"cover_url": "https://p3-pc-sign.douyinpic.com/tos-cn-i-0813/87bc782c22ca5d447e12~tplv-dy-resize.jpeg",
"is_commercial": false,
"is_original": false,
"users": 83
}
},
"warnings": [],
"meta": {
"capability": "douyin.music.get",
"result_status": "complete",
"fetched_at": "2026-11-21T09:03:40.000Z",
"cached": false,
"replayed": false,
"unavailable": {},
"billing": {
"amount": "0.002",
"currency": "USD",
"balance_after": "9.998"
}
}
}From a response recorded 2026-11-21 09:03 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: 639 B in the standard view (471 B compact, 639 B full).
curl -G "https://onefeedapi.com/v1/douyin/music/get" \ --data-urlencode "id=7694940164468722473" \ -H "Authorization: Bearer $ONEFEED_API_KEY"
# pip install onefeedapi from onefeedapi import OneFeedAPI dx = OneFeedAPI() # reads ONEFEED_API_KEY result = dx.douyin.music.get(id="7694940164468722473") print(result["data"]["item"])
// npm i @onefeedapi/sdk import { OneFeedAPI } from "@onefeedapi/sdk"; const dx = new OneFeedAPI(); // reads ONEFEED_API_KEY const result = await dx.douyin.music.get({ id: "7694940164468722473" }); console.log(result.data.item);
onefeedapi call douyin.music.get id=7694940164468722473
{
"mcpServers": {
"onefeedapi": {
"type": "http",
"url": "https://onefeedapi.com/mcp",
"headers": {
"Authorization": "Bearer ${ONEFEED_API_KEY}"
}
}
}
}Add this to your MCP client, then ask your agent to call douyin.music.get.
Parameters
Music ID, a string of digits. Example: 7694940164468722473.
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.
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 12 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)
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 157 B, standard 325 B, full 325 B (measured on the response recorded 2026-11-21 09:03 UTC).
When you are charged
X-Max-Price to refuse anything above your own limit)Prices as read 2026-11-22 09:40 UTC, under price book 21, in effect since 2026-11-21 15:05 UTC; the Playground reads the price in force before a run.
If the object does not exist
The answer is 404 not_found. charged and amount in the body say what this one cost. 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 fixAs the answer's charged field saysinsufficient_balanceThe balance is too lowRetry: After a fixNonot_foundThe object does not exist, is private or was deletedRetry: NoAs the answer's charged field saysupstream_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 Douyin music detail API cost?
$0.0020 per call. The most one call can cost is $0.0020.
When am I not charged?
Errors and timeouts are not charged.
What happens if the object does not exist?
The answer is 404 not_found. charged and amount in the body say what this one cost. reason says which: not_found (it does not exist) or private_or_deleted.
Where do I find a music ID?
It is the ID of a video's background music, and an entry's id on the Douyin music chart (douyin.trends.list with board=music).
Is it commercial music?
is_commercial says whether Douyin marks the music as commercial music (in Douyin's commercial music library). It is Douyin's own mark, not a licence to use it.
How do I use it in ChatGPT or Claude?
Connect OneFeedAPI once (one prompt with your key, on the agents page), then ask in plain words: "What is the background music of this Douyin video, and how many people have used it? Use OneFeedAPI." The agent calls douyin.music.get, $0.0020 a call.
30-day availability
100% of the time over the last 30 days, this endpoint was serving calls: at least one of its routes was taking them, so it was neither paused nor down.
A failed call is not charged.
Every endpoint's state now, and each incident with whether anyone was charged: the status page →
All 41 Douyin 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?
onefeedapi setupgives the agents on your machine (Claude Code, Codex, Cursor) the OneFeedAPI MCP server and the base skill. The key is read from ONEFEED_API_KEY; none is written into a file.MCP server: https://onefeedapi.com/mcp. The entry for your client is under MCP in the request examples of this page; then ask your agent to call douyin.music.get.Other clients →Show the text
Use the OneFeedAPI endpoint douyin.music.get (Douyin music detail). Get one piece of Douyin music by its ID: name, author, length, the address of its audio file (mostly an MP3), cover, whether Douyin marks it as commercial music (in its commercial music library), whether it is a video's original sound, and how many people have posted with it. The ID is that of a video's background music, or an id of the music chart. Call GET https://onefeedapi.com/v1/douyin/music/get with the header "Authorization: Bearer $ONEFEED_API_KEY". Read the key from the environment variable ONEFEED_API_KEY; never write it into code. Parameters: - id (required): Music ID, a string of digits. Example: 7694940164468722473. - 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.0020 per call. Errors and timeouts are not charged. The answer is JSON: data.item holds music; meta.billing.amount is what this call was charged. Example: curl -G "https://onefeedapi.com/v1/douyin/music/get" \ --data-urlencode "id=7694940164468722473" \ -H "Authorization: Bearer $ONEFEED_API_KEY" Full reference in Markdown: https://onefeedapi.com/apis/douyin/music/get.md
Names and identifiers
- In Chinese
- 抖音音乐详情(背景音乐 MP3 和使用人数)API
- Endpoint ID
douyin.music.get- Endpoint
GET /v1/douyin/music/get
Start with one key.
253 endpoints on 21 platforms, from $0.0003 a call. Errors and timeouts are not charged.