品牌/型号价格趋势
单次调用 2 积分基于历史中标明细,观察指定品牌与型号的中标单价随时间的变化。
POST
/api_v2/get_price_trends请求参数
Body 参数
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
brand | string | 必填 | 品牌名称,如「华为」「戴尔」 |
model | string | 可选 | 型号,可缩小统计范围,如「TD1100」 |
product | string | 可选 | 产品词,与型号组合提高精度,如「笔记本电脑」 |
exclude_keywords | string[] | 可选 | 排除词,如:['耗材', '维修'] |
min_price | number | 可选 | 产品单价下限(元) |
max_price | number | 可选 | 产品单价上限(元) |
begin_date | string | 可选 | 统计开始日期 |
end_date | string | 可选 | 统计结束日期 |
provinces | string[] | 可选 | 省份列表,如:['北京', '内蒙古'] |
cities | string[] | 可选 | 城市列表,如:['石家庄', '合肥'] |
counties | string[] | 可选 | 区县列表,如:['长安区', '瑶海区'] |
limit | number | 可选 | 趋势采样点数量上限(默认: 50) |
响应示例
{
"success": true,
"data": {
"brand": "华为",
"model": "2288H V5",
"product": "机架式服务器",
"total": 1256,
"page": 1,
"page_size": 50,
"price_stats": {
"count": 1256,
"min": 42000.0,
"max": 126000.0,
"avg": 68500.0,
"median": 68000.0
},
"records": [{
"bid_id": 589738777,
"bid_type": "中标",
"title": "某市政务云平台服务器采购项目",
"sm_name": "机架式服务器",
"brand": "华为",
"model": "2288H V5",
"sku_price": 68500.0,
"sku_count": 12,
"sku_total_money": 822000.0,
"caller_name": "某市大数据管理局",
"pub_time": "2024-03-18",
"province": "广东省",
"city": "深圳市",
"county": "南山区",
"winner_names": ["某某科技股份有限公司"],
"url": "https://www.zhiliaobiaoxun.com/content/589738777/b2?from=mcp"
}]
},
"error": null,
"meta": {
"request_id": "req_5aa102ee",
"tool_name": "get_price_trends",
"cost_units": 2,
"execution_time_ms": 188
}
}返回结果字段说明
| 字段名 | 类型 | 说明 |
|---|---|---|
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.brand | string | 查询的品牌(原样回显,未传则为空串) |
data.model | string | 查询的型号(原样回显,未传则为空串) |
data.product | string|string[] | 查询的产品词(原样回显,未传则为空串) |
data.total | int | 全库命中总数 |
data.page | int | 当前页码 |
data.page_size | int | 每页条数 |
data.price_stats | object | 价格统计;无有效单价时为空对象 |
data.price_stats.count | int | 纳入统计的单价样本数 |
data.price_stats.min | float | 最低单价(元) |
data.price_stats.max | float | 最高单价(元) |
data.price_stats.avg | float | 平均单价(元) |
data.price_stats.median | float | 单价中位数(元) |
data.records[] | object[] | 价格明细列表,元素字段见下 |
data.records[].bid_id | int | 标讯 ID |
data.records[].bid_type | string | 标讯类型,如 招标公告/中标公告 |
data.records[].title | string | 公告标题 |
data.records[].sm_name | string | 标的物名称 |
data.records[].brand | string | 品牌 |
data.records[].model | string | 型号(取自 sku_type) |
data.records[].sku_price | float|null | 单价(元) |
data.records[].sku_count | int|null | 数量 |
data.records[].sku_total_money | float|null | 小计金额(元) |
data.records[].caller_name | string | 招标方名称 |
data.records[].pub_time | string | 发布时间 |
data.records[].province | string | 省份 |
data.records[].city | string | 城市 |
data.records[].county | string | 区县 |
data.records[].winner_names | string[] | 中标方名称列表 |
data.records[].url | string | 知了标讯公告链接 |
代码示例
curl -X POST "https://mcp-server.zhiliaobiaoxun.com/api_v2/get_price_trends" \
-H "X-API-Key: $ZLBX_API_KEY" \
-H "Content-Type: application/json" \
-d '{"product":"呼吸机","model":"SV300","brand":"迈瑞","exclude_keywords":["耗材","维修","维保"],"limit":2}'
