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.

Preview object · Updated 2026-11-29Open in ChatGPTOpen in Claude

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 text

ID of the danmaku

text text

Text of the danmaku

start number

When it appears in the video, in seconds from its start

published_at time

When it was sent

mode text standard

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

color text standard

Colour of the text: # and six hexadecimal digits, two each for red, green and blue

cid text full

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.

EndpointPathPrice
Bilibili video danmakuGET/v1/bilibili/videos/danmaku/list$0.0020

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.

Danmaku · bilibili.videos.danmaku.list
{
  "id": "228455086017",
  "text": "把周末露营从头到尾讲清楚,看完少走弯路",
  "start": 11.073,
  "published_at": "2025-09-05T08:51:45.000Z",
  "mode": "scroll",
  "color": "周末露营这件事,越简单越好"
}

The whole response is on the endpoint's page →

Related

Other objects