# Bilibili Video Captions API (V2)

Get Bilibili Video Captions (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, bvid, cid, and retrieve structured data including business status code, returned lan field, returned lan doc field, returned subtitle url field, and response message for content research and account lookup, and integration reference.

Documentation: https://openany.si/market/apis/bilibili/bilibili-video-captions-api-v2/?offering=081f64ae-7711-4897-b712-a928ce87cb1e
API ID: 081f64ae-7711-4897-b712-a928ce87cb1e
Provider: justoneapi
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/justoneapi/api/bilibili/get-video-caption/v2
Page update time: 2026-12-03T02:50:59.623Z
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. Price update time: not supplied.
Contract update time: 2026-12-03T02:50:54.781Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "15385",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Bilibili Video Captions 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": {
        "bvid": {
          "type": "string",
          "description": "Bilibili Video ID (BVID)."
        },
        "aid": {
          "type": "string",
          "description": "Bilibili AID."
        },
        "cid": {
          "type": "string",
          "description": "Bilibili CID."
        }
      },
      "required": [
        "bvid",
        "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": "object",
      "properties": {
        "data": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "lan": {
                "type": "string"
              },
              "lan_doc": {
                "type": "string"
              },
              "subtitle_url": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "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-caption/v2?aid=%3CREPLACE_AID%3E&bvid=%3CREPLACE_BVID%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": {
    "data": [
      {
        "lan": "ai-zh",
        "lan_doc": "中文",
        "subtitle_url": "https://aisubtitle.hdslb.com/bfs/ai_subtitle/prod/11386037161208527986759275b14453a2c0fab63bd1827721e64b4118?auth_key=1792760404-2e228623b630401eb4bcd703ff735891-0-d01dc10ad1e68d53681ce30f74a41cba"
      },
      {
        "lan": "ai-en",
        "lan_doc": "English",
        "subtitle_url": "https://aisubtitle.hdslb.com/bfs/ai_subtitle/prod/b6bc3343d8c78b9a8aa46795ad8c1c5e?auth_key=1792760404-40f1ee63e34f45a4ba7d9829c3386de8-0-bd5c7f02fdc5b5c2ac4cac9f4b0c3226"
      }
    ]
  },
  "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.

## Available implementations
- justoneapi: https://openany.si/market/apis/bilibili/bilibili-video-captions-api-v2/?offering=081f64ae-7711-4897-b712-a928ce87cb1e

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