Bbili-open-mcpMCP
★

搜索媒体信息

POST#120api COPYRIGHT_MUSIC_DATA
https://member.bilibili.com/arcopen/fn/music/search

开放能力 / 站内版权授权曲库 / 接口列表

使用资源唯一ID查询对应资源的详细信息

body 参数

名称类型必填说明
keywordstring是搜索关键词(歌曲、专辑、作曲等信息)
pageint是页数(从1开始计数)
page_sizeint是每页条目数量

响应字段

名称类型必填说明
totalint是候选总数
infosList是满足条件的媒体列表
metadata_idstring是资源的唯一ID
titlestring是歌曲名
artist_namestring是歌手名称

调用方式

javascript
// 让 AI 直接调(需要开放平台凭据)
bili_api_call { "ref": "120", "query": {…}, "body": {…} }

// 只看将要发出的请求(不需要凭据)
bili_api_call { "ref": "120", "dryRun": true }

// 生成完整调用代码
bili_codegen { "ref": "120", "lang": "python" }

官方请求示例

bash
curl --location --request POST 'https://member.bilibili.com/arcopen/fn/music/search'
--header 'Accept: application/json' \
--header 'Access-Token: a24e56a0fc0093668bca0f3a15410ea2' \
--header 'Content-Type: application/json' \
--header 'x-bili-timestamp: 1712473117' \
--header 'x-bili-signature-method: HMAC-SHA256' \
--header 'x-bili-signature-version: 2.0' \
--header 'Authorization: afdf0ddc6dd8f5af9c7f25cf3115a03142e67df99e15f909a17c11e4c82ad4f9' \
--header 'x-bili-signature-nonce: 1712473117993237000' \
--header 'x-bili-accesskeyid: 8ca079bc20ce433d' \
--header 'x-bili-content-md5: 795a2d7e13f989cee460801379fe543c' \
--header 'Connection: keep-alive' \
--data-raw '{
  "keyword": "周",
  "page":1,
  "page_size":10
}'

原始文档:120_搜索媒体信息.md(4078 字节)。用 bili_docs_get { "ref": "120" } 读全文,或用 bili_api_spec { "ref": "120" } 取结构化规格。