Bilibili
Video discovery, search, comments, playback info, user profiles, and live rooms from Bilibili, served as plain REST.
Endpoints
| Endpoint | Query params | What it returns | Price | Data up to |
|---|---|---|---|---|
GET /bilibili/popular |
pn, ps |
Popular video feed. | $0.003 | 5 min |
GET /bilibili/ranking |
rid, type |
Ranking charts by category. | $0.003 | 15 min |
GET /bilibili/popular-weekly |
— | Weekly must-watch rounds listing. | $0.001 | 1 hr |
GET /bilibili/popular-weekly-picks |
number |
Videos in one weekly round. | $0.001 | 1 hr |
GET /bilibili/popular-precious |
— | Curated "best of" video feed. | $0.001 | 1 hr |
GET /bilibili/video |
bvid or aid |
Full video detail. | $0.003 | 5 min |
GET /bilibili/search |
keyword, page, order, duration, tids |
Video search results. | $0.003 | 1 min |
GET /bilibili/video-comments |
aid, mode |
Comments on one video. | $0.003 | 1 min |
GET /bilibili/video-playurl |
bvid, cid, qn |
Playback stream URLs for one video part. | $0.003 | 15 sec |
GET /bilibili/season |
season_id |
Season (bangumi/collection) detail. | $0.003 | 15 min |
GET /bilibili/video-subtitle |
bvid, cid |
Subtitle tracks for one video part. | $0.003 | 15 min |
GET /bilibili/video-related |
bvid |
Related video recommendations. | $0.003 | 5 min |
GET /bilibili/video-tags |
bvid |
Tags attached to one video. | $0.001 | 15 min |
GET /bilibili/video-danmaku |
oid, segment |
Danmaku (overlay comments) for one video part. | $0.003 | 5 min |
GET /bilibili/user |
mid |
Basic user card. | $0.003 | 5 min |
GET /bilibili/user-detail |
mid |
Extended user profile. | $0.003 | 5 min |
GET /bilibili/user-home |
mid |
User home-page data. | $0.003 | 5 min |
GET /bilibili/user-posts |
mid |
User's dynamic posts. | $0.003 | 5 min |
GET /bilibili/user-favorites |
mid |
User's public favorite folders. | $0.001 | 15 min |
GET /bilibili/favorites |
media_id, pn, ps |
Videos in one favorite folder. | $0.003 | 5 min |
GET /bilibili/user-live |
mid |
A user's live-room status. | $0.001 | 1 min |
GET /bilibili/live |
room_id |
Live room detail. | $0.003 | 15 sec |
GET /bilibili/user-relations |
mid |
A user's follower/following stats. | $0.001 | 5 min |
GET /bilibili/user-videos |
mid, pn, ps, order |
Videos uploaded by a user. | $0.003 | 5 min |
Prices are per call, paid in USDC with x402. "Data up to" is the cache window: a repeated call inside it returns the same data.
Calling it
# x402: no account or API key. The server answers 402 with payment instructions; an x402 client pays and repeats the request.
curl -i "https://<base-url>/bilibili/popular"
Responses are JSON. Field names follow the upstream source, so a response can be larger than the table above suggests.
Notes
video-danmakuis decoded from Bilibili's raw protobuf overlay-comment format into named JSON — not a schema-based passthrough.ranking.type,search.order/tids, anduser-videos.orderare free text — Bilibili's own client does not validate them against a fixed list.video-playurl,video-comments, andvideo-subtitleuse Bilibili's WBI request signing;user-detail/user-home/user-posts/user-videosuse its app signing scheme. Both are handled transparently.