淘宝商品详情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

Bigint 1 520813250866 宝贝ID

title

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

desc_short

String 0 商品简介

promotion_price

Int 0 优惠价

price

Float 1 25.8 价格

total_price

Float 0 0

suggestive_price

Float 0 0

orginal_price

String 0 25.80 原价

nick

String 0 欢乐购客栈 掌柜昵称

num

Int 0 3836 库存

min_num

Int 0 0 最小购买数

detail_url

String 0 http://item.taobao.com/item.htm?id=520813250866 宝贝链接

pic_url

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

brand

String 0 三刃木 品牌名称

brandId

Int 0 8879363 品牌ID

rootCatId

Int 0 50013886 顶级分类ID

cid

Int 1 50014822

crumbs

Mix 0 [] 导航菜单

created_time

String 0

modified_time

String 0

delist_time

String 0

desc

String 0 商品详情

desc_img

Mix 0 [] 商品详情图片

item_imgs

Mix 0 item_imgs[] 商品图片

item_weight

String 0

item_size

String 0

location

String 0 发货地

express_fee

Float 0 0.00 快递费用

ems_fee

Float 0 EMS费用

post_fee

Float 0 物流费用

shipping_to

String 0 发货至

has_discount

Boolean 0 false 是否有优惠

video

video[] 0 商品视频

is_virtual

String 0

sample_id

String 0 商品风格标识ID

is_promotion

Boolean 0 false 是否促销

props_name

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

prop_imgs

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

property_alias

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

props

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

total_sold

Int 0

skus

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

seller_id

Int 0 2844096782 卖家ID

sales

Int 0 138 销量

shop_id

Int 0 151372205 店铺ID

props_list

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

seller_info

seller_info[] 1 卖家信息

tmall

Boolean 0 false 是否天猫

error

String 0 错误信息

warning

String 0 警告信息

url_log

Mix 0 []

favcount

Int 0 0

fanscount

Int 0 0

method

String 0 item_tmall:pget_item

promo_type

String 0

props_img

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

shop_item

Mix 0 []

relate_items

Mix 0 []

 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"
}

猜你喜欢

转载自blog.csdn.net/ocean_hhn/article/details/126115416