# Bilibili (B站) data for AI agents

> ToolSocket gives Claude, ChatGPT, Cursor, Codex and any MCP or REST client live access to Bilibili (B站) — videos, uploaders, comments, danmaku and rankings — through 63 ready-made tools. No Bilibili account, scraper or API key of your own is needed: connect https://toolsocket.top/mcp once and pay per call (most calls $0.0015).

ToolSocket 让 Claude、ChatGPT、Cursor、Codex 等任何支持 MCP 或 REST 的 AI 智能体，直接读取B站的实时数据：视频、UP 主、评论、弹幕和排行榜数据，共 63 个工具。不用注册B站账号、不用写爬虫，接入一个地址即可，按次计费（大多 $0.0015/次）。

## Connect

- MCP (Claude.ai, ChatGPT, Claude Code, Cursor, VS Code, Codex): `https://toolsocket.top/mcp` — OAuth sign-in or `Authorization: Bearer ts_live_…`
- Claude Code: `claude mcp add --transport http toolsocket https://toolsocket.top/mcp`
- Any agent that reads skills: `set up https://toolsocket.top/SKILL.md`
- Setup for every client: https://toolsocket.top/docs.md

## Example

Ask your agent: "Which Bilibili videos about AI coding have the most views?" / 「B 站搜「AI 编程」，播放量最高的视频是哪些？」

```bash
curl -s -X POST https://toolsocket.top/v1/run -H "Authorization: Bearer $TOOLSOCKET_API_KEY" \
  -H "content-type: application/json" -d '{"tool":"bilibili#web/fetch_hot_search","input":{"limit":10},"wait":30}'
```

## Tools (63)

| Tool | ID | Price | What it does |
|---|---|---|---|
| Bilibili · Get single video data (web) · 哔哩哔哩 · 获取单个视频详情信息（web） | `bilibili#web/fetch_one_video` | $0.0015 / call | Get single video data |
| Bilibili · Get single video data V2 (web) · 哔哩哔哩 · 获取单个视频详情信息V2（web） | `bilibili#web/fetch_one_video_v2` | $0.003 / call | Get single video data V2 |
| Bilibili · Get single video data V3 (web) · 哔哩哔哩 · 获取单个视频详情信息V3（web） | `bilibili#web/fetch_one_video_v3` | $0.0015 / call | Get single video data V3 |
| Bilibili · Get single video detail (web) · 哔哩哔哩 · 获取单个视频详情（web） | `bilibili#web/fetch_video_detail` | $0.0015 / call | Get single video detail |
| Bilibili · Get single video play info (web) · 哔哩哔哩 · 获取单个视频播放信息（web） | `bilibili#web/fetch_video_play_info` | $0.0015 / call | Get single video play info |
| Bilibili · Get video subtitle info (web) · 哔哩哔哩 · 获取视频字幕信息（web） | `bilibili#web/fetch_video_subtitle` | $0.0015 / call | Get video subtitle info |
| Bilibili · Get hot search data (web) · 哔哩哔哩 · 获取热门搜索信息（web） | `bilibili#web/fetch_hot_search` | $0.0015 / call | Get hot search data |
| Bilibili · Get general search data (web) · 哔哩哔哩 · 获取综合搜索信息（web） | `bilibili#web/fetch_general_search` | $0.0015 / call | Get general search data |
| Bilibili · Get video playurl (web) · 哔哩哔哩 · 获取视频流地址（web） | `bilibili#web/fetch_video_playurl` | $0.0015 / call | Get video playurl |
| Bilibili · Get user homepage video data (web) · 哔哩哔哩 · 获取用户主页作品数据（web） | `bilibili#web/fetch_user_post_videos` | $0.0015 / call | Get user post video data |
| Bilibili · Get user homepage video data V2 (web) · 哔哩哔哩 · 获取用户主页作品数据V2（web） | `bilibili#web/fetch_user_post_videos_v2` | $0.0015 / call | Get user post video data, optionally searching by keyword within that user's works. |
| Bilibili · Get user collection folders (web) · 哔哩哔哩 · 获取用户所有收藏夹信息（web） | `bilibili#web/fetch_collect_folders` | $0.0015 / call | Get user collection folders |
| Bilibili · Gets video data from a collection folder (web) · 哔哩哔哩 · 获取指定收藏夹内视频数据（web） | `bilibili#web/fetch_user_collection_videos` | $0.0015 / call | Gets video data from a collection folder |
| Bilibili · Get information of specified user (web) · 哔哩哔哩 · 获取指定用户的信息（web） | `bilibili#web/fetch_user_profile` | $0.0015 / call | Get information of specified user |
| Bilibili · Get user relation stat (following and followers) (web) · 哔哩哔哩 · 获取用户关系状态统计（web） | `bilibili#web/fetch_user_relation_stat` | $0.0015 / call | Get user relation stat (following count and follower count) |
| Bilibili · Get comprehensive popular video information (web) · 哔哩哔哩 · 获取综合热门视频信息（web） | `bilibili#web/fetch_com_popular` | $0.0015 / call | Get comprehensive popular video information |
| Bilibili · Get comments on the specified video (web) · 哔哩哔哩 · 获取指定视频的评论（web） | `bilibili#web/fetch_video_comments` | $0.0015 / call | Get comments on the specified video |
| Bilibili · Get reply to the specified comment (web) · 哔哩哔哩 · 获取视频下指定评论的回复（web） | `bilibili#web/fetch_comment_reply` | $0.0015 / call | Get reply to the specified comment |
| Bilibili · Get dynamic information of specified user (web) · 哔哩哔哩 · 获取指定用户动态（web） | `bilibili#web/fetch_user_dynamic` | $0.0015 / call | Get dynamic information of specified user |
| Bilibili · Get dynamic detail (web) · 哔哩哔哩 · 获取动态详情（web） | `bilibili#web/fetch_dynamic_detail` | $0.0015 / call | Get detail information of specified dynamic (v1 API) |
| Bilibili · Get dynamic detail v2 (web) · 哔哩哔哩 · 获取动态详情v2（web） | `bilibili#web/fetch_dynamic_detail_v2` | $0.0015 / call | Get detail information of specified dynamic (v2 API) |
| Bilibili · Get Video Danmaku (web) · 哔哩哔哩 · 获取视频实时弹幕（web） | `bilibili#web/fetch_video_danmaku` | $0.0015 / call | Get Video Danmaku |
| Bilibili · Get information of specified live room (web) · 哔哩哔哩 · 获取指定直播间信息（web） | `bilibili#web/fetch_live_room_detail` | $0.0015 / call | Get information of specified live room |
| Bilibili · Get live video data of specified room (web) · 哔哩哔哩 · 获取直播间视频流（web） | `bilibili#web/fetch_live_videos` | $0.0015 / call | Get live video data of specified room |
| Bilibili · Get a list of all live areas (web) · 哔哩哔哩 · 获取所有直播分区列表（web） | `bilibili#web/fetch_all_live_areas` | $0.0015 / call | Get a list of all live areas |
| Bilibili · Generate aid by bvid (web) · 哔哩哔哩 · 通过bv号获得视频aid号（web） | `bilibili#web/bv_to_aid` | $0.0015 / call | Generate aid by bvid |
| Bilibili · Extract user ID (web) · 哔哩哔哩 · 提取用户ID（web） | `bilibili#web/fetch_get_user_id` | $0.0015 / call | Extract user ID |
| Bilibili · Get single video data (app) · 哔哩哔哩 · 获取单个视频详情信息（app） | `bilibili#app/fetch_one_video` | $0.0015 / call | Get single video data (APP API) |
| Bilibili · Get video comments (app) · 哔哩哔哩 · 获取视频评论列表（app） | `bilibili#app/fetch_video_comments` | $0.0015 / call | Get video comments |
| Bilibili · Get reply detail (app) · 哔哩哔哩 · 获取二级评论回复（app） | `bilibili#app/fetch_reply_detail` | $0.0015 / call | Get reply detail (second level comments) |
| Bilibili · Get user videos (app) · 哔哩哔哩 · 获取用户投稿视频（app） | `bilibili#app/fetch_user_videos` | $0.0015 / call | Get user uploaded videos |
| Bilibili · Get user info (app) · 哔哩哔哩 · 获取用户信息（app） | `bilibili#app/fetch_user_info` | $0.0015 / call | Get user info |
| Bilibili · Get home feed (app) · 哔哩哔哩 · 获取主页推荐视频流（app） | `bilibili#app/fetch_home_feed` | $0.0015 / call | Get home feed (recommended videos) |
| Bilibili · Get popular feed (app) · 哔哩哔哩 · 获取热门推荐（app） | `bilibili#app/fetch_popular_feed` | $0.0015 / call | Get popular feed |
| Bilibili · search all (app) · 哔哩哔哩 · 综合搜索（app） | `bilibili#app/fetch_search_all` | $0.0015 / call | search all (returns all types of search results) |
| Bilibili · search by type (app) · 哔哩哔哩 · 分类搜索（app） | `bilibili#app/fetch_search_by_type` | $0.0015 / call | search by type |
| Bilibili · Get cinema tab (app) · 哔哩哔哩 · 获取影视推荐（app） | `bilibili#app/fetch_cinema_tab` | $0.0015 / call | Get cinema tab (movies/TV recommendations) |
| Bilibili · Get bangumi tab (app) · 哔哩哔哩 · 获取番剧推荐（app） | `bilibili#app/fetch_bangumi_tab` | $0.0015 / call | Get bangumi tab (anime recommendations) |
| Bilibili · Search Huahuo creators or content (huahuo) · 哔哩哔哩 · UP主广场搜索（搜UP主 / 搜内容）（huahuo） | `bilibili#huahuo/search_upper` | $0.015 / call | Search creators by nickname, UID, or content keyword in the Huahuo marketplace. |
| Bilibili · Search live creators (huahuo) · 哔哩哔哩 · 直播广场搜索（huahuo） | `bilibili#huahuo/search_live_upper` | $0.015 / call | Search live creators for branded-content or live-commerce collaborations. |
| Bilibili · Get creator rankings (huahuo) · 哔哩哔哩 · UP主榜单（huahuo） | `bilibili#huahuo/popular_up_list` | $0.009 / call | Retrieve breakout, high-value, or top-tier creator rankings for rapid discovery. |
| Bilibili · Get X-Huo ranking industries (huahuo) · 哔哩哔哩 · X火榜行业下拉（huahuo） | `bilibili#huahuo/x_huo_industry_drop` | $0.009 / call | Retrieve the two-level X-Huo industry tree used by creator and product rankings. |
| Bilibili · Get X-Huo ranking periods (huahuo) · 哔哩哔哩 · X火榜可选期数（huahuo） | `bilibili#huahuo/x_huo_date_options` | $0.009 / call | Get valid monthly or quarterly X-Huo periods for popular_up_x_huo requests. |
| Bilibili · Get creator ranking categories (huahuo) · 哔哩哔哩 · UP主榜单分区下拉（huahuo） | `bilibili#huahuo/popular_up_tid_drop` | $0.009 / call | Get content categories accepted by popular_up_list as tid_name values. |
| Bilibili · Get Huahuo video rankings (huahuo) · 哔哩哔哩 · 视频榜单（huahuo） | `bilibili#huahuo/popular_avid_list` | $0.009 / call | Retrieve Huahuo video rankings for a selected industry or all industries. |
| Bilibili · Get video ranking industries (huahuo) · 哔哩哔哩 · 视频榜单行业下拉（huahuo） | `bilibili#huahuo/popular_avid_category_drop` | $0.009 / call | Get industry names supported by the Huahuo video ranking endpoint. |
| Bilibili · Get creator marketplace filter dictionaries (huahuo) · 哔哩哔哩 · 广场筛选字典（huahuo） | `bilibili#huahuo/square_static_info` | $0.009 / call | Retrieve the primary filter dictionaries used to build creator marketplace search forms. |
| Bilibili · Get creator filter panel configuration (huahuo) · 哔哩哔哩 · 搜UP主筛选面板配置（huahuo） | `bilibili#huahuo/upper_label_tree` | $0.009 / call | Retrieve the creator-filter configuration for a selected industry strategy panel. |
| Bilibili · Get MCN organizations (huahuo) · 哔哩哔哩 · MCN机构下拉（huahuo） | `bilibili#huahuo/mcn_drop` | $0.009 / call | Retrieve MCN organizations available for creator search filters. |
| Bilibili · Get region options (huahuo) · 哔哩哔哩 · 地域下拉（huahuo） | `bilibili#huahuo/region_drop` | $0.009 / call | Retrieve the province/city hierarchy used by creator residence filters. |
| Bilibili · Get video partition options (huahuo) · 哔哩哔哩 · 稿件分区下拉（huahuo） | `bilibili#huahuo/partition_drop` | $0.009 / call | Retrieve video content categories used to filter creators or content by topic. |
| Bilibili · Get audience packages (huahuo) · 哔哩哔哩 · 人群包列表（huahuo） | `bilibili#huahuo/dmp_pkg_list` | $0.009 / call | Retrieve custom audience packages available to the current advertiser |
| Bilibili · Get commerce category options (huahuo) · 哔哩哔哩 · 带货类目下拉（huahuo） | `bilibili#huahuo/effect_goods_drop` | $0.009 / call | Retrieve product categories supported by content-commerce filters. |
| Bilibili · Get live-streaming guilds (huahuo) · 哔哩哔哩 · 直播公会下拉（huahuo） | `bilibili#huahuo/live_guild_drop` | $0.009 / call | Retrieve live-streaming guilds available as marketplace filters. |
| Bilibili · Get live-streaming areas (huahuo) · 哔哩哔哩 · 直播分区下拉（huahuo） | `bilibili#huahuo/live_area_list` | $0.009 / call | Retrieve live content categories used by live creator marketplace filters. |
| Bilibili · Get live creator persona tags (huahuo) · 哔哩哔哩 · 直播人设标签（huahuo） | `bilibili#huahuo/live_parent_tag` | $0.009 / call | Retrieve persona labels describing live creators' style and content positioning. |
| Bilibili · Get live-commerce categories (huahuo) · 哔哩哔哩 · 直播带货类目（huahuo） | `bilibili#huahuo/live_good_category` | $0.009 / call | Retrieve primary live-commerce product categories for filtering creators |
| Bilibili · Get persona tags (huahuo) · 哔哩哔哩 · 人设标签字典（huahuo） | `bilibili#huahuo/tag_character` | $0.009 / call | Retrieve persona tags describing a creator's image and account positioning. |
| Bilibili · Get occupation tags (huahuo) · 哔哩哔哩 · 职业标签字典（huahuo） | `bilibili#huahuo/tag_occupation` | $0.009 / call | Retrieve occupation tags used for creator profiling and filtering. |
| Bilibili · Get commercial tags (huahuo) · 哔哩哔哩 · 商业标签字典（huahuo） | `bilibili#huahuo/tag_commercial` | $0.009 / call | Retrieve tags describing creators' commercial collaboration characteristics and capabilities. |
| Bilibili · Get industry tags (huahuo) · 哔哩哔哩 · 行业标签字典（huahuo） | `bilibili#huahuo/industry_tags` | $0.009 / call | Retrieve industry tags used in advertiser and content collaboration scenarios. |
| Bilibili · Get content-style tags (huahuo) · 哔哩哔哩 · 内容风格字典（huahuo） | `bilibili#huahuo/label_char_style` | $0.009 / call | Retrieve tags describing creators' content presentation and visual style. |
| Bilibili · Get current advertiser account information (huahuo) · 哔哩哔哩 · 当前广告主账号信息（huahuo） | `bilibili#huahuo/account_session_info` | $0.009 / call | Retrieve the current advertiser's identity and role information to |
