苏宁的API接口可以用于获取商品详情。以下是一个示例的API接口,通过商品ID获取商品详情:
https://open.suning.com/api/content/product/getById?productId=商品ID&appKey=你的应用密钥&sign=你的签名&format=json
在上面的接口中,你需要替换以下参数:
商品ID
:你要获取商品详情的商品ID。你的应用密钥
:你在苏宁开放平台申请的应用密钥。你的签名
:根据苏宁API接口的签名规则进行计算。请求参数
请求参数:num_iid=0070134261/703410301
参数说明:num_iid:店铺ID/商品ID
-
- ---------------------------------------
- {
- "item": {
- "num_iid": "0070134261/703410301",
- "title": "罗技(Logitech M235 无线光电鼠标2代 升级优联技术台式笔记本电脑无线办公省电鼠标 (灰色",
- "desc_short": "",
- "price": "79.00",
- "total_price": "",
- "suggestive_price": "",
- "orginal_price": "79.00",
- "nick": "罗技外设旗舰店",
- "num": 99,
- "min_num": "",
- "detail_url": "https://product.suning.com/0070134261/703410301.html",
- "pic_url": " //image.suning.cn/uimg/b2c/newcatentries/0070134261-000000000703410301_1.jpg",
- "brand": "",
- "brandId": "",
- "rootCatId": "",
- "cid": "",
- "crumbs": {
- "157250": "鼠标"
- },
- "created_time": "",
- "modified_time": "",
- "delist_time": "",
- "desc": "<\"div> <\"img src=\"https://image.suning.cn/uimg/sop/commodity/180469403026839773750900_x.jpg\">, <\"div> <\"img src=\"http://image.suning.cn/uimg/sop/commodity/829807810124167623648200_x.jpg\">, <\"div> <\"img src=\"http://image.suning.cn/uimg/sop/commodity/186865161514348058123327_x.jpg\">