Skip to main content
Glama

Bilibili Scraper: Videos, Comments, Danmaku, Trends · $0.07/1K

Bilibili Search, Comments, Danmaku & Trending

search_bilibili
Read-onlyIdempotent

Bilibili (China) without login: search videos or users by keyword (date range, length, sort, Chinese brand names added automatically), all videos of a channel with its profile, full stats of a video with its top comments and their replies, every danmaku (bullet comment) with the second it appears at, a danmaku profile of how viewers reacted along the video, trending now and the ranking of 20 categories, and Chinese sentiment on comments. Clean English fields. Use for Bilibili videos and users; for Douyin use get_douyin_data. Returns {items: [...]} with one object per result, for example: {"type":"video","source":"search","query":"minecraft","rank":1,"bvid":"BV1izyiztEqo","url":"https://www.bilibili.com/video/BV1izyiztEqo","title":"...","author":"...","views":39302,"likes":970,"comments":246,"durationSec":69,"publishedAt":"2026-11-25T01:53:12Z","matchedIn":["title","tag"],"status":"ok"} Cost: pay per result with an Apify token (prices on apify.com/pomlabs), or US$ 0.05 per call with x402 (up to 100 results of 1 query). Read-only: it only reads public data.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "q": "<q>"
    },
    "name": "search_bilibili"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesKeyword, channel link or uid:<id>, video link or BV id, or popular. Comma-separate several (max 3).
maxNoResults per query (1-200, default 40; 1-10 when comments or danmaku are asked).
sortNoVideo search order (default relevance).
typeNoWhat keywords search: videos (default) or users.
afterNoOnly videos published after this date (2026-11-01) or within a period (7 days, 3 months). Search and channel.
beforeNoOnly videos published before this date (2026-11-20).
aliasesNoOther names searched together with the keyword (comma-separated), e.g. the Chinese name of a brand.
danmakuNoDanmaku profile per video: count, unique senders, per-minute timeline, peak minute, repeated phrases and a sample.
end_secNoDanmaku rows: up to this second of the video.
repliesNoComments: also return the replies of each top comment (first 20).
categoryNoFor q=popular: the ranking of this category instead of the popular list.
commentsNoAlso return the top comments of each video.
durationNoVideo length filter (minutes).
localizeNoAlso search the Chinese name of a known Latin brand (nike -> 耐克). Default true.
sentimentNoChinese sentiment (-1 to 1, positive/neutral/negative) on titles, comments and the danmaku profile.
start_secNoDanmaku rows: from this second of the video.
subtitlesNoTranscript of each video from its subtitles (the uploader's and Bilibili's AI ones: Chinese speech and an AI English translation on most videos), with each line's start and end second.
max_danmakuNoDanmaku rows per video (1-2000, default 500).
comment_sortNoComments: popular (default), newest first, by likes, or both lists merged.
danmaku_rowsNoEvery danmaku (bullet comment) as a row: text, second in the video, color, mode, send time, sender hash.
max_commentsNoComments per video (1-200, default 20), paged through the popular or newest list.
profile_onlyNoFor channel queries: only the channel profile, no videos.
subtitle_langNoTranscript: only these languages (comma-separated: zh, en, ja...).
channel_keywordNoFor channel queries: only videos matching this keyword.
danmaku_keywordsNoDanmaku rows: only those containing one of these words (comma-separated).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint, openWorldHint, idempotentHint and destructiveHint=false, and the description's closing 'Read-only: it only reads public data' largely restates that. It does add genuinely useful non-annotation context – no login required, English-normalized fields, and a concrete pricing model (pay-per-result via Apify token or US$0.05/call via x402, capped at 100 results).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The capability sentence is one long run-on list that is hard to parse on first read, and the closing 'Read-only: it only reads public data' duplicates the annotations. The output example and cost disclosure are well-placed and front-loaded, but the middle section buries the lede.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 25-parameter tool with no output schema, the description compensates well: it names the return envelope ({items: [...]}), supplies a full example object with field names, discloses cost, and states safety. An agent has enough to call it correctly and interpret results.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all 25 parameters and a baseline of 3 applies. The description still adds value by explaining emergent behavior not visible per-parameter: Chinese brand names are added automatically, date/length/sort filters apply to search and channel queries, and danmaku rows carry the exact second a comment appears.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening clause names the platform, the no-login constraint, and then enumerates concrete capabilities: keyword search of videos/users, channel profiles, video stats, top comments with replies, per-second danmaku, danmaku profiles, trending, 20-category rankings, and sentiment. It explicitly contrasts with a sibling: 'Use for Bilibili videos and users; for Douyin use get_douyin_data.'

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a clear routing rule to the sibling tool for Douyin and states the access condition (works without login). It does not, however, explain which parameter combinations select which mode (e.g. that datmaku_rows vs danmaku are different outputs), leaving mode selection to the schema.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.