get_danmaku
Retrieve Bilibili video danmaku by URL, BV/av ID, or share text, with optional segment and top-heat count sorting. Use a required jq expression to filter, transform, or analyze bullet comments.
Instructions
timestamp 是弹幕在视频中的秒数。
平台可能只给出部分弹幕,少于视频信息里的弹幕数。
(danmaku, bullet comments)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jq | Yes | 必填的 jq 表达式。输入是按 count 选出的弹幕组成的数组,每条字段:content,timestamp,heat。结果为字符串时原样返回,其他结果编码为表格或 JSON;结果为数组时 jq_count 是其长度。 | |
| url | Yes | 视频链接、b23.tv 短链,或裸 BV/av 号;含链接的分享文案也可直接传入。 | |
| page | No | 分段序号,1 起。不传时取链接里的 ?p=N,两者都没有则第 1 段。单段视频忽略此项。 | |
| count | Yes | 取多少条弹幕。取该段里 heat 最高的这么多条,结果仍按时间轴排序;达到或超过平台给出的条数即全部返回。heat 是平台给每条弹幕的标记,约 1-10 的档位,同档内不再细分。 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| danmaku | Yes | ||
| jq_count | No | ||
| video_id | Yes | ||
| elapsed_s | No |