Bilibili Video Danmaku

API docs
https://api.sandbase.ai/v1/api/bilibili/web/video-danmaku

Returns timed on-screen danmaku comments for a specified Bilibili video in XML format using the video content identifier (cid).

Price
$0.001USD / call
Method
POST
Response
JSON
Parameters
1 required · 0 optional
100 free calls / dayFirst 100 calls per day free (shared per organization) · Resets at 00:00 UTC. Pay per call after that.

Playground

Input
Video cid
OutputExample
Responseoutputs · 640 B · 5 lines
[
  {
    "data": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><i><chatserver>chat.bilibili.com</chatserver><chatid>1639235405</chatid><mission>0</mission><maxlimit>1000</maxlimit><state>0</state><real_name>0</real_name><source>k-v</source><d p=\"49.76100,5,25,16707842,1722857079,0,ab5f4d22,1642203223161224448,10\">袋子:三秒看清一个人</d><d p=\"7.27800,5,25,15138834,1722856856,0,1733e83e,1642201349473288960,10\">0帧起手</d><d p=\"16.14100,5,25,16707842,1722856888,0,a84447a9,1642201617732534272,10\">《儿女共沾巾》</d><d p=\"61.43000,5,25,16707842,1722856832,0,8a09141e,1642201150226791936,10\">列祖列宗の直视</d><d p=\"38.63500,5,25,16777215,1722858238,0,…"
  }
]

Examples

Select an example to load its inputs and result into the playground.

API README

Bilibili Video Danmaku API

Look up timed danmaku (bullet comments) for any Bilibili video part by providing its cid.

Use cases

  • Analyze audience sentiment and real-time reactions across specific video timestamps.
  • Archive bullet comments alongside video content for offline playback or research.
  • Detect high-engagement video moments where danmaku density peaks.

Request

curl -X POST "https://api.sandbase.ai/v1/api/bilibili/web/video-danmaku" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"cid": "1639235405"}'

Parameters

NameTypeRequiredDescription
cidstringYesVideo cid

Notes

  • Requires the video cid (content ID), which represents a specific video part or episode.

Pricing

Flat price per call. Failed calls, including lookups whose target does not exist, are not charged.

Explore more

Related APIs

All APIs
APIPriceResponse
Bilibili$0.001 per callJSON
Bilibili$0.001 per callJSON
Bilibili$0.001 per callJSON
Bilibili$0.001 per callJSON
Bilibili$0.001 per callJSON
Bilibili$0.001 per callJSON

Questions

FAQ

How do I use the Bilibili Video Danmaku API?

Send a POST request to https://api.sandbase.ai/v1/api/bilibili/web/video-danmaku with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

How much does the Bilibili Video Danmaku API cost?

$0.001 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

What parameters does the Bilibili Video Danmaku API accept?

Required: cid (string). The Parameters table and the Playground on this page list every field.

What does the Bilibili Video Danmaku API return?

A JSON response returned in the same HTTP request (synchronous).

Do I need a Bilibili developer account or API key?

No. Bilibili Video Danmaku runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Bilibili API access separately.