# Bilibili Video Danmaku API (V2)

Get Bilibili Video Danmaku (V2) data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Powered by JustOneAPI, pass parameters such as aid, cid, and retrieve structured data including business status code, business payload, response message, and returned record time value for content research and account lookup, and integration reference.

Documentation: https://openany.si/bilibili/bilibili-video-danmaku-api-v2/7f924439-2f15-40d8-8a3a-51add6ddbef8/
API ID: 7f924439-2f15-40d8-8a3a-51add6ddbef8
Provider: justoneapi
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/justoneapi/api/bilibili/get-video-danmu/v2
Page update time: 2026-12-03T02:50:59.639Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.015385 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:50:54.816Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "15385",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Bilibili Video Danmaku (V2) API

Retrieve one page of danmaku comments for a Bilibili video segment identified by AID and CID. Provide aid in query, cid in query. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.

## What You Can Build

- **Content research and account lookup**: Keep source records connected to their content and account identifiers.
- **Integration reference**: Use the selected request format and keep source identifiers with the returned result.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `code` | Business status code |
| `data` | Business payload |
| `message` | Response message (nullable in the reference) |
| `recordTime` | Returned record time value (nullable in the reference) |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Bilibili Video Danmaku API (V2) request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "aid": {
          "type": "string",
          "description": "Bilibili Archive ID (AID)."
        },
        "cid": {
          "type": "string",
          "description": "Bilibili Chat ID (CID)."
        },
        "page": {
          "type": "string",
          "description": "Page number for pagination."
        }
      },
      "required": [
        "aid",
        "cid"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "code": {
      "type": "integer"
    },
    "data": {
      "type": "array",
      "items": {}
    },
    "message": {
      "type": "null"
    },
    "recordTime": {
      "type": "null"
    }
  }
}
```

## Request example
Scenario: Official example · Historical response; independent request temp
```bash
curl \
  'https://api.openany.si/v1/agent-apis/justoneapi/api/bilibili/get-video-danmu/v2?aid=%3CREPLACE_AID%3E&cid=%3CREPLACE_CID%3E' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "code": 0,
  "data": [],
  "message": null,
  "recordTime": null
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Which inputs identify this request?
Provide aid in query (string); cid in query (string). Keep identifiers and URLs in the formats documented for this implementation.

### Which pagination or result-size inputs are exposed?
page is string. Use only the exposed inputs and the continuation metadata returned by this endpoint; a size limit is not automatically a page or cursor.

### Where do URL parameters belong?
Use the documented path and query inputs. This GET implementation does not use a JSON request body; keep path values and URL query values in their declared locations.

### How should I map the returned fields?
Use the documented response paths with their returned types. Keep null, empty collections, false and zero distinct, and retain the identifiers needed to match results to the request.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.

## Available implementations
- justoneapi: https://openany.si/bilibili/bilibili-video-danmaku-api-v2/7f924439-2f15-40d8-8a3a-51add6ddbef8/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
