cidstringrequired
Video cid
https://api.sandbase.ai/v1/api/bilibili/web/video-danmakuReturns timed on-screen danmaku comments for a specified Bilibili video in XML format using the video content identifier (cid).
[
{
"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,…"
}
]Select an example to load its inputs and result into the playground.
Look up timed danmaku (bullet comments) for any Bilibili video part by providing its cid.
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"}'
| Name | Type | Required | Description |
|---|---|---|---|
cid | string | Yes | Video cid |
cid (content ID), which represents a specific video part or episode.Flat price per call. Failed calls, including lookups whose target does not exist, are not charged.
Start building
Platform API endpoint with unified authentication and usage tracking.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/api/bilibili/web/video-danmaku" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"cid": "1639235405"
}
SANDBASE_JSON
)
printf '%s\n' "$result"Set your SandBase API key in your server environment. Requests use Bearer authentication.
export SANDBASE_API_KEY="YOUR_API_KEY"Keep your key on the server. Do not expose it in browser code.
cidstringrequiredVideo cid
Saved example response for this API; no live request is made when viewing it.
[
{
"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,…"
}
]Explore more
| API | Price | Response |
|---|---|---|
Bilibili Video DanmakuThis API Bilibili | $0.001 per call | JSON |
Bilibili | $0.001 per call | JSON |
Bilibili | $0.001 per call | JSON |
Bilibili | $0.001 per call | JSON |
Bilibili | $0.001 per call | JSON |
Bilibili | $0.001 per call | JSON |
Questions
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.
$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.
Required: cid (string). The Parameters table and the Playground on this page list every field.
A JSON response returned in the same HTTP request (synchronous).
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.