get_danmaku_counts
Retrieve per-part danmaku counts for Bilibili videos, with optional refresh to update cached results and get current data.
Instructions
每个视频一组,每段一行,段号看 page。不写 ?p= 取全部分段。
danmaku_count 由平台封顶,分段越长上限越高(如约 8 分钟的为 2000、约 30 分钟的 为 6000、45 分钟以上的为 12000),达到上限时实际弹幕更多。 按段缓存,cached_at 非空表示来自缓存及其抓取时间,要新数据用 refresh。 调用没收到结果时服务端仍会取完,之后再取直接用缓存。
(danmaku count per part)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jq | Yes | 必填的 jq 表达式。输入是单个视频的分段组成的数组,每条字段:page,part,duration,danmaku_count,cached_at,error。结果为字符串时原样返回,其他结果编码为表格或 JSON;结果为数组时 jq_count 是其长度。 | |
| videos | Yes | 视频列表,每项为链接、b23.tv 短链或裸 BV/av 号。?p= 可写单段或范围,如 ?p=3、?p=1-12、?p=1-3,7。 | |
| refresh | No | 跳过缓存重新取,并更新缓存。 | |
| description | Yes | 格式为 工具名:目的。 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| results | Yes | ||
| elapsed_s | No |