暂无说明
参数 | 类型 | 请求参数参考值 | 是否必须 | 说明 |
apkey | String | xxxxxxx | 是 | 用户中心 - 系统设置 - 平台设置 中查看APKEY密钥 (点我获取)(*必要) |
goodsIds | String | xxxx | 是 | 商品ID列表,多个ID用英文逗号分隔,每次最多限制20 |
trackingCode1 | String | xxxx | 可用于跟踪,订单接口中会输出此参数 | |
trackingCode2 | String | xxxx | 可用于跟踪,订单接口中会输出此参数 | |
type | String | 0 | 0 按照goodsIds维度(默认) 1 按照goodsUrl | |
goodsUrl | String | 解析出url中商品ID,每次只能传一个 | ||
needShortLink | String | 是否需要短链接 N:不需要(响应速度快) 其他:需要 | ||
needGroupBuyInfo | String | 是否需要拼团信息 N:不需要 其他:需要 |
返回参数 | 类型 | 参数说明 | 扩展说明 |
data | Json | 返回数据 | |
├ goodsId | String | 商品ID | |
├ baseInfo | Json | 基础信息 | |
├ ├ goodsTitle | String | 商品名称 | |
├ ├ goodsSubTitle | String | 商品副标题 | |
├ ├ imageList | Json | 商品图片地址 | |
├ ├ self | String | 是否自营 0 否 1 是 | |
├ ├ brandName | String | 品牌名 | |
├ ├ brandCountryName | String | 品牌国简称 | |
├ ├ groupBuyGoods | String | 是否拼团商品 0 否 1 是 | |
├ ├ onlineStatus | String | 上架状态 1上架,0下架 | |
├ ├ interPurch | String | 是否内购 1 是 0 否 | |
├ ├ store | Number | 是否有库存 0 否 1 是 | |
├ ├ detailImgList | Json | 页面图文详情中的图片 | |
├ ├ importType | Number | 贸易类型 0 直邮 1 保税 2 海淘 3 国内贸易 4 个人清关 | |
├ categoryInfo | Json | 类目信息 | |
├ ├ categoryId | String | 类目id | |
├ ├ categoryName | String | 类目名 | |
├ ├ level | Number | 层级 | |
├ priceInfo | Json | 价格信息 | |
├ ├ currentPrice | String | 当前价格(普通会员享受的价格) | |
├ ├ newUserPrice | String | 新用户促销价格 | 不一定都会有 |
├ ├ memberCurrentPrice | String | 黑卡会员专享价 | 不一定都会有 |
├ ├ groupBuyPrice | String | 拼团价格(如果是拼团商品) | |
├ ├ marketPrice | String | 市场价 | |
├ ├ memberPriceSpread | String | 黑卡会员与p普通会员价差(currentPrice-memberCurrentPrice) | |
├ ├ discountLabel | String | 折扣 (暂无) | |
├ activityInfo | Json | 活动信息 | |
├ ├ noPostage | Number | 是否包邮 0 否 1 是 | |
├ ├ activityLable | String | 活动标签(多个标签逗号分隔) | |
├ ├ singleTaxReduction | String | 是否单品减税 0否 1 是 (暂无) | |
├ ├ singleTaxRate | String | 单品减税比例 (暂无) | |
├ ├ fullTaxReduction | String | 是否满额减税 0 否 1 是 (暂无) | |
├ ├ FullTaxMoney | String | 满减需达到额度 (暂无) | |
├ ├ FullTaxRate | String | 满额减税比例 (暂无) | |
├ commissionInfo | Json | 佣金信息 | |
├ ├ commissionRate | String | 一般佣金比例 | |
├ ├ groupBuyCommissionRate | String | 拼团佣金比例 (如果是拼团商品) | |
├ ├ expireType | String | 一般佣金有效期 1 长期有效 0 时间段有效 | |
├ ├ startTime | String | 一般佣金开始时间 yyyy-mm-dd HH:mm:ss | |
├ ├ endTime | String | 一般佣金结束时间 yyyy-mm-dd HH:mm:ss | |
├ ├ groupBuyExpireType | String | 拼团佣金有效期 1 长期有效 0 时间段有效 | |
├ ├ groupBuyStartTime | String | 拼团佣金开始时间 yyyy-mm-dd HH:mm:ss | |
├ ├ groupBuyEndTime | String | 拼团佣金结束时间 yyyy-mm-dd HH:mm:ss | |
├ linkInfo | Json | 跟踪链接 | |
├ ├ shareUrl | String | 分享链接 | |
├ ├ shortShareUrl | String | 分享短连接 | |
├ ├ goodsDetailUrl | String | 商品详情页 | |
├ ├ groupBuyShareUrl | String | 拼团分享链接。如果是拼团商品 | |
├ ├ groupBuyShortShareUrl | String | 拼团分享短链。如果是拼团商品 | |
├ ├ groupBuyGoodsDetailUrl | String | 拼团商详页。如果是拼团商品 | |
├ ├ goodsPCUrl | String | pc端地址 | |
├ ├ miniShareUrl | String | 微信小程序唤醒二维码链接 | |
├ ├ wx_mini_app | Json | 微信小程序 |
{"code":200,"data":[{"activityInfo":{"noPostage":0},"baseInfo":{"brandCountryName":"中国","brandName":"KOALA'S CHOICE 考拉之选","detailImgList":["https://kaola-haitao.oss.kaolacdn.com/0553f21de52a4ca2bc97a458232c37f11602294235612A830A04B53778AB373AE0079696F121A.jpg"],"goodsSubTitle":"清甜的蔓越莓漱口水,能帮助改善口腔环境,带走污垢残留,减少菌群滋生,且口感温和舒适,漱后口气清新持久。","goodsTitle":"【清新口气】考拉之选蔓越莓0酒精低刺激亮白漱口水500ml","groupBuyGoods":0,"imageList":["https://kaola-haitao.oss.kaolacdn.com/57b99f11c96a4b658a7171b9c109399916021637471368A18F16E7387CD36592E41737B08600A.jpg","https://kaola-haitao.oss.kaolacdn.com/1fd4c1d1d0c5482fac0451add5df00d3160216374694473E82D1463EA4E6C68595CECC6601F12.jpg","https://kaola-haitao.oss.kaolacdn.com/c4c3e925d01944ed8e87d4621396169316021637469816DE7BF518BF8AC35EFBEF21FC1846FCC.jpg","https://kaola-haitao.oss.kaolacdn.com/e8327694c91b4b0cbe89cadfc28e6eae16021637470399E291DB81B47D86818B2F607821AC408.jpg","https://kaola-haitao.oss.kaolacdn.com/2a3499a9822a4c3bb48dfea459817ae81602163747070E101349DD7E6C6E04351B162E9E4AD35.jpg","https://kaola-haitao.oss.kaolacdn.com/420ec4cafe274c4e8c9853c44f0461491602163747105CF85B543F9F4AC9B90FFAAB0259D3A9E.jpg"],"importType":3,"interPurch":0,"onlineStatus":1,"self":1,"store":1},"categoryInfo":[{"categoryId":381,"categoryName":"个人洗护","level":2},{"categoryId":384,"categoryName":"口腔护理","level":3},{"categoryId":407,"categoryName":"漱口水","level":4}],"commissionInfo":{"commissionRate":0.02,"expireType":1},"goodsId":5607048,"linkInfo":{"goodsDetailUrl":"https://m-goods.kaola.com/product/5607048.html","goodsPCUrl":"https://goods.kaola.com/product/5607048.html","miniShareUrl":"https://cps.kaola.com/cps/mini/zhuankeLogin?unionId=zhuanke_701392786&tc1=1ecktest&showWapBanner=0&rd=86400000&targetUrl=https://m-goods.kaola.com/product/5607048.html?__da_dad3e203_5c4e7c4025b92c00","shareUrl":"https://cps.kaola.com/cps/zhuankeLogin?unionId=zhuanke_701392786&tc1=1ecktest&showWapBanner=0&targetUrl=https://m-goods.kaola.com/product/5607048.html?__da_dad3e203_5c4e7c4025b92c00","shortShareUrl":"http://lu.kaola.com/fLaSO"},"priceInfo":{"currentPrice":24.9,"marketPrice":59,"memberCurrentPrice":17.9,"memberPriceSpread":7}}],"msg":"success"}
code/http_status | 说明 |
200 | 数据获取成功 |
-1 | 数据获取失败 |
401 | IP没有添加白名单 |
429 | 访问次数超限 |
403 | 关键参数丢失 |
405 | 请求方式不对 |