search_videos
Find Bilibili videos by keyword, filter results with jq, sort by relevance, date, views, danmaku, or favorites, and paginate to browse more.
Instructions
每批最多 30 条,最多翻 30 批。
结果已滤掉付费课程,一批可能不满 30 条。summary 是平台截断过的简介, 完整简介通过 get_video_info 获取。
(search videos, find video by keyword)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jq | Yes | 必填的 jq 表达式。输入是本批条目组成的数组,每条字段:title,url,author,author_url,published_at,duration_sec,category,tags,summary,view_count,danmaku_count,comment_count,like_count,favorite_count。体积大、多数任务用不到的字段:url(后续调用其他工具时需要)、author_url(查看 UP 主时需要)、tags、summary;特定任务需要时照常使用。分页字段不在输入里;只筛本批,筛完为空时仍以 has_more 判断有无下一批。结果为字符串时原样返回,其他结果编码为表格或 JSON;结果为数组时 jq_count 是其长度。 | |
| order | No | 排序。relevance 是 B 站的综合排序。 | relevance |
| query | Yes | 搜索关键词。 | |
| cursor | No | 续取游标:不传从头开始,回传上次返回的 next_cursor 取下一批。 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| results | Yes | ||
| has_more | Yes | ||
| jq_count | No | ||
| elapsed_s | No | ||
| next_cursor | No |