Java獲取淘寶/天貓商品詳情 API介面(寶貝詳情資料、寶貝ID、寶貝標題、商品簡介等)

API測試Cris發表於2023-04-21

淘寶網是亞太地區較大的網路零售 、商圈,由阿里巴巴集團在2003年5月創立。淘寶網是中國深受歡迎的網購零售平臺,擁有近5億的註冊使用者數,每天有超過6000萬的固定訪客,同時每天的線上商品數已經超過了8億件,平均每分鐘售出4.8萬件商品。截至2014年底,淘寶網擁有註冊會員近5億,日活躍使用者超1.2億,線上商品數量達到10億,在c2c市場,淘寶網佔95.1%的市場份額。淘寶網在手機端的發展勢頭迅猛,據易觀2014年最新發布的手機購物報告數字,手機淘寶+天貓的市場份額達到85.1%。


 公共引數


名稱 型別 必須 描述

key String 呼叫key(必須以GET方式拼接在URL中)

secret String 呼叫金鑰(介面-v-;18870288846

api_name String API介面名稱(包括在請求地址中)[item_search,item_get,item_search_shop等]

cache String [yes,no]預設yes,將呼叫快取的資料,速度比較快

result_type String [json,jsonu,xml,serialize,var_export]返回資料格式,預設為json,jsonu輸出的內容中文可以直接閱讀

lang String [cn,en,ru]翻譯語言,預設cn簡體中文

version String API版本


請求引數


請求引數:num_iid=652874751412&is_promotion=1


引數說明:num_iid:淘寶商品ID

is_promotion:是否獲取取促銷價



響應引數


Version: Date:2022-04-04


名稱 型別 必須 示例值 描述

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 寶貝連結

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 []

Java請求示例


import java.io.BufferedReader;

import java.io.IOException;

import java.io.InputStream;

import java.io.InputStreamReader;

import java.io.Reader;

import java.net.URL;

import java.nio.charset.Charset;

import org.json.JSONException;

import org.json.JSONObject;

import java.io.PrintWriter;

import java.net.URLConnection;

 

public class Example {

private static String readAll(Reader rd) throws IOException {

StringBuilder sb = new StringBuilder();

int cp;

while ((cp = rd.read()) != -1) {

sb.append((char) cp);

}

return  sb.toString();

}

public static JSONObject postRequestFromUrl(String url, String body) throws IOException, JSONException {

URL realUrl = new URL(url);

URLConnection conn = realUrl.openConnection();

conn.setDoOutput(true);

conn.setDoInput(true);

PrintWriter out = new PrintWriter(conn.getOutputStream());

out.print(body);

out.flush();

InputStream instream = conn.getInputStream();

try {

BufferedReader rd = new BufferedReader(new InputStreamReader(instream, Charset.forName("UTF-8")));

String jsonText = readAll(rd);

JSONObject json = new JSONObject(jsonText);

return json;

} finally {

instream.close();

}

}

public static JSONObject getRequestFromUrl(String url) throws IOException, JSONException {

URL realUrl = new URL(url);

URLConnection conn = realUrl.openConnection();

InputStream instream = conn.getInputStream();

try {

BufferedReader rd = new BufferedReader(new InputStreamReader(instream, Charset.forName("UTF-8")));

String jsonText = readAll(rd);

JSONObject json = new JSONObject(jsonText);

return json;

} finally {

instream.close();

}

}

public static void main(String[] args) throws IOException, JSONException {

// 請求示例 url 預設請求引數已經URL編碼處理

String url = "v-x-;18870288846/taobao/item_get/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=652874751412&is_promotion=1";

JSONObject json = getRequestFromUrl(url);

System.out.println(json.toString());

}

 

}


響應示例


{

    "item": {

      "num_iid": "520813250866",

      "title": "三刃木過安檢創意迷你鑰匙扣鑰匙刀隨身多功能小刀包郵",

      "desc_short": "",

      "price": 25.8,

      "total_price": 0,

      "suggestive_price": 0,

      "orginal_price": "25.80",

      "nick": "歡樂購客棧",

      "num": "832",

      "min_num": 0,

      "detail_url": "",

      "pic_url": "//img.alicdn.com/imgextra/i4/2596264565/TB2p30elFXXXXXQXpXXXXXXXXXX_!!2596264565.jpg",

      "brand": "三刃木",

      "brandId": "4036703",

      "rootCatId": "50013886",

      "cid": "50014822",

      "favcount": "4824",

      "fanscount": "1469",

      "crumbs": [],

      "created_time": "",

      "modified_time": "",

      "delist_time": "",

      "desc": "<p style=\"text-align:center;\"><span style=\"color:#ff0000;\"><span style=\"font-size:24.0px;\"><strong>小店所有產品都支援刻字,如需刻字,拍之前聯絡客服即可。</strong></span></span></p> <p style=\"text-align:center;\"><span style=\"font-size:18.0px;\"><strong>炎炎夏日來臨,一把隨身攜帶行動式的摺疊小刀,<span style=\"color:#ff0000;\">帶開瓶器功能</span>,喝酒不用愁。(鑰匙刀不帶開瓶器功能)</strong></span></p> <p style=\"text-align:center;\"><strong style=\"color:#000000;line-height:1.5;\"><span style=\"font-size:18.0px;\"><span style=\"line-height:18.0px;\">可以當吊牌項鍊裝飾,也可當鑰匙扣掛飾, 水果刀 開瓶器 戶外防身.</span></span></strong></p> <p style=\"text-align:center;\"><strong style=\"line-height:1.5;\"><span style=\"font-size:24.0px;\">部分客戶跟我們反映鏈子質量還不夠好,因此小店已重新訂購一批質量更好的鏈子贈送,<span style=\"color:#ff0000;\">加量不加價</span>,只為讓你買的更舒心,戴的更放心。</span></strong></p> <p style=\"text-align:center;\"><span style=\"font-size:36.0px;\"><strong>購買就送<span style=\"color:#ff0000;\">工具刀卡和鏈子</span>一條</strong></span></p> <p style=\"text-align:center;\"><span style=\"font-size:36.0px;\"><strong><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i3/2596264565/TB2Sci2jXXXXXXFXpXXXXXXXXXX_!!2596264565.png\" size=\"611x442\"> </strong></span></p> <p style=\"text-align:center;\"><span style=\"font-size:18.0px;\"><strong>璀璨鑽石套餐包含【SK016D鑰匙扣+GJ019C+GJ017D工具卡】</strong></span><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i3/2596264565/TB2wWohmXXXXXX8XXXXXXXXXXXX_!!2596264565.jpg\" size=\"750x600\" /></p> <p style=\"text-align:center;\"><span style=\"font-size:18.0px;\"><strong>超凡大師套餐包括【304不鏽鋼鑰匙扣+GJ019C+GJ017D工具卡】</strong></span><a href=\"//item.taobao.com/item.htm?id=520798805877\" target=\"_blank\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i4/2596264565/TB2_uiXnFXXXXXBXXXXXXXXXXXX_!!2596264565.jpg_q90.jpg\" style=\"float:none;margin:0.0px;\" /></a></p> <p style=\"text-align:center;\">&nbsp;</p> <p style=\"text-align:center;\"><span style=\"font-size:18.0px;\"><strong>最強套餐包括【鈦鋼鑰匙扣+GJ019C+GJ017D工具卡】<a href=\"//item.taobao.com/item.htm?id=520801586805\" target=\"_blank\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i4/2596264565/TB2Gm9xnFXXXXbmXXXXXXXXXXXX_!!2596264565.jpg_q90.jpg\" style=\"float:none;margin:0.0px;\" /></a> </strong></span></p> <p style=\"text-align:center;\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i3/2596264565/TB28Ox4b77OyuJjSsplXXXqdpXa_!!2596264565.jpg\" size=\"749x553\"> <img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i1/2596264565/TB2.mTddVXXXXbeXpXXXXXXXXXX_!!2596264565.jpg\" style=\"line-height:1.5;\" size=\"750x653\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i3/2596264565/TB21Ro.jl0lpuFjSszdXXcdxFXa_!!2596264565.jpg\" size=\"750x653\"> <img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i4/2596264565/TB2q9CelVXXXXcUXXXXXXXXXXXX_!!2596264565.jpg\" size=\"750x340\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i3/2596264565/TB21EX9lVXXXXaXXpXXXXXXXXXX_!!2596264565.jpg\" size=\"750x416\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i3/2596264565/TB2udCylVXXXXXgXXXXXXXXXXXX_!!2596264565.jpg_q90.jpg\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i1/2596264565/TB2EARxjB8lpuFjSspaXXXJKpXa_!!2596264565.jpg\" size=\"750x515\"> <img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i3/2596264565/TB2ssuwlVXXXXafXXXXXXXXXXXX_!!2596264565.jpg_q90.jpg\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i2/2596264565/TB2nAHqgyC9MuFjSZFoXXbUzFXa_!!2596264565.jpg\" size=\"750x606\"> <img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i3/2596264565/TB2ahCelVXXXXc_XXXXXXXXXXXX_!!2596264565.jpg_q90.jpg\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i3/2596264565/TB2w1JnjwRkpuFjy1zeXXc.6FXa_!!2596264565.jpg\" size=\"750x469\"> <img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i3/2596264565/TB2C902lVXXXXbnXpXXXXXXXXXX_!!2596264565.jpg_q90.jpg\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i1/2596264565/TB2sGR3lVXXXXblXpXXXXXXXXXX_!!2596264565.jpg_q90.jpg\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i1/2596264565/TB2ZBGxlVXXXXXMXXXXXXXXXXXX_!!2596264565.jpg_q90.jpg\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i1/2596264565/TB2MjWklVXXXXcaXXXXXXXXXXXX_!!2596264565.jpg_q90.jpg\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i2/2596264565/TB2UgV3lVXXXXbdXpXXXXXXXXXX_!!2596264565.jpg_q90.jpg\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i2/2596264565/TB2ip5XlVXXXXX2XpXXXXXXXXXX_!!2596264565.jpg_q90.jpg\"> <img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i2/2596264565/TB2sMTBdVXXXXXlXXXXXXXXXXXX_!!2596264565.jpg_q90.jpg\" style=\"line-height:1.5;\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i3/2596264565/TB2d3HfdVXXXXahXpXXXXXXXXXX_!!2596264565.jpg_q90.jpg\" style=\"line-height:1.5;\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i4/2596264565/TB2AVbBdVXXXXXkXXXXXXXXXXXX_!!2596264565.jpg_q90.jpg\" style=\"line-height:1.5;\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i2/2596264565/TB2nf_wdVXXXXaMXXXXXXXXXXXX_!!2596264565.jpg_q90.jpg\" style=\"line-height:1.5;\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i4/2596264565/TB2dLYddVXXXXbtXpXXXXXXXXXX_!!2596264565.jpg_q90.jpg\" style=\"line-height:1.5;\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i2/2596264565/TB2H1_adVXXXXbWXpXXXXXXXXXX_!!2596264565.jpg_q90.jpg\" style=\"line-height:1.5;\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i2/2596264565/TB2eBzsdVXXXXbuXXXXXXXXXXXX_!!2596264565.jpg_q90.jpg\" style=\"line-height:1.5;\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i4/2596264565/TB2dOTndVXXXXcCXXXXXXXXXXXX_!!2596264565.jpg_q90.jpg\" style=\"line-height:1.5;\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i2/2596264565/TB2fK2tdVXXXXbkXXXXXXXXXXXX_!!2596264565.jpg_q90.jpg\" style=\"line-height:1.5;\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i2/2596264565/TB29zjedVXXXXaFXpXXXXXXXXXX_!!2596264565.jpg_q90.jpg\" style=\"line-height:1.5;\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i3/2596264565/TB2i7rmdVXXXXcTXXXXXXXXXXXX_!!2596264565.jpg_q90.jpg\" style=\"line-height:1.5;\" /></p>",

      "item_imgs": [

        {

          "url": "//img.alicdn.com/imgextra/i4/2596264565/TB2p30elFXXXXXQXpXXXXXXXXXX_!!2596264565.jpg"

        },

        {

          "url": "//img.alicdn.com/imgextra/i2/2596264565/TB2onxRlVXXXXcDXpXXXXXXXXXX_!!2596264565.jpg"

        },

        {

          "url": "//img.alicdn.com/imgextra/i1/2596264565/TB2a.x.lVXXXXXPXpXXXXXXXXXX_!!2596264565.jpg"

        },

        {

          "url": "//img.alicdn.com/imgextra/i2/2596264565/TB2iWE6bKZkyKJjSszbXXblwFXa_!!2596264565.jpg"

        },

        {

          "url": "//img.alicdn.com/imgextra/i4/2596264565/TB2j2cTXib_F1JjSZFzXXc6KXXa_!!2596264565.jpg"

        }

      ],

      "item_weight": "0",

      "item_size": "",

      "location": "廣東深圳",

      "post_fee": "",

      "express_fee": "0.00",

      "ems_fee": "",

      "shipping_to": "廣東廣州白雲區",

      "has_discount": "false",

      "video": [],

      "is_virtual": "",

      "sample_id": "",

      "is_promotion": "false",

      "props_name": "1627207:1347647754:顏色分類:長方形帶開瓶器+送工具刀卡+鏈子;1627207:1347647753:顏色分類:橢圓形帶開瓶器+送工具刀卡+鏈子;1627207:1195392087:顏色分類:GJ018X鑰匙刀+送工具刀卡+鏈子;1627207:1331112595:顏色分類:超凡大師套餐【送工具卡+鏈子】;1627207:1331112594:顏色分類:最強套餐【送工具卡+鏈子】;1627207:1331264247:顏色分類:璀璨鑽石套餐【送工具卡+鏈子】",

      "prop_imgs": {

        "prop_img": [

          {

            "properties": "1627207:1347647754",

            "url": "//img.alicdn.com/imgextra/i3/2596264565/TB2.XeblVXXXXXkXpXXXXXXXXXX_!!2596264565.jpg"

          },

          {

            "properties": "1627207:1347647753",

            "url": "//img.alicdn.com/imgextra/i4/2596264565/TB2dTrjdVXXXXXBXpXXXXXXXXXX_!!2596264565.jpg"

          },

          {

            "properties": "1627207:1195392087",

            "url": "//img.alicdn.com/imgextra/i2/2596264565/TB2j22kdVXXXXXdXpXXXXXXXXXX_!!2596264565.jpg"

          },

          {

            "properties": "1627207:1331112595",

            "url": "//img.alicdn.com/imgextra/i4/2596264565/TB2_uiXnFXXXXXBXXXXXXXXXXXX_!!2596264565.jpg"

          },

          {

            "properties": "1627207:1331112594",

            "url": "//img.alicdn.com/imgextra/i4/2596264565/TB2Gm9xnFXXXXbmXXXXXXXXXXXX_!!2596264565.jpg"

          },

          {

            "properties": "1627207:1331264247",

            "url": "//img.alicdn.com/imgextra/i3/2596264565/TB2wWohmXXXXXX8XXXXXXXXXXXX_!!2596264565.jpg"

          }

        ]

      },

      "property_alias": "1627207:1347647754:長方形帶開瓶器+送工具刀卡+鏈子;1627207:1347647753:橢圓形帶開瓶器+送工具刀卡+鏈子;1627207:1195392087:GJ018X鑰匙刀+送工具刀卡+鏈子;1627207:1331112595:超凡大師套餐【送工具卡+鏈子】;1627207:1331112594:最強套餐【送工具卡+鏈子】;1627207:1331264247:璀璨鑽石套餐【送工具卡+鏈子】",

      "props": [

        {

          "name": "品牌",

          "value": "三刃木"

        },

        {

          "name": "產地",

          "value": "中國"

        },

        {

          "name": "顏色分類",

          "value": "長方形帶開瓶器+送工具刀卡+鏈子,橢圓形帶開瓶器+送工具刀卡+鏈子,GJ018X鑰匙刀+送工具刀卡+鏈子,超凡大師套餐【送工具卡+鏈子】,最強套餐【送工具卡+鏈子】,璀璨鑽石套餐【送工具卡+鏈子】"

        },

        {

          "name": "吊牌價",

          "value": "46"

        },

        {

          "name": "功能數量",

          "value": "5個及以下"

        },

        {

          "name": "貨號",

          "value": "GJ019C"

        },

        {

          "name": "附加功能",

          "value": "開瓶器,刀,螺絲刀,鑰匙圈,其他"

        }

      ],

      "total_sold": "1",

      "skus": {

        "sku": [

          {

            "price": "39",

            "orginal_price": "39.00",

            "properties": "1627207:1347647754",

            "properties_name": "1627207:1347647754:顏色分類:長方形帶開瓶器+送工具刀卡+鏈子",

            "quantity": "104",

            "sku_id": "3166598625985"

          },

          {

            "price": "39",

            "orginal_price": "39.00",

            "properties": "1627207:1347647753",

            "properties_name": "1627207:1347647753:顏色分類:橢圓形帶開瓶器+送工具刀卡+鏈子",

            "quantity": "370",

            "sku_id": "3166598625984"

          },

          {

            "price": "25.8",

            "orginal_price": "25.80",

            "properties": "1627207:1195392087",

            "properties_name": "1627207:1195392087:顏色分類:GJ018X鑰匙刀+送工具刀卡+鏈子",

            "quantity": "34",

            "sku_id": "3144644292458"

          },

          {

            "price": "73.8",

            "orginal_price": "73.80",

            "properties": "1627207:1331112595",

            "properties_name": "1627207:1331112595:顏色分類:超凡大師套餐【送工具卡+鏈子】",

            "quantity": "157",

            "sku_id": "3161300228970"

          },

          {

            "price": "91.8",

            "orginal_price": "91.80",

            "properties": "1627207:1331112594",

            "properties_name": "1627207:1331112594:顏色分類:最強套餐【送工具卡+鏈子】",

            "quantity": "0",

            "sku_id": "3161300228969"

          },

          {

            "price": "63.8",

            "orginal_price": "63.80",

            "properties": "1627207:1331264247",

            "properties_name": "1627207:1331264247:顏色分類:璀璨鑽石套餐【送工具卡+鏈子】",

            "quantity": "167",

            "sku_id": "3161107666655"

          }

        ]

      },

      "seller_id": "2596264565",

      "sales": "1",

      "shop_id": "127203758",

      "props_list": {

        "1627207:1347647754": "顏色分類:長方形帶開瓶器+送工具刀卡+鏈子",

        "1627207:1347647753": "顏色分類:橢圓形帶開瓶器+送工具刀卡+鏈子",

        "1627207:1195392087": "顏色分類:GJ018X鑰匙刀+送工具刀卡+鏈子",

        "1627207:1331112595": "顏色分類:超凡大師套餐【送工具卡+鏈子】",

        "1627207:1331112594": "顏色分類:最強套餐【送工具卡+鏈子】",

        "1627207:1331264247": "顏色分類:璀璨鑽石套餐【送工具卡+鏈子】"

      },

      "seller_info": {

        "title": "歡樂購客棧",

        "shop_name": "歡樂購客棧",

        "sid": "127203758",

        "zhuy": "//shop127203758.taobao.com",

        "level": "12",

        "shop_type": "C",

        "user_num_id": "2596264565",

        "nick": "歡樂購客棧",

        "cid": null,

        "delivery_score": "4.8 ",

        "item_score": "4.8 ",

        "score_p": "4.8 "

      },

      "tmall": "false",

      "error": "",

      "warning": "",

      "url_log": [],

      "stuff_status": "",

      "shopinfo": {

        "shop_name": "歡樂購客棧",

        "shop_id": "127203758"

      },

      "data_from": "mtop",

      "method": "item_mtop:item_get",

      "promo_type": null,

      "props_img": {

        "1627207:1347647754": "//img.alicdn.com/imgextra/i3/2596264565/TB2.XeblVXXXXXkXpXXXXXXXXXX_!!2596264565.jpg",

        "1627207:1347647753": "//img.alicdn.com/imgextra/i4/2596264565/TB2dTrjdVXXXXXBXpXXXXXXXXXX_!!2596264565.jpg",

        "1627207:1195392087": "//img.alicdn.com/imgextra/i2/2596264565/TB2j22kdVXXXXXdXpXXXXXXXXXX_!!2596264565.jpg",

        "1627207:1331112595": "//img.alicdn.com/imgextra/i4/2596264565/TB2_uiXnFXXXXXBXXXXXXXXXXXX_!!2596264565.jpg",

        "1627207:1331112594": "//img.alicdn.com/imgextra/i4/2596264565/TB2Gm9xnFXXXXbmXXXXXXXXXXXX_!!2596264565.jpg",

        "1627207:1331264247": "//img.alicdn.com/imgextra/i3/2596264565/TB2wWohmXXXXXX8XXXXXXXXXXXX_!!2596264565.jpg"

      },

      "rate_grade": "",

      "shop_item": [],

      "relate_items": []

    },

    "secache": "d8bd20b8f0d9df02dd030dd374110240",

    "secache_time": 1591841298,

    "secache_date": "2020-06-11 10:08:18",

    "translate_status": "error",

    "translate_time": 0.001,

    "language": {

      "current_lang": "zh-CN",

      "source_lang": "cn"

    },

    "error": "",

    "reason": "",

    "error_code": "0000",

    "cache": 1,

    "api_info": "today:7033 max:10000",

    "execution_time": 0.211,

    "server_time": "Beijing/2020-06-11 10:12:27",

    "call_args": {

      "num_iid": "520813250866",

      "area_id": "440111"

    },

    "api_type": "taobao",

    "translate_language": "zh-CN",

    "translate_engine": "google_cn",

    "server_memory": "8.26MB",

    "request_id": "15ee1930b4e098"

  }


異常示例


{

    "error": "item-not-found",

    "reason": "商品沒找到",

    "error_code": "2000",

    "success": 0,

    "cache": 0,

    "api_info": "today:0 max:10000",

    "execution_time": 0.081,

    "server_time": "Beijing/2020-06-10 23:44:00",

    "call_args": [],

    "api_type": "taobao",

    "request_id": "15ee0ffc041242"}

文章內容有限,歡迎私信溝通!


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/70028219/viewspace-2947532/,如需轉載,請註明出處,否則將追究法律責任。

相關文章