Bbili-open-mcpMCP
★

查询商品类目属性列表

POST#75api SHOP_COMMODITY_INFO
https://member.bilibili.com/arcopen/fn/market/common/product_get_cate_property

开放能力 / 交易电商 / 电商 / 接口 / 商品模块接口

调用该接口可查询商品类目属性列表

body 参数

名称类型必填说明
category_leaf_idint是末级类目ID

响应字段

名称类型必填说明
datalist是属性列表
property_idint32是属性ID
property_namestring是属性名称
requiredbool是该属性是否必填
typestring是属性输入类型,文本输入text、单选select、多选multi_select、日期date、数值输入number
diy_typeint32是商品属性是否支持商家自定义,0=不支持自定义,1=支持自定义
optionslist是属性可选值列表,为空时需要手动填写
valuestring是可选值
value_idint32是可选值的id

调用方式

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

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

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

官方请求示例

bash
curl --location --request POST 'https://member.bilibili.com/arcopen/fn/market/common/product_get_cate_property' \
--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 '{
    "category_leaf_id":2303
}'

原始文档:075_查询商品类目属性列表.md(7545 字节)。用 bili_docs_get { "ref": "75" } 读全文,或用 bili_api_spec { "ref": "75" } 取结构化规格。