Bilibili API

How to connect Bilibili to Claude

Add the Firecrawl connector to Claude once and it can call the Bilibili API and every other provider in Firecrawl Alexandria, with no Bilibili integration code.

Open Markdown

To connect Bilibili to Claude, add the Firecrawl connector to Claude, sign in on a Firecrawl team with Alexandria enabled, and ask for Bilibili data in plain language. The connection works in Claude on the web, Claude Desktop and Cowork, and you set it up once.

Claude uses Bilibili as an MCP tool through Firecrawl's hosted MCP server, so you don't install or host a separate MCP server for Bilibili.

Claude is Anthropic's AI assistant. Connectors give it tools from other services, and the Firecrawl connector adds web search, scraping and every data provider in Firecrawl Alexandria.

How do I connect Bilibili to Claude?

  1. Add the Firecrawl connector

    Open the Firecrawl connector in Claude's connector directory and select Connect to Claude. In Claude Desktop you can also go to Customize, then Connectors, and search for Firecrawl.

    The Firecrawl connector in Claude's directory with the Connect to Claude button
  2. Connect your Firecrawl account

    Claude opens Firecrawl in your browser. Sign in, choose a team with Alexandria enabled, and approve access. No account yet? You can create one for free in the same flow.

    Firecrawl's consent screen listing what claude.ai can do, including running Alexandria data providers
  3. Turn on Firecrawl in a chat

    In a new conversation, open the + menu, go to Connectors and switch on Firecrawl.

    Claude's + menu open on Connectors with the Firecrawl switch turned on
  4. Ask Claude for the data

    Ask in plain language and mention Bilibili or Firecrawl Alexandria. Claude finds the Bilibili capability that fits, checks its inputs and runs it. For example:

    Use Firecrawl to find the first 10 Bilibili videos matching Python 教程, ordered by view count, with uploader, publication date and video links.

What can Claude do with Bilibili?

Bilibili (bilibili.com) public video metadata: video detail and batch verification by BV/av id, keyword search for videos and uploaders, uploader profiles and archive listings, comments and time-limited DASH stream URLs, all anonymous through the site's web JSON API with WBI request signing.

Claude can run any of Bilibili's 9 capabilities through Alexandria. Each call is billed in Firecrawl credits on your Firecrawl team.

  • Search uploaders: Search uploaders (users) by name through the WBI-signed search API (search_type=bili_user): mid, name, signature, follower and video counts, level, verification and space URL per hit. Costs 5 Firecrawl credits per call.
  • Search videos: Search videos by keyword through the WBI-signed /x/web-interface/wbi/search/type API (search_type=video): bvid, aid, title, uploader mid/name, partition, counters, publish time, tags and canonical URL per hit, with sort order and partition filter. The site caps hit counts at 1000 (page_size × pages). Costs 5 Firecrawl credits per call.
  • Suggest: Search-box suggestions for a term from /x/web-interface/suggest: up to 10 completions as plain text. Costs 5 Firecrawl credits per call.
  • Uploader profile: One uploader's public card from /x/web-interface/card: mid, name, avatar, signature, level, official verification title, follower/following counts, archive and article counts, total likes and the space URL. Costs 5 Firecrawl credits per call.
  • Uploader videos: An uploader's archives, newest first, from the stateless /x/series/recArchivesByKeywords listing (the cookie-gated space/wbi/arc/search is not used): bvid, aid, title, description, cover, publish time, duration and play count per video, with page/total. Optional keyword filter within the uploader's videos. An unknown mid is not_found (checked against the uploader card). Costs 5 Firecrawl credits per call.
  • Video batch: Verify a list of up to 50 videos in one call: for each bvid or aid, the same metadata as video_detail (title, uploader, canonical URL, counters, parts) or `not_found`. Calls the WBI-signed view API once per id; fails with not_found only when no id resolves. Costs 5 Firecrawl credits per call.
  • Video comments: Top-level comments on a video from the WBI-signed /x/v2/reply/wbi/main API, hot (mode 3) or newest (mode 2): reply id, commenter mid/name/level, text, likes, sub-reply count and the embedded preview sub-replies, with the total count and an opaque continuation cursor. Costs 5 Firecrawl credits per call.
  • Video detail: One video's metadata from the WBI-signed /x/web-interface/wbi/view API: bvid, aid, cid, title, description, cover, publish time, duration, partition, uploader (mid, name), play/like/coin/favourite/comment counters, every part with its cid, and optionally the archive tags. Identify the video by bvid, aid or a pasted bilibili.com/video URL. Costs 5 Firecrawl credits per call.
  • Video streams: Direct DASH stream URLs for one video part from /x/player/playurl (fnval=16): every video and audio representation with quality id, codec, resolution, bandwidth, primary and backup CDN URLs and their expiry, plus the quality list the site offers. Requested with the web player's anonymous trial flag (try_look=1), so logged-out access reaches 1080p (quality 80) when the archive has it; 1080P+ (112) and 4K require a login the program does not have. URLs expire and must be fetched with a bilibili.com Referer. Costs 5 Firecrawl credits per call.

What should I ask Claude?

Name Bilibili or Firecrawl Alexandria in the prompt so Claude reaches for it. Each example opens in Claude with the prompt filled in.

Troubleshooting

Why doesn't Claude use Bilibili?

The connector has to be on in each conversation. Open the + menu, go to Connectors and check that Firecrawl is switched on, then ask again and name Bilibili or Firecrawl Alexandria in the prompt.

Claude says it can't reach the Firecrawl server. What should I do?

Open Customize, then Connectors, disconnect Firecrawl and connect it again. On a Team or Enterprise plan, an owner has to allow the connector before members can add it.

Why does Claude say Bilibili isn't available?

Alexandria needs a Firecrawl team with Alexandria enabled. Reconnect Firecrawl and pick that team on the consent screen.

Use Bilibili in other AI apps

The same Firecrawl account reaches Bilibili from other AI apps. Pick one for its setup steps:

Other data providers you can connect to Claude

Frequently Asked Questions

What is Firecrawl?

Firecrawl is the web data API to search, scrape and interact with the web at scale. It turns websites into clean, LLM-ready data for AI agents and apps. The Firecrawl connector brings those tools into Claude, along with every data provider in Firecrawl Alexandria.

What is Firecrawl Alexandria?

Firecrawl Alexandria is Firecrawl's library of 550+ data providers for AI agents, Bilibili among them. Each provider returns structured data through documented capabilities. Claude finds the capability that fits your question and calls it through the Firecrawl connector, so you don't write any integration code. Alexandria needs a Firecrawl account signed in on a team with Alexandria enabled, or an API key from such a team; keyless connections don't include it.

Is there a Bilibili MCP server for Claude?

Claude reaches Bilibili through Firecrawl's hosted MCP server, which serves Bilibili and every other Alexandria provider as tools. Add the Firecrawl connector once and you don't install or host a separate MCP server for Bilibili.

What does connecting Bilibili to Claude unlock?

Claude can run all 9 of Bilibili's capabilities, including Search uploaders, Search videos and Suggest, from any chat, with structured results it can sort, compare and summarize. For example, ask: "Use Firecrawl to find the first 10 Bilibili videos matching Python 教程, ordered by view count, with uploader, publication date and video links." In the same conversation, Claude can combine Bilibili with Firecrawl's web search and scraping and the other providers in Firecrawl Alexandria.

Do I need my own Bilibili account or API key to use it in Claude?

No. Claude calls Bilibili through Firecrawl Alexandria and each call is billed in Firecrawl credits, so you don't need a separate Bilibili account or API key.

How much does it cost to use Bilibili in Claude?

Each Bilibili call costs 5 Firecrawl credits. The capability list on this page shows each price and its unit. The credits come from the Firecrawl team you connect to Claude, and finding the right capability is free.

Can Claude use other providers besides Bilibili?

Yes. The same Firecrawl connector reaches every provider in Firecrawl Alexandria, along with Firecrawl's web search and scraping, so you connect once.

Can I use Bilibili in other AI apps?

Yes. Connect Firecrawl to ChatGPT, Cursor, Grok Bot, Muse signed in on a Firecrawl team with Alexandria enabled, or use the Firecrawl MCP server, CLI or API with an API key from that team, and the same Bilibili capabilities are available there. Keyless connections don't include Alexandria.

//
Get started
//
Ready to build?
Start getting web context for free and scale seamlessly as your project expands. No credit card needed.
Are you an AI agent? See setup options