如何调用1688 API获取商品详情数据

背景
在很多行业,比如商品采集、刊登、数据分析行业都需要用到相关的商品接口,但是官方一般又没有开放这些接口,怎么办?
解决方案
【如何调用1688 API获取商品详情数据】js逆向爬虫倒是很简单,但是根本扛不住大量调用,不稳定,目前主流的方案都是逆向APP获取数据,但是这个不是一般人又能力去做的,加上淘系变化频繁,防爬越来越严,技术难度和成本也越来越大,不建议尝试。没有能力的也可以找第三方api提供商
参考示例

{ "code": 200, "msg": "success", "data": { "item_id": 650280103038, "title": "多功能硅胶洗碗刷不易沾油抹布 双面硅胶清洁刷 厨房刷锅洗碗家用", "category_id": "1039274", "root_category_id": "201547901", "currency": "CNY", "product_props": [ { "name": "产品类别", "value": "锅碟碗刷" }, { "name": "是否进口", "value": "否" }, { "name": "品牌", "value": "其他" }, { "name": "货号", "value": "硅胶洗碗刷" }, { "name": "材质", "value": "其他" }, { "name": "产地", "value": "浙江" }, { "name": "贸易属性", "value": "内贸" }, { "name": "包装", "value": "OPP袋" }, { "name": "价格段", "value": "5元以内" }, { "name": "产品上市时间", "value": "2014年夏" }, { "name": "专利", "value": "否" }, { "name": "只数", "value": "1" }, { "name": "是否跨境出口专供货源", "value": "否" }, { "name": "编码", "value": "HUYOU49" } ], "main_imgs": [ "https://cbu01.alicdn.com/img/ibank/O1CN01rF21CX2BYoEdRjHaS_!!2211376138351-0-cib.jpg", "https://cbu01.alicdn.com/img/ibank/O1CN01A40OHp2BYoEeboHqi_!!2211376138351-0-cib.jpg", "https://cbu01.alicdn.com/img/ibank/O1CN01fqu23R2BYoEbohtfk_!!2211376138351-0-cib.jpg", "https://cbu01.alicdn.com/img/ibank/O1CN01CGGHzo2BYoET7fmpI_!!2211376138351-0-cib.jpg", "https://cbu01.alicdn.com/img/ibank/O1CN01HB4DSL2BYoEh2Canb_!!2211376138351-0-cib.jpg" ], "video_url": "", "sale_count": "5969", "shop_info": { "shop_name": "义乌市域风电子商务商行", "seller_id": null }, "sku_price_scale": "¥1.00", "sku_price_scale_original": "¥3.00", "sku_price_range": { "begin_num": null, "stock": "49771", "sku_param": { "skuPriceType": "rangePrice", "skuRangePrices": [ { "beginAmount": "3", "price": "1.00", "startAmount": "3" } ] } }, "sku_props": [], "skus": [ { "skuid": "0", "sale_price": "1.00", "stock": "49771", "props_ids": "", "props_names": "" } ] } }

    推荐阅读