---
document_id: agent.collection.task.bilibili_search_videos_v1
schema_version: 2
parent_document_id: agent.querying
section: querying
---

<!-- Generated by scripts.build_agent_guide; do not edit. -->

# Search videos / 搜索视频

Search Bilibili videos by keyword. For one video's full data use bilibili_video_detail_v1; for its comments use bilibili_video_comments_v1.

按关键词搜索 B 站视频。要取某个视频的完整数据用 bilibili_video_detail_v1,要取它的评论用 bilibili_video_comments_v1。

Task / 任务: `bilibili_search_videos_v1`
Platform / 平台: Bilibili / 哔哩哔哩
Billing / 计费: 3 Credits per successful task / 每个成功任务 3 Credits
Estimate / 估价: call `estimate_collection`; start directly when `approval_required=false`, otherwise obtain approval for `upper_bound_credits`.
估价：调用 `estimate_collection`；`approval_required=false` 时直接启动，否则请用户确认 `upper_bound_credits`。

## Limitations / 限制

- 按页翻页,把返回的 next_page 传回可取下一页,page 上限 50,到顶后不再返回 next_page。
- 标题中的搜索高亮标记已剥除。
- 内部使用上游默认综合排序，结果顺序由上游定义，不承诺按发布时间排序。
- 不返回弹幕;弹幕接口本版未接入。

## Inputs / 输入

- `source` — Search source / 搜索来源; kind=text; required=True; default='bilibili'; bounds=min_length=2, max_length=64
- `search_mode` — Search mode / 搜索模式; kind=select; required=True; default='text'; allowed=text
- `query` — Query / 搜索词; kind=text; required=False; default=None; bounds=min_length=1, max_length=100
- `filters` — Filters / 筛选条件; kind=object; required=False; default={}
- `page` — Page / 页码; kind=integer; required=False; default=1; bounds=min=1, max=50
- `page_size` — Page size / 每页条数; kind=integer; required=False; default=None; bounds=min=1, max=50
- `page_token` — Page token / 续页令牌; kind=cursor; required=False; default=''; bounds=max_length=8192

## Minimal call / 最小调用

`estimate_collection`

```json
{
  "task_query": "搜索哔哩哔哩上的开箱评测视频",
  "task_code": "bilibili_search_videos_v1",
  "input": {
    "source": "bilibili",
    "search_mode": "text",
    "query": "开箱评测",
    "page": 1,
    "page_token": ""
  }
}
```


## Result and pagination / 结果与分页

- mode=page
- current page: `data.page`; page bound: `data.next_page`; next page: `data.next_page` → `page` (null means stop). / 下一页使用 `data.next_page`，为 null 时结束；总页数未知不代表没有下一页。

Only the fields listed below are part of the stable result contract. /
只有下方列出的字段属于稳定结果契约。

## Result fields / 结果字段

- `meta.request_id` — type=string; Asklear request identifier for tracing. / 用于追踪的 Asklear 请求 ID。
- `meta.api_name` — type=string; Executed collection operation name. / 实际执行的采集操作名称。
- `meta.latency_ms` — type=integer; Collection execution latency in milliseconds. / 采集执行耗时（毫秒）。
- `meta.credits_charged` — type=integer; Asklear user-side Credits settled for this task after completion. / 任务完成后 Asklear 用户侧实际结算的 Credits。
- `data.items` — type=array<object>; Projected public items for this task. / 本任务投影后的公开条目。
- `data.item_count` — type=integer; Number of returned items. / 本次返回的条目数。
- `data.items[].video_id` — type=scalar|null; Video id, when available. / 视频ID（如有）。
- `data.items[].title` — type=scalar|null; Title, when available. / 标题（如有）。
- `data.items[].description` — type=scalar|null; Description, when available. / 描述（如有）。
- `data.items[].published_at` — type=integer|null; Publication time, when available. / 发布时间（如有）。
- `data.items[].play_count` — type=scalar|null; Play count, when available. / 播放数（如有）。
- `data.items[].favorite_count` — type=scalar|null; Favorite count, when available. / 收藏数（如有）。
- `data.items[].review_count` — type=scalar|null; Review count, when available. / 评价数（如有）。
- `data.items[].author_id` — type=scalar|null; Author identifier, when available. / 作者 ID（如有）。
- `data.items[].author_name` — type=scalar|null; Author display name, when available. / 作者名称（如有）。
- `data.items[].category` — type=scalar|null; Category, when available. / 类目（如有）。
- `data.page` — type=integer; Current page number. / 当前页码。
- `data.next_page` — type=integer|null; Next page, or null when finished. / 下一页页码；结束时为 null。

Use `list_collection_tasks` as the runtime authority, then `describe_collection_task` for one task's full input contract, examples and limits. Collection access is entitlement-gated. /
以 `list_collection_tasks` 返回为运行时准据，再用 `describe_collection_task` 取单个任务的完整入参契约、示例与限制；采集能力受 entitlement 控制。
