Douyin · Comments

Video danmaku

Send video links or IDs; get each video's danmaku (scrolling live comments) with text, time into the video, likes and sender ID.

POST/v1/douyin/danmaku

$0.0018per record

1,000 records
≈ $1.80
minimum per page of 5 records
$0.006

Works with trial balancePages with a cursor

Try it in the console

Send it

POST with a JSON body, or GET with the same parameters in the query string. Your key goes in the Authorization header.

curl -X POST "https://api.silklinedata.com/v1/douyin/danmaku" \
  -H "Authorization: Bearer $SILKLINE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":5,"videos":["7707146857532656906"]}'

What comes back

Records from a real request on 2026-11-28. Names, avatars and profile links of ordinary users show as <masked>; long text is cut here, not in the API.

200 OK · fetched 2026-11-28
{
  "data": [
    {
      "type": "danmaku",
      "danmakuId": "7710482005313880873",
      "awemeId": "7707146857532656906",
      "text": "一个富豪往楼上一看 看到别人正在楼上往…",
      "offsetSeconds": 0.6,
      "likeCount": 1,
      "userId": "<masked>"
    },
    {
      "type": "danmaku",
      "danmakuId": "7707501736159937334",
      "awemeId": "7707146857532656906",
      "text": "吹呗,泰坦尼克还号称“永不沉没”呢",
      "offsetSeconds": 0.7,
      "likeCount": 114,
      "userId": "<masked>"
    }
  ],
  "cursor": "c1.Hq8vR2mTn5wK.yJ0dXA…",
  "meta": {
    "request_id": "req_01JD8Q…",
    "charged_usd": "0.006000",
    "balance_usd": "9.875000",
    "items": 2
  }
}

Fields 7

FieldTypeExample value
typestringdanmaku
danmakuIdstring7710482005313880873
awemeIdstring7707146857532656906
textstring一个富豪往楼上一看 看到别人正在楼上往下看自己家的阳台
offsetSecondsnumber0.6
likeCountnumber1
userIdstring<masked>

Parameters 2

NameTypeRequiredDescriptionExample
limitintegernoHow many records to return, 1 to 100. A request never returns more than this.5
videosarrayyesDouyin video URLs (https://www.douyin.com/video/...), v.douyin.com share links or numeric video IDs.["7707146857532656906"]

Paging

Send the cursor of the last answer back with the same parameters to get the next page. Each page is a request of its own, charged on its own; the last page has cursor null.

JavaScript
const params = {"videos":["7707146857532656906"]};
const records = [];
let cursor = null;
do {
  const response = await fetch("https://api.silklinedata.com/v1/douyin/danmaku", {
    method: "POST",
    headers: { Authorization: `Bearer ${process.env.SILKLINE_KEY}`, "Content-Type": "application/json" },
    body: JSON.stringify({ ...params, limit: 100, ...(cursor ? { cursor } : {}) }),
  });
  const answer = await response.json();
  records.push(...answer.data);
  cursor = answer.cursor;
} while (cursor);
console.log(records.length);

Thousands of records of one item? Submit a job: up to 10,000 records, no cursor loop, the same price. How jobs work

What a request costs

You pay for the records delivered or the endpoint minimum for each page of each item you ask for (a keyword, a user, a link), whichever is more; an item that is looked up and has nothing there counts as one page, and only timeouts and errors, on our side or the platform side, are not charged.

Here a page holds up to 5 records and its minimum is $0.006; 100 records of one item take 20 pages, and each item in a request counts its own pages.

  • 1 record: up to $0.006
  • 20 records: up to $0.036
  • 100 records: up to $0.18

The response's meta says what was charged (charged_usd) and what is left (balance_usd). Errors on our side are not charged.

Questions

What parameters does Video danmaku take?

Required: videos. Every request also takes limit (1 to 100).

How many records does one request return?

Up to 100 (limit 1 to 100). A page holds up to 5 records, so 100 records take 20 pages in one request.

Can I page through more results?

Yes. While the answer carries a cursor, send it back with the same parameters for the next batch.

How much does it cost?

Per record: list row $0.0018. The minimum is $0.006 for each page of each item you ask for: when the records come to less than the minimums of the pages they fill, you pay those minimums instead. 100 records of one item cost at most $0.18.

What does a request cost when it fails or comes back empty?

You pay for the records delivered or the endpoint minimum for each page of each item you ask for (a keyword, a user, a link), whichever is more; an item that is looked up and has nothing there counts as one page, and only timeouts and errors, on our side or the platform side, are not charged. Each answer's meta says what the request was charged and the balance left.