Skip to content

产品详情

接口地址

javascript
https://tea.qingnian8.com/xzs/product/detail
https://tea.qingnian8.com/xzs/product/detail

请求方式

javascript
POST
POST

请求参数

参数名参数值是否必填参数类型描述说明
id28ee4e3e6050598b0af006d25246ec3fString产品ID

秘钥验证

参数名参数值是否必填参数类型描述说明
access-key123456String放到请求头(Header)里面。
微信扫码看广告,获得秘钥参数。

响应示例

javascript
{
	"errCode": 0,
	"errMsg": "查询成功",
	"data": {
		"_id": "28ee4e3e6050598b0af006d25246ec3f",
		"grade": "白毫银针一级",
		"price": "5208/饼",
		"pronum": "LM-20197099",
		"title": "六妙紫印",
		"weight": "300g",
		"year": "2016年",
		"createTime": 1615878539014,
		"picpath": "https://cdn.qingnian8.com/project/xzs/product/5ca361b2-0a6f-4dcc-94e5-fcccae33d112.jpg"
	},
	"author": "接口管理员:B站咸虾米",
	"timeCost": 70
}
{
	"errCode": 0,
	"errMsg": "查询成功",
	"data": {
		"_id": "28ee4e3e6050598b0af006d25246ec3f",
		"grade": "白毫银针一级",
		"price": "5208/饼",
		"pronum": "LM-20197099",
		"title": "六妙紫印",
		"weight": "300g",
		"year": "2016年",
		"createTime": 1615878539014,
		"picpath": "https://cdn.qingnian8.com/project/xzs/product/5ca361b2-0a6f-4dcc-94e5-fcccae33d112.jpg"
	},
	"author": "接口管理员:B站咸虾米",
	"timeCost": 70
}
参数名参数类型描述说明
errCodeInteger0:成功
400:请求失败
errMsgString查询结果描述
timeCostInteger接口消耗时间
dataObject详情数据对象,见下

data参数

参数名参数类型描述说明
_idString唯一id
gradeString等级
priceString零售价
pronumString型号
titleString标题
weightString净含量
yearString年份
createTimeInt创建时间
picpathString图片地址

咸虾米API接口率属于青年帮网络,免费提供学习及开发的接口需求,如有侵权请联系QQ:513894357