Sand AISand AI MAGI-2MAGI-2 अब SandBase पर है: 1080p वीडियो, नेटीव ऑडियो के साथअभी आज़माएँ

Douyin Video Danmaku

API दस्तावेज़
https://api.sandbase.ai/v1/api/douyin/web/one-video-danmaku

Returns danmaku comment records for a Douyin video across a specified playback interval. Filter by video ID, total duration, start time, and end time.

मूल्य
$0.001USD / कॉल
मेथड
POST
प्रतिक्रिया
JSON
पैरामीटर
4 आवश्यक · 0 वैकल्पिक

प्लेग्राउंड

इनपुट
Video total duration
End time
Video id
Start time
आउटपुटउदाहरण
प्रतिक्रियाoutputs · 371 B · 19 पंक्तियाँ
[
  {
    "data": {
      "danmaku_list": null,
      "end_time": 32000,
      "extra": {
        "fatal_item_ids": [],
        "logid": "202608201743577585872A9B8DD98ED56A",
        "now": 1787219037000
      },
      "log_pb": {
        "impr_id": "202608201743577585872A9B8DD98ED56A"
      },
      "start_time": 0,
      "status_code": 0,
      "total": 6
    }
  }
]

उदाहरण

प्लेग्राउंड में इसके इनपुट और परिणाम लोड करने के लिए कोई उदाहरण चुनें।

API README

Douyin Video Danmaku API

Returns danmaku (scrolling comment) data for one Douyin video over a playback window. You send the video item_id, the video's total duration, and a start_time and end_time for the window.

Use cases

  • Check how many danmaku comments a Douyin video has in a chosen time range.
  • Pull danmaku for one segment of a video to study viewer reactions at that point.
  • Confirm that a video has danmaku data before you build an overlay for it.

Request

curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/one-video-danmaku" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"duration": 15134, "end_time": 15133, "item_id": "7355433624046472498", "start_time": 0}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
durationintegerYesVideo total duration
end_timeintegerYesEnd time
item_idstringYesVideo id
start_timeintegerYesStart time

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "danmaku_list": null,
  "end_time": 32000,
  "extra": {
    "fatal_item_ids": [],
    "logid": "202611031532288DC7ADE63C0205E3F5CF",
    "now": 1793691148000
  },
  "log_pb": {
    "impr_id": "202611031532288DC7ADE63C0205E3F5CF"
  },
  "start_time": 0,
  "status_code": 0,
  "total": 6
}

Response fields

FieldMeaning
danmaku_listList of danmaku comment records for the requested window. It is null in this response, so no records came back for this request.
totalCount of danmaku comments reported for the video. This response shows 6.
start_time / end_timeStart and end of the playback window that the response covers. This response shows 0 and 32000, which differs from the end_time of 15133 in the request.
status_codeResult code of the call. 0 in this response.
extra.fatal_item_idsList of video IDs that failed to load. It is empty here.
extra.logid / log_pb.impr_idRequest identifiers. They carry the same value in this response.
extra.nowServer time as a 13-digit number, which looks like a Unix timestamp in milliseconds.

Notes

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

और जानें

संबंधित APIs

सभी APIs
APIकीमतप्रतिक्रिया
Douyin$0.001 प्रति कॉलJSON
Douyin$0.001 प्रति कॉलJSON
Douyin$0.001 प्रति कॉलJSON
Douyin$0.001 प्रति कॉलJSON
Douyin$0.001 प्रति कॉलJSON
Douyin$0.03 प्रति कॉलJSON

गाइड्स:Best Douyin API in 2026: Pricing Compared

प्रश्न

FAQ

Douyin Video Danmaku API का उपयोग कैसे करें?

https://api.sandbase.ai/v1/api/douyin/web/one-video-danmaku पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।

Douyin Video Danmaku API की लागत कितनी है?

$0.001 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।

Douyin Video Danmaku API कौन-से parameters स्वीकार करती है?

आवश्यक: duration (integer), end_time (integer), item_id (string) और start_time (integer)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।

Douyin Video Danmaku API क्या लौटाती है?

एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।

क्या मुझे एक Douyin developer account या API key चाहिए?

नहीं। Douyin Video Danmaku SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Douyin API access के लिए आवेदन करने की आवश्यकता नहीं है।