$npx skillfedfor your agent

bilibili-api-python

The fork of module bilibili-api. 哔哩哔哩的各种 API 调用便捷整合(视频、动态、直播等),另外附加一些常用的功能。

SkipPyPI WWW/HTTPReleased Jun 2026118.1K downloads / moGPL-3.0-or-laterPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — bilibili_api_python-17.4.2-py3-none-any.whl
v17.4.2 · released 2026-06-19 · Python >=3.10 · 12 runtime deps: beautifulsoup4, colorama, lxml, pyyaml, brotli, qrcode, APScheduler, pillow

No—not for new projects. The repository is archived and abandoned; the maintainer will not fix API breakage when Bilibili changes its endpoints. The documentation itself warns that interfaces may change without notice and users must stay on the latest version. For existing projects already using it, updates may still work until Bilibili's API surface shifts. For new work, seek an actively maintained alternative or be prepared to fork and maintain it yourself.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later and a separate async HTTP client (aiohttp, httpx, or curl_cffi) to be installed manually.
  • Low install friction with a pure-Python wheel, but the repository is archived and marked abandoned as of the fact sheet date.
  • Maintenance status is critical: the last commit was 2026-07-06, and the module's stability depends entirely on Bilibili not changing its API surface, which the documentation explicitly warns may happen without notice.

License · maintenance · safety

GPL-3.0-or-later (copyleft) — Licensed under GPL-3.0-or-later (copyleft). Any derivative work or distribution must also be licensed under GPLv3 or later. Closed-source commercial projects cannot use this package without releasing their own code under the same license.

last release 2026-06-19 (56 days) · last repo commit 2026-07-06 · 4,188 stars · archived

0 known vulnerabilities (OSV.dev, 2026-08-14) · 118,119 downloads/mo, #12,133 on PyPI

Verify before relying

import asyncio
from bilibili_api import video

async def main():
    v = video.Video(bvid="BV1uv411q7Mv")
    info = await v.get_info()
    print(info)

asyncio.run(main())
  • Whether the archived repository will continue to receive security patches or API fixes if Bilibili changes its endpoints.
  • Current compatibility with recent Bilibili API changes since the last commit date.
  • Whether the 12 runtime dependencies are all actively maintained and compatible with modern Python versions.
Same gist for agents: .md · .json

What it is and what it does

bilibili-api-python is an async Python client library for interacting with Bilibili (a major Chinese video platform) APIs. It wraps endpoints for videos, live streams, user profiles, dynamics, audio, and more—roughly 400+ endpoints according to the documentation. The library is entirely async-based, meaning all network calls use asyncio and can be run concurrently, which is useful for high-throughput scraping or bulk operations.

The package includes anti-scraping features like proxy support, request throttling, and browser impersonation via curl_cffi to avoid IP bans. It also provides utilities beyond the official API: BV/AV ID conversion, direct WebSocket access to live-stream danmaku (comments), subtitle and danmaku file downloads, and cookie refresh logic. However, the repository is now archived and abandoned, so API breakage is a real risk if Bilibili changes its endpoints—the documentation explicitly warns users to keep the package updated.

Use it for

  • Bulk download video metadata, comments, or subtitles from Bilibili for analysis or archival.
  • Monitor live streams programmatically and react to events via WebSocket danmaku connections.
  • Automate account actions (likes, follows, subscriptions) using Credential-based authentication.
  • Convert between BV and AV video IDs or fetch video statistics without manual API calls.
  • Build a scraper that respects rate limits and uses proxies to avoid IP bans.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Skip

No—not for new projects.

The repository is archived and abandoned; the maintainer will not fix API breakage when Bilibili changes its endpoints. The documentation itself warns that interfaces may change without notice and users must stay on the latest version. For existing projects already using it, updates may still work until Bilibili's API surface shifts. For new work, seek an actively maintained alternative or be prepared to fork and maintain it yourself.

Install

bilibili-api-python on PyPI

Before you install

Low install friction with a pure-Python wheel, but the repository is archived and marked abandoned as of the fact sheet date. Maintenance status is critical: the last commit was 2026-07-06, and the module's stability depends entirely on Bilibili not changing its API surface, which the documentation explicitly warns may happen without notice.

Requires Python 3.10 or later and a separate async HTTP client (aiohttp, httpx, or curl_cffi) to be installed manually.

License in practice

Licensed under GPL-3.0-or-later (copyleft). Any derivative work or distribution must also be licensed under GPLv3 or later. Closed-source commercial projects cannot use this package without releasing their own code under the same license.

Quickstart

import asyncio
from bilibili_api import video

async def main():
    v = video.Video(bvid="BV1uv411q7Mv")
    info = await v.get_info()
    print(info)

asyncio.run(main())

Verify before relying

  • Whether the archived repository will continue to receive security patches or API fixes if Bilibili changes its endpoints.
  • Current compatibility with recent Bilibili API changes since the last commit date.
  • Whether the 12 runtime dependencies are all actively maintained and compatible with modern Python versions.

Package facts

LicenseGPL-3.0-or-later copyleft
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
12 packages
beautifulsoup4coloramalxmlpyyamlbrotliqrcodeAPSchedulerpillowyarlpycryptodomexqrcode_terminalPyJWT
MaintenanceAbandoned 56 days since the last release
Last repo commit repository archived
First released
Downloads118,119 / month, #12,133 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)Natural Language :: Chinese (Simplified)Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9

Evidence: bilibili_api_python-17.4.2-py3-none-any.whl

Tags

Capabilities
bilibili api client pythonbilibili video scraperbilibili live stream apiasync bilibili downloaderbilibili authentication credentialsbilibili danmaku websocketbilibili bvid avid converter
Topics
bilibili-scraperasync-http-clientabandoned-project
PyPI keywords
bilibiliapispider

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “bilibili api client python”

  • bilibili-api-pythonProvides async Python bindings for Bilibili's APIs, covering videos,…
  • twentyc.rpcA client library for consuming 20c's RESTful API, built on top of the…
  • codewords-clientA Python client library for the Codewords API with built-in FastAPI…

Give your agent the search over MCP, or paste the wish link into any chat.

More WWW/HTTP packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
h11 With conditions
PyPI · WWW/HTTP · released Apr 2025

h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.

MITpure Python · 3.8+aging
894.9Mdownloads / mo
httpx Worth it
PyPI · WWW/HTTP · released Dec 2024

HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.

Install it if you are building new projects or modernizing existing ones that rely on HTTP.

BSD-3-Clausepure Python · 3.8+
797.0Mdownloads / mo
httpcore With conditions
PyPI · WWW/HTTP · released Apr 2025

A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.

BSD-3-Clausepure Python · 3.8+aging
783.6Mdownloads / mo
aiohttp Worth it
PyPI · WWW/HTTP · released Jul 2026

aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.

Install it if you need async HTTP client or server capabilities in asyncio-based applications.

permissive licensecompiled wheel · 3.10+
643.6Mdownloads / mo

See also hiddenlayer-sdk · parallel-web · openlayer · steel-sdk · letta-client · kernel · cloudflare · curl-cffi · aiobotocore · pytube