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.

GEThttps://onefeedapi.com/v1/douyin/music/get
Also known asdouyin musicdouyin bgmdouyin song detaildouyin music downloadIn Chinese: 抖音音乐详情(背景音乐 MP3 和使用人数)API
Price$0.0020/ call · Errors and timeouts are not charged
Returns1 objectone music object
When a call failsRetried for youon the same route, or a backup route; never charged
StatusLive status30-day availability 100%

Try it

Change a value and the request on the right follows.
Run · $0.0020

Sign in to run it; it runs on your own balance. New accounts can try this endpoint free, up to 50 calls.

The first 4 rows of a response recorded 2026-11-21 09:03 UTC.
FieldValue
duration17
is_commercialfalse
is_originalfalse
users83
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).

This example as a JSON file

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

idtextrequired

Music ID, a string of digits. Example: 7694940164468722473.

viewtext

How much of each item to return. All three cost the same. Values: compact, standard (default), full.

fieldslist of text

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.

idtextcompact

Music ID; pass it unchanged to the music endpoint

titletextcompact

Name of the music

authortextcompact

Author or performer, by the name the platform shows

durationnumbercompact

Length, in seconds

audio_urllinkcompact

Address of the audio file (mostly an MP3)

cover_urllinkstandard

Address of the cover image

Show all 12 fields →
is_commercialyes/nocompact

Whether Douyin marks the music as commercial music (in Douyin's commercial music library); the platform's mark, not a licence to use it

is_originalyes/nostandard

Whether it is a video's original sound rather than a song of the library

usersintegercompact

People who have posted with the music (the platform's count of its uses)

approximatelist of objectcompact

Which numbers of this item are approximate or lower bounds; absent when all are exact

approximate[].fieldtextcompact

Path of the field, such as metrics.views

approximate[].kindtextcompact

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

A result with data$0.0020, once per call
Invalid parameters, a failure or a timeoutnot charged
CaseCharged
The most one call can cost$0.0020 (send 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.

HTTPCodeMeaningCharged
400invalid_paramsA parameter is invalidRetry: After a fixAs the answer's charged field says
402insufficient_balanceThe balance is too lowRetry: After a fixNo
404not_foundThe object does not exist, is private or was deletedRetry: NoAs the answer's charged field says
502upstream_failedNo result came back this time and nothing was charged; retry shortlyRetry: YesNo
504timeoutThe data did not arrive in time; retry with the same idempotency keyRetry: YesNo

All error codes →

Questions

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

Douyin endpoints
Douyin trend-index endpoints
Douyin Xingtu endpoints

Use it in your AI

Copy this prompt

Your API key is built in, so there is nothing to configure.

Read https://onefeedapi.com/agents.md and set up OneFeedAPI in this agent. My API key is dx_…; use it for every OneFeedAPI call.
Sign in to copy it with your key

No account yet? Sign-up takes an email and no card, and a failed call is never charged.

then paste

Paste it into your agent

It reads the page the prompt points to and connects itself.

Your agent
Read https://onefeedapi.com/agents.md and set up OneFeedAPI in this agent. My API key is dx_••••; use it for every OneFeedAPI call.
OneFeedAPI connected · 5 tools ready
now try it

Now ask something

Use one of these, or your own words.

Read https://onefeedapi.com/apis/douyin/music/get.md and help me use the OneFeedAPI endpoint douyin.music.get (Douyin music detail).
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 →
Ask with this pageSends the Markdown version
Brief for an AIEverything needed to call it, as text
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
Last checked 2026-11-22 09:40 UTC.View the Markdown versionopenapi.jsonllms.txt

Start with one key.

253 endpoints on 21 platforms, from $0.0003 a call. Errors and timeouts are not charged.

Start free