Bilibili Transcript API
Extract full transcript and timed segments from any public Bilibili video via native subtitles or speech recognition. 14 credits per call. Invoke via POST /v1/call/bilibili.transcript or the MCP call tool. Costs 14 credits per successful call; failed calls are free.
What you get
| Field | Type | Meaning |
|---|---|---|
text | string | Full transcript text |
segments | array | Timed segments with start/end timestamps |
source | string | Transcript source (native caption or ASR) |
media_urls | array | Extracted audio/video source URLs |
The request
Endpoint: POST https://socialtoai.app/v1/call/bilibili.transcript. Pass id and a fresh Idempotency-Key header:
curl -X POST "https://socialtoai.app/v1/call/bilibili.transcript" \
-H "Authorization: Bearer $SOCIALTOAI_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"id": "BV1xx411c7mD"}'Python example
import os, uuid, requests
resp = requests.post(
"https://socialtoai.app/v1/call/bilibili.transcript",
headers={
"Authorization": f"Bearer {os.environ['SOCIALTOAI_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={"id": "BV1xx411c7mD"},
timeout=30,
)
print(resp.json())Use over MCP
Connect Claude, ChatGPT, Cursor, or Codex to https://socialtoai.app/mcp and ask your assistant to run call with op="bilibili.transcript".