aidstringerforderlich
Bilibili Archive ID (AID).
https://api.sandbase.ai/v1/api/bilibili/video-danmuGet 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.
Ihre Ausgabe wird hier angezeigt
Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.
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.
stime value.page.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.
| Name | Type | Required | Description |
|---|---|---|---|
aid | string | Yes | Bilibili Archive ID (AID). |
cid | string | Yes | Bilibili Chat ID (CID). |
page | string | No | Page number for pagination. |
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
}
]
| Field | Meaning |
|---|---|
text | The danmaku comment text shown on screen. |
stime | Time position of the comment in the video. The value 95453 suggests milliseconds, but the response does not state the unit. |
date | Time the comment was posted, as a Unix timestamp in seconds. |
id / dmid | Unique ID of the danmaku. dmid is the same number as id, returned as a string. |
uhash | Hashed ID of the user who sent the comment. It is not a plain user ID. |
color | Comment color as a decimal number. The value 16777215 is white (#FFFFFF). |
mode / size / weight | Display mode, font size and weight value of the comment. All three are plain numbers. |
page to move through further pages for the same aid and cid.aid from a BV ID, call Bilibili BV to AID Converter.cid values, call Bilibili Video Parts.$0.014286 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
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"
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
aidstringerforderlichBilibili Archive ID (AID).
cidstringerforderlichBilibili Chat ID (CID).
pagestringPage number for pagination.
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
Es wurde keine gespeicherte Antwort veröffentlicht. Führen Sie die API in Playground aus, um die Antwort zu prüfen.
Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
Bilibili Video DanmakuDiese API Bilibili | $0.014286 pro Aufruf | JSON |
Bilibili | $0.001 pro Aufruf | JSON |
Bilibili | $0.001 pro Aufruf | JSON |
Bilibili | $0.001 pro Aufruf | JSON |
Bilibili | $0.001 pro Aufruf | JSON |
Bilibili | $0.001 pro Aufruf | JSON |
Anleitungen:Best Bilibili API in 2026: Pricing Compared
Fragen
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/bilibili/video-danmu mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.
$0.014286 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Erforderlich: aid (string) und cid (string). Optional: page (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
Nein. Bilibili Video Danmaku läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für Bilibili API beantragen.