Top中标品牌
单次调用 3 积分在给定产品与区域、时间范围内统计中标频次与金额领先的品牌。
POST
/api_v2/get_top_brands请求参数
Body 参数
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
product | string | 必填 | 产品/品类关键词,如「服务器」「医用超声」 |
exclude_keywords | string[] | 可选 | 排除词,减少噪声命中,如:['耗材', '维保'] |
min_price | number | 可选 | 中标产品单价下限(元) |
max_price | number | 可选 | 中标产品单价上限(元) |
begin_date | string | 可选 | 统计开始日期 YYYY-MM-DD |
end_date | string | 可选 | 统计结束日期 YYYY-MM-DD |
provinces | string[] | 可选 | 省份列表,如:['北京', '内蒙古'] |
cities | string[] | 可选 | 城市列表,如:['石家庄', '合肥'] |
counties | string[] | 可选 | 区县列表,如:['长安区', '瑶海区'] |
limit | number | 可选 | 返回品牌数量(默认: 10) |
响应示例
{
"success": true,
"data": {
"product": "服务器",
"total": 3,
"brands": [{
"brand": "华为",
"win_count": 892,
"total_amount": 568000000.0,
"total_amount_wan": 56800.0,
"total_count": 7240,
"avg_price": 78453.04,
"avg_price_wan": 7.85,
"top_models": ["2288H V5", "5288 V6"],
"last_win_time": "2024-03-18"
}, {
"brand": "浪潮",
"win_count": 756,
"total_amount": 423000000.0,
"total_amount_wan": 42300.0,
"total_count": 6060,
"avg_price": 69801.98,
"avg_price_wan": 6.98,
"top_models": ["NF5280M6"],
"last_win_time": "2024-03-15"
}]
},
"error": null,
"meta": {
"request_id": "req_33e901aa",
"tool_name": "get_top_brands",
"cost_units": 3,
"execution_time_ms": 142
}
}返回结果字段说明
| 字段名 | 类型 | 说明 |
|---|---|---|
success | boolean | 请求是否成功 |
data | object | 业务数据,结构随接口而异,字段见下表 |
error | object|null | 错误信息,成功时为 null |
error.code | string | 失败时的错误码,如 MISSING_REQUIRED_PARAMETER、QUERY_EMPTY、NOT_FOUND、QUOTA_EXCEEDED |
error.message | string | 失败时的错误描述 |
error.details | object|null | 失败时的补充信息 |
error.suggestions | string[]|null | 失败时的排查/重试建议 |
meta | object | 元信息 |
meta.request_id | string | 本次请求 ID,排查问题时提供 |
meta.tool_name | string | 调用的接口名 |
meta.cost_units | float | 本次调用实际扣除的积分 |
meta.execution_time_ms | int | 服务端执行耗时(毫秒) |
data.product | string | 查询的产品/品类关键词 |
data.total | int | 返回品牌数量 |
data.brands[] | object[] | 品牌列表,元素字段见下 |
data.brands[].brand | string | 品牌名称 |
data.brands[].win_count | int | 中标次数 |
data.brands[].total_amount | float | 中标总金额(元) |
data.brands[].total_amount_wan | float|null | 中标总金额(万元) |
data.brands[].total_count | int | 中标总数量 |
data.brands[].avg_price | float | 平均单价(元) |
data.brands[].avg_price_wan | float|null | 平均单价(万元) |
data.brands[].top_models | string[] | Top 型号列表 |
data.brands[].last_win_time | string | 最近中标时间 |
代码示例
curl -X POST "https://mcp-server.zhiliaobiaoxun.com/api_v2/get_top_brands" \
-H "X-API-Key: $ZLBX_API_KEY" \
-H "Content-Type: application/json" \
-d '{"product":"呼吸机","exclude_keywords":["耗材","维保","维修"],"limit":10,"begin_date":"2025-01-01","end_date":"2025-12-31"}'
