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

Bilibili Video Danmaku

API दस्तावेज़
https://api.sandbase.ai/v1/api/bilibili/video-danmu

Get one page of danmaku comments for a Bilibili video segment identified by AID and CID. Use it to review time-synchronized audience reactions or page through danmaku for a known video.

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

प्लेग्राउंड

इनपुट
Bilibili Archive ID (AID).
Bilibili Chat ID (CID).
Page number for pagination.
आउटपुटतैयार

आपका आउटपुट यहाँ दिखाई देगा

इनपुट पूरा करें, फिर Run पर क्लिक करें।

API README

Bilibili Video Danmaku API

Returns one page of danmaku (time-synced viewer comments) for a Bilibili video segment. It needs the video's aid and cid, and takes an optional page number.

Use cases

  • Read the on-screen audience reactions for a specific video segment.
  • Collect danmaku text for sentiment or keyword analysis on a known video.
  • Plot when viewers comment most by grouping entries on their stime value.
  • Page through all danmaku of a video by increasing page.

Request

curl -X POST "https://api.sandbase.ai/v1/api/bilibili/video-danmu" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"aid": "80433022", "cid": "137649199"}'

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

Parameters

NameTypeRequiredDescription
aidstringYesBilibili Archive ID (AID).
cidstringYesBilibili Chat ID (CID).
pagestringNoPage number for pagination.

Example response

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

[
  {
    "color": 16777215,
    "date": 1593092327,
    "dmid": "34576873522987015",
    "id": 34576873522987015,
    "mode": 1,
    "size": 25,
    "stime": 95453,
    "text": "80年代迪厅必放金曲",
    "uhash": "d2b24dbe",
    "weight": 9
  }
]

Response fields

FieldMeaning
textThe danmaku comment text shown on screen.
stimeTime position of the comment in the video. The value 95453 suggests milliseconds, but the response does not state the unit.
dateTime the comment was posted, as a Unix timestamp in seconds.
id / dmidUnique ID of the danmaku. dmid is the same number as id, returned as a string.
uhashHashed ID of the user who sent the comment. It is not a plain user ID.
colorComment color as a decimal number. The value 16777215 is white (#FFFFFF).
mode / size / weightDisplay mode, font size and weight value of the comment. All three are plain numbers.

Notes

  • The response is a top-level JSON array. Each item is one danmaku comment.
  • Use page to move through further pages for the same aid and cid.
  • To find the aid from a BV ID, call Bilibili BV to AID Converter.
  • To list the parts of a video and get their cid values, call Bilibili Video Parts.

Pricing

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

और जानें

संबंधित APIs

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

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

प्रश्न

FAQ

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

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

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

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

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

आवश्यक: aid (string) और cid (string)। वैकल्पिक: page (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।

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

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

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

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