SocialToAIStart freeConsole

Bilibili Media Download API

Get direct video, audio, and cover URLs for any public Bilibili video by BV ID or URL. 2 credits per call; failed calls are free. Invoke via POST /v1/call/bilibili.media or the MCP call tool. Costs 2 credits per successful call; failed calls are free.

What you get

FieldTypeMeaning
videosarrayDirect watermark-free video stream URLs
audiosarrayExtracted audio stream URLs
imagesarrayOriginal high-resolution image and cover URLs
subtitlesarrayAvailable subtitle track URLs

The request

Endpoint: POST https://socialtoai.app/v1/call/bilibili.media. Pass id and a fresh Idempotency-Key header:

curl -X POST "https://socialtoai.app/v1/call/bilibili.media" \
  -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.media",
    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.media".

Try it live in the Console Playground →