For AI

BV and AV converter

Type a BV ID, an AV number or a video link. The conversion runs in your browser with Bilibili’s own scheme, so nothing is sent anywhere.

BV ID
BV17x411w7KC
AV number
av170001

Worked out in your browser.

How it works

A BV ID is the AV number in disguise. Bilibili sets bit 51 of the number, XORs it with 23442827791579, writes the result in base 58 with its own alphabet (FcwAPNKTMug3GV5Lj7EJnHpWsx4tb8haYeviqBz6rkCy12mUSDQX9RdoZf) after “BV1”, and swaps characters 3 and 9, and 4 and 7. Going back undoes each step and masks the number to 51 bits. The same rule covers the old short IDs and the 15-digit numbers issued since 2024.

Connect once, then just ask.

Every new key comes with $0.20 to try it. One sentence connects your agent.

Start free
Connect your AI

Paste this into your agent

Read https://okdata.online/agents.md and set up okdata for me; my key is in the OKDATA_API_KEY environment variable.

Claude Code, Cursor, Codex and other agents that can open a link set themselves up from it.

MCP serverhttps://api.okdata.online/mcp