Bilibili Source Fetcher
Fetch real, citable Bilibili video metadata, live engagement stats, and full danmaku text from a BVID, av number, b23.tv link, or URL — no login required.
Data & AnalyticsIntermediate★ 1,323⑂ 212AI score 9/10Last updated: Aug 8, 2026
What it does
Pulls verifiable, timestamped data for any Bilibili (B站) video in a single API call:
- Title, UP (creator) name and follower count, publish date, partition, tags, duration
- Live stats: views, likes, coins, favorites, shares, replies, danmaku count
- Per-part
cidvalues plus the full danmaku (bullet-comment) text - Subtitles are supported too, but require your own Bilibili login cookies
The guiding rule is "never fabricate a number." If a value can't be fetched it writes 未获取/未核实, and every live metric must be cited with its fetched_at timestamp. The bundled scripts also handle the usual network traps: stripping local proxies, sending a browser User-Agent + Referer to dodge HTTP 412, and retrying with backoff.
Who it's for
- Researchers ingesting Bilibili sources into a knowledge base
- Marketers and creators doing "why did this video perform" post-mortems
- Anyone verifying a Chinese creator's claimed view or follower numbers
- Analysts tracking Chinese content trends who need hard numbers, not estimates
Examples
- Case study writing: run
scripts/bili-fetch.sh BV1xxxxxxxxxand cite 48,000 views / 1,200 likes / 180 coins together with thefetched_attimestamp. - Audience reaction analysis: run
scripts/bili-danmaku.sh BV1xxxxxxxxxto dump every time-synced comment and see exactly where viewers reacted. - Drift check: after a long gap, run
scripts/bili-selftest.shto get a PASS/FAIL row per capability before trusting any output.
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the bilibili-source folder from the GitHub repo daymade/claude-code-skills into my ~/.claude/skills/bilibili-source/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/daymade/claude-code-skills.git && mkdir -p ~/.claude/skills && cp -r claude-code-skills/bilibili-source ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal (Terminal on macOS, WSL or Git Bash on Windows).
- Clone the repository:
git clone https://github.com/daymade/claude-code-skills.git - Copy the skill into your Claude Code skills folder:
mkdir -p ~/.claude/skills cp -r claude-code-skills/bilibili-source ~/.claude/skills/ - Make the scripts executable:
chmod +x ~/.claude/skills/bilibili-source/scripts/*.sh - Ensure
curlandjqare installed (brew install jqon macOS,sudo apt install jqon Ubuntu). Installyt-dlpas well if you want subtitles. - Restart Claude Code, then ask something like "fetch the stats for this Bilibili video: BV1xxxxxxxxx" and the skill triggers automatically.
- Verify everything works by running
~/.claude/skills/bilibili-source/scripts/bili-selftest.shand checking for PASS rows.
View source on GitHub ↗License: MIT