How do I fix Bilibili API error -412 or -352 anti-bot blocks?
Bilibili errors -412 (request blocked) and -352 (risk check failed) are triggered by missing WBI signatures, datacenter IPs or missing buvid3 cookies. FeedMCP handles all Bilibili access server-side at $0.002/call (search $0.003), with zero charge on failures.
Works cleanly from cloud hosts (Cloudflare Workers, AWS, Vercel) and AI agents without datacenter IP blocks. See Bilibili APIs.
Endpoints and pricing
| Endpoint | ID | Price | What it returns |
|---|---|---|---|
| Bilibili video | bilibili.videos.get |
$0.002 | One video: title, description, cover, length, uploader, plays, likes, coins, favorites, danmaku and comments |
| Bilibili video comments | bilibili.videos.comments.list |
$0.002 | Comments under a video: text, time, commenter, likes and reply count, page by page |
| Bilibili video search | bilibili.videos.search |
$0.003 | Search videos by keyword, ordered by relevance, most played or newest |
| Bilibili uploader videos | bilibili.users.videos.list |
$0.002 | An uploader's videos, newest first, page by page |
Pay per call with failed calls free. Verify live prices for free via GET https://api.feedmcp.com/v1/catalog/prices and cap per-call spend with X-Max-Price.
How to do it
Option 1: Ask your AI via MCP
- Sign up in the console ($0.10 free trial credit, no card) and create an API key with a spend cap.
- Add
https://api.feedmcp.com/mcpto Claude, Cursor, Codex or Cherry Studio via the MCP setup page or Integrations. - Ask your AI:
Fetch view, danmaku and comment counts for this Bilibili creator's latest 10 videos
Option 2: Call the HTTP API directly
curl "https://api.feedmcp.com/v1/bilibili/videos/get" \
-H "Authorization: Bearer $FEEDMCP_API_KEY" \
-H "X-Max-Price: 0.002"
Key facts at a glance
| Item | Detail |
|---|---|
| Starting price | $0.002 and up (pay per call, no subscription) |
| Failed calls | Free (charged: false) |
| Spend guardrails | Per-key spend cap + X-Max-Price + Idempotency-Key |
| Data scope | Public data only; no platform account login required |
| Access | Remote MCP (Streamable HTTP) + REST API + OpenAPI |
Questions
How do I fix Bilibili API error -412 or -352 anti-bot blocks?
Bilibili errors -412 (request blocked) and -352 (risk check failed) are triggered by missing WBI signatures, datacenter IPs or missing buvid3 cookies. FeedMCP handles all Bilibili access server-side at $0.002/call (search $0.003), with zero charge on failures.
How much do these endpoints cost? Are failed calls billed?
Endpoints on this page start at $0.002 per call with no monthly subscription and non-expiring balances. Bad parameters, timeouts, upstream errors and missing objects are free. New accounts receive $0.10 trial credit, no card required.
Do I need my own platform account or cookies?
No. FeedMCP reads public data only; calls never go through your personal accounts.
Related answers
- How to use TikHub-style Douyin, Xiaohongshu and TikTok endpoints in Claude or Cursor via a hosted MCP server?
- How can AI read Bilibili videos, comments, creator uploads and trending charts?
- How do I export Bilibili video comments and nested replies?
- MediaCrawler keeps breaking or requiring login—what is a reliable API alternative?
- How do I fix Xiaohongshu error 461 or missing xsec_token when fetching notes?
- What are Douyin a_bogus, msToken and sec_uid, and how do I avoid signing them?