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

本文涉及的产品
全局流量管理 GTM,标准版 1个月
公共DNS(含HTTPDNS解析),每月1000万次HTTP解析
云解析 DNS,旗舰版 1个月
简介: 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"
}
相关文章
|
6天前
|
机器学习/深度学习 人工智能 自然语言处理
AI技术深度解析:从基础到应用的全面介绍
人工智能(AI)技术的迅猛发展,正在深刻改变着我们的生活和工作方式。从自然语言处理(NLP)到机器学习,从神经网络到大型语言模型(LLM),AI技术的每一次进步都带来了前所未有的机遇和挑战。本文将从背景、历史、业务场景、Python代码示例、流程图以及如何上手等多个方面,对AI技术中的关键组件进行深度解析,为读者呈现一个全面而深入的AI技术世界。
56 10
|
5天前
|
数据采集 JSON API
如何利用Python爬虫淘宝商品详情高级版(item_get_pro)API接口及返回值解析说明
本文介绍了如何利用Python爬虫技术调用淘宝商品详情高级版API接口(item_get_pro),获取商品的详细信息,包括标题、价格、销量等。文章涵盖了环境准备、API权限申请、请求构建和返回值解析等内容,强调了数据获取的合规性和安全性。
|
4天前
|
JSON 自然语言处理 Java
OpenAI API深度解析:参数、Token、计费与多种调用方式
随着人工智能技术的飞速发展,OpenAI API已成为许多开发者和企业的得力助手。本文将深入探讨OpenAI API的参数、Token、计费方式,以及如何通过Rest API(以Postman为例)、Java API调用、工具调用等方式实现与OpenAI的交互,并特别关注调用具有视觉功能的GPT-4o使用本地图片的功能。此外,本文还将介绍JSON模式、可重现输出的seed机制、使用代码统计Token数量、开发控制台循环聊天,以及基于最大Token数量的消息列表限制和会话长度管理的控制台循环聊天。
39 7
|
13天前
|
机器学习/深度学习 人工智能 自然语言处理
秒级响应 + 99.9%准确率:法律行业文本比对技术解析
本工具基于先进AI技术,采用自然语言处理和语义匹配算法,支持PDF、Word等格式,实现法律文本的智能化比对。具备高精度语义匹配、多格式兼容、高性能架构及智能化标注与可视化等特点,有效解决文本复杂性和法规更新难题,提升法律行业工作效率。
|
10天前
|
数据采集 存储 JavaScript
网页爬虫技术全解析:从基础到实战
在信息爆炸的时代,网页爬虫作为数据采集的重要工具,已成为数据科学家、研究人员和开发者不可或缺的技术。本文全面解析网页爬虫的基础概念、工作原理、技术栈与工具,以及实战案例,探讨其合法性与道德问题,分享爬虫设计与实现的详细步骤,介绍优化与维护的方法,应对反爬虫机制、动态内容加载等挑战,旨在帮助读者深入理解并合理运用网页爬虫技术。
|
16天前
|
机器学习/深度学习 自然语言处理 监控
智能客服系统集成技术解析和价值点梳理
在 2024 年的智能客服系统领域,合力亿捷等服务商凭借其卓越的技术实力引领潮流,它们均积极应用最新的大模型技术,推动智能客服的进步。
51 7
|
17天前
|
机器学习/深度学习 搜索推荐 API
淘宝/天猫按图搜索(拍立淘)API的深度解析与应用实践
在数字化时代,电商行业迅速发展,个性化、便捷性和高效性成为消费者新需求。淘宝/天猫推出的拍立淘API,利用图像识别技术,提供精准的购物搜索体验。本文深入探讨其原理、优势、应用场景及实现方法,助力电商技术和用户体验提升。
|
19天前
|
监控 数据管理 测试技术
API接口自动化测试深度解析与最佳实践指南
本文详细介绍了API接口自动化测试的重要性、核心概念及实施步骤,强调了从明确测试目标、选择合适工具、编写高质量测试用例到构建稳定测试环境、执行自动化测试、分析测试结果、回归测试及集成CI/CD流程的全过程,旨在为开发者提供一套全面的技术指南,确保API的高质量与稳定性。
|
21天前
|
负载均衡 网络协议 算法
Docker容器环境中服务发现与负载均衡的技术与方法,涵盖环境变量、DNS、集中式服务发现系统等方式
本文探讨了Docker容器环境中服务发现与负载均衡的技术与方法,涵盖环境变量、DNS、集中式服务发现系统等方式,以及软件负载均衡器、云服务负载均衡、容器编排工具等实现手段,强调两者结合的重要性及面临挑战的应对措施。
49 3
|
10天前
|
供应链 搜索推荐 数据挖掘
1688搜索词推荐API接口:开发应用与收益全解析
在电商数据驱动时代,1688搜索词推荐API接口为开发者、供应商及电商从业者提供强大工具,优化业务流程,提升竞争力。该接口基于1688平台的海量数据,提供精准搜索词推荐,助力电商平台优化搜索体验,提高供应商商品曝光度与销售转化率,同时为企业提供市场分析与商业洞察,促进精准决策与成本降低。通过集成此API,各方可实现流量增长、销售额提升及运营优化,推动电商行业的创新发展。
23 0

推荐镜像

更多