Bilibili All-in-One API avatar

Bilibili All-in-One API

Pricing

from $7.80 / 1,000 video details

Go to Apify Store
Bilibili All-in-One API

Bilibili All-in-One API

Unofficial always-on REST API for Bilibili (哔哩哔哩): popular/ranking/weekly-picks feeds, video detail/playurl/subtitles, filterable search, comments, related videos, tags, danmaku, user profile/uploads/posts/favorites/live status, and UGC video series. No login, cookie, or API key required.

Pricing

from $7.80 / 1,000 video details

Rating

0.0

(0)

Developer

Romy

Romy

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

5 days ago

Last modified

Share

Unified REST endpoint for Bilibili (哔哩哔哩) — popular/ranking/weekly-picks feeds, video detail/playurl/subtitles, filterable search, comments, related videos, tags, danmaku, user profile/uploads/posts/favorites/live status, and UGC video series. No login, cookie, or API key required.

Why

Bilibili's public API has no official docs and mixes several calling conventions inconsistently across endpoints. Every endpoint below was verified live (not assumed from third-party documentation) — useful operational notes for callers:

  • video/comments's mode (3=hot/default, 2=latest) genuinely reorders results. Pagination beyond the first page is not possible from an anonymous caller — this endpoint always returns exactly 3 replies regardless of any ps/offset/cursor value tried, even though it correctly reports the true total count. It's Bilibili's inline preview widget, not the full scrollable thread, and this is the same both on the web and in the real app — not a gap in this wrapper.
  • search's multi-type endpoint silently ignores order/duration/ tids/order_sort. The type-scoped search variant DOES honor order (pubdate/click) and duration (1-4) and tids (category id) — so search() transparently switches to that variant when any of those are given, at the cost of narrowing results to videos only.
  • ranking's type accepts origin and rookie as real sub-rankings beyond the default all. A day param some docs mention is a no-op.
  • user/videos's order accepts pubdate (default) and click, both real. stow (a commonly-documented third value) is a silent no-op here.
  • season's episode list ignores pn/ps/sort — always returns the full collection in one call.
  • favorites' documented order param could not be verified (no public account with a multi-item favorite folder was found during testing) — not shipped on an unverified guess.
  • user/posts's pagination is not reliably possible — the underlying offset mechanism is intermittently blank or repeats page 1.
  • Bilibili's weekly "must-watch" picks series and annual "precious" year-end list are genuinely separate, differently-curated lists from both /popular and /ranking, so they're shipped as their own routes (/popular/weekly, /popular/weekly/picks, /popular/precious) rather than params.
  • Deliberately not shipped: a follower/following LIST endpoint (only counts are available anonymously — shipping a route here would mean silently returning fake-empty data) and official PGC bangumi/anime detail (as opposed to season's UGC video collections, which this actor does cover) — anime search results look geo/licensing-restricted independent of anything this wrapper does.
  • A video/region category tree (tid/rid → name mapping) doesn't exist as a live API — ranking's rid still works with the standard numeric region ids (0=all, 1=Anime, etc.) even without a lookup table.

Endpoints

RouteParamsNotes
GET /popularpn, psTrending/popular video feed, paginated
GET /popular/weekly—The list of weekly "must-watch" picks series (number/subject/date range per week)
GET /popular/weekly/picksnumber (from /popular/weekly)One week's curated picks (~8-50 videos)
GET /popular/precious—The annual "must-watch"/"precious" year-end list
GET /rankingrid, typeFull category ranking (up to ~100 videos); rid=0 is overall "All". type: all (default), origin (original works), rookie (rising talent) — each confirmed to return different results
GET /seasonseason_idA creator's UGC video series/collection (full episode list, always returned in one call — no pagination/sort support). NOT official bangumi/anime
GET /videobvid or aidFull video detail (stats, owner, description, cid for danmaku/playurl/subtitle)
GET /video/playurlbvid, cid, qnActual DASH stream URLs (video/audio tracks, quality options)
GET /video/subtitlebvid, cidCC/subtitle track list (empty array is a real result for videos with no subs)
GET /searchkeyword, page, order, duration, tidsMulti-category search (video/user/live/article) by default; order/duration/tids narrow to video-only results (see "Why")
GET /video/commentsaid, modeTop-level comments — always capped at 3 (see "Known limitations"). mode: 3=hot (default), 2=latest
GET /video/relatedbvidRelated/recommended videos
GET /video/tagsbvidTags attached to a video
GET /video/danmakuoid (= video's cid, not bvid/aid), segmentScrolling danmaku comments, decoded from Protobuf
GET /usermidPublic user-space profile card (web API, lighter payload)
GET /user/detailmidFull space bootstrap payload — richer profile card (rank, vip, official_verify, honours...)
GET /user/homemidSame payload as /user/detail — the app renders the same response as both the profile "detail" info and the space page's "Home" tab preview (recent uploads/articles), there's no separate endpoint for each
GET /user/videosmid, pn, ps, orderA creator's full uploaded-video list, paginated. order: pubdate (default) or click confirmed working
GET /user/favoritesmidA user's public favorite folders (id/title/media_count)
GET /favoritesmedia_id, pn, psVideos inside one favorite folder (media_id from /user/favorites)
GET /user/livemidWhether a user has a live room + basic status
GET /liveroom_idFull live room detail (viewer count, area, tags, PK state, etc)
GET /user/relationsmidFollower/following counts only (no list endpoint — see "Why" above)
GET /user/postsmidThe space page's "Posts" tab — dynamic/short-form updates, distinct from uploaded videos. No pagination available (anonymous callers only ever get the first page).

Every successful response is { "success": true, "data": <raw Bilibili API data> }. Errors are { "success": false, "error": "<message>" } with a matching HTTP status.

Known limitations

  • video/comments only ever returns 3 replies, always the first "page" — this isn't a missing-feature gap, it's confirmed live that the endpoint itself caps out there for an anonymous caller regardless of any pagination param tried (see "Why" above). A real logged-in session would likely be needed to get the true scrollable thread.
  • video/danmaku fetches one ~6-minute segment at a time (segment param); long videos need multiple calls with increasing segment numbers.
  • user/posts has no working pagination for an anonymous caller — only the first page of a profile's dynamic/short-form updates is reliably reachable.
  • This is imported on Apify (romy/bilibili-all-in-one-api, id UkKBb9ThdDHeB40tb) but still unpublished (isPublic: false). Pricing and SEO metadata are already live on the actor object (see "Pricing" below) so it's publish-ready, but hasn't been submitted to the Store.

Pricing

Researched 2026-09-03 against the live Apify Store: 18 existing Bilibili scrapers (market leader zhorex/bilibili-scraper, 743 users / ~15k runs, charges $0.02/item + $0.05 for a danmaku-profile addon; most others cluster $0.001-$0.01/item for simple dataset rows) and this account's own "all-in-one API" Standby actors of similar shape (e.g. kick-all-in-one-api, $0.006-$0.02/event depending on payload richness) for calibration. Those existing actors are scraper-shaped (pay per dataset row); this one is API-shaped (pay per call), so prices below track endpoint value/cost — harder-won or richer-payload endpoints cost more — not row count.

Apify caps Pay-Per-Event actors at 20 charge events, so a few same-value/same-underlying-data routes share one event (documented in the table below). All events use this account's standard tiered-pricing ladder (FREE/BRONZE/SILVER/GOLD/PLATINUM/DIAMOND = 100/92/85/78/72/68% of the FREE price shown); apify-actor-start/apify-default-dataset-item stay flat at $0.00005/$0.00001, matching every other actor in this account. Live on the actor object as of 2026-09-03 (verified: all 20 eventName strings below match main.ts's Actor.charge() calls exactly).

EventRoute(s)FREE priceWhy this price
playurl/video/playurl$0.020Highest value: the actual protected stream URL, needs WBI+buvid
danmaku/video/danmaku$0.015Hand-rolled Protobuf decode, niche data competitors charge a $0.05 addon for
user-posts/user/posts$0.012A harder-to-reach endpoint than most others here
season/season$0.010Full episode list in one call
video/video$0.010Rich detail payload (stats/owner/description/cid) — primary event
subtitle/video/subtitle$0.010WBI+buvid signed
user-space/user/detail, /user/home$0.010Rich profile payload — both routes return the identical response
user-videos/user/videos$0.010Full paginated upload list
live/user/live, /live$0.008Status check or full room detail, sharing one event
favorites/user/favorites, /favorites$0.007Folder list or folder contents, sharing one event
popular-curated/popular/weekly, /popular/weekly/picks, /popular/precious$0.007The 3 curated-list routes, sharing one event
ranking/ranking$0.008List with real type sub-ranking variants
search/search$0.008Multi-category, filterable (order/duration/tids)
popular/popular$0.006Plain unsigned list
user/user$0.006Lightweight web-API card
comments/video/comments$0.005Priced down: hard-capped at 3 replies for anonymous callers
video-extras/video/related, /video/tags$0.005Two lightweight metadata routes, sharing one event
user-relations/user/relations$0.005Counts only, no list

Getting started

$apify run