欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

淘宝API接口( item_detail - 淘宝商品详情查询)

程序员文章站 2023-12-24 00:03:21
...

欢迎使用淘宝API接口( item_review - 淘宝商品评论查询 )

你好! 这是你使用我们的淘宝API接口获取商品详细接口说明。
开通账户联系Q 2489204602
淘宝API接口( item_detail - 淘宝商品详情查询)

请求参数

api - API接口名称
key - API接口账号
num_iid - 淘宝/天猫商品ID
area_id - 区域编号

响应示例

下面展示同响应示 json.

{
   "result":{
      "status":{
         "msg":"success",
         "code":200,
         "execution_time":"0.3608"
      },
      "action":"1",
      "item":{
         "available":"true",
         "num_iid":"24542004796",
         "title":"乌龟缸低水位过滤器过滤泵鱼缸过滤器乌龟缸水龟缸净化水质",
         "subtitle":"低噪音 耐用低功耗 低水位",
         "total_sales":"66",
         "cat_id":"50023144",
         "root_cat_id":"29",
         "brand_id":"150987830",
         "detail_url":"//item.taobao.com/item.htm?id=24542004796",
         "images":[
            "//img.alicdn.com/imgextra/i1/1092175407/TB1SjCWRXXXXXb8aXXXXXXXXXXX_!!0-item_pic.jpg",
            "//img.alicdn.com/imgextra/i3/1092175407/TB21oIJiVXXXXcgXXXXXXXXXXXX_!!1092175407.jpg",
            "//img.alicdn.com/imgextra/i2/1092175407/TB20Sw0iVXXXXXEXXXXXXXXXXXX_!!1092175407.jpg",
            "//img.alicdn.com/imgextra/i2/1092175407/TB2GJA3iVXXXXXbXXXXXXXXXXXX_!!1092175407.jpg",
            "//img.alicdn.com/imgextra/i2/1092175407/TB2YfDcnVuWBuNjSszbXXcS7FXa_!!1092175407.jpg"
         ],
         "video_thumbnail":null,
         "video":null,
         "properties_cut":"品牌 颜色分类 设备品类 货号 ",
         "properties":[
            {
               "name":"品牌",
               "value":"NOMOYPET"
            },
            {
               "name":"颜色分类",
               "value":"3W过滤板4片 5.5W过滤器+过滤板2片 5.5W过滤板4片 3W过滤器标配 5.5W过滤器标配 3W过滤器+过滤板2片"
            },
            {
               "name":"设备品类",
               "value":"过滤器"
            },
            {
               "name":"货号",
               "value":"黑色低水位过滤器"
            }
         ],
         "desc_url":"//mdetail.tmall.com/templates/pages/desc?id=24542004796",
         "desc_imgs":[
            "//img.alicdn.com/imgextra/i4/1092175407/TB24fW.XF_AQeBjSZFtXXbFBVXa_!!1092175407.jpg",
            "//img.alicdn.com/imgextra/i3/1092175407/TB2D3PXXKrAQeBjSZFrXXbSvFXa_!!1092175407.jpg",
            "//img.alicdn.com/imgextra/i3/1092175407/TB2Ina9XNvzQeBjSZFqXXXN5VXa_!!1092175407.jpg",
            "//img.alicdn.com/imgextra/i3/1092175407/TB2xXJiaKTyQeBjSspaXXcjjFXa_!!1092175407.jpg",
            "//img.alicdn.com/imgextra/i2/1092175407/TB2A9pXaGnyQeBjy1zkXXXmyXXa_!!1092175407.jpg",
            "//img.alicdn.com/imgextra/i2/1092175407/TB23MldaGzyQeBjy0FgXXbnsVXa_!!1092175407.jpg",
            "//img.alicdn.com/imgextra/i3/1092175407/TB2n3hgaPnyQeBjSszbXXbCxVXa_!!1092175407.jpg",
            "//img.alicdn.com/imgextra/i1/1092175407/TB2WAxjaRPxQeBjy1XcXXXHzVXa_!!1092175407.jpg",
            "//img.alicdn.com/imgextra/i2/1092175407/TB2EEBaaRYxQeBjSspdXXb6QXXa_!!1092175407.jpg",
            "//img.alicdn.com/imgextra/i3/1092175407/TB22IpjaNfxQeBjSspjXXX4opXa_!!1092175407.jpg",
            "//img.alicdn.com/imgextra/i3/1092175407/TB2f.VkaK2yQeBjSszhXXcgeVXa_!!1092175407.jpg",
            "//img.alicdn.com/imgextra/i2/1092175407/TB24StXaGnyQeBjy1zkXXXmyXXa_!!1092175407.jpg",
            "//img.alicdn.com/imgextra/i1/1092175407/TB2nKdfaNrxQeBjy1zeXXXhAVXa_!!1092175407.jpg",
            "//img.alicdn.com/imgextra/i1/1092175407/TB28ZYXXNvzQeBjSZFgXXcvfVXa_!!1092175407.jpg",
            "//img.alicdn.com/imgextra/i1/1092175407/TB2yt8faPnyQeBjy1zcXXXKyXXa_!!1092175407.jpg"
         ],
         "sku_text":"请选择颜色分类 ",
         "skus":{
            "0":{
               "price":"30.00",
               "promotion_price":"18-59.8",
               "quantity":"26762"
            },
            "87796987934":{
               "price":"45.00",
               "promotion_price":"44.8",
               "quantity":"9059"
            },
            "87796987933":{
               "price":"30.00",
               "promotion_price":"28",
               "quantity":"1316"
            },
            "3169946388407":{
               "price":"25.00",
               "promotion_price":"18",
               "quantity":"9995"
            },
            "3169946388406":{
               "price":"40.00",
               "promotion_price":"38",
               "quantity":"2847"
            },
            "3197562822435":{
               "price":"60.00",
               "promotion_price":"59.8",
               "quantity":"1970"
            },
            "3197562822436":{
               "price":"30.00",
               "promotion_price":"22",
               "quantity":"1575"
            }
         },
         "sku_base":{
            "skus":[
               {
                  "skuId":"87796987933",
                  "propPath":"1627207:478381135"
               },
               {
                  "skuId":"87796987934",
                  "propPath":"1627207:2410125117"
               },
               {
                  "skuId":"3169946388406",
                  "propPath":"1627207:1357966957"
               },
               {
                  "skuId":"3169946388407",
                  "propPath":"1627207:28326"
               },
               {
                  "skuId":"3197562822435",
                  "propPath":"1627207:28327"
               },
               {
                  "skuId":"3197562822436",
                  "propPath":"1627207:28329"
               }
            ],
            "props":[
               {
                  "pid":"1627207",
                  "name":"颜色分类",
                  "values":[
                     {
                        "vid":"478381135",
                        "name":"3W过滤器标配",
                        "image":"//img.alicdn.com/imgextra/i1/1092175407/TB2T_DDrVXXXXbQXXXXXXXXXXXX_!!1092175407.jpg"
                     },
                     {
                        "vid":"2410125117",
                        "name":"5.5W过滤器标配",
                        "image":"//img.alicdn.com/imgextra/i4/1092175407/TB2_52toFXXXXaxXpXXXXXXXXXX_!!1092175407.jpg"
                     },
                     {
                        "vid":"1357966957",
                        "name":"3W过滤器+过滤板2片",
                        "image":"//img.alicdn.com/imgextra/i4/1092175407/TB2JAwXaSiJ.eBjSspfXXbBKFXa_!!1092175407.jpg"
                     },
                     {
                        "vid":"28326",
                        "name":"3W过滤板4片",
                        "image":"//img.alicdn.com/imgextra/i4/1092175407/TB2qIoXaIaJ.eBjy0FbXXcwrFXa_!!1092175407.jpg"
                     },
                     {
                        "vid":"28327",
                        "name":"5.5W过滤器+过滤板2片",
                        "image":"//img.alicdn.com/imgextra/i2/1092175407/TB2YF0htXXXXXbdXpXXXXXXXXXX_!!1092175407.jpg"
                     },
                     {
                        "vid":"28329",
                        "name":"5.5W过滤板4片",
                        "image":"//img.alicdn.com/imgextra/i3/1092175407/TB2t7pUtXXXXXavXXXXXXXXXXXX_!!1092175407.jpg"
                     }
                  ]
               }
            ]
         }
      },
      "delivery":{
         "from":"浙江嘉兴",
         "to":"北京市",
         "delivery_fee":"0.00",
         "area_id":"110100"
      },
      "protection":[
         {
            "title":"假一赔四",
            "desc":"正品保障,假一赔四"
         },
         {
            "title":"上门取退",
            "desc":"预约上门取件,最快1小时上门,取件后极速退款到账"
         },
         {
            "title":"极速退款",
            "desc":"诚信用户在退货寄出后,享受极速退款到账"
         },
         {
            "title":"七天无理由退换",
            "desc":"满足相应条件时,消费者可申请 “七天无理由退换货”"
         },
         {
            "title":"退货运费险",
            "desc":"卖家为您购买的商品投保退货运费险"
         },
         {
            "title":"公益宝贝",
            "desc":"购买该商品,每笔成交都会有相应金额捐赠给公益.感谢您的支持,愿公益的快乐伴随您每一天."
         }
      ],
      "seller":{
         "seller_id":"1092175407",
         "seller_nick":"久发宠物用品专营店",
         "shop_id":"101241280",
         "shop_title":"久发宠物用品专营店",
         "shop_url":"//store.taobao.com/shop/view_shop.htm?user_number_id=1092175407",
         "shop_icon":"//img.alicdn.com/imgextra//b8/ea/T1P8UrXcXeXXb1upjX.jpg",
         "total_items":"192",
         "user_type":"B",
         "starts":"2012-11-26 18:47:49",
         "rating":"100.00%",
         "fans":"4.5万",
         "evaluates":[
            {
               "title":"宝贝描述",
               "score":"4.9 ",
               "level":"1",
               "levelText":"高"
            },
            {
               "title":"卖家服务",
               "score":"4.8 ",
               "level":"1",
               "levelText":"高"
            },
            {
               "title":"物流服务",
               "score":"4.8 ",
               "level":"1",
               "levelText":"高"
            }
         ]
      }
   }
}

异常示例

下面展示同响应示 json.

{
  "result": {
    "status": {
      "msg": "error",
      "code": 401,
      "sub_code": "invalid-parameter:key"
    }
  }
}

其他API列表

———— Item Related 商品相关接口 ————
item_detail - 淘宝商品详情查询
item_detail_simple - 淘宝商品详情查询(简版)
item_review - 淘宝商品评论查询
item_fee - 淘宝商品快递费用查询
item_sku - 淘宝商品SKU详细信息查询
———— Search Related 搜索相关接口 ————
item_search - 淘宝商品列表搜索
item_search_filters - 淘宝商品搜索筛选
item_image_search - 按图搜索淘宝商品(拍立淘)
item_search_tejia - 天天特价
———— Shop 店铺相关接口 ————
shop_search - 淘宝店铺列表搜索
shop_recommended - 获取推荐店铺列表
shop_detail - 淘宝店铺详情查询
shop_item - 淘宝店铺商品列表
shop_item_cats - 淘宝店铺分类列表
———— 爱逛街接口 ————
search_guang - 爱逛街搜索
recommended_guang - 爱逛街推荐商品列表
item_guang - 爱逛街商品详情查询
———— 优惠券接口 ————
coupon_items_search_by_cat - 优惠券搜索接口
coupon_item_recommended_items - 有优惠券商品推荐接口
item_coupons - 商品优惠券接口
coupon_item_details - 优惠券详细接口
———— 其他接口 ————
search_keyword_suggest - 关键词推荐
ip_info - IP 信息查询

上一篇:

下一篇: