苏宁关键字搜索API接口是苏宁开放平台提供的一项服务,它允许开发者通过调用API接口,输入关键字,获取苏宁平台上的相关商品信息。这一接口不仅支持基础的关键字搜索,还支持多种筛选条件,如价格区间、品牌、品类等,帮助开发者更精准地定位目标商品。
四、如何使用苏宁关键字搜索API接口
- 注册开发者账号:首先,你需要在苏宁注册一个开发者账号。
- 创建应用:在开发者中心创建一个应用,并获取应用的API密钥(App Key)和API密钥签名(App Secret)。这些密钥将用于后续API接口的调用和身份验证。
- 阅读文档:仔细阅读苏宁关键字搜索API接口的文档,了解接口的参数、返回格式、调用限制等信息。这将有助于你更好地使用接口并避免一些常见问题。
- 调用接口:根据文档指引,使用HTTP请求或SDK调用API接口。在请求中传入关键字、筛选条件等参数,并携带API密钥和签名进行身份验证。
- 解析数据:根据接口返回的数据格式(如JSON、XML等),解析返回结果并提取所需信息。你可以使用编程语言中的相关库或工具来解析数据。
苏宁易购按关键字搜索suning商品 API 返回值说明
请求参数
请求参数:q=鞋子&start_price=&end_price=&page=&cat=&discount_only=&sort=&page_size=&seller_info=&nick=&ppath=
参数说明:q:搜索关键字
cat:分类ID
start_price:开始价格
end_price:结束价格
sort:排序[bid,_bid,bid2,_bid2,_sale,_credit]
(bid:总价,bid2:商品价格,sale:销量,credit信用,加_前缀为从大到小排序)
page:
响应参数
API 返回结果
---------------------------------------
Result Object:
---------------------------------------
{
"items": {
"item": [
{
"area": "",
"detail_url": "https://product.suning.com/0070283999/12359899179.html",
"item_id": "12359899179",
"num_iid": "0070283999/12359899179",
"pic_url": "//imgservice4.suning.cn/uimg1/b2c/image/-4JbBTlGZPktCt4kxr54Iw.jpg",
"post_fee": "",
"price": "129.00",
"promotion_price": "129.00",
"sales": 1,
"sample_id": "",
"seller_id": "0070283999",
"seller_nick": "悠购运动专营店",
"shop_href": "",
"shopname": "",
"title": "乔丹运动鞋男2022秋季新款官方正品轻便黑色休闲鞋子男士跑步鞋"
},
{
"area": "",
"detail_url": "https://product.suning.com/0070283999/12256612227.html",
"item_id": "12256612227",
"num_iid": "0070283999/12256612227",
"pic_url": "//imgservice1.suning.cn/uimg1/b2c/image/RDttbsLcAorZMOv9BrKncQ.jpg",
"post_fee": "",
"price": "239.00",
"promotion_price": "239.00",
"sales": 1,
"sample_id": "",
"seller_id": "0070283999",
"seller_nick": "悠购运动专营店",
"shop_href": "",
"shopname": "",
"title": "乔丹跑步鞋男鞋2022秋季新款跑鞋男官方休闲鞋子正品网面运动鞋"
},
{
"area": "",
"detail_url": "https://product.suning.com/0070174309/12428693972.html",
"item_id": "12428693972",
"num_iid": "0070174309/12428693972",
"pic_url": "//imgservice1.suning.cn/uimg1/b2c/image/OjP4qX2Xi0rN5S4_Sm3Eiw.jpg",
"post_fee": "",
"price": "129.85",
"promotion_price": "129.85",
"sales": 1,
"sample_id": "",
"seller_id": "0070174309",
"seller_nick": "大海边户外专营店",
"shop_href": "",
"shopname": "",
"title": "回力(Warrior)男鞋运动鞋男跑步鞋男款鞋子男冬季加绒跑鞋"
},
{
"area": "",
"detail_url": "https://product.suning.com/0070283999/12386770722.html",
"item_id": "12386770722",
"num_iid": "0070283999/12386770722",
"pic_url": "//imgservice5.suning.cn/uimg1/b2c/image/TyKlEgzcx52_4ZpJACSPJA.jpg",
"post_fee": "",
"price": "129.00",
"promotion_price": "129.00",
"sales": 1,
"sample_id": "",
"seller_id": "0070283999",
"seller_nick": "悠购运动专营店",
"shop_href": "",
"shopname": "",
"title": "乔丹运动鞋男2022秋季新款官方正品轻便黑色休闲鞋子男士跑步鞋"
},
{
"area": "",
"detail_url": "https://product.suning.com/0070219539/12425403776.html",
"item_id": "12425403776",
"num_iid": "0070219539/12425403776",
"pic_url": "//imgservice4.suning.cn/uimg1/b2c/image/9Vz0pre5Vu9AJ0iJN5g-SQ.jpg",
"post_fee": "",
"price": "166.60",
"promotion_price": "166.60",
"sales": 1,
"sample_id": "",
"seller_id": "0070219539",
"seller_nick": "柚果户外专营店",
"shop_href": "",
"shopname": "",
"title": "李宁(LI-NING)男鞋跑步鞋冬季男士鞋子网鞋男款跑鞋春秋旅游鞋运动鞋男"
},
{
"area": "",
"detail_url": "https://product.suning.com/0070069904/12345366899.html",
"item_id": "12345366899",
"num_iid": "0070069904/12345366899",
"pic_url": "//imgservice5.suning.cn/uimg1/b2c/image/ukGQOlh8DIdoilxVdjflvQ.jpg",
"post_fee": "",
"price": "179.00",
"promotion_price": "179.00",
"sales": 1,
"sample_id": "",
"seller_id": "0070069904",
"seller_nick": "361°官方旗舰店",
"shop_href": "",
"shopname": "",
"title": "[风屏]361°男鞋运动鞋2022新款休闲鞋子轻便跑鞋Q弹减震跑步鞋男"
},
{
"area": "",
"detail_url": "https://product.suning.com/0070075082/12430553075.html",
"item_id": "12430553075",
"num_iid": "0070075082/12430553075",
"pic_url": "//imgservice4.suning.cn/uimg1/b2c/image/yPY9sQUXETkwoVbcKO22Ew.png",
"post_fee": "",
"price": "668.00",
"promotion_price": "668.00",
"sales": 6,
"sample_id": "",
"seller_id": "0070075082",
"seller_nick": "胜道官方旗舰店",
"shop_href": "",
"shopname": "",
"title": "nike耐克夏季男鞋ZOOM FLY 5运动鞋跑步鞋DZ2769-101"
},
{
"area": "",
"detail_url": "https://product.suning.com/0070219539/12428469273.html",
"item_id": "12428469273",
"num_iid": "0070219539/12428469273",
"pic_url": "//imgservice2.suning.cn/uimg1/b2c/image/hTMfT1qXBaES_mMGgkkGLQ.jpg",
"post_fee": "",
"price": "213.30",
"promotion_price": "213.30",
"sales": 1,
"sample_id": "",
"seller_id": "0070219539",
"seller_nick": "柚果户外专营店",
"shop_href": "",
"shopname": "",
"title": "李宁(LI-NING)男鞋板鞋冬季皮面休闲鞋男士惟吾黑色轻便鞋子运动鞋男款"
},
{
"area": "",
"detail_url": "https://product.suning.com/0070069904/12420297388.html",
"item_id": "12420297388",
"num_iid": "0070069904/12420297388",
"pic_url": "//imgservice5.suning.cn/uimg1/b2c/image/61DoN94cXSoJb4NVsO-GkQ.jpg",
"post_fee": "",
"price": "114.00",
"promotion_price": "114.00",
"sales": 1,
"sample_id": "",
"seller_id": "0070069904",
"seller_nick": "361°官方旗舰店",
"shop_href": "",
"shopname": "",
"title": "361°女鞋运动鞋新款皮面舒适跑鞋轻便减震跑步鞋女款"
},
{
"area": "",
"detail_url": "https://product.suning.com/0070069904/12431307597.html",
"item_id": "12431307597",
"num_iid": "0070069904/12431307597",
"pic_url": "//imgservice5.suning.cn/uimg1/b2c/image/ZcIMSqPXBG58hnuG6a0Mrw.jpg",
"post_fee": "",
"price": "123.00",
"promotion_price": "123.00",
"sales": 1,
"sample_id": "",
"seller_id": "0070069904",
"seller_nick": "361°官方旗舰店",
"shop_href": "",
"shopname": "",
"title": "361°男鞋运动鞋新款皮面鞋子轻便跑鞋减震跑步鞋"
}
],
"page": "1",
"page_size": 10,
"pagecount": 222,
"real_total_results": 2224,
"total_results": 2224,
"_ddf": "app"
},
"error_code": "0000",
"reason": "ok",
"secache": "e299413c54b7d53e00a8046fc5bd7bdb",
"secache_time": 1714446559,
"secache_date": "2024-04-30 11:09:19",
"translate_status": "error",
"translate_time": 0,
"language": {
"current_lang": "cn",
"source_lang": "zh-CN"
},
"error": "",
"cache": 0,
"api_info": "today:83 max:10000 all[176=83+16+77];expires:2030-10-30",
"execution_time": "2.028",
"server_time": "Beijing/2024-04-30 11:09:19",
"client_ip": "106.7.5.69",
"call_args": {
"q": "鞋子"
},
"api_type": "suning",
"translate_language": "zh-CN",
"translate_engine": "baidu",
"server_memory": "0.84MB",
"request_id": "gw-4.663060ddb72b7",
"last_id": "2878496833"
}