# Bilibili Data through toolfare

> Public Bilibili data — video search with length, date and sort filters, video details, comments, uploader profiles and an uploader’s videos — answered inside Claude, ChatGPT, Codex or Cursor. No Bilibili developer account or scraping setup of your own: each call is quoted before it runs and paid from one toolfare balance.

Page: https://toolfare.ai/bilibili-data

## Use it from your agent

Paste this into Claude Code, Codex, Cursor or any agent with a shell:

> Set up https://toolfare.ai/skill.md, then use toolfare to find the most-played Bilibili videos about “机械键盘” from the last month and summarise what they recommend

Apps without a terminal connect toolfare as an MCP server: https://toolfare.ai/docs#connect

## Use it from a script

```sh
mkdir -p ~/.local/bin
curl -fsSL 'https://toolfare.ai/toolfare/toolfare.mjs' -o ~/.local/bin/toolfare
chmod +x ~/.local/bin/toolfare
export PATH="$HOME/.local/bin:$PATH"
export TOOLFARE_MCP_URL='https://api.toolfare.ai/mcp'
toolfare login
```

Sign in once per machine; the CLI renews the sign-in itself. On a CI runner or another server,
create an API key in the toolfare console and set it as `TOOLFARE_API_KEY` instead of signing in.
Paid calls on one sign-in or key run one at a time. `--max-cost` refuses a call quoted above
that many credits (1,000 credits = $3).

## Tools

### An uploader’s public profile

Tool: `bilibili_data_profile`

Public profile of a user

Required parameters: user_id

Cost: From $0.003

Ask:
- Pull the public profile of this Bilibili uploader.
- How big is this Bilibili channel?

### Videos on any topic, filtered and sorted

Tool: `bilibili_data_search`

Videos matching a keyword

Required parameters: keyword

Optional parameters: length, order, page, page_size, published_after, published_before

Cost: From $0.003

Ask:
- What are the most-played Bilibili videos about our product category this year?
- Find Bilibili reviews of this phone over 10 minutes long, newest first.
- Which videos on “AI 绘画” have the most danmaku?

### What an uploader has published

Tool: `bilibili_data_user_videos`

Videos published by a user

Required parameters: user_id

Optional parameters: order, page, page_size

Cost: From $0.003

Ask:
- What are this uploader’s most-played videos?
- List this channel’s latest uploads.

### Everything public about one video

Tool: `bilibili_data_video`

Details of a video

Required parameters: bv_id

Cost: From $0.003

Ask:
- Give me the details of BV1xx411c7mD.
- How did this Bilibili video perform?

### What viewers say in the comments

Tool: `bilibili_data_video_comments`

Comments on a video

Required parameters: bv_id

Optional parameters: page

Cost: From $0.003

Ask:
- What are viewers saying in the comments of this Bilibili video?
- Summarise the main criticisms in this video’s comment section.
## Price

From $0.003 Quoted before each call; the final charge follows the returned usage. Pay per call from one balance.

Balances and top-ups are in US dollars. Quotes and `--max-cost` count credits: 1,000 credits = $3 ($0.003 each).

## Use it when

- You want long-form video reviews and explainers on a product, game or technology, which Bilibili is strong in.
- You are vetting a Bilibili uploader for a sponsorship and want their profile and top videos.
- You need the comments under a video summarised — what viewers praise, question or dislike.
- You want the videos on a topic within a date range, ranked by plays, danmaku or favourites.

## Look elsewhere when

- You want YouTube videos rather than Bilibili.
- You need private data — messages, analytics of a channel you don’t control, or anything behind a login. Only public data is available.
- You want the danmaku themselves or the video file. These tools return video details, comments and search results.

## Limits

- Public data only — nothing that requires being signed in to Bilibili.
- Profiles and an uploader’s videos take a numeric mid; a video and its comments take a BV id. Keyword search is the way in when you have neither.
- Search date filters take Unix timestamps in seconds; your AI converts dates for you.
- Results come a page at a time. Each call is a snapshot at the moment it runs, with no history of past values.
- Pay as you go from your toolfare balance, in US dollars; there is no subscription. A call runs when your balance covers its quote.
