Bilibili: Videos, Comments, Danmaku & Creators (B站)

io.github.serenido由 GitHub 账号 serenido 发布v1.0.0更新于 Nov 1, 2026

Bilibili (B站) data without login: video stats, comments, danmaku, creators, trending, hot searches.

已验证Streamable HTTP可网页运行网页搜索与抓取数据与分析

概览

AI 生成的概览

托管在 Apify 上的远程 MCP 服务器,让助手无需登录即可获取 B 站公开的视频数据、评论、弹幕、UP 主资料与热门榜单。

可以做什么
  • 按关键词搜索视频,返回播放量、点赞、投币、收藏、分享、弹幕数、标签及作者粉丝数
  • 获取热门评论及其回复串,以及带出现秒数的弹幕
  • 查询 UP 主(创作者)资料
  • 获取热门榜单:热门视频、分区排行与热搜
  • 以结构化行返回结果,可导出为 JSON、CSV 或 Excel
适用场景
适合研究中文视频内容:追踪某产品在 B 站的口碑、分析 UP 主及其受众,或收集评论与弹幕做情感分析。
运行要求
需要远程 MCP 端点 mcp.apify.com 并选定该 B 站工具;首次使用时通过 OAuth 连接 Apify 账号。运行在 Apify 云端,无需本地运行时、代理或代码。按行计费。
安装前请注意
按每 1,000 行 1 美元计费,从 Apify 套餐额度中扣除,大批量运行可能超出预期花费。连接后服务器可通过你的 Apify 账号访问。抓取的是 B 站公开数据,保存评论或 UP 主信息时需留意平台条款与隐私。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Bilibili: Videos, Comments, Danmaku & Creators (B站),将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.serenido%2Fbilibili/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。

{
  "mcpServers": {
    "bilibili-videos-comments-danmaku-creator": {
      "type": "http",
      "url": "https://mcp.apify.com/?tools=serenido/bilibili-scraper"
    }
  }
}

README

Bilibili Scraper API

Get Bilibili videos, comments, danmaku (bullet comments), creators and trending lists as clean JSON. No login.

Runs in the cloud on Apify. No servers, no proxy setup, no code to maintain. Open it on Apify

Price: $1 per 1,000 rows. No monthly fee. Apify's free plan gives $5 of usage every month, no credit card needed. Current price.

What you get

  • Search videos by keyword: views, likes, coins, favorites, shares, danmaku count, tags and author followers
  • Top comments with their reply threads, and danmaku (bullet comments with the second they appear)
  • Creator profiles
  • Trending lists: popular, rankings by category, hot searches

Quick start: Python

bash
pip install -U apify-client
python
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("serenido/bilibili-scraper").call(run_input={    "mode": "search",    "keywords": [        "iPhone 17"    ],    "sort": "views",    "maxResults": 50})
for item in client.dataset(run.default_dataset_id).iterate_items():    print(item)

Quick start: JavaScript (Node.js)

bash
npm install apify-client
javascript
import { ApifyClient } from "apify-client";
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor("serenido/bilibili-scraper").call({    "mode": "search",    "keywords": [        "iPhone 17"    ],    "sort": "views",    "maxResults": 50});
const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items);

Quick start: one HTTP call

Runs the tool and returns the rows in one request. Good for runs under 5 minutes; for bigger runs use the Python or JavaScript example.

bash
curl -X POST "https://api.apify.com/v2/acts/serenido~bilibili-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \  -H "Content-Type: application/json" \  -d '{"mode": "search", "keywords": ["iPhone 17"], "sort": "views", "maxResults": 50}'

Get your token in Apify Console > Settings > API & Integrations.

Use it from AI apps (MCP)

Any app that supports remote MCP servers (Claude, ChatGPT, Cursor, VS Code and others) can run this tool for you. Add this server URL: https://mcp.apify.com?tools=serenido/bilibili-scraper. Your Apify account connects on first use. Example config for Cursor:

json
{  "mcpServers": {    "apify": {      "url": "https://mcp.apify.com?tools=serenido/bilibili-scraper"    }  }}

Input example

json
{  "mode": "search",  "keywords": [    "iPhone 17"  ],  "sort": "views",  "maxResults": 50}

Other modes: videos, comments, danmaku, creators, trending. All options are listed on the input page.

Output example (one row)

json
{  "type": "video",  "searchKeyword": "iPhone 17",  "rank": 1,  "bvid": "BV12Kpxz9Eyb",  "url": "https://www.bilibili.com/video/BV12Kpxz9Eyb",  "title": "「小白」iPhone17全面测评:你想看的都在这了!",  "author": "小白测评",  "authorFollowers": 4729409,  "category": "数码",  "duration": "19:48",  "publishedAt": "2025-09-17T12:00:00Z",  "views": 2104350,  "likes": 53238,  "coins": 27040,  "favorites": 11874,  "shares": 8155,  "danmakuCount": 12122,  "commentCount": 5843}

Download as JSON, CSV or Excel, or connect to Make, Zapier or n8n.

Use cases

  • Video and creator research for marketing in China
  • Tracking how a product is reviewed on Bilibili
  • Danmaku and comment data for sentiment analysis

More tools by Serenido

Support

Found a bug or need a field? Open an issue here or on the Issues tab on Apify.

Use it only for public data and follow the website's terms and the laws that apply to you. This project is not affiliated with the websites it reads.

来源:README.md,提交 81ea00d

工具

0
该服务器需要登录,因此 SourceWeft 无法在没有账号的情况下读取其工具,也未收录。已连接账号所能看到的内容可能因账号及其权限而异。

版本历史

1
  1. v1.0.0最新Oct 25, 2026

评分

已满足适用检查项的 75%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。