Danmaku object
The Danmaku object has 7 fields and is returned by 1 endpoint on Bilibili. A call costs $0.0020. It is a preview structure and may still change.
A Danmaku (bullet comment) is a short comment shown over a video at the moment it was sent for: its text, the second of the video it appears at in start, when it was sent, how it is shown and its colour.
cid is the part of the video it is on, the same number as ext.cid of a Bilibili video's Post. A Comment is something else: it stands under the video, with its author, likes and replies.
Fields
A field the platform cannot give is left out of the item and named in meta.unavailable. It is never filled with a guess or a zero.
ID of the danmaku
Text of the danmaku
When it appears in the video, in seconds from its start
When it was sent
How it is shown: scroll across, fixed at the bottom, fixed at the top, or advanced (placed and animated by its sender): scroll bottom top advanced
Colour of the text: # and six hexadecimal digits, two each for red, green and blue
Number of the part of the video it is on (cid)
Endpoints that return Danmaku
The number beside each platform is how many of its endpoints return it.
Example
One item from bilibili.videos.danmaku.list, as recorded 2026-11-29 03:15 UTC. Names, text, IDs and links are examples; the figures are as recorded.
{
"id": "228455086017",
"text": "把周末露营从头到尾讲清楚,看完少走弯路",
"start": 11.073,
"published_at": "2025-09-05T08:51:45.000Z",
"mode": "scroll",
"color": "周末露营这件事,越简单越好"
}