正在启动平台

B站弹幕分析bili-danmaku

输入B站BV/AV号,拉取视频弹幕并分析高频重复弹幕、热词/梗、整体情感倾向(正向/负向/中性)。

1. 基本信息

接口地址https://v1.apizero.cn/api/bili-danmaku
请求方法POST
分类content
提供方极数本源
计费模式免费试用
单次消耗0 积分
起步价
QPS 限制2 req/s
每日免费额度20 次(已认证用户)
匿名每日额度10 次(无 API Key)
VIP 免费
调用次数

2. 认证

需要 API Key。登录用户每日 20 次免费;匿名每日 10 次。

获取 API Key:登录 https://apizero.cn/account/keys

3. 请求参数

参数名类型必填说明示例
videostringAV号或BV号BV1w8RBBUEYy
limitint返回高频弹幕/热词数量10
timeoutint超时秒数15
page_modestringall=抓全部分P / first=只抓第一页all

4. 请求头

Header类型必填说明示例
Authorizationstring

5. 请求示例 (cURL)

curl -X POST "https://v1.apizero.cn/api/bili-danmaku" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "video": "BV1w8RBBUEYy",
  "limit": "10",
  "timeout": "15",
  "page_mode": "all"
}'

6. 响应字段

字段类型说明示例
videoobject视频基本信息(bvid/title/duration)
page_statsarray每个分P的弹幕数量
danmaku_summary.total_countint弹幕总量
danmaku_summary.top_memestring当前刷得最多的梗
danmaku_summary.top_repeat_commentsarray高频重复弹幕(text+count)
danmaku_summary.top_termsarray高频热词(term+count)
sentiment_summary.labelstring整体情感倾向(positive/negative/neutral)
sentiment_summary.average_scorefloat平均情感分数

7. 响应示例

{
    "code": 0,
    "msg": "成功",
    "data": {
        "video": {
            "bvid": "BV1w8RBBUEYy",
            "title": "视频标题",
            "duration": 300
        },
        "danmaku_summary": {
            "total_count": 1500,
            "top_meme": "哈哈哈哈",
            "top_repeat_comments": [
                {
                    "text": "哈哈哈哈",
                    "count": 120
                }
            ],
            "top_terms": [
                {
                    "term": "牛逼",
                    "count": 200
                }
            ]
        },
        "sentiment_summary": {
            "label": "positive",
            "average_score": 0.72
        }
    },
    "request_id": "req_abc123"
}

8. 错误码

codestatus说明
4000缺少 video 参数或无效的 AV/BV 号
5020B站弹幕接口请求失败

9. 变更日志

  • 1.0.0(2026-05-08)
    • 首次上线
    • 支持高频弹幕/热词/情感分析