赞
踩
APP商品详情源数据接口(点击测试)
最近做一个电子商务平台的投标工作,写技术标过程中,配到客户一些和拼多多集成的接口,其中有一个需求就是监控品牌旗下商品价格,维权,具体需求如下描述:
1.零售价格、批销价格、代销价格、都存储在客户系统之中。
2.客户下单价格、实付价格,都可以通过接口获取,做到了实时监控。
3.淘宝,天猫,京东,拼多多,抖音等平台都可以获取到数据,很好的规范了各大供应商的价格调整。
针对以上需求,我们对淘宝的开放平台接口做了分析,其中淘宝已经提供类似场景的解决方案,具体的方案将在下面做具体的介绍。
拼多多解决方案背景说明
价格是卖家的核心数据,卖家的所有宣传推广都是围绕的价格展开,应用的基本功能就是围绕着价格监控,选品完整的展示在品牌方面前。由于API请求依赖于网络,存在着网络不稳定和同步时间长的问题,所以应用必须把各大平台的商品详情同步到本地。如何才能快速、完整的把商品详情同步到本地是本方案将要讨论的问题。
名词解释
商品详情:各大平台商品ID相对应的sku,价格,图片,优惠活动等商品的详细情况。
商品销量:该商品的月销或者总销。
API介绍
{
“item”: {
“num_iid”: “257406755262”,
“title”: “浦瑞克智能扫地机器人家用超薄全自动擦拖扫吸尘器拖地一体机室内”,
“price”: 449.25,
“minGroupPrice”: 1499,
“maxGroupPrice”: 449.25,
“total_price”: “”,
“desc_short”: null,
“cid”: 6134,
“orginal_price”: 1499,
“nick”: “浦瑞克生活电器旗舰店”,
“num”: 1000,
“sales”: 0,
“detail_url”: “https://mobile.yangkeduo.com/goods1.html?goods_id=257406755262”,
“desc”: “<img src=“https://img.pddpic.com/mms-material-img/2022-04-01/e4de3d1b-1f0a-472f-a410-ec3dad2037be.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2021-08-31/bfb205e9-28b1-4138-a9dd-a103aa983d35.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2021-08-31/c3d6bc18-3630-4cea-b859-cd2d640473e3.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2021-09-13/8883622a-770e-4ede-9d31-43ece29e56de.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2021-09-17/caeab244-8eae-4b2f-9423-4f84b983e7e6.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2022-04-01/8dbe780a-cb7a-4ae7-88a8-5394926d4ee6.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2022-04-01/5e7a6af7-b536-4fa6-a891-0a96c500d688.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2022-04-02/72c8d255-c7b6-4d60-bca4-c4f4aa25741d.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2022-04-02/574fcefb-af5f-4594-b4d9-492ef9270632.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2021-10-13/48dd9368-a675-4c0e-a791-c0bad73834dc.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2021-10-20/266b6226-7dae-45da-9771-a56eb08e0508.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://t16img.yangkeduo.com/garner-api/d97e3c44b739254b0111d30f2e06136d.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2022-01-20/616c2aef-4ce7-452b-b81e-69d73646093d.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2022-01-20/630386bf-1535-45dc-9ae4-a5e182b2e1f3.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2021-09-27/b805a63e-baed-499f-9016-7ef9f4965388.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2022-04-02/cea38012-963c-4164-866e-c55bfa493294.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2022-01-20/a6855526-7200-4266-b397-70d782f2b4a5.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2022-01-20/a0cecc0d-75b0-42c2-b195-f01ec2f161db.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2021-09-27/11e8ebb9-d673-45f5-a2cd-fc0aad707ddc.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2022-01-20/00d018b0-ba75-4d73-9ac7-08e5533fff41.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2022-01-20/5d80fc42-c5f0-4657-a78a-dff6a455e76f.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2022-01-20/15aab0b0-f340-4733-8b68-df12fbb9bef1.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2022-04-02/b65a8bfb-abc6-467f-b95b-b7288dc21195.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2021-12-16/5dda8a21-968f-43dc-967d-93582ce6b504.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2022-01-20/9a06cea0-07e7-4fcb-b6f5-0a904fc7701d.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2021-09-27/4f638327-8660-4435-a537-dc7c1ab35898.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2021-10-15/785b62cf-a887-43fa-b1ab-6de8c9a6550f.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2021-09-27/1edb6c1c-0f30-4f04-bf82-b3f644b8d10c.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2021-10-15/156213e2-068c-4997-b058-2534afb71ae1.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2021-09-27/1684dde2-73a4-4242-9642-a69efe1ff6f2.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2021-09-27/3a6e8abf-8cb5-4c3d-b715-8fef0eae0fa2.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2021-09-27/03d7e33d-5ae3-4b28-a607-60d69505d99b.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2021-09-27/d5e1044b-3994-473b-994e-c7689e0adbef.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://t16img.yangkeduo.com/garner-api/cc4674f2ce67c9d6452359ec9aa8423a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2021-09-27/706d2c6e-c8d0-42a0-813e-cb22166ebf69.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2021-09-27/0fbcf2ba-0045-4658-b4bc-668e52dfa481.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2021-09-27/f863c911-1c21-4ba3-be57-4e966da1fa14.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2021-09-27/ad031ad5-bad3-445f-b7e8-4890f2cf6af4.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2021-09-27/cf46f6cf-aec1-458c-88a0-6b8bffb79321.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2021-09-27/2d87d07b-c0ce-4514-a975-0a7d0d4de057.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2021-09-27/55256bf4-5fa0-4526-b1e2-9659d9ca101e.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2021-09-27/ef2c4dda-283f-4f72-8f86-949c6acd6316.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://t16img.yangkeduo.com/garner-api/8fa9908dcc11c45836e3fc0038b76af3.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2021-09-27/3d274cb8-dfb6-4ae6-ab7d-1574260a9261.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2021-09-27/426373f6-fd48-47f4-b95b-76ce1205a238.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2021-09-27/fe0f0d3f-6624-4ebf-9aad-23953b2d8e90.jpeg.a.jpeg” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2021-12-16/53189d36-9e19-44d7-a673-1b6738d27178.png” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2021-12-16/ab035186-49fa-40c5-9e14-9316b5767308.png” style=“width:100%;”/><img src=“https://img.pddpic.com/mms-material-img/2022-01-20/443108b5-c4bf-4090-b3be-47bcc2758c3d.png” style=“width:100%;”/><img src=“https://www.o0b.cn/i.php?t.png&rid=gw-1.62cfde76172cd&p=1778787841&k=i_key&t=1657790070” style=“display:none” />”,
“item_imgs”: [
{
“url”: “https://img.pddpic.com/mms-material-img/2022-04-07/b95147b8-baf1-415a-88aa-0da4d1e348cb.jpeg.a.jpeg”
},
{
“url”: “https://img.pddpic.com/mms-material-img/2022-04-07/4d25d348-0b2d-460d-8bc0-063976abb80b.jpeg.a.jpeg”
},
{
“url”: “https://img.pddpic.com/mms-material-img/2022-04-07/09bb1482-1bcc-40d5-b90b-5df5111529d2.jpeg.a.jpeg”
},
{
“url”: “https://img.pddpic.com/mms-material-img/2022-04-07/e8ba5349-922b-4128-b91b-eeccd75a1ac8.jpeg.a.jpeg”
},
{
“url”: “https://img.pddpic.com/mms-material-img/2022-04-07/f2e5b3da-268f-4f35-8f42-ce32bfa89eed.jpeg.a.jpeg”
},
{
“url”: “https://commimg.pddpic.com/garner-api/4cb6545a4a20f1536b0a941e244aaaa6.jpeg”
}
],
“pic_url”: “https://img.pddpic.com/mms-material-img/2022-04-07/b95147b8-baf1-415a-88aa-0da4d1e348cb.jpeg.a.jpeg”,
“props_name”: “8640:8166074777:颜色分类:N2E001自回充+弓形规划+APP”,
“prop_imgs”: {
“prop_img”: [
{
“properties”: “8640:8166074777”,
“url”: “https://img.pddpic.com/mms-material-img/2022-04-13/5c179808-879a-4fb9-8d01-1fe0d378a7d7.jpeg.a.jpeg”
}
]
},
“props”: [
{
“name”: “品牌”,
“value”: “Pureatic/浦瑞克”
},
{
“name”: “型号”,
“value”: “N2001”
},
{
“name”: “功能用途”,
“value”: “扫吸拖式”
},
{
“name”: “碰撞保护”,
“value”: “机械+电子双层保护”
},
{
“name”: “水箱类型”,
“value”: “电控水箱”
},
{
“name”: “产地”,
“value”: “中国大陆”
},
{
“name”: “发货地”,
“value”: “广东省”
},
{
“name”: “3C认证证书编号”,
“value”: “2020180708019052”
},
{
“name”: “上市时间”,
“value”: “2021-09”
},
{
“name”: “是否遥控”,
“value”: “是”
},
{
“name”: “清扫路线”,
“value”: “规划式”
},
{
“name”: “是否有定时预约功能”,
“value”: “是”
},
{
“name”: “是否自动充电”,
“value”: “是”
},
{
“name”: “是否有虚拟墙”,
“value”: “否”
},
{
“name”: “清扫模式”,
“value”: “吸口式”
},
{
“name”: “电池类型”,
“value”: “锂电池”
},
{
“name”: “集尘容量”,
“value”: “650mL”
},
{
“name”: “水箱容量”,
“value”: “220mL”
},
{
“name”: “适用面积”,
“value”: “120m²(含)-180m²(不含)”
},
{
“name”: “最大噪音”,
“value”: “65dB”
},
{
“name”: “续航时间”,
“value”: “90min”
},
{
“name”: “净重”,
“value”: “2.5kg”
},
{
“name”: “机身尺寸”,
“value”: “310X310X76mm”
},
{
“name”: “附加功能”,
“value”: “APP智控”
}
],
“skus”: {
“sku”: [
{
“price”: 449.25,
“total_price”: 0,
“orginal_price”: 1499,
“properties”: “8640:8166074777”,
“properties_name”: “8640:8166074777:颜色分类:N2E001自回充+弓形规划+APP”,
“quantity”: 1000,
“sku_id”: “981958972642”
}
]
},
“props_list”: {
“8640:8166074777”: “颜色分类:N2E001自回充+弓形规划+APP”
},
“props_img”: {
“8640:8166074777”: “https://img.pddpic.com/mms-material-img/2022-04-13/5c179808-879a-4fb9-8d01-1fe0d378a7d7.jpeg.a.jpeg”
},
“property_alias”: “”,
“brand”: null,
“props_imgs”: {
“prop_img”: [
{
“properties”: “8640:8166074777”,
“url”: “https://img.pddpic.com/mms-material-img/2022-04-13/5c179808-879a-4fb9-8d01-1fe0d378a7d7.jpeg.a.jpeg”
}
]
},
“location”: null,
“post_fee”: “”,
“seller_id”: null,
“shop_id”: “908734237”,
“seller_info”: {
“nick”: “浦瑞克生活电器旗舰店”,
“user_num_id”: “908734237”,
“sid”: “908734237”,
“title”: “”,
“zhuy”: “http://yangkeduo.com/mall_page.html?mall_id=908734237”,
“shop_name”: “浦瑞克生活电器旗舰店”
},
“_ddf”: “ha2”,
“format_check”: “ok”,
“desc_img”: [
“https://img.pddpic.com/mms-material-img/2022-04-01/e4de3d1b-1f0a-472f-a410-ec3dad2037be.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2021-08-31/bfb205e9-28b1-4138-a9dd-a103aa983d35.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2021-08-31/c3d6bc18-3630-4cea-b859-cd2d640473e3.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2021-09-13/8883622a-770e-4ede-9d31-43ece29e56de.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2021-09-17/caeab244-8eae-4b2f-9423-4f84b983e7e6.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2022-04-01/8dbe780a-cb7a-4ae7-88a8-5394926d4ee6.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2022-04-01/5e7a6af7-b536-4fa6-a891-0a96c500d688.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2022-04-02/72c8d255-c7b6-4d60-bca4-c4f4aa25741d.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2022-04-02/574fcefb-af5f-4594-b4d9-492ef9270632.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2021-10-13/48dd9368-a675-4c0e-a791-c0bad73834dc.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2021-10-20/266b6226-7dae-45da-9771-a56eb08e0508.jpeg.a.jpeg”,
“https://t16img.yangkeduo.com/garner-api/d97e3c44b739254b0111d30f2e06136d.jpeg”,
“https://img.pddpic.com/mms-material-img/2022-01-20/616c2aef-4ce7-452b-b81e-69d73646093d.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2022-01-20/630386bf-1535-45dc-9ae4-a5e182b2e1f3.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2021-09-27/b805a63e-baed-499f-9016-7ef9f4965388.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2022-04-02/cea38012-963c-4164-866e-c55bfa493294.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2022-01-20/a6855526-7200-4266-b397-70d782f2b4a5.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2022-01-20/a0cecc0d-75b0-42c2-b195-f01ec2f161db.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2021-09-27/11e8ebb9-d673-45f5-a2cd-fc0aad707ddc.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2022-01-20/00d018b0-ba75-4d73-9ac7-08e5533fff41.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2022-01-20/5d80fc42-c5f0-4657-a78a-dff6a455e76f.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2022-01-20/15aab0b0-f340-4733-8b68-df12fbb9bef1.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2022-04-02/b65a8bfb-abc6-467f-b95b-b7288dc21195.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2021-12-16/5dda8a21-968f-43dc-967d-93582ce6b504.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2022-01-20/9a06cea0-07e7-4fcb-b6f5-0a904fc7701d.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2021-09-27/4f638327-8660-4435-a537-dc7c1ab35898.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2021-10-15/785b62cf-a887-43fa-b1ab-6de8c9a6550f.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2021-09-27/1edb6c1c-0f30-4f04-bf82-b3f644b8d10c.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2021-10-15/156213e2-068c-4997-b058-2534afb71ae1.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2021-09-27/1684dde2-73a4-4242-9642-a69efe1ff6f2.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2021-09-27/3a6e8abf-8cb5-4c3d-b715-8fef0eae0fa2.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2021-09-27/03d7e33d-5ae3-4b28-a607-60d69505d99b.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2021-09-27/d5e1044b-3994-473b-994e-c7689e0adbef.jpeg.a.jpeg”,
“https://t16img.yangkeduo.com/garner-api/cc4674f2ce67c9d6452359ec9aa8423a.jpeg”,
“https://img.pddpic.com/mms-material-img/2021-09-27/706d2c6e-c8d0-42a0-813e-cb22166ebf69.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2021-09-27/0fbcf2ba-0045-4658-b4bc-668e52dfa481.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2021-09-27/f863c911-1c21-4ba3-be57-4e966da1fa14.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2021-09-27/ad031ad5-bad3-445f-b7e8-4890f2cf6af4.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2021-09-27/cf46f6cf-aec1-458c-88a0-6b8bffb79321.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2021-09-27/2d87d07b-c0ce-4514-a975-0a7d0d4de057.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2021-09-27/55256bf4-5fa0-4526-b1e2-9659d9ca101e.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2021-09-27/ef2c4dda-283f-4f72-8f86-949c6acd6316.jpeg.a.jpeg”,
“https://t16img.yangkeduo.com/garner-api/8fa9908dcc11c45836e3fc0038b76af3.jpeg”,
“https://img.pddpic.com/mms-material-img/2021-09-27/3d274cb8-dfb6-4ae6-ab7d-1574260a9261.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2021-09-27/426373f6-fd48-47f4-b95b-76ce1205a238.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2021-09-27/fe0f0d3f-6624-4ebf-9aad-23953b2d8e90.jpeg.a.jpeg”,
“https://img.pddpic.com/mms-material-img/2021-12-16/53189d36-9e19-44d7-a673-1b6738d27178.png”,
“https://img.pddpic.com/mms-material-img/2021-12-16/ab035186-49fa-40c5-9e14-9316b5767308.png”,
“https://img.pddpic.com/mms-material-img/2022-01-20/443108b5-c4bf-4090-b3be-47bcc2758c3d.png”
],
“shop_item”: [],
“relate_items”: []
},
“error”: “”,
“secache”: “e56f61c7f1bab558d226da5839d8f1fc”,
“secache_time”: 1657790070,
“secache_date”: “2022-07-14 17:14:30”,
“translate_status”: “”,
“translate_time”: 0,
“language”: {
“default_lang”: “cn”,
“current_lang”: “cn”
},
“reason”: “”,
“error_code”: “0000”,
“cache”: 0,
“api_info”: “today:115 max:10100 all[222=115+38+69];expires:2030-12-31”,
“execution_time”: “0.139”,
“server_time”: “Beijing/2022-07-14 17:14:30”,
“client_ip”: “106.6.38.1”,
“call_args”: {
“num_iid”: “257406755262”
},
“api_type”: “pinduoduo”,
“translate_language”: “zh-CN”,
“translate_engine”: “baidu”,
“server_memory”: “3.21MB”,
“request_id”: “gw-1.62cfde76172cd”,
“last_id”: “1077941794”
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。