京东单品优惠券获取教程
一.应用场景
二.环境
三.详细操作
只有一个单品应该怎么获取优惠券接口?
一.应用场景
API接口说明:
通过商品链接或SKU,获取京东最优券,方便用户领券,提升用户体验
应用场景:
用于获取商品的最优券
二.环境
浏览器打开京东链接
首先打开需要获取优惠券的商品落地页,找到商品的链接或者SKU。
- 详细操作
可以直接通过京品库开放平台接口:https://www.jingpinku.com/openapi/detail/id/29.do拿到下图的参数。
以下是返回示例:
{"code": 0,"content": "","images": ["https://img14.360buyimg.com/pop/jfs/t1/222444/26/19981/165549/62d65bd7Eaf7e29be/93799f79f9913889.jpg","https://img14.360buyimg.com/pop/jfs/t1/149241/26/23772/90420/62345e50E2a440a57/1c3eee9be4f6ac15.jpg","https://img14.360buyimg.com/pop/jfs/t1/112249/24/22029/130781/6232f878Ee3187960/64db84ab7fd29565.jpg","https://img14.360buyimg.com/pop/jfs/t1/109447/5/24391/135078/6232f86fE1c589566/83b8cb4f7b2bfee4.jpg","https://img14.360buyimg.com/pop/jfs/t1/184935/30/22011/119796/6232f87fE1b6de787/c8eda9cfabf77445.jpg","https://img14.360buyimg.com/pop/jfs/t1/85603/20/25225/112999/6232f87bE28ac7d9c/e6495c8fc0903782.jpg","https://img14.360buyimg.com/pop/jfs/t1/117861/12/22274/91629/6232f8a1E19a1f31a/2756781cb7371531.jpg","https://img14.360buyimg.com/pop/jfs/t1/216246/8/14956/176238/6232f899E16b484cd/9f1e7b0b2cc44ef1.jpg","https://img14.360buyimg.com/pop/jfs/t1/216167/19/14970/106624/6232f874E4c018cb2/4ccc3cd48d7dbfcb.jpg"],"coupon_url": null,"official": "【京东】 格力(GREE) 七叶家用落地扇大风量立式电风扇节能台地两用机械摇头电扇客厅办公室宿舍空气循环风扇 轻音低噪FD-3515h7\n京东价:169\n促销价:139\n券后佣金:2.78\n抢购:https://u.jd.com/RLXJVji\n➖➖➖➖➖\n",Ps.建议在在postman里面测试一下。