• 淘宝商品详情API接口


    一、先简单回答两个问题:


    1、PHP 可以开发客户端?
    答:不可以,因为PHP是脚本语言,是负责完成 B/S架构 或 C/S架构 的S部分,即:服务端的开发。(别去纠结 GTK、WinBinder)

    2、为什么选择 PHP 作为开发服务端的首选?
    答:跨平台(可以运行在UNIX、LINUX、WINDOWS、Mac OS下)、低消耗(PHP消耗相当少的系统资源)、运行效率高(相对而言)、MySQL的完美搭档,本身是免费开源的,......

    API接口工具

     二、详情数据

    1、请求示例

    2、响应参数

    名称类型必须示例值描述

    item

    item[]1宝贝详情数据

    num_iid

    Bigint1520813250866宝贝ID

    title

    String1三刃木折叠刀过安检创意迷你钥匙扣钥匙刀军刀随身多功能小刀包邮宝贝标题

    desc_short

    String0商品简介

    promotion_price

    Int0优惠价

    price

    Float125.8价格

    total_price

    Float00

    suggestive_price

    Float00

    orginal_price

    String025.80原价

    nick

    String0欢乐购客栈掌柜昵称

    num

    Int03836库存

    min_num

    Int00最小购买数

    detail_url

    String0http://item.taobao.com/item.htm?id=520813250866宝贝链接

    pic_url

    String1//gd2.alicdn.com/imgextra/i4/2596264565/TB2p30elFXXXXXQXpXXXXXXXXXX_!!2596264565.jpg宝贝图片

    brand

    String0三刃木品牌名称

    brandId

    Int08879363品牌ID

    rootCatId

    Int050013886顶级分类ID

    cid

    Int150014822

    crumbs

    Mix0[]导航菜单

    created_time

    String0

    modified_time

    String0

    delist_time

    String0

    desc

    String0商品详情

    desc_img

    Mix0[]商品详情图片

    item_imgs

    Mix0item_imgs[]商品图片

    item_weight

    String0

    item_size

    String0

    location

    String0发货地

    express_fee

    Float00.00快递费用

    ems_fee

    Float0EMS费用

    post_fee

    Float0物流费用

    shipping_to

    String0发货至

    has_discount

    Boolean0false是否有优惠

    video

    video[]0商品视频

    is_virtual

    String0

    sample_id

    String0商品风格标识ID

    is_promotion

    Boolean0false是否促销

    props_name

    String01627207:1347647754:颜色分类:长方形带开瓶器+送工具刀卡+链子;1627207:1347647753:颜色分类:椭圆形带开瓶器+送工具刀卡+链子;商品属性名。格式为pid1:vid1:name1:value1;pid1:vid2:name2:value2。

    prop_imgs

    prop_imgs[]0商品属性图片列表

    property_alias

    String020509:9974422:36;1627207:28326:红色;20509:9975710:38;1627207:28326:红色;20509:9981357:40;1627207:28326:红色销售属性值别名。格式为pid1:vid1:alias1;pid1:vid2:alia2。

    props

    Mix0[{ "name": "产地","value": "中国" }]商品属性

    total_sold

    Int0

    skus

    skus[]0商品规格信息列表

    seller_id

    Int02844096782卖家ID

    sales

    Int0138销量

    shop_id

    Int0151372205店铺ID

    props_list

    Mix0{20509:9974422: 尺码:36}商品属性

    seller_info

    seller_info[]1卖家信息

    tmall

    Boolean0false是否天猫

    error

    String0错误信息

    warning

    String0警告信息

    url_log

    Mix0[]

    favcount

    Int00

    fanscount

    Int00

    method

    String0item_tmall:pget_item

    promo_type

    String0

    props_img

    Mix01627207:28326": "//img.alicdn.com/imgextra/i2/2844096782/O1CN01VrjpXt1zyCc9DvERE_!!2844096782.jpg属性图片

    shop_item

    Mix0[]

    relate_items

    Mix0[]

     3、响应示例

    {
        "item": {
            "num_iid": "673580114813",
            "title": "JNXS江南先生Cityboy日系情侣装短袖T恤POLO衫男夏季潮牌工装衬衣",
            "desc_short": "",
            "price": "119",
            "orginal_price": "179.00",
            "nick": "江南先生旗舰店",
            "num": "200",
            "pic_url": "//img.alicdn.com/imgextra/i1/2164625143/O1CN01rlT5ab1nrXjLDL3js_!!2164625143.jpg",
            "brand": "",
            "brandId": "649592411",
            "rootCatId": "30",
            "cid": "50010402",
            "crumbs": [],
            "detail_url": "https://item.taobao.com/item.htm?id=673580114813",
            "desc": "",
            "item_imgs": [
                {
                    "url": "//img.alicdn.com/imgextra/i1/2164625143/O1CN01rlT5ab1nrXjLDL3js_!!2164625143.jpg"
                },
                {
                    "url": "//img.alicdn.com/imgextra/i2/2164625143/O1CN01iJEkNK1nrXiYbJjzr_!!2164625143-0-lubanu-s.jpg"
                },
                {
                    "url": "//img.alicdn.com/imgextra/i3/2164625143/O1CN01vodCrt1nrXibbz72q_!!2164625143-0-lubanu-s.jpg"
                },
                {
                    "url": "//img.alicdn.com/imgextra/i3/2164625143/O1CN01LMnuy51nrXiuSiJY6_!!2164625143-0-lubanu-s.jpg"
                },
                {
                    "url": "//img.alicdn.com/imgextra/i1/2164625143/O1CN01r5bdRh1nrXiobLpSS_!!2164625143-0-lubanu-s.jpg"
                }
            ],
            "item_weight": 0,
            "location": "浙江杭州",
            "post_fee": "  免运费",
            "express_fee": 0,
            "ems_fee": 0,
            "shipping_to": "",
            "has_discount": "true",
            "video": [],
            "is_virtual": "",
            "sample_id": "",
            "is_promotion": "true",
            "prop_imgs": {
                "prop_img": [
                    {
                        "properties": "1627207:3232483",
                        "url": "//img.alicdn.com/imgextra/i3/2164625143/O1CN01yaAoHg1nrXixoP3mL_!!2164625143.jpg"
                    },
                    {
                        "properties": "1627207:9995142",
                        "url": "//img.alicdn.com/imgextra/i3/2164625143/O1CN01Zevj471nrXj0cT7kl_!!2164625143.jpg"
                    },
                    {
                        "properties": "1627207:381840804",
                        "url": "//img.alicdn.com/imgextra/i1/2164625143/O1CN01jcNWLl1nrXijjld5Z_!!2164625143.jpg"
                    },
                    {
                        "properties": "1627207:3232478",
                        "url": "//img.alicdn.com/imgextra/i3/2164625143/O1CN01as3pfy1nrXiycQfX0_!!2164625143.jpg"
                    },
                    {
                        "properties": "1627207:20763493145",
                        "url": "//img.alicdn.com/imgextra/i1/2164625143/O1CN015Umy1X1nrXizWVS71_!!2164625143.jpg"
                    }
                ]
            },
            "property_alias": "",
            "props": [
                {
                    "name": "男装品牌",
                    "value": "江南先生"
                },
                {
                    "name": "尺码",
                    "value": "S M L XL"
                },
                {
                    "name": "图案",
                    "value": "其他/other"
                },
                {
                    "name": "颜色",
                    "value": "军绿色 深灰色 红棕色 石灰白 买就送同款徽章【此项勿拍】"
                },
                {
                    "name": "袖型",
                    "value": "常规"
                },
                {
                    "name": "货号",
                    "value": "JNYCS-5869"
                },
                {
                    "name": "细分风格",
                    "value": "日系复古"
                },
                {
                    "name": "基础风格",
                    "value": "青春流行"
                },
                {
                    "name": "适用季节",
                    "value": "夏季"
                },
                {
                    "name": "上市年份季节",
                    "value": "2022年夏季"
                },
                {
                    "name": "袖长",
                    "value": "短袖"
                },
                {
                    "name": "厚薄",
                    "value": "常规"
                },
                {
                    "name": "适用场景",
                    "value": "其他休闲"
                },
                {
                    "name": "版型",
                    "value": "宽松型"
                },
                {
                    "name": "服装款式细节",
                    "value": "徽章"
                },
                {
                    "name": "适用对象",
                    "value": "青年"
                },
                {
                    "name": "销售渠道类型",
                    "value": "纯电商(只在线上销售)"
                },
                {
                    "name": "材质成分",
                    "value": "棉54.8% 聚酰胺纤维(锦纶)40.8% 聚氨酯弹性纤维(氨纶)4.4%"
                }
            ],
            "props_name": "20509:28314:尺码:S;20509:28315:尺码:M;20509:28316:尺码:L;20509:28317:尺码:XL;1627207:3232483:颜色:军绿色;1627207:9995142:颜色:红棕色;1627207:381840804:颜色:石灰白;1627207:3232478:颜色:深灰色;1627207:20763493145:颜色:买就送同款徽章【此项勿拍】",
            "total_sold": 2830000,
            "skus": {
                "sku": [
                    {
                        "price": "119",
                        "total_price": 0,
                        "orginal_price": "119",
                        "properties": "20509:28314;1627207:3232483",
                        "properties_name": "20509:28314:尺码:S;1627207:3232483:颜色:军绿色",
                        "quantity": "83",
                        "sku_id": "5022022999175"
                    },
                    {
                        "price": "119",
                        "total_price": 0,
                        "orginal_price": "119",
                        "properties": "20509:28315;1627207:3232483",
                        "properties_name": "20509:28315:尺码:M;1627207:3232483:颜色:军绿色",
                        "quantity": "101",
                        "sku_id": "5022022999176"
                    },
                    {
                        "price": "119",
                        "total_price": 0,
                        "orginal_price": "119",
                        "properties": "20509:28316;1627207:3232483",
                        "properties_name": "20509:28316:尺码:L;1627207:3232483:颜色:军绿色",
                        "quantity": "115",
                        "sku_id": "5022022999177"
                    },
                    {
                        "price": "119",
                        "total_price": 0,
                        "orginal_price": "119",
                        "properties": "20509:28317;1627207:3232483",
                        "properties_name": "20509:28317:尺码:XL;1627207:3232483:颜色:军绿色",
                        "quantity": "24",
                        "sku_id": "5022022999178"
                    },
                    {
                        "price": "119",
                        "total_price": 0,
                        "orginal_price": "119",
                        "properties": "20509:28314;1627207:9995142",
                        "properties_name": "20509:28314:尺码:S;1627207:9995142:颜色:红棕色",
                        "quantity": "27",
                        "sku_id": "5022022999179"
                    },
                    {
                        "price": "119",
                        "total_price": 0,
                        "orginal_price": "119",
                        "properties": "20509:28315;1627207:9995142",
                        "properties_name": "20509:28315:尺码:M;1627207:9995142:颜色:红棕色",
                        "quantity": "54",
                        "sku_id": "5022022999180"
                    },
                    {
                        "price": "119",
                        "total_price": 0,
                        "orginal_price": "119",
                        "properties": "20509:28316;1627207:9995142",
                        "properties_name": "20509:28316:尺码:L;1627207:9995142:颜色:红棕色",
                        "quantity": "121",
                        "sku_id": "5022022999181"
                    },
                    {
                        "price": "119",
                        "total_price": 0,
                        "orginal_price": "119",
                        "properties": "20509:28317;1627207:9995142",
                        "properties_name": "20509:28317:尺码:XL;1627207:9995142:颜色:红棕色",
                        "quantity": "146",
                        "sku_id": "5022022999182"
                    },
                    {
                        "price": "119",
                        "total_price": 0,
                        "orginal_price": "119",
                        "properties": "20509:28314;1627207:381840804",
                        "properties_name": "20509:28314:尺码:S;1627207:381840804:颜色:石灰白",
                        "quantity": "54",
                        "sku_id": "5022022999183"
                    },
                    {
                        "price": "119",
                        "total_price": 0,
                        "orginal_price": "119",
                        "properties": "20509:28315;1627207:381840804",
                        "properties_name": "20509:28315:尺码:M;1627207:381840804:颜色:石灰白",
                        "quantity": "112",
                        "sku_id": "5022022999184"
                    },
                    {
                        "price": "119",
                        "total_price": 0,
                        "orginal_price": "119",
                        "properties": "20509:28316;1627207:381840804",
                        "properties_name": "20509:28316:尺码:L;1627207:381840804:颜色:石灰白",
                        "quantity": "70",
                        "sku_id": "5022022999185"
                    },
                    {
                        "price": "119",
                        "total_price": 0,
                        "orginal_price": "119",
                        "properties": "20509:28317;1627207:381840804",
                        "properties_name": "20509:28317:尺码:XL;1627207:381840804:颜色:石灰白",
                        "quantity": "71",
                        "sku_id": "5022022999186"
                    },
                    {
                        "price": "119",
                        "total_price": 0,
                        "orginal_price": "119",
                        "properties": "20509:28314;1627207:3232478",
                        "properties_name": "20509:28314:尺码:S;1627207:3232478:颜色:深灰色",
                        "quantity": "41",
                        "sku_id": "4844734140619"
                    },
                    {
                        "price": "119",
                        "total_price": 0,
                        "orginal_price": "119",
                        "properties": "20509:28315;1627207:3232478",
                        "properties_name": "20509:28315:尺码:M;1627207:3232478:颜色:深灰色",
                        "quantity": "62",
                        "sku_id": "4844734140620"
                    },
                    {
                        "price": "119",
                        "total_price": 0,
                        "orginal_price": "119",
                        "properties": "20509:28316;1627207:3232478",
                        "properties_name": "20509:28316:尺码:L;1627207:3232478:颜色:深灰色",
                        "quantity": "64",
                        "sku_id": "4844734140621"
                    },
                    {
                        "price": "119",
                        "total_price": 0,
                        "orginal_price": "119",
                        "properties": "20509:28317;1627207:3232478",
                        "properties_name": "20509:28317:尺码:XL;1627207:3232478:颜色:深灰色",
                        "quantity": "158",
                        "sku_id": "4844734140622"
                    },
                    {
                        "price": "119",
                        "total_price": 0,
                        "orginal_price": "119",
                        "properties": "20509:28314;1627207:20763493145",
                        "properties_name": "20509:28314:尺码:S;1627207:20763493145:颜色:买就送同款徽章【此项勿拍】",
                        "quantity": "0",
                        "sku_id": "4848261016171"
                    }
                ]
            },
            "seller_id": "2164625143",
            "shop_id": "112164290",
            "props_list": {
                "20509:28314": "尺码:S",
                "20509:28315": "尺码:M",
                "20509:28316": "尺码:L",
                "20509:28317": "尺码:XL",
                "1627207:3232483": "颜色:军绿色",
                "1627207:9995142": "颜色:红棕色",
                "1627207:381840804": "颜色:石灰白",
                "1627207:3232478": "颜色:深灰色",
                "1627207:20763493145": "颜色:买就送同款徽章【此项勿拍】"
            },
            "seller_info": {
                "nick": "江南先生旗舰店",
                "item_score": "4.7 ",
                "score_p": "4.8 ",
                "delivery_score": "4.8 ",
                "shop_type": "B",
                "user_num_id": "2164625143",
                "sid": "112164290",
                "title": "江南先生旗舰店",
                "zhuy": "https://shop112164290.taobao.com/",
                "shop_name": "江南先生旗舰店"
            },
            "tmall": true,
            "update_time": "2022-07-07 14:26:49",
            "data_update": "2022-07-07 14:26:49",
            "data_f": "xdl",
            "data_from": "hid",
            "promo_type": null,
            "props_img": {
                "1627207:3232483": "//img.alicdn.com/imgextra/i3/2164625143/O1CN01yaAoHg1nrXixoP3mL_!!2164625143.jpg",
                "1627207:9995142": "//img.alicdn.com/imgextra/i3/2164625143/O1CN01Zevj471nrXj0cT7kl_!!2164625143.jpg",
                "1627207:381840804": "//img.alicdn.com/imgextra/i1/2164625143/O1CN01jcNWLl1nrXijjld5Z_!!2164625143.jpg",
                "1627207:3232478": "//img.alicdn.com/imgextra/i3/2164625143/O1CN01as3pfy1nrXiycQfX0_!!2164625143.jpg",
                "1627207:20763493145": "//img.alicdn.com/imgextra/i1/2164625143/O1CN015Umy1X1nrXizWVS71_!!2164625143.jpg"
            },
            "error": null,
            "format_check": "ok",
            "sales": 0,
            "desc_img": [],
            "shop_item": [],
            "relate_items": []
        },
        "error": "",
        "secache": "7aadc856ab41f8261daa5e69896deb6c",
        "secache_time": 1659404224,
        "secache_date": "2022-08-02 09:37:04",
        "translate_status": "",
        "translate_time": 0,
        "language": {
            "default_lang": "cn",
            "current_lang": "cn"
        },
        "reason": "",
        "error_code": "0000",
        "cache": 0,
        "api_info": "today:17 max:10100 all[48=17+16+15];expires:2030-12-31",
        "execution_time": "0.293",
        "server_time": "Beijing/2022-08-02 09:37:04",
        "client_ip": "106.6.35.126",
        "call_args": {
            "num_iid": "673580114813",
            "is_promotion": "1"
        },
        "api_type": "taobao",
        "translate_language": "zh-CN",
        "translate_engine": "google_new",
        "server_memory": "5.89MB",
        "request_id": "gw-1.62e87fc025131",
        "last_id": "1122277050"
    }

  • 相关阅读:
    Django实战项目-学习任务系统-用户注册
    锅炉烟气在线监测设备 环保数采仪
    关于参与阿里巴巴编程之夏Asoc-Nacos的感悟
    C/C++内存管理(一)---->new和delete
    内存映射与物理内存结构
    Flutter 启动白屏
    web前端的float布局与flex布局
    创建了一个名为nums_list的vector容器,其中存储了一系列的pair<int, int>
    TCP(三次握手和四次挥手)与UDP特点、概念、区别
    Hive窗口函数语法
  • 原文地址:https://blog.csdn.net/ocean_hhn/article/details/126115416