1688API技术解析,实现获得1688商品详情

本文涉及的产品
云解析 DNS,旗舰版 1个月
全局流量管理 GTM,标准版 1个月
公共DNS(含HTTPDNS解析),每月1000万次HTTP解析
简介: 1688API技术解析,实现获得1688商品详情

要实现获得1688商品详情,你需要使用1688 API。1688 API是阿里巴巴旗下的开放平台,它提供了一套丰富的接口,可以让开发者通过编程的方式获取到1688网站上的商品信息。

首先,你需要在阿里开放平台注册一个账号,并创建一个应用。然后,根据1688开放平台的文档,了解和学习相关的API接口。

获得1688商品详情的一般步骤如下:

  1. 获取AccessToken:首先需要获取一个有效的AccessToken,以进行后续的请求操作。你可以使用阿里开放平台提供的OAuth认证方式获取AccessToken,具体的流程可以参考开放平台的文档。

  2. 构造请求URL:根据接口文档,构造获取商品详情的请求URL。一般来说,你需要提供商品的ID或者其他相关的参数作为请求的参数。

  3. 发送请求:使用HTTP请求库发送GET或者POST请求,将构造好的请求URL发送给1688服务器。

  4. 解析响应:收到服务器的响应后,你需要对返回的数据进行解析,提取出需要的商品详情信息。
    图片.png
    阿里巴巴中国站获得1688商品详情 API 返回值说明

请求参数

请求参数:num_iid=610947572360

参数说明:num_iid:1688商品ID
sales_data:&sales_data=1 获取近30天成交数据
agent:&agent=1 获取1688分销代发价格数据
————————————————

Result Object:
---------------------------------------
{
    "item": {
        "num_iid": "730270304091",
        "title": "女装字母针织衫女2023早秋新款简约圆领撞色高级感毛织上衣18882",
        "desc_short": "",
        "price": "84.00",
        "total_price": 0,
        "suggestive_price": 0,
        "orginal_price": "89.00",
        "nick": "Allo Fu品牌旗舰店",
        "num": "1301",
        "min_num": "3",
        "detail_url": "https://detail.1688.com/offer/730270304091.html",
        "pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN01GIOM7g2LISQHR85KJ_!!971979669-0-cib.jpg",
        "brand": "",
        "brandId": "",
        "rootCatId": "10166",
        "cid": "127386001",
        "crumbs": [],
        "created_time": "",
        "modified_time": "",
        "delist_time": "",
        "desc": "<div id=\"offer-template-0\"></div><div ><img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01HuGcSX2LISQIiKdon_!!971979669-0-cib.jpg\" usemap=\"#_sdmap_0\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01HJlYAa2LISQEwhAj5_!!971979669-0-cib.jpg\" usemap=\"#_sdmap_1\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN017tiy8e2LISQBnWBKa_!!971979669-0-cib.jpg\" usemap=\"#_sdmap_2\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01roeJg82LISQ3Bl0bo_!!971979669-0-cib.jpg\" usemap=\"#_sdmap_3\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01cdyGUJ2LISQ9kBmBC_!!971979669-0-cib.jpg\" usemap=\"#_sdmap_4\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01jMnhtc2LISQIiKRNQ_!!971979669-0-cib.jpg\" usemap=\"#_sdmap_5\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01c6uKAy2LISQBy5x6E_!!971979669-0-cib.jpg\" usemap=\"#_sdmap_6\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01TAFvgO2LISQ7tVZ8z_!!971979669-0-cib.jpg\" usemap=\"#_sdmap_7\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01TtWxUK2LISQGTUKFO_!!971979669-0-cib.jpg\" usemap=\"#_sdmap_8\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01N2hZGH2LISQ7tVELa_!!971979669-0-cib.jpg\" usemap=\"#_sdmap_9\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01s5UcgN2LISQD1uBOp_!!971979669-0-cib.jpg\" usemap=\"#_sdmap_10\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01RP3uVd2LISQEHQg3W_!!971979669-0-cib.jpg\" usemap=\"#_sdmap_11\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN0104hh7E2LISQ7tVMfm_!!971979669-0-cib.jpg\" usemap=\"#_sdmap_12\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN018RNvM52LISQBnXn9o_!!971979669-0-cib.jpg\" usemap=\"#_sdmap_13\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01B3nWZd2LISQAgwPxR_!!971979669-0-cib.jpg\" usemap=\"#_sdmap_14\"/></div><img src=\"https://www.o0b.cn/i.php?t.png&rid=gw-4.64e9ad1609fd1&p=1032055908&k=i_key&t=1693035798\" style=\"display:none\" />",
        "desc_img": [
            "https://cbu01.alicdn.com/img/ibank/O1CN01HuGcSX2LISQIiKdon_!!971979669-0-cib.jpg",
            "https://cbu01.alicdn.com/img/ibank/O1CN01HJlYAa2LISQEwhAj5_!!971979669-0-cib.jpg",
            "https://cbu01.alicdn.com/img/ibank/O1CN017tiy8e2LISQBnWBKa_!!971979669-0-cib.jpg",
            "https://cbu01.alicdn.com/img/ibank/O1CN01roeJg82LISQ3Bl0bo_!!971979669-0-cib.jpg",
            "https://cbu01.alicdn.com/img/ibank/O1CN01cdyGUJ2LISQ9kBmBC_!!971979669-0-cib.jpg",
            "https://cbu01.alicdn.com/img/ibank/O1CN01jMnhtc2LISQIiKRNQ_!!971979669-0-cib.jpg",
            "https://cbu01.alicdn.com/img/ibank/O1CN01c6uKAy2LISQBy5x6E_!!971979669-0-cib.jpg",
            "https://cbu01.alicdn.com/img/ibank/O1CN01TAFvgO2LISQ7tVZ8z_!!971979669-0-cib.jpg",
            "https://cbu01.alicdn.com/img/ibank/O1CN01TtWxUK2LISQGTUKFO_!!971979669-0-cib.jpg",
            "https://cbu01.alicdn.com/img/ibank/O1CN01N2hZGH2LISQ7tVELa_!!971979669-0-cib.jpg",
            "https://cbu01.alicdn.com/img/ibank/O1CN01s5UcgN2LISQD1uBOp_!!971979669-0-cib.jpg",
            "https://cbu01.alicdn.com/img/ibank/O1CN01RP3uVd2LISQEHQg3W_!!971979669-0-cib.jpg",
            "https://cbu01.alicdn.com/img/ibank/O1CN0104hh7E2LISQ7tVMfm_!!971979669-0-cib.jpg",
            "https://cbu01.alicdn.com/img/ibank/O1CN018RNvM52LISQBnXn9o_!!971979669-0-cib.jpg",
            "https://cbu01.alicdn.com/img/ibank/O1CN01B3nWZd2LISQAgwPxR_!!971979669-0-cib.jpg"
        ],
        "item_imgs": [
            {
                "url": "https://cbu01.alicdn.com/img/ibank/O1CN01yZC2P62LISQHR6wYK_!!971979669-0-cib.jpg"
            },
            {
                "url": "https://cbu01.alicdn.com/img/ibank/O1CN01EUX0lc2LISQFu3HGQ_!!971979669-0-cib.jpg"
            },
            {
                "url": "https://cbu01.alicdn.com/img/ibank/O1CN01RgzTyf2LISQCjAkCO_!!971979669-0-cib.jpg"
            },
            {
                "url": "https://cbu01.alicdn.com/img/ibank/O1CN01MZ2rUh2LISQDzKmp8_!!971979669-0-cib.jpg"
            },
            {
                "url": "https://cbu01.alicdn.com/img/ibank/O1CN01CkLv012LISQGOLlfb_!!971979669-0-cib.jpg"
            }
        ],
        "item_weight": "",
        "item_size": "",
        "location": "广东省广州市",
        "post_fee": null,
        "express_fee": "",
        "ems_fee": "",
        "shipping_to": "",
        "has_discount": "",
        "video": "https://cloud.video.taobao.com/play/u/971979669/p/2/e/6/t/1/421109835032.mp4",
        "is_virtual": "",
        "sample_id": "",
        "is_promotion": "",
        "props_name": "0:0:颜色:灰色;0:1:颜色:粉色;0:2:颜色:白;0:3:颜色:黑色;0:4:颜色:黄色;0:5:颜色:兰色;0:6:颜色:杏;0:7:颜色:白色等毛料 预售24-26号",
        "prop_imgs": {
            "prop_img": [
                {
                    "properties": "0:0",
                    "url": "https://cbu01.alicdn.com/img/ibank/O1CN01OD5piW2LISQFQnRe3_!!971979669-0-cib.jpg"
                },
                {
                    "properties": "0:1",
                    "url": "https://cbu01.alicdn.com/img/ibank/O1CN01rxRNLt2LISQEHL2Hp_!!971979669-0-cib.jpg"
                },
                {
                    "properties": "0:2",
                    "url": "https://cbu01.alicdn.com/img/ibank/O1CN01p87oex2LISQT2LFgh_!!971979669-0-cib.jpg"
                },
                {
                    "properties": "0:3",
                    "url": "https://cbu01.alicdn.com/img/ibank/O1CN0117EoIJ2LISQGTQhIZ_!!971979669-0-cib.jpg"
                },
                {
                    "properties": "0:4",
                    "url": "https://cbu01.alicdn.com/img/ibank/O1CN01ff7ZdP2LISQIiDznn_!!971979669-0-cib.jpg"
                },
                {
                    "properties": "0:5",
                    "url": "https://cbu01.alicdn.com/img/ibank/O1CN01v8DNmk2LISQWmPVjE_!!971979669-0-cib.jpg"
                },
                {
                    "properties": "0:6",
                    "url": "https://cbu01.alicdn.com/img/ibank/O1CN01bVzFCl2LISQRjZQ9M_!!971979669-0-cib.jpg"
                }
            ]
        },
        "property_alias": "0:0:灰色;0:1:粉色;0:2:白;0:3:黑色;0:4:黄色;0:5:兰色;0:6:杏;0:7:白色等毛料 预售24-26号",
        "props": [
            {
                "name": "货号",
                "value": "L18882(KAW50)"
            },
            {
                "name": "品牌",
                "value": "Allo Fu"
            },
            {
                "name": "面料名称",
                "value": "马海毛混纺"
            },
            {
                "name": "主面料成分2",
                "value": "羊毛"
            },
            {
                "name": "主面料成分",
                "value": "马海毛"
            },
            {
                "name": "图案",
                "value": "拼色"
            },
            {
                "name": "厚薄",
                "value": "薄"
            },
            {
                "name": "组合形式",
                "value": "单件"
            },
            {
                "name": "款式",
                "value": "套头"
            },
            {
                "name": "版型",
                "value": "宽松型"
            },
            {
                "name": "袖型",
                "value": "常规袖"
            },
            {
                "name": "上市年份/季节",
                "value": "2023年秋季"
            },
            {
                "name": "领型",
                "value": "圆领"
            },
            {
                "name": "袖长",
                "value": "三分袖"
            },
            {
                "name": "流行元素",
                "value": "拼接"
            },
            {
                "name": "衣长",
                "value": "普通款(50cm<衣长≤65cm)"
            },
            {
                "name": "工艺",
                "value": "拼贴/拼接"
            },
            {
                "name": "颜色",
                "value": "灰色,粉色,白,黑色,黄色,兰色,杏,白色等毛料 预售24-26号"
            },
            {
                "name": "风格类型",
                "value": "日韩休闲"
            },
            {
                "name": "穿着方式",
                "value": "套头"
            },
            {
                "name": "主面料成分含量",
                "value": "30%以下"
            },
            {
                "name": "主面料成分2含量",
                "value": "30%以下"
            },
            {
                "name": "门襟",
                "value": "套头"
            },
            {
                "name": "风格",
                "value": "韩系风"
            },
            {
                "name": "跨境风格类型",
                "value": "舒适休闲"
            },
            {
                "name": "是否跨境货源",
                "value": "是"
            },
            {
                "name": "主要下游销售地区1",
                "value": "欧美"
            },
            {
                "name": "主要下游销售地区2",
                "value": "东南亚"
            }
        ],
        "total_sold": null,
        "skus": {
            "sku": [
                {
                    "price": "89.00",
                    "total_price": 0,
                    "sales": "151",
                    "properties": "0:0",
                    "properties_name": "0:0:颜色:灰色",
                    "quantity": "186",
                    "sku_id": "5059873632883",
                    "spec_id": "6a67a0c231ddcbfe73c4ab1dfcaa0ced"
                },
                {
                    "price": "89.00",
                    "total_price": 0,
                    "sales": "19",
                    "properties": "0:1",
                    "properties_name": "0:1:颜色:粉色",
                    "quantity": "197",
                    "sku_id": "5059873632880",
                    "spec_id": "b1a1765aa55aec4e02d84ce81ac546d2"
                },
                {
                    "price": "89.00",
                    "total_price": 0,
                    "sales": "90",
                    "properties": "0:2",
                    "properties_name": "0:2:颜色:白",
                    "quantity": "165",
                    "sku_id": "5244728119590",
                    "spec_id": "22b7a81fb5dc71355474adb9a897a959"
                },
                {
                    "price": "89.00",
                    "total_price": 0,
                    "sales": "38",
                    "properties": "0:3",
                    "properties_name": "0:3:颜色:黑色",
                    "quantity": "189",
                    "sku_id": "5059873632881",
                    "spec_id": "f561c4f7cdb23de81fc2303ebf1e8f55"
                },
                {
                    "price": "89.00",
                    "total_price": 0,
                    "sales": "20",
                    "properties": "0:4",
                    "properties_name": "0:4:颜色:黄色",
                    "quantity": "192",
                    "sku_id": "5059873632884",
                    "spec_id": "36c58a69219820709b9475e70bd789d4"
                },
                {
                    "price": "89.00",
                    "total_price": 0,
                    "sales": "13",
                    "properties": "0:5",
                    "properties_name": "0:5:颜色:兰色",
                    "quantity": "192",
                    "sku_id": "5244728119592",
                    "spec_id": "94747cbad6f33a76561813352956a3ec"
                },
                {
                    "price": "89.00",
                    "total_price": 0,
                    "sales": "48",
                    "properties": "0:6",
                    "properties_name": "0:6:颜色:杏",
                    "quantity": "180",
                    "sku_id": "5244728119591",
                    "spec_id": "d14cb9acf93d73bfbdbbea86ced9ca51"
                },
                {
                    "price": "89.00",
                    "total_price": 0,
                    "sales": "0",
                    "properties": "0:7",
                    "properties_name": "0:7:颜色:白色等毛料 预售24-26号",
                    "quantity": "0",
                    "sku_id": "5079533017876",
                    "spec_id": "99b021f7d6009c90d436699caff8f7ae"
                }
            ]
        },
        "seller_id": "971979669",
        "sales": 502,
        "shop_id": "971979669",
        "props_list": {
            "0:0": "颜色:灰色",
            "0:1": "颜色:粉色",
            "0:2": "颜色:白",
            "0:3": "颜色:黑色",
            "0:4": "颜色:黄色",
            "0:5": "颜色:兰色",
            "0:6": "颜色:杏",
            "0:7": "颜色:白色等毛料 预售24-26号"
        },
        "seller_info": {
            "nick": "Allo Fu品牌旗舰店",
            "user_num_id": "971979669",
            "sid": "xingxingyl",
            "title": "Allo Fu品牌旗舰店",
            "zhuy": "https://winport.m.1688.com/page/index.html?memberId=xingxingyl",
            "shop_name": "广州衣夫服饰有限公司"
        },
        "tmall": "false",
        "error": "",
        "warning": "",
        "url_log": [],
        "unit": null,
        "is_support_mix": "true",
        "mix_amount": "500",
        "mix_begin": "0",
        "mix_number": "2147483647",
        "scale": "",
        "sellUnit": "件",
        "props_img": {
            "0:0": "https://cbu01.alicdn.com/img/ibank/O1CN01OD5piW2LISQFQnRe3_!!971979669-0-cib.jpg",
            "0:1": "https://cbu01.alicdn.com/img/ibank/O1CN01rxRNLt2LISQEHL2Hp_!!971979669-0-cib.jpg",
            "0:2": "https://cbu01.alicdn.com/img/ibank/O1CN01p87oex2LISQT2LFgh_!!971979669-0-cib.jpg",
            "0:3": "https://cbu01.alicdn.com/img/ibank/O1CN0117EoIJ2LISQGTQhIZ_!!971979669-0-cib.jpg",
            "0:4": "https://cbu01.alicdn.com/img/ibank/O1CN01ff7ZdP2LISQIiDznn_!!971979669-0-cib.jpg",
            "0:5": "https://cbu01.alicdn.com/img/ibank/O1CN01v8DNmk2LISQWmPVjE_!!971979669-0-cib.jpg",
            "0:6": "https://cbu01.alicdn.com/img/ibank/O1CN01bVzFCl2LISQRjZQ9M_!!971979669-0-cib.jpg"
        },
        "sales_data": null,
        "priceRange": [
            [
                "3",
                "89.00"
            ],
            [
                "10",
                "84.00"
            ]
        ],
        "priceRangeOriginal": [],
        "_ddf": "ti",
        "sales_info": {
            "seller_num": "",
            "repeat_rate_purchase": "",
            "per_capita_purchases": "",
            "comment_num": "",
            "comment_url": ""
        },
        "format_check": "ok",
        "shop_item": [],
        "relate_items": []
    },
    "error": "",
    "secache": "1437bd0794c1fedb41882166a9d6545d",
    "secache_time": 1692947909,
    "secache_date": "2023-08-25 15:18:29",
    "translate_status": "",
    "translate_time": 0,
    "language": {
        "default_lang": "cn",
        "current_lang": "cn"
    },
    "reason": "",
    "error_code": "0000",
    "cache": 1,
    "api_info": "today:65 max:10100 all[133=65+33+35];expires:2030-12-31",
    "execution_time": "0.041",
    "server_time": "Beijing/2023-08-26 15:43:18",
    "client_ip": "61.131.236.100",
    "call_args": {
        "num_iid": "730270304091"
    },
    "api_type": "1688",
    "translate_language": "zh-CN",
    "translate_engine": "baidu",
    "server_memory": "0.85MB",
    "request_id": "gw-4.64e9ad1609fd1",
    "last_id": "1983562487"
}
相关文章
|
23天前
|
监控 Java 应用服务中间件
高级java面试---spring.factories文件的解析源码API机制
【11月更文挑战第20天】Spring Boot是一个用于快速构建基于Spring框架的应用程序的开源框架。它通过自动配置、起步依赖和内嵌服务器等特性,极大地简化了Spring应用的开发和部署过程。本文将深入探讨Spring Boot的背景历史、业务场景、功能点以及底层原理,并通过Java代码手写模拟Spring Boot的启动过程,特别是spring.factories文件的解析源码API机制。
60 2
|
6天前
|
机器学习/深度学习 搜索推荐 API
淘宝/天猫按图搜索(拍立淘)API的深度解析与应用实践
在数字化时代,电商行业迅速发展,个性化、便捷性和高效性成为消费者新需求。淘宝/天猫推出的拍立淘API,利用图像识别技术,提供精准的购物搜索体验。本文深入探讨其原理、优势、应用场景及实现方法,助力电商技术和用户体验提升。
|
8天前
|
监控 数据管理 测试技术
API接口自动化测试深度解析与最佳实践指南
本文详细介绍了API接口自动化测试的重要性、核心概念及实施步骤,强调了从明确测试目标、选择合适工具、编写高质量测试用例到构建稳定测试环境、执行自动化测试、分析测试结果、回归测试及集成CI/CD流程的全过程,旨在为开发者提供一套全面的技术指南,确保API的高质量与稳定性。
|
23天前
|
网络协议 网络安全 网络虚拟化
本文介绍了十个重要的网络技术术语,包括IP地址、子网掩码、域名系统(DNS)、防火墙、虚拟专用网络(VPN)、路由器、交换机、超文本传输协议(HTTP)、传输控制协议/网际协议(TCP/IP)和云计算
本文介绍了十个重要的网络技术术语,包括IP地址、子网掩码、域名系统(DNS)、防火墙、虚拟专用网络(VPN)、路由器、交换机、超文本传输协议(HTTP)、传输控制协议/网际协议(TCP/IP)和云计算。通过这些术语的详细解释,帮助读者更好地理解和应用网络技术,应对数字化时代的挑战和机遇。
66 3
|
23天前
|
存储 网络协议 安全
30 道初级网络工程师面试题,涵盖 OSI 模型、TCP/IP 协议栈、IP 地址、子网掩码、VLAN、STP、DHCP、DNS、防火墙、NAT、VPN 等基础知识和技术,帮助小白们充分准备面试,顺利踏入职场
本文精选了 30 道初级网络工程师面试题,涵盖 OSI 模型、TCP/IP 协议栈、IP 地址、子网掩码、VLAN、STP、DHCP、DNS、防火墙、NAT、VPN 等基础知识和技术,帮助小白们充分准备面试,顺利踏入职场。
66 2
|
24天前
|
API 数据安全/隐私保护
抖音视频,图集无水印直链解析免费API接口教程
该接口用于解析抖音视频和图集的无水印直链地址。请求地址为 `https://cn.apihz.cn/api/fun/douyin.php`,支持POST或GET请求。请求参数包括用户ID、用户KEY和视频或图集地址。返回参数包括状态码、信息提示、作者昵称、标题、视频地址、封面、图集和类型。示例请求和返回数据详见文档。
|
26天前
|
监控 关系型数据库 MySQL
MySQL自增ID耗尽应对策略:技术解决方案全解析
在数据库管理中,MySQL的自增ID(AUTO_INCREMENT)属性为表中的每一行提供了一个唯一的标识符。然而,当自增ID达到其最大值时,如何处理这一情况成为了数据库管理员和开发者必须面对的问题。本文将探讨MySQL自增ID耗尽的原因、影响以及有效的应对策略。
88 3
|
1月前
|
机器学习/深度学习 人工智能 自然语言处理
思通数科AI平台在尽职调查中的技术解析与应用
思通数科AI多模态能力平台结合OCR、NLP和深度学习技术,为IPO尽职调查、融资等重要交易环节提供智能化解决方案。平台自动识别、提取并分类海量文档,实现高效数据核验与合规性检查,显著提升审查速度和精准度,同时保障敏感信息管理和数据安全。
98 11
|
28天前
|
Kubernetes Cloud Native 云计算
云原生技术深度解析:重塑企业IT架构的未来####
本文深入探讨了云原生技术的核心理念、关键技术组件及其对企业IT架构转型的深远影响。通过剖析Kubernetes、微服务、容器化等核心技术,本文揭示了云原生如何提升应用的灵活性、可扩展性和可维护性,助力企业在数字化转型中保持领先地位。 ####
|
29天前
|
自然语言处理 并行计算 数据可视化
免费开源法律文档比对工具:技术解析与应用
这款免费开源的法律文档比对工具,利用先进的文本分析和自然语言处理技术,实现高效、精准的文档比对。核心功能包括文本差异检测、多格式支持、语义分析、批量处理及用户友好的可视化界面,广泛适用于法律行业的各类场景。

推荐镜像

更多