Skill: xiewxx/maxhub-bilibili (version 3.5.0)

--- name: maxhub-bilibili description: "B站视频、用户、评论、弹幕、直播数据查询助手。支持App和Web双端API。" license: MIT-0 metadata: author: maxhub version: "3.5.0" openclaw: emoji: "📺" primaryEnv: MAXHUB_API_KEY requires: env: - MAXHUB_API_KEY bins: - curl env: - name: MAXHUB_API_KEY description: "API key for MaxHub data APIs. Get one at https://www.aconfig.cn" required: true sensitive: true network: - https://www.aconfig.cn hermes: tags: ["bilibili", "B站", "视频分析", "UP主", "弹幕", "评论采集", "番剧", "排行榜", "直播", "搜索", "用户画像", "内容分析", "二次元", "数据采集"] category: productivity --- # Bilibili 数据助手 **Get started:** Sign up and get your API key at https://www.aconfig.cn You are a Bilibili Data Assistant. Help users query data via the MaxHub API at https://www.aconfig.cn. **Data disclaimer:** Data obtained through third-party APIs is for reference only. **API coverage:** 41 active endpoints **first message** and maintain it throughout the conversation. | User language | Response language | Number format | Example output | |---|---|---|---| | 中文 | 中文 | 万/亿 (e.g. 1.2亿) | "共找到 1,234 条结果" | | English | English | K/M/B (e.g. 120M) | "Found 1,234 results" | ## API Access Base URL: `https://www.aconfig.cn` Use the configured `MAXHUB_API_KEY` value as the `Authorization: Bearer` request header. ```bash maxhub_auth_header="Authorization: Bearer ${MAXHUB_API_KEY}" # GET example curl -s "https://www.aconfig.cn/api/v1/bilibili/{endpoint}?{params}" \ -H "$maxhub_auth_header" # POST example curl -s -X POST "https://www.aconfig.cn/api/v1/bilibili/{endpoint}" \ -H "$maxhub_auth_header" \ -H "Content-Type: application/json" \ -d '{...}' ``` ## Security & Privacy / 安全与隐私 > ⚠️ **Credential Handling / 凭据处理** > - Some endpoints require platform session cookies. Only provide cookies if you fully trust the service provider. > - Prefer scoped OAuth/API tokens over full browser cookies. Use separate test accounts when possible. > - Rotate or revoke cookies after use. > - 部分端点需要平台会话 Cookie。仅在完全信任服务提供商时提供。 > - 优先使用范围限定的 OAuth/API 令牌。尽可能使用独立测试账号。 > - 使用后轮换或撤销 Cookie。 > 📋 **Data Transmission / 数据传输** > - All API requests are sent to `https://www.aconfig.cn`. Your credentials are transmitted to this third-party service. > - The provider processes data solely to fulfill requests and does not store credentials beyond the request lifecycle. > - 所有 API 请求发送至 `https://www.aconfig.cn`。您的凭据将传输至该第三方服务。 > - 服务提供商仅处理数据以完成请求，不会在请求生命周期之外存储凭据。 > 🔒 **Read-Only Operations / 只读操作** > - This skill is designed for **data querying only**. It does NOT perform any write operations, metric manipulation, or automated actions on your behalf. > - 本技能仅用于**数据查询**，不会执行任何写入操作、指标操纵或自动操作。 ## Interaction Flow ### Step 1: Check API Key ```bash [ -n "${MAXHUB_API_KEY:-}" ] && echo "ok" || echo "missing" ``` #### If missing — show setup guide Chinese user: > 🔑 需要先配置 MaxHub API Key 才能使用： > > 1. 打开 https://www.aconfig.cn 注册账号 > 2. 登录后在控制台找到 API Keys，创建一个 Key > 3. 选择一种方式配置： > - OpenClaw/ClawHub：`openclaw config set skills.entries.maxhub-bilibili.apiKey "你的_API_KEY"` > - 通用环境变量：`export MAXHUB_API_KEY="你的_API_KEY"` > 4. 配置完成后重新发起查询 ✅ English user: > 🔑 You need a MaxHub API Key to get started: > > 1. Go to https://www.aconfig.cn and sign up > 2. Find API Keys in your dashboard and create one > 3. Choose one setup method: > - OpenClaw/ClawHub: `openclaw config set skills.entries.maxhub-bilibili.apiKey "YOUR_API_KEY"` > - Generic: `export MAXHUB_API_KEY="YOUR_API_KEY"` > 4. Run your query again after setup ✅ ### Step 1.5: Complexity Classification | Complexity | Criteria | Path | |---|---|---| | **Simple** | Exactly 1 API call | Skill handles directly | | **Deep** | 2+ API calls; analysis, comparison | Multi-endpoint orchestration | ### Step 2: Route — Classify Intent & Load Reference | Intent Group | Trigger signals | Reference file | Key endpoints | |---|---|---|---| | **Video Data** | 视频, 详情, 播放, 弹幕, 字幕, video, detail, play, danmaku, subtitle, aid, bvid, vip | `references/api-video.md` | fetch_home_feed, fetch_reply_detail, fetch_one_video, fetch_user_videos, fetch_video_comments, fetch_dynamic_detail, fetch_dynamic_detail_v2, fetch_video_play_info, fetch_video_detail, fetch_one_video_v2, fetch_one_video_v3, fetch_one_video, fetch_vip_video_playurl, fetch_user_collection_videos, fetch_live_room_detail, fetch_video_comments, fetch_user_post_videos, fetch_live_videos, fetch_com_popular, fetch_comment_reply, fetch_video_subtitle, fetch_video_danmaku, fetch_video_playurl, bv_to_aid, fetch_video_parts | | **User Data** | 用户, UP主, 粉丝, 关注, 收藏夹, user, up, follower, following, stat, collection | `references/api-user.md` | fetch_user_info, fetch_get_user_id, fetch_user_up_stat, fetch_user_dynamic, fetch_user_profile, fetch_user_relation_stat, fetch_collect_folders | | **Search & Feed** | 搜索, 热门, 推荐, 动态, search, hot, popular, recommend, feed, dynamic | `references/api-search.md` | fetch_search_by_type, fetch_search_all, fetch_cinema_tab, fetch_popular_feed, fetch_bangumi_tab, fetch_hot_search, fetch_general_search | | **Comments** | 评论, 回复, comment, reply | `references/api-comment.md` | | | **Live & Feed** | 直播, 收藏夹, 动态, live, collection, dynamic, feed | `references/api-live-feed.md` | fetch_all_live_areas, fetch_live_streamers | | **Deep Dive** | 全面分析, 深度分析, 综合报告, full analysis | Multiple files | Multi-endpoint orchestration | **Rules:** - If uncertain, default to **Video Data**. - For **Deep Dive**, read reference files incrementally. ### Step 3: Classify Action Mode | Mode | Signal | Behavior | |---|---|---| | **Browse** | "搜", "找", "看看", "search", "find", "show me" | Single query, return results + summary | | **Analyze** | "分析", "趋势", "why", "analyze", "trend" | Query + structured analysis | | **Compare** | "对比", "vs", "区别", "compare" | Multiple queries, side-by-side comparison | ### Step 4: Plan & Execute #### Pattern A: "分析B站UP主" 1. 搜索用户 → fetch_user_info → 获取用户基本信息 2. 获取投稿 → fetch_user_videos → 获取用户视频列表 3. 获取统计 → fetch_up_stat → 获取点赞/播放总量 #### Pattern B: "分析视频数据" 1. 获取详情 → fetch_one_video → 视频基本信息 2. 获取评论 → fetch_video_comments → 评论数据 3. 获取弹幕 → fetch_video_danmaku → 弹幕数据 **Execution rules:** - Execute all planned queries autonomously. - Run independent queries in parallel when possible. - If a step fails with 403, skip it and note the limitation. - If a step fails with 502, retry once. - If a step returns empty data, say so honestly. ### Step 5: Output Results #### Browse Mode Present results concisely with key fields. #### Analyze Mode Tables for rankings, bullet points for insights. End with **Key findings**. #### Compare Mode Side-by-side table + differential insights. ### Step 6: Follow-up Handling | Follow-up | Action | |---|---| | "next page" / "下一页" | Same params, page/cursor +1 | | "analyze" / "分析一下" | Switch to analyze mode | | "compare with X" / "和X对比" | Add X as second query | ## Output Guidelines 1. **Language consistency** — ALL output matches user's detected language. 2. **Markdown links** — All URLs in `[text](url)` format. 3. **Humanize numbers** — English: K/M/B. Chinese: 万/亿. 4. **End with next-step hints** — Contextual suggestions. 5. **Data-driven** — Base conclusions on actual API data. 6. **Credential handling** — Keep API key values out of output. 7. **Strip HTML tags** — API may return HTML in name fields. ## 🎯 适配场景 ### 场景一：UP主合作评估 - **应用环境**：品牌方寻找B站UP主进行内容合作 - **用户需求**：评估UP主的粉丝质量、内容风格和商业价值 - **使用流程**：搜索目标UP主 → 获取用户详情 → 分析投稿数据 → 评估互动指标 - **预期效果**：快速筛选匹配品牌调性的优质UP主 ### 场景二：视频内容分析 - **应用环境**：内容团队分析B站热门视频的内容特征 - **用户需求**：了解爆款视频的标题、标签、时长等成功要素 - **使用流程**：获取热门视频 → 分析视频详情 → 提取弹幕评论 → 总结内容特征 - **预期效果**：为视频内容创作提供数据驱动的优化方向 ### 场景三：社区话题研究 - **应用环境**：运营团队研究B站社区的热门话题和用户偏好 - **用户需求**：了解不同分区的热门内容和用户讨论趋势 - **使用流程**：获取排行榜数据 → 分析分区热度 → 追踪评论趋势 → 生成研究报告 - **预期效果**：精准把握B站社区文化，提升内容运营效率 ## Error Handling | Error | Response | |---|---| | 400 Bad Request | "参数错误 / Bad request parameters" | | 401 Unauthorized | "API Key 无效 / API Key is invalid" | | 403 Forbidden | "权限不足 / Insufficient permissions" | | 404 Not Found | "接口地址错误或已下线，请检查调用路径是否与文档一致 / Endpoint not found — verify URL matches documentation" | | 429 Rate Limit | "请求过快 / Too many requests" | | 500 Server Error | "服务器不可用 / Server unavailable" | | Empty results | ### 404 错误专项处理 当 API 调用返回 **404 Not Found** 时，按以下流程处理： 1. **验证调用地址**：检查实际调用的 URL 路径是否与 references 文档中 `<!-- Full path: -->` 标注的路径**完全一致** 2. **常见 404 原因**： - ❌ 自行拼接或猜测接口路径（如将 `app_v2` 写成 `app`，或遗漏版本号） - ❌ 使用了已废弃/下线的接口路径 - ❌ 路径中缺少必要的子路径段（如 [REDACTED_SECRET] 误写为 [REDACTED_SECRET]） 3. **处理方式**： - 如果地址与文档不一致 → 修正为文档中的正确地址后重新调用 - 如果地址与文档一致但仍 404 → 该接口可能已下线，按「接口降级策略」切换到替代版本 - 如果所有替代版本均 404 → 向用户说明该功能暂时不可用 ### 接口降级与自动切换策略 当按照文档正确传参后，接口仍返回错误时，按以下策略自动切换到替代接口： #### 降级触发条件 | 错误码 | 是否触发降级 | 说明 | |--------|-------------|------| | 400 Bad Request | ❌ 不降级 | 参数格式错误，需修正参数 | | 401 Unauthorized | ❌ 不降级 | API Key 无效，需检查配置 | | 403 Forbidden | ❌ 不降级 | 权限不足 | | 404 Not Found | ✅ **触发降级** | 接口可能已下线，切换到替代版本 | | 422 Unprocessable | ❌ 不降级 | 参数验证失败，需修正参数格式 | | 429 Rate Limit | ❌ 不降级 | 延迟 5 秒后重试同一接口，最多 1 次 | | 500 Server Error | ✅ **触发降级** | 服务器故障，切换到替代版本 | | 410 Gone | ✅ **触发降级** | 接口已废弃，切换到替代版本 | #### 降级执行流程 ``` 1. 调用接口 A（最高优先级版本） ↓ 失败（404/500/410） 2. 查找功能相同的替代接口 B（下一优先级版本） ↓ 按替代接口的参数格式重新构造请求 3. 调用接口 B ↓ 成功 → 返回结果 ↓ 失败 → 继续降级到接口 C 4. 所有替代接口均失败 → 向用户报告： "该功能当前不可用，已尝试 X 个替代接口均失败。 最后一次错误：[错误信息]。 建议：[替代方案或稍后重试]" ``` #### 降级注意事项 - 切换接口时，**必须**按新接口的参数格式重新构造请求，不同版本的参数名可能不同 - 降级调用前，先读取替代接口的 references 文档确认参数 - 最多降级 3 次（即最多尝试 4 个不同版本的接口） - 降级调用成功后，在响应中标注实际使用的接口版本 "未找到数据，建议放宽条件 / No data, try broader params" |

path: README.md
content: # Bilibili Data Assistant

[中文文档](README_CN.md)

Bilibili video, user, comment, danmaku, and live data assistant with App and Web API support.

## Features

- **Video Data** — fetch_one_video, fetch_video_detail, fetch_video_playurl, fetch_video_comments, fetch_video_danmaku, fetch_video_subtitle, fetch_video_play_info, generate_aid_by_bvid, fetch_video_parts_by_bvid, fetch_vip_video_playurl
- **User Data** — fetch_user_info, fetch_user_profile, fetch_user_videos, fetch_user_followers, fetch_user_following, fetch_up_stat, fetch_user_relation_stat, extract_user_id, fetch_user_dynamic, fetch_user_collection_folders, fetch_collection_folder_data
- **Search** — fetch_general_search, fetch_hot_search, search_by_type
- **Comments & Interaction** — fetch_video_comments, fetch_comment_replies, fetch_dynamic_detail, fetch_dynamic_detail_v2
- **Live & Feed** — fetch_live_info, fetch_live_areas, fetch_live_streamers, fetch_live_video_data, fetch_home_feed, fetch_popular_feed, fetch_bangumi_tab, fetch_cinema_tab, fetch_comprehensive_popular

## Install

```bash
npx clawhub install maxhub-bilibili
```

## Setup

1. Go to [www.aconfig.cn](https://www.aconfig.cn) to register and get your API Key
2. Configure: `openclaw config set skills.entries.maxhub-bilibili.apiKey "<your-key>"` or `export MAXHUB_API_KEY="<your-key>"`

## Usage Examples

| Category | Example prompts |
|----------|----------------|
| Video Data | 视频, 详情 |
| User Data | 用户, UP主 |
| Search | 搜索, 搜 |
| Comments & Interaction | 评论, 回复 |
| Live & Feed | 直播, 推荐 |

Supports both **English** and **Chinese**.

## Links

- Website: [www.aconfig.cn](https://www.aconfig.cn)

---

Powered by [MaxHub](https://www.aconfig.cn)


path: README_CN.md
content: # Bilibili 数据助手

[English](README.md)

B站视频、用户、评论、弹幕、直播数据查询助手。支持App和Web双端API。

## 功能

- **视频数据** — fetch_one_video, fetch_video_detail, fetch_video_playurl, fetch_video_comments, fetch_video_danmaku, fetch_video_subtitle, fetch_video_play_info, generate_aid_by_bvid, fetch_video_parts_by_bvid, fetch_vip_video_playurl
- **用户数据** — fetch_user_info, fetch_user_profile, fetch_user_videos, fetch_user_followers, fetch_user_following, fetch_up_stat, fetch_user_relation_stat, extract_user_id, fetch_user_dynamic, fetch_user_collection_folders, fetch_collection_folder_data
- **搜索** — fetch_general_search, fetch_hot_search, search_by_type
- **评论互动** — fetch_video_comments, fetch_comment_replies, fetch_dynamic_detail, fetch_dynamic_detail_v2
- **直播与推荐** — fetch_live_info, fetch_live_areas, fetch_live_streamers, fetch_live_video_data, fetch_home_feed, fetch_popular_feed, fetch_bangumi_tab, fetch_cinema_tab, fetch_comprehensive_popular

## 安装

```bash
npx clawhub install maxhub-bilibili
```

## 配置

1. 前往 [www.aconfig.cn](https://www.aconfig.cn) 注册并获取 API Key
2. 配置：`openclaw config set skills.entries.maxhub-bilibili.apiKey "<你的-key>"` 或 `export MAXHUB_API_KEY="<你的-key>"`

## 使用示例

| 分类 | 示例指令 |
|------|----------|
| 视频数据 | 视频，详情 |
| 用户数据 | 用户，UP主 |
| 搜索 | 搜索，搜 |
| 评论互动 | 评论，回复 |
| 直播与推荐 | 直播，推荐 |

支持 **中文** 和 **英文** 双语。

## 链接

- 官网：[www.aconfig.cn](https://www.aconfig.cn)

---

由 [MaxHub](https://www.aconfig.cn) 提供技术支持


path: _meta.json
content: ownerId: maxhub-skills
slug: maxhub-bilibili
version: 3.5.0
publishedAt: 0
homepage: https://www.aconfig.cn
repository: https://github.com/XieWxx/maxhub-api-skills

path: references/api-live.md
content: # Live & Comment API / 直播与评论接口

Base URL: `https://www.aconfig.cn`
Auth: `Authorization: Bearer $MAXHUB_API_KEY`

---
## fetch_all_live_areas

`GET /api/v1/bilibili/web/fetch_all_live_areas`

<!-- Full path: /api/v1/bilibili/web/fetch_all_live_areas -->

### Parameters

No parameters required.

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 获取所有直播分区列表
### 参数:
### 返回:
- 所有直播分区列表

## fetch_live_streamers

`GET /api/v1/bilibili/web/fetch_live_streamers`

<!-- Full path: /api/v1/bilibili/web/fetch_live_streamers -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| area_id | string | ✅ | 直播分区id/Live area ID | 9 |
| pn | integer |  | 页码/Page number (default: 1) |  |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 获取指定分区正在直播的主播
### 参数:
- area_id: 直播分区id
- pn: 页码
### 返回:
- 指定分区正在直播的主播

---

See SKILL.md for cross-group orchestration patterns.

path: references/api-search.md
content: # Search & Feed API / 搜索与推荐接口

Base URL: `https://www.aconfig.cn`
Auth: `Authorization: Bearer $MAXHUB_API_KEY`

---
## fetch_bangumi_tab

`GET /api/v1/bilibili/app/fetch_bangumi_tab`

<!-- Full path: /api/v1/bilibili/app/fetch_bangumi_tab -->

### Parameters

No parameters required.

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 获取主页番剧推荐
### 返回:
- 番剧推荐数据

## fetch_cinema_tab

`GET /api/v1/bilibili/app/fetch_cinema_tab`

<!-- Full path: /api/v1/bilibili/app/fetch_cinema_tab -->

### Parameters

No parameters required.

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 获取主页影视推荐
### 返回:
- 影视推荐数据

## fetch_general_search

`GET /api/v1/bilibili/web/fetch_general_search`

<!-- Full path: /api/v1/bilibili/web/fetch_general_search -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| keyword | string | ✅ | 搜索关键词/Search keyword | 火影忍者 |
| order | string | ✅ | 排序方式/Order method | totalrank |
| page | integer | ✅ | 页码/Page number | 1 |
| page_size | integer | ✅ | 每页数量/Number per page | 42 |
| duration | integer |  | 时长筛选/Duration filter (default: 0) |  |
| pubtime_begin_s | integer |  | 开始日期/Start date (10-digit timestamp) (default: 0) |  |
| pubtime_end_s | integer |  | 结束日期/End date (10-digit timestamp) (default: 0) |  |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
 - 获取综合搜索信息
 ### 参数:
 - keyword: 搜索关键词
 - order: 排序方式
    - totalrank 综合排序
    - click 最多播放
    - pubdate 最新发布
    - dm 最多弹幕
    - stow 最多收藏
- page: 页码
 - page_size: 每页数量
 - duration: 时长筛选
    - 0 全部时长
    - 1 10分钟以下
    - 2 10-30分钟
    - 3 30分钟-60分钟
    - 4 60分钟以上
- pubtime_begin_s: 开始日期，10位时间戳，需要小于结束日期
 - pubtime_end_s: 结束日期，10位时间戳，需要大于开始日期
 ### 返回:
 - 综合搜索信息

## fetch_hot_search

`GET /api/v1/bilibili/web/fetch_hot_search`

<!-- Full path: /api/v1/bilibili/web/fetch_hot_search -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| limit | string | ✅ | 返回数量/Return number | 10 |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 获取热门搜索信息
### 参数:
- limit: 返回数量
### 返回:
- 热门搜索信息
### 说明:
- limit默认为10，上限为50

## fetch_popular_feed

`GET /api/v1/bilibili/app/fetch_popular_feed`

<!-- Full path: /api/v1/bilibili/app/fetch_popular_feed -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| idx | integer |  | 页面索引/Page index (default: 1) |  |
| last_param | string |  | 上一页最后一个视频ID/Last video ID |  |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 获取热门推荐视频
### 参数:
- idx: 页面索引（从1开始）
- last_param: 上一页最后一个视频的ID（用于分页）
### 返回:
- 热门推荐视频数据

## fetch_search_all

`GET /api/v1/bilibili/app/fetch_search_all`

<!-- Full path: /api/v1/bilibili/app/fetch_search_all -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| keyword | string | ✅ | 搜索关键词/Search keyword | 原神 |
| page | integer |  | 页码/Page number (default: 1) |  |
| page_size | integer |  | 每页数量/Page size (default: 20) |  |
| order | integer |  | 排序方式/Sort order (0=综合排序) (default: 0) |  |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
 - 综合搜索（返回所有类型的搜索结果）
 ### 参数:
 - keyword: 搜索关键词（必填）
 - page: 页码，从1开始
 - page_size: 每页结果数量
 - order: 排序方式（0=综合排序）
 ### 返回:
 - 搜索结果，包含nav（分类导航）、item（搜索结果）、pagination（分页信息）等

## fetch_search_by_type

`GET /api/v1/bilibili/app/fetch_search_by_type`

<!-- Full path: /api/v1/bilibili/app/fetch_search_by_type -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| keyword | string | ✅ | 搜索关键词/Search keyword | 原神 |
| search_type | string |  | 搜索类型/Search type (video/bangumi/pgc/live/article/user) (default: video) |  |
| page | integer |  | 页码/Page number (default: 1) |  |
| page_size | integer |  | 每页数量/Page size (default: 20) |  |
| order | integer |  | 排序方式/Sort order (0=综合, 1=最新, 2=播放量, 3=弹幕数) (default: 0) |  |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 分类搜索（按类型搜索）
### 参数:
- keyword: 搜索关键词（必填）
- search_type: 搜索类型
    - video: 视频
    - bangumi: 番剧
    - pgc: 影视
    - live: 直播
    - article: 专栏
    - user: 用户
- page: 页码，从1开始
- page_size: 每页结果数量
- order: 排序方式
    - 0: 综合排序
    - 1: 最新发布
    - 2: 播放量
    - 3: 弹幕数
### 返回:
- 搜索结果

---

See SKILL.md for cross-group orchestration patterns.

path: references/api-user.md
content: # User Data API / 用户数据接口

Base URL: `https://www.aconfig.cn`
Auth: `Authorization: Bearer $MAXHUB_API_KEY`

---
## fetch_collect_folders

`GET /api/v1/bilibili/web/fetch_collect_folders`

<!-- Full path: /api/v1/bilibili/web/fetch_collect_folders -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| uid | string | ✅ | 用户UID | 178360345 |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 获取用户收藏作品数据
### 参数:
- uid: 用户UID
### 返回:
- 用户收藏夹信息

## fetch_get_user_id

`GET /api/v1/bilibili/web/fetch_get_user_id`

<!-- Full path: /api/v1/bilibili/web/fetch_get_user_id -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| share_link | string | ✅ | 用户分享链接/User share link | https://b23.tv/1ZuB5NC |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 提取用户ID
### 参数:
- share_link: 用户分享链接
### 返回:
- 用户ID

## fetch_user_dynamic

`GET /api/v1/bilibili/web/fetch_user_dynamic`

<!-- Full path: /api/v1/bilibili/web/fetch_user_dynamic -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| uid | string | ✅ | 用户UID | 16015678 |
| offset | string |  | 开始索引/offset (default: '') | 953154282154098691 |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 获取指定用户动态
### 参数:
- uid: 用户UID
- offset: 开始索引
### 返回:
- 指定用户动态数据

## fetch_user_info

`GET /api/v1/bilibili/app/fetch_user_info`

<!-- Full path: /api/v1/bilibili/app/fetch_user_info -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| user_id | string | ✅ | 用户ID/User ID | 203680252 |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 获取用户信息
### 参数:
- user_id: 用户ID（必填）
### 返回:
- 用户信息（包含粉丝数、关注数、投稿数等）

## fetch_user_profile

`GET /api/v1/bilibili/web/fetch_user_profile`

<!-- Full path: /api/v1/bilibili/web/fetch_user_profile -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| uid | string | ✅ | 用户UID | 178360345 |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 获取指定用户的信息
### 参数:
- uid: 用户UID
### 返回:
- 指定用户的个人信息

## fetch_user_relation_stat

`GET /api/v1/bilibili/web/fetch_user_relation_stat`

<!-- Full path: /api/v1/bilibili/web/fetch_user_relation_stat -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| uid | string | ✅ | 用户UID/User UID | 178360345 |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 获取用户关系状态统计信息（关注数、粉丝数）
### 参数:
- uid: 用户UID
### 返回:
- 用户关系状态统计数据
    - following: 关注数
    - follower: 粉丝数

## fetch_user_up_stat

`GET /api/v1/bilibili/web/fetch_user_up_stat`

<!-- Full path: /api/v1/bilibili/web/fetch_user_up_stat -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| uid | string | ✅ | 用户UID/User UID | 178360345 |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 获取UP主状态统计信息（总获赞数、总播放数）
### 参数:
- uid: 用户UID
### 返回:
- UP主状态统计数据
    - archive: 视频相关统计
        - view: 总播放数
    - likes: 总获赞数

---

See SKILL.md for cross-group orchestration patterns.

path: references/api-video.md
content: # Video Data API / 视频数据接口

Base URL: `https://www.aconfig.cn`
Auth: `Authorization: Bearer $MAXHUB_API_KEY`

---
## bv_to_aid

`GET /api/v1/bilibili/web/bv_to_aid`

<!-- Full path: /api/v1/bilibili/web/bv_to_aid -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| bv_id | string | ✅ | 作品id/Video id | BV1M1421t7hT |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 通过bv号获得视频aid号
### 参数:
- bv_id: 作品id
### 返回:
- 视频aid号

## fetch_com_popular

`GET /api/v1/bilibili/web/fetch_com_popular`

<!-- Full path: /api/v1/bilibili/web/fetch_com_popular -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| pn | integer |  | 页码/Page number (default: 1) |  |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 获取综合热门视频信息
### 参数:
- pn: 页码
### 返回:
- 综合热门视频信息

## fetch_comment_reply

`GET /api/v1/bilibili/web/fetch_comment_reply`

<!-- Full path: /api/v1/bilibili/web/fetch_comment_reply -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| bv_id | string | ✅ | 作品id/Video id | BV1M1421t7hT |
| pn | integer |  | 页码/Page number (default: 1) |  |
| rpid | string | ✅ | 回复id/Reply id | 237109455120 |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 获取视频下指定评论的回复
### 参数:
- bv_id: 作品id
- pn: 页码
- rpid: 回复id
### 返回:
- 指定评论的回复数据

## fetch_dynamic_detail

`GET /api/v1/bilibili/web/fetch_dynamic_detail`

<!-- Full path: /api/v1/bilibili/web/fetch_dynamic_detail -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| dynamic_id | string | ✅ | 动态id/Dynamic id | 1172584638000922630 |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 获取指定动态的详情信息（v1接口）
### 参数:
- dynamic_id: 动态id
### 返回:
- 动态详情数据

## fetch_dynamic_detail_v2

`GET /api/v1/bilibili/web/fetch_dynamic_detail_v2`

<!-- Full path: /api/v1/bilibili/web/fetch_dynamic_detail_v2 -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| dynamic_id | string | ✅ | 动态id/Dynamic id | 1172584638000922630 |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 获取指定动态的详情信息（v2接口）
### 参数:
- dynamic_id: 动态id
### 返回:
- 动态详情数据

## fetch_home_feed

`GET /api/v1/bilibili/app/fetch_home_feed`

<!-- Full path: /api/v1/bilibili/app/fetch_home_feed -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| idx | integer |  | 页面索引/Page index |  |
| flush | integer |  | 刷新标记/Flush flag (0=普通加载, 1=刷新) (default: 0) |  |
| pull | boolean |  | 是否下拉刷新/Pull to refresh (default: true) |  |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 获取主页推荐视频流
### 参数:
- idx: 页面索引，默认使用当前时间戳
- flush: 刷新标记（0=普通加载, 1=刷新）
- pull: 是否下拉刷新
### 返回:
- 推荐视频流数据

## fetch_live_room_detail

`GET /api/v1/bilibili/web/fetch_live_room_detail`

<!-- Full path: /api/v1/bilibili/web/fetch_live_room_detail -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| room_id | string | ✅ | 直播间ID/Live room ID | 22816111 |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 获取指定直播间信息
### 参数:
- room_id: 直播间ID
### 返回:
- 指定直播间信息

## fetch_live_videos

`GET /api/v1/bilibili/web/fetch_live_videos`

<!-- Full path: /api/v1/bilibili/web/fetch_live_videos -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| room_id | string | ✅ | 直播间ID/Live room ID | 1815229528 |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 获取指定直播间视频流
### 参数:
- room_id: 直播间ID
### 返回:
- 指定直播间视频流

## fetch_one_video

`GET /api/v1/bilibili/app/fetch_one_video`

<!-- Full path: /api/v1/bilibili/app/fetch_one_video -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| av_id | string |  | AV号/AV ID | 115568241811221 |
| bv_id | string |  | BV号/BV ID | BV18SCrBGE9E |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 获取单个视频详情信息（APP接口）
### 参数:
- av_id: AV号（与bv_id二选一）
- bv_id: BV号（与av_id二选一）
### 返回:
- 视频详情信息

## fetch_one_video

`GET /api/v1/bilibili/app/fetch_one_video`

<!-- Full path: /api/v1/bilibili/web/fetch_one_video -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| bv_id | string | ✅ | 作品id/Video id | BV1M1421t7hT |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 获取单个视频详情信息
### 参数:
- bv_id: 作品id
### 返回:
- 视频详情信息

## fetch_one_video_v2

`GET /api/v1/bilibili/web/fetch_one_video_v2`

<!-- Full path: /api/v1/bilibili/web/fetch_one_video_v2 -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| a_id | string | ✅ | 作品id/Video id | 114006081739452 |
| c_id | string | ✅ | 作品cid/Video cid | 28400484458 |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 获取单个视频详情信息V2
### 参数:
- a_id: 作品id
- c_id: 作品cid
### 返回:
- 视频详情信息V2

## fetch_one_video_v3

`GET /api/v1/bilibili/web/fetch_one_video_v3`

<!-- Full path: /api/v1/bilibili/web/fetch_one_video_v3 -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| url | string | ✅ | 视频链接/Video URL | https://www.bilibili.com/video/BV1S5uKzzE4r |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 获取单个视频详情信息V3
### 参数:
- url: 视频链接
### 返回:
- 视频详情信息V3

## fetch_reply_detail

`GET /api/v1/bilibili/app/fetch_reply_detail`

<!-- Full path: /api/v1/bilibili/app/fetch_reply_detail -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| root | string | ✅ | 一级评论ID/Root comment ID | 241743663521 |
| av_id | string |  | AV号/AV ID | 113100682434775 |
| bv_id | string |  | BV号/BV ID | BV18SCrBGE9E |
| next_offset | integer |  | 下一页游标/Next page cursor (default: 0) |  |
| ps | integer |  | 每页数量/Page size (default: 20) |  |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 获取二级评论回复
### 参数:
- root: 一级评论ID（必填）
- av_id: AV号（与bv_id二选一）
- bv_id: BV号（与av_id二选一）
- next_offset: 下一页游标
- ps: 每页数量
### 返回:
- 二级评论列表数据

## fetch_user_collection_videos

`GET /api/v1/bilibili/web/fetch_user_collection_videos`

<!-- Full path: /api/v1/bilibili/web/fetch_user_collection_videos -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| folder_id | string | ✅ | 收藏夹id/collection folder id | 1756059545 |
| pn | integer |  | 页码/Page number (default: 1) |  |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 获取指定收藏夹内视频数据
### 参数:
- folder_id: 用户UID
- pn: 页码
### 返回:
- 指定收藏夹内视频数据

## fetch_user_post_videos

`GET /api/v1/bilibili/web/fetch_user_post_videos`

<!-- Full path: /api/v1/bilibili/web/fetch_user_post_videos -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| uid | string | ✅ | 用户UID | 178360345 |
| pn | integer |  | 页码/Page number (default: 1) |  |
| order | string |  | 排序方式/Order method (default: pubdate) |  |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 获取用户发布的视频数据
### 参数:
- uid: 用户UID
- pn: 页码
- order: 排序方式
    - pubdate 最新发布
    - click 最多播放
    - stow 最多收藏
### 返回:
- 用户发布的视频数据

## fetch_user_videos

`GET /api/v1/bilibili/app/fetch_user_videos`

<!-- Full path: /api/v1/bilibili/app/fetch_user_videos -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| user_id | string | ✅ | 用户ID/User ID | 203680252 |
| post_filter | string |  | 过滤类型/Filter type (archive/season/contribute) (default: archive) |  |
| page | integer |  | 页码/Page number (default: 1) |  |
| ps | integer |  | 每页数量/Page size (default: 20) |  |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 获取用户投稿视频列表
### 参数:
- user_id: 用户ID（必填）
- post_filter: 过滤类型（archive=投稿, season=合集, contribute=贡献）
- page: 页码
- ps: 每页数量
### 返回:
- 用户投稿视频列表

## fetch_video_comments

`GET /api/v1/bilibili/app/fetch_video_comments`

<!-- Full path: /api/v1/bilibili/app/fetch_video_comments -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| av_id | string |  | AV号/AV ID | 115568241811221 |
| bv_id | string |  | BV号/BV ID | BV18SCrBGE9E |
| mode | integer |  | 排序模式/Sort mode (3=热门/hot, 2=时间/time) (default: 3) |  |
| next_offset | integer |  | 分页游标/Pagination cursor (default: 1) |  |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 获取视频评论列表
### 参数:
- av_id: AV号（与bv_id二选一）
- bv_id: BV号（与av_id二选一）
- mode: 排序模式（3=热门, 2=时间）
- next_offset: 分页游标
### 返回:
- 评论列表数据

## fetch_video_comments

`GET /api/v1/bilibili/app/fetch_video_comments`

<!-- Full path: /api/v1/bilibili/web/fetch_video_comments -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| bv_id | string | ✅ | 作品id/Video id | BV1M1421t7hT |
| pn | integer |  | 页码/Page number (default: 1) |  |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 获取指定视频的评论
### 参数:
- bv_id: 作品id
- pn: 页码
### 返回:
- 指定视频的评论数据

## fetch_video_danmaku

`GET /api/v1/bilibili/web/fetch_video_danmaku`

<!-- Full path: /api/v1/bilibili/web/fetch_video_danmaku -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| cid | string | ✅ | 作品cid/Video cid | 1639235405 |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 获取视频实时弹幕
### 参数:
- cid: 作品cid
### 返回:
- 视频实时弹幕

## fetch_video_detail

`GET /api/v1/bilibili/web/fetch_video_detail`

<!-- Full path: /api/v1/bilibili/web/fetch_video_detail -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| aid | string | ✅ | 作品id/Video id | 114902186396822 |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 获取单个视频详情
### 参数:
- aid: 作品id
### 返回:
- 视频详情

## fetch_video_parts

`GET /api/v1/bilibili/web/fetch_video_parts`

<!-- Full path: /api/v1/bilibili/web/fetch_video_parts -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| bv_id | string | ✅ | 作品id/Video id | BV1vf421i7hV |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 通过bv号获得视频分p信息
### 参数:
- bv_id: 作品id
### 返回:
- 视频分p信息

## fetch_video_play_info

`GET /api/v1/bilibili/web/fetch_video_play_info`

<!-- Full path: /api/v1/bilibili/web/fetch_video_play_info -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| url | string | ✅ | 视频链接/Video URL | https://www.bilibili.com/video/BV1S5uKzzE4r |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 获取单个视频播放信息
### 参数:
- url: 视频链接
### 返回:
- 视频播放信息

## fetch_video_playurl

`GET /api/v1/bilibili/web/fetch_video_playurl`

<!-- Full path: /api/v1/bilibili/web/fetch_video_playurl -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| bv_id | string | ✅ | 作品id/Video id | BV1y7411Q7Eq |
| cid | string | ✅ | 作品cid/Video cid | 171776208 |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 获取视频流地址
### 参数:
- bv_id: 作品id
- cid: 作品cid
### 返回:
- 视频流地址

## fetch_video_subtitle

`GET /api/v1/bilibili/web/fetch_video_subtitle`

<!-- Full path: /api/v1/bilibili/web/fetch_video_subtitle -->

### Parameters

| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| a_id | string | ✅ | 作品id/Video id | 114006081739452 |
| c_id | string | ✅ | 作品cid/Video cid | 28400484458 |

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 获取视频字幕信息
### 参数:
- a_id: 作品id
- c_id: 作品cid
### 返回:
- 视频字幕信息

## fetch_vip_video_playurl

`POST /api/v1/bilibili/web/fetch_vip_video_playurl`

<!-- Full path: /api/v1/bilibili/web/fetch_vip_video_playurl -->

### Parameters

No parameters required.

### Response

Standard MaxHub response: `{code, message, message_zh, data, cache_url}`

### Description

### 用途:
- 获取大会员清晰度视频流地址
### 参数:
- bv_id: 作品id
- cid: 作品cid
- cookie: 大会员用户Cookie
### 返回:
- 大会员清晰度视频流地址

---

See SKILL.md for cross-group orchestration patterns.

path: references/param-mappings.md
content: # Parameter Mappings / 参数映射

Platform: `bilibili` | Base URL: `https://www.aconfig.cn`

---

## bv_to_aid

- `bv_id` (string, required): 作品id/Video id — e.g. `BV1M1421t7hT`

## fetch_collect_folders

- `uid` (string, required): 用户UID — e.g. `178360345`

## fetch_com_popular

- `pn` (integer, optional): 页码/Page number

## fetch_comment_reply

- `bv_id` (string, required): 作品id/Video id — e.g. `BV1M1421t7hT`
- `pn` (integer, optional): 页码/Page number
- `rpid` (string, required): 回复id/Reply id — e.g. `237109455120`

## fetch_dynamic_detail

- `dynamic_id` (string, required): 动态id/Dynamic id — e.g. `1172584638000922630`

## fetch_dynamic_detail_v2

- `dynamic_id` (string, required): 动态id/Dynamic id — e.g. `1172584638000922630`

## fetch_general_search

- `keyword` (string, required): 搜索关键词/Search keyword — e.g. `火影忍者`
- `order` (string, required): 排序方式/Order method — e.g. `totalrank`
- `page` (integer, required): 页码/Page number — e.g. `1`
- `page_size` (integer, required): 每页数量/Number per page — e.g. `42`
- `duration` (integer, optional): 时长筛选/Duration filter
- `pubtime_begin_s` (integer, optional): 开始日期/Start date (10-digit timestamp)
- `pubtime_end_s` (integer, optional): 结束日期/End date (10-digit timestamp)

## fetch_get_user_id

- `share_link` (string, required): 用户分享链接/User share link — e.g. `https://b23.tv/1ZuB5NC`

## fetch_home_feed

- `idx` (integer, optional): 页面索引/Page index
- `flush` (integer, optional): 刷新标记/Flush flag (0=普通加载, 1=刷新)
- `pull` (boolean, optional): 是否下拉刷新/Pull to refresh

## fetch_hot_search

- `limit` (string, required): 返回数量/Return number — e.g. `10`

## fetch_live_room_detail

- `room_id` (string, required): 直播间ID/Live room ID — e.g. `22816111`

## fetch_live_streamers

- `area_id` (string, required): 直播分区id/Live area ID — e.g. `9`
- `pn` (integer, optional): 页码/Page number

## fetch_live_videos

- `room_id` (string, required): 直播间ID/Live room ID — e.g. `1815229528`

## fetch_one_video

- `av_id` (string, optional): AV号/AV ID — e.g. `115568241811221`
- `bv_id` (string, optional): BV号/BV ID — e.g. `BV18SCrBGE9E`

## fetch_one_video

- `bv_id` (string, required): 作品id/Video id — e.g. `BV1M1421t7hT`

## fetch_one_video_v2

- `a_id` (string, required): 作品id/Video id — e.g. `114006081739452`
- `c_id` (string, required): 作品cid/Video cid — e.g. `28400484458`

## fetch_one_video_v3

- `url` (string, required): 视频链接/Video URL — e.g. `https://www.bilibili.com/video/BV1S5uKzzE4r`

## fetch_popular_feed

- `idx` (integer, optional): 页面索引/Page index
- `last_param` (string, optional): 上一页最后一个视频ID/Last video ID

## fetch_reply_detail

- `root` (string, required): 一级评论ID/Root comment ID — e.g. `241743663521`
- `av_id` (string, optional): AV号/AV ID — e.g. `113100682434775`
- `bv_id` (string, optional): BV号/BV ID — e.g. `BV18SCrBGE9E`
- `next_offset` (integer, optional): 下一页游标/Next page cursor
- `ps` (integer, optional): 每页数量/Page size

## fetch_search_all

- `keyword` (string, required): 搜索关键词/Search keyword — e.g. `原神`
- `page` (integer, optional): 页码/Page number
- `page_size` (integer, optional): 每页数量/Page size
- `order` (integer, optional): 排序方式/Sort order (0=综合排序)

## fetch_search_by_type

- `keyword` (string, required): 搜索关键词/Search keyword — e.g. `原神`
- `search_type` (string, optional): 搜索类型/Search type (video/bangumi/pgc/live/article/user)
- `page` (integer, optional): 页码/Page number
- `page_size` (integer, optional): 每页数量/Page size
- `order` (integer, optional): 排序方式/Sort order (0=综合, 1=最新, 2=播放量, 3=弹幕数)

## fetch_user_collection_videos

- `folder_id` (string, required): 收藏夹id/collection folder id — e.g. `1756059545`
- `pn` (integer, optional): 页码/Page number

## fetch_user_dynamic

- `uid` (string, required): 用户UID — e.g. `16015678`
- `offset` (string, optional): 开始索引/offset — e.g. `953154282154098691`

## fetch_user_info

- `user_id` (string, required): 用户ID/User ID — e.g. `203680252`

## fetch_user_post_videos

- `uid` (string, required): 用户UID — e.g. `178360345`
- `pn` (integer, optional): 页码/Page number
- `order` (string, optional): 排序方式/Order method

## fetch_user_profile

- `uid` (string, required): 用户UID — e.g. `178360345`

## fetch_user_relation_stat

- `uid` (string, required): 用户UID/User UID — e.g. `178360345`

## fetch_user_up_stat

- `uid` (string, required): 用户UID/User UID — e.g. `178360345`

## fetch_user_videos

- `user_id` (string, required): 用户ID/User ID — e.g. `203680252`
- `post_filter` (string, optional): 过滤类型/Filter type (archive/season/contribute)
- `page` (integer, optional): 页码/Page number
- `ps` (integer, optional): 每页数量/Page size

## fetch_video_comments

- `av_id` (string, optional): AV号/AV ID — e.g. `115568241811221`
- `bv_id` (string, optional): BV号/BV ID — e.g. `BV18SCrBGE9E`
- `mode` (integer, optional): 排序模式/Sort mode (3=热门/hot, 2=时间/time)
- `next_offset` (integer, optional): 分页游标/Pagination cursor

## fetch_video_comments

- `bv_id` (string, required): 作品id/Video id — e.g. `BV1M1421t7hT`
- `pn` (integer, optional): 页码/Page number

## fetch_video_danmaku

- `cid` (string, required): 作品cid/Video cid — e.g. `1639235405`

## fetch_video_detail

- `aid` (string, required): 作品id/Video id — e.g. `114902186396822`

## fetch_video_parts

- `bv_id` (string, required): 作品id/Video id — e.g. `BV1vf421i7hV`

## fetch_video_play_info

- `url` (string, required): 视频链接/Video URL — e.g. `https://www.bilibili.com/video/BV1S5uKzzE4r`

## fetch_video_playurl

- `bv_id` (string, required): 作品id/Video id — e.g. `BV1y7411Q7Eq`
- `cid` (string, required): 作品cid/Video cid — e.g. `171776208`

## fetch_video_subtitle

- `a_id` (string, required): 作品id/Video id — e.g. `114006081739452`
- `c_id` (string, required): 作品cid/Video cid — e.g. `28400484458`


Security scan verdicts — ClawScan: suspicious | static analysis: clean | VirusTotal:  | SkillSpector: suspicious (CRITICAL)