品牌/型号价格趋势

单次调用 2 积分

基于历史中标明细,观察指定品牌与型号的中标单价随时间的变化。

POST/api_v2/get_price_trends

请求参数

Body 参数

参数名类型必填描述
brandstring必填品牌名称,如「华为」「戴尔」
modelstring可选型号,可缩小统计范围,如「TD1100」
productstring可选产品词,与型号组合提高精度,如「笔记本电脑」
exclude_keywordsstring[]可选排除词,如:['耗材', '维修']
min_pricenumber可选产品单价下限(元)
max_pricenumber可选产品单价上限(元)
begin_datestring可选统计开始日期
end_datestring可选统计结束日期
provincesstring[]可选省份列表,如:['北京', '内蒙古']
citiesstring[]可选城市列表,如:['石家庄', '合肥']
countiesstring[]可选区县列表,如:['长安区', '瑶海区']
limitnumber可选趋势采样点数量上限(默认: 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
	}
}

返回结果字段说明

字段名类型说明
successboolean请求是否成功
dataobject业务数据,结构随接口而异,字段见下表
errorobject|null错误信息,成功时为 null
error.codestring失败时的错误码,如 MISSING_REQUIRED_PARAMETER、QUERY_EMPTY、NOT_FOUND、QUOTA_EXCEEDED
error.messagestring失败时的错误描述
error.detailsobject|null失败时的补充信息
error.suggestionsstring[]|null失败时的排查/重试建议
metaobject元信息
meta.request_idstring本次请求 ID,排查问题时提供
meta.tool_namestring调用的接口名
meta.cost_unitsfloat本次调用实际扣除的积分
meta.execution_time_msint服务端执行耗时(毫秒)
data.brandstring查询的品牌(原样回显,未传则为空串)
data.modelstring查询的型号(原样回显,未传则为空串)
data.productstring|string[]查询的产品词(原样回显,未传则为空串)
data.totalint全库命中总数
data.pageint当前页码
data.page_sizeint每页条数
data.price_statsobject价格统计;无有效单价时为空对象
data.price_stats.countint纳入统计的单价样本数
data.price_stats.minfloat最低单价(元)
data.price_stats.maxfloat最高单价(元)
data.price_stats.avgfloat平均单价(元)
data.price_stats.medianfloat单价中位数(元)
data.records[]object[]价格明细列表,元素字段见下
data.records[].bid_idint标讯 ID
data.records[].bid_typestring标讯类型,如 招标公告/中标公告
data.records[].titlestring公告标题
data.records[].sm_namestring标的物名称
data.records[].brandstring品牌
data.records[].modelstring型号(取自 sku_type)
data.records[].sku_pricefloat|null单价(元)
data.records[].sku_countint|null数量
data.records[].sku_total_moneyfloat|null小计金额(元)
data.records[].caller_namestring招标方名称
data.records[].pub_timestring发布时间
data.records[].provincestring省份
data.records[].citystring城市
data.records[].countystring区县
data.records[].winner_namesstring[]中标方名称列表
data.records[].urlstring知了标讯公告链接

代码示例

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}'