Json常用类型
任何支持的类型都可以通过 JSON 来表示,例如字符串、数字、对象、数组等。但是对象和数组是比较特殊且常用的两种类型。
对象:对象在 JS 中是使用花括号包裹 {} 起来的内容,数据结构为 {key1:value1, key2:value2, ...} 的键值对结构。在面向对象的语言中,key 为对象的属性,value 为对应的值。键名可以使用整数和字符串来表示。值的类型可以是任意类型。
数组:数组在 JS 中是方括号 [] 包裹起来的内容,数据结构为 ["java", "javascript", "vb", ...] 的索引结构。在 JS 中,数组是一种比较特殊的数据类型,它也可以像对象那样使用键值对,但还是索引使用得多。同样,值的类型可以是任意类型。
API调试
item_get-获得商品详情
请求参数:num_iid=688103781438&is_promotion=1
参数说明:num_iid:淘宝商品ID
is_promotion:是否获取取促销价
调用参数
Request address:https://api-/taobao/item_get/?key=t&&num_iid=688103781438&is_promotion=1&cache=no&&lang=zh-CN&secret=---------------------------------------Result Object:---------------------------------------{"item": {"num_iid": "688103781438","title": "谜阿凰椿琵琶袖弓袋袖明制立领短袄马面裙原创汉服保暖外套","desc_short": "","price": 598,"total_price": "","suggestive_price": "","orginal_price": 598,"nick": "mengyuecen","num": 200,"detail_url": "/item.htm?id=688103781438","pic_url": "/imgextra/i1/840561787/O1CN01fo3iLH1P4UYOiGw7g_!!840561787.jpg","brand": null,"brandId": "","rootCatId": "","cid": 41505,"desc": "<div >\n <div >\n <img src=\"/imgextra/i2/840561787/O1CN01m1p9w71P4UYaQZHy6_!!840561787.jpg\" />\n <img src=\"/imgextra/i1/840561787/O1CN01dzhOu41P4UYUizjwV_!!840561787.jpg\" />\n <img src=\"/imgextra/i1/840561787/O1CN01XwhXzg1P4UYfCdzZe_!!840561787.jpg\" />\n <img src=\"/imgextra/i4/840561787/O1CN01FTRmP61P4UYTx9sJz_!!840561787.jpg\" />\n <img src=\"/imgextra/i4/840561787/O1CN01LOM4jN1P4UYc3yQh6_!!840561787.jpg\" />\n <img src=\"/imgextra/i1/840561787/O1CN01xd6Snu1P4UYXlXSbO_!!840561787.jpg\" />\n <img src=\"/imgextra/i4/840561787/O1CN01nEbl651P4UYX67AD3_!!840561787.jpg\" />\n <img src=\"/imgextra/i2/840561787/O1CN01gTT0E41P4UYWvhKM4_!!840561787.jpg\" />\n <img src=\"/imgextra/i4/840561787/O1CN01kwlB2a1P4UYSX1jnt_!!840561787.jpg\" />\n <img src=\"/imgextra/i2/840561787/O1CN0175Gic11P4UYUiyw2W_!!840561787.jpg\" />\n <img src=\"/imgextra/i1/840561787/O1CN01STZCF11P4UYc3zZNT_!!840561787.jpg\" />\n <img src=\"/imgextra/i3/840561787/O1CN01NnVY1I1P4UYf9qS46_!!840561787.jpg\" />\n <img src=\"/imgextra/i1/840561787/O1CN01cGA0gq1P4UYUizjwC_!!840561787.jpg\" />\n <img src=\"/imgextra/i3/840561787/O1CN011lUMsu1P4UYYhsnd1_!!840561787.jpg\" />\n <img src=\"/imgextra/i1/840561787/O1CN01nTCxgP1P4UYaQb2A3_!!840561787.jpg\" />\n <img src=\"/imgextra/i3/840561787/O1CN015BN9XJ1P4UYbJGWAS_!!840561787.jpg\" />\n <img src=\"/imgextra/i4/840561787/O1CN01LVj59B1P4UYX67EP1_!!840561787.jpg\" />\n <img src=\"/imgextra/i3/840561787/O1CN01UcO9np1P4UYYht4G5_!!840561787.jpg\" />\n <img src=\"/imgextra/i2/840561787/O1CN011Gitz41P4UYbJIKRL_!!840561787.jpg\" />\n <img src=\"/imgextra/i4/840561787/O1CN014zXhoF1P4UYg023rX_!!840561787.jpg\" />\n <img src=\"/imgextra/i4/840561787/O1CN01ZbwFdD1P4UYdwnZ5x_!!840561787.jpg\" />\n <img src=\"/imgextra/i2/840561787/O1CN019NnHof1P4UYbJHerq_!!840561787.jpg\" />\n <img src=\"/imgextra/i2/840561787/O1CN01SSC02Q1P4UYYhwDfS_!!840561787.jpg\" />\n <img src=\"/imgextra/i4/840561787/O1CN012Hhuyx1P4UYYhuXif_!!840561787.jpg\" />\n <img src=\"/imgextra/i1/840561787/O1CN014IP02h1P4UYXpntvT_!!840561787.jpg\" />\n <img src=\"/imgextra/i2/840561787/O1CN014Tescb1P4UYSfxObi_!!840561787.jpg\" />\n <img src=\"/imgextra/i4/840561787/O1CN01J0R5C91P4UYZHmmIj_!!840561787.jpg\" />\n <img src=\"/imgextra/i2/840561787/O1CN01f6vFod1P4UYdJVaal_!!840561787.jpg\" />\n <img src=\"/imgextra/i4/840561787/O1CN01yGyfkw1P4UYbGEbXE_!!840561787.jpg\" />\n <img src=\"/imgextra/i2/840561787/O1CN01lC5Tdf1P4UYemaKgd_!!840561787.jpg\" />\n <img src=\"/imgextra/i1/840561787/O1CN010SM66g1P4UYUnSrly_!!840561787.jpg\" />\n <img src=\"/imgextra/i2/840561787/O1CN01m4RuAg1P4UYYWs6Y0_!!840561787.jpg\" />\n <img src=\"/imgextra/i2/840561787/O1CN01qrJjRG1P4UYc9CgX5_!!840561787.jpg\" />\n <img src=\"/imgextra/i3/840561787/O1CN01cEzkG71P4UYTMo2Ls_!!840561787.jpg\" />\n <img src=\"/imgextra/i1/840561787/O1CN01lTxzSv1P4UYc9CLm2_!!840561787.jpg\" />\n <img src=\"/imgextra/i4/840561787/O1CN011KnSG31P4UYXEvAIG_!!840561787.jpg\" />\n <img src=\"/imgextra/i4/840561787/O1CN01yOEYmk1P4UYNvOUix_!!840561787.jpg\" />\n <img src=\"/imgextra/i3/840561787/O1CN010o8lPp1P4UYZCUl5S_!!840561787.jpg\" />\n <img src=\"/imgextra/i2/840561787/O1CN01PNPYIw1P4UYe0J98Q_!!840561787.jpg\" />\n <img src=\"/imgextra/i3/840561787/O1CN01Ts9XiW1P4UYUmQ5b7_!!840561787.jpg\" />\n <img src=\"/imgextra/i1/840561787/O1CN01l7quio1P4UYdEIGiS_!!840561787.jpg\" />\n <img src=\"/imgextra/i4/840561787/O1CN01m6x4701P4UYZITsT0_!!840561787.jpg\" />\n <img src=\"/imgextra/i1/840561787/O1CN01YBTzp51P4UYe0IXip_!!840561787.jpg\" />\n <img src=\"/imgextra/i4/840561787/O1CN01xHakRl1P4UYaU1JPw_!!840561787.jpg\" />\n <img src=\"/imgextra/i3/840561787/O1CN017CR58U1P4UYX9pu1C_!!840561787.jpg\" />\n <img src=\"/imgextra/i3/840561787/O1CN016HDIKC1P4UYaU3WeY_!!840561787.jpg\" />\n <img src=\"/imgextra/i3/840561787/O1CN01La1to71P4UYXkiIop_!!840561787.jpg\" />\n <img src=\"/imgextra/i3/840561787/O1CN01ficDYW1P4UYZBQA5M_!!840561787.jpg\" />\n <img src=\"/imgextra/i2/840561787/O1CN015y1DRY1P4UYdAqJQd_!!840561787.jpg\" />\n <img src=\"/imgextra/i4/840561787/O1CN01sLqlfg1P4UYSZPZFH_!!840561787.jpg\" />\n <img src=\"/imgextra/i1/840561787/O1CN01lxNjWd1P4UXXjwlIQ_!!840561787.jpg\" />\n </div>\n </div><img src=\"/i.php?t.png&rid=gw-3.6379c3e557931&p=1778787069&k=i_key&t=1668924390\" style=\"display:none\" />","item_imgs": [{"url": "/imgextra/i1/840561787/O1CN01fo3iLH1P4UYOiGw7g_!!840561787.jpg"},{"url": "/imgextra/i2/840561787/O1CN01mrWGiW1P4UYUhDm77_!!840561787.jpg"},{"url": "/imgextra/i2/840561787/O1CN01vjdcAt1P4UYbHVpEc_!!840561787.jpg"},{"url": "/imgextra/i2/840561787/O1CN01tzzIv51P4UYSVKsKG_!!840561787.jpg"},{"url": "/imgextra/i3/840561787/O1CN01NUUMMw1P4UYaR35u1_!!840561787.jpg"}],"item_weight": "","post_fee": 0,"freight": "","express_fee": "","ems_fee": "","shipping_to": "","video": [],"sample_id": "","props_name": "20509:28314:尺码:S;20509:28314:尺码:S;20509:28314:尺码:S;20509:28314:尺码:S;20509:28315:尺码:M;20509:28315:尺码:M;20509:28315:尺码:M;20509:28315:尺码:M;20509:28316:尺码:L;20509:28316:尺码:L;20509:28316:尺码:L;20509:28316:尺码:L;1627207:22691900359:颜色分类:A椿弓袋袖短马面全款;1627207:22691900360:颜色分类:B椿弓袋袖长马面全款;1627207:22691900361:颜色分类:C椿琵琶袖短马面全款;1627207:22691900362:颜色分类:D椿琵琶袖长马面全款;1627207:22691900359:颜色分类:A椿弓袋袖短马面全款;1627207:22691900360:颜色分类:B椿弓袋袖长马面全款;1627207:22691900361:颜色分类:C椿琵琶袖短马面全款;1627207:22691900362:颜色分类:D椿琵琶袖长马面全款;1627207:22691900359:颜色分类:A椿弓袋袖短马面全款;1627207:22691900360:颜色分类:B椿弓袋袖长马面全款;1627207:22691900361:颜色分类:C椿琵琶袖短马面全款;1627207:22691900362:颜色分类:D椿琵琶袖长马面全款","prop_imgs": {"prop_img": [{"properties": "20509:28314","url": "/imgextra/i2/840561787/O1CN01mrWGiW1P4UYUhDm77_!!840561787.jpg"},{"properties": "20509:28315","url": "/imgextra/i2/840561787/O1CN01mrWGiW1P4UYUhDm77_!!840561787.jpg"},{"properties": "20509:28316","url": "/imgextra/i2/840561787/O1CN01mrWGiW1P4UYUhDm77_!!840561787.jpg"}]},"props_imgs": {"prop_img": [{"properties": "20509:28314","url": "/imgextra/i2/840561787/O1CN01mrWGiW1P4UYUhDm77_!!840561787.jpg"},{"properties": "20509:28315","url": "/imgextra/i2/840561787/O1CN01mrWGiW1P4UYUhDm77_!!840561787.jpg"},{"properties": "20509:28316","url": "/imgextra/i2/840561787/O1CN01mrWGiW1P4UYUhDm77_!!840561787.jpg"}]},"property_alias": "","props": [{"name": "品牌","value": "谜阿凰"},{"name": "尺码","value": "S M L"},{"name": "面料","value": "其他/other"},{"name": "颜色分类","value": "A椿弓袋袖短马面全款 B椿弓袋袖长马面全款 C椿琵琶袖短马面全款 D椿琵琶袖长马面全款"},{"name": "上市年份季节","value": "秋季"},{"name": "销售渠道类型","value": "纯电商(只在线上销售)"},{"name": "材质成分","value": "聚酯纤维95% 聚氨酯弹性纤维(氨纶)5%"}],"total_sold": "492","skus": {"sku": [{"price": 598,"total_price": 0,"orginal_price": 598,"properties": "20509:28314;1627207:22691900359","properties_name": "20509:28314:尺码:S;1627207:22691900359:颜色分类:A椿弓袋袖短马面全款","quantity": 39,"sku_id": "4912333337234"},{"price": 598,"total_price": 0,"orginal_price": 598,"properties": "20509:28314;1627207:22691900360","properties_name": "20509:28314:尺码:S;1627207:22691900360:颜色分类:B椿弓袋袖长马面全款","quantity": 43,"sku_id": "4912333337235"},{"price": 598,"total_price": 0,"orginal_price": 598,"properties": "20509:28314;1627207:22691900361","properties_name": "20509:28314:尺码:S;1627207:22691900361:颜色分类:C椿琵琶袖短马面全款","quantity": 41,"sku_id": "4912333337236"},{"price": 598,"total_price": 0,"orginal_price": 598,"properties": "20509:28314;1627207:22691900362","properties_name": "20509:28314:尺码:S;1627207:22691900362:颜色分类:D椿琵琶袖长马面全款","quantity": 40,"sku_id": "4912333337237"},{"price": 598,"total_price": 0,"orginal_price": 598,"properties": "20509:28315;1627207:22691900359","properties_name": "20509:28315:尺码:M;1627207:22691900359:颜色分类:A椿弓袋袖短马面全款","quantity": 39,"sku_id": "4912333337238"},{"price": 598,"total_price": 0,"orginal_price": 598,"properties": "20509:28315;1627207:22691900360","properties_name": "20509:28315:尺码:M;1627207:22691900360:颜色分类:B椿弓袋袖长马面全款","quantity": 40,"sku_id": "4912333337239"},{"price": 598,"total_price": 0,"orginal_price": 598,"properties": "20509:28315;1627207:22691900361","properties_name": "20509:28315:尺码:M;1627207:22691900361:颜色分类:C椿琵琶袖短马面全款","quantity": 44,"sku_id": "4912333337240"},{"price": 598,"total_price": 0,"orginal_price": 598,"properties": "20509:28315;1627207:22691900362","properties_name": "20509:28315:尺码:M;1627207:22691900362:颜色分类:D椿琵琶袖长马面全款","quantity": 30,"sku_id": "4912333337241"},{"price": 598,"total_price": 0,"orginal_price": 598,"properties": "20509:28316;1627207:22691900359","properties_name": "20509:28316:尺码:L;1627207:22691900359:颜色分类:A椿弓袋袖短马面全款","quantity": 40,"sku_id": "4912333337242"},{"price": 598,"total_price": 0,"orginal_price": 598,"properties": "20509:28316;1627207:22691900360","properties_name": "20509:28316:尺码:L;1627207:22691900360:颜色分类:B椿弓袋袖长马面全款","quantity": 42,"sku_id": "4912333337243"},{"price": 598,"total_price": 0,"orginal_price": 598,"properties": "20509:28316;1627207:22691900361","properties_name": "20509:28316:尺码:L;1627207:22691900361:颜色分类:C椿琵琶袖短马面全款","quantity": 42,"sku_id": "4912333337244"},{"price": 598,"total_price": 0,"orginal_price": 598,"properties": "20509:28316;1627207:22691900362","properties_name": "20509:28316:尺码:L;1627207:22691900362:颜色分类:D椿琵琶袖长马面全款","quantity": 41,"sku_id": "4912333337245"}]},"seller_id": "840561787","sales": 492,"shop_id": "408055292","props_list": {"20509:28314": "尺码:S","20509:28315": "尺码:M","20509:28316": "尺码:L","1627207:22691900359": "颜色分类:A椿弓袋袖短马面全款","1627207:22691900360": "颜色分类:B椿弓袋袖长马面全款","1627207:22691900361": "颜色分类:C椿琵琶袖短马面全款","1627207:22691900362": "颜色分类:D椿琵琶袖长马面全款"},"seller_info": {"nick": "mengyuecen","item_score": 4.96328,"score_p": 4.97514,"delivery_score": 4.96893,"shop_type": "","user_num_id": "840561787","sid": "408055292","title": "","zhuy": "","cert": "该店铺已通过金牌卖家认证","open_time": "5年老店","credit_score": "tb-rank-cap:2","shop_name": "谜阿凰"},"tmall": true,"error": "","location": "辽宁沈阳","data_from": "Ha","has_discount": "false","is_promotion": "false","promo_type": null,"props_img": {"20509:28314": "/imgextra/i2/840561787/O1CN01mrWGiW1P4UYUhDm77_!!840561787.jpg","20509:28315": "/imgextra/i2/840561787/O1CN01mrWGiW1P4UYUhDm77_!!840561787.jpg","20509:28316": "/imgextra/i2/840561787/O1CN01mrWGiW1P4UYUhDm77_!!840561787.jpg"},"format_check": "ok","desc_img": ["/imgextra/i2/840561787/O1CN01m1p9w71P4UYaQZHy6_!!840561787.jpg","/imgextra/i1/840561787/O1CN01dzhOu41P4UYUizjwV_!!840561787.jpg","/imgextra/i1/840561787/O1CN01XwhXzg1P4UYfCdzZe_!!840561787.jpg","/imgextra/i4/840561787/O1CN01FTRmP61P4UYTx9sJz_!!840561787.jpg","/imgextra/i4/840561787/O1CN01LOM4jN1P4UYc3yQh6_!!840561787.jpg","/imgextra/i1/840561787/O1CN01xd6Snu1P4UYXlXSbO_!!840561787.jpg","/imgextra/i4/840561787/O1CN01nEbl651P4UYX67AD3_!!840561787.jpg","/imgextra/i2/840561787/O1CN01gTT0E41P4UYWvhKM4_!!840561787.jpg","/imgextra/i4/840561787/O1CN01kwlB2a1P4UYSX1jnt_!!840561787.jpg","/imgextra/i2/840561787/O1CN0175Gic11P4UYUiyw2W_!!840561787.jpg","/imgextra/i1/840561787/O1CN01STZCF11P4UYc3zZNT_!!840561787.jpg","/imgextra/i3/840561787/O1CN01NnVY1I1P4UYf9qS46_!!840561787.jpg","/imgextra/i1/840561787/O1CN01cGA0gq1P4UYUizjwC_!!840561787.jpg","/imgextra/i3/840561787/O1CN011lUMsu1P4UYYhsnd1_!!840561787.jpg","/imgextra/i1/840561787/O1CN01nTCxgP1P4UYaQb2A3_!!840561787.jpg","/imgextra/i3/840561787/O1CN015BN9XJ1P4UYbJGWAS_!!840561787.jpg","/imgextra/i4/840561787/O1CN01LVj59B1P4UYX67EP1_!!840561787.jpg","/imgextra/i3/840561787/O1CN01UcO9np1P4UYYht4G5_!!840561787.jpg","/imgextra/i2/840561787/O1CN011Gitz41P4UYbJIKRL_!!840561787.jpg","/imgextra/i4/840561787/O1CN014zXhoF1P4UYg023rX_!!840561787.jpg","/imgextra/i4/840561787/O1CN01ZbwFdD1P4UYdwnZ5x_!!840561787.jpg","/imgextra/i2/840561787/O1CN019NnHof1P4UYbJHerq_!!840561787.jpg","/imgextra/i2/840561787/O1CN01SSC02Q1P4UYYhwDfS_!!840561787.jpg","/imgextra/i4/840561787/O1CN012Hhuyx1P4UYYhuXif_!!840561787.jpg","/imgextra/i1/840561787/O1CN014IP02h1P4UYXpntvT_!!840561787.jpg","/imgextra/i2/840561787/O1CN014Tescb1P4UYSfxObi_!!840561787.jpg","/imgextra/i4/840561787/O1CN01J0R5C91P4UYZHmmIj_!!840561787.jpg","/imgextra/i2/840561787/O1CN01f6vFod1P4UYdJVaal_!!840561787.jpg","/imgextra/i4/840561787/O1CN01yGyfkw1P4UYbGEbXE_!!840561787.jpg","/imgextra/i2/840561787/O1CN01lC5Tdf1P4UYemaKgd_!!840561787.jpg","/imgextra/i1/840561787/O1CN010SM66g1P4UYUnSrly_!!840561787.jpg","/imgextra/i2/840561787/O1CN01m4RuAg1P4UYYWs6Y0_!!840561787.jpg","/imgextra/i2/840561787/O1CN01qrJjRG1P4UYc9CgX5_!!840561787.jpg","/imgextra/i3/840561787/O1CN01cEzkG71P4UYTMo2Ls_!!840561787.jpg","/imgextra/i1/840561787/O1CN01lTxzSv1P4UYc9CLm2_!!840561787.jpg","/imgextra/i4/840561787/O1CN011KnSG31P4UYXEvAIG_!!840561787.jpg","/imgextra/i4/840561787/O1CN01yOEYmk1P4UYNvOUix_!!840561787.jpg","/imgextra/i3/840561787/O1CN010o8lPp1P4UYZCUl5S_!!840561787.jpg","/imgextra/i2/840561787/O1CN01PNPYIw1P4UYe0J98Q_!!840561787.jpg","/imgextra/i3/840561787/O1CN01Ts9XiW1P4UYUmQ5b7_!!840561787.jpg","/imgextra/i1/840561787/O1CN01l7quio1P4UYdEIGiS_!!840561787.jpg","/imgextra/i4/840561787/O1CN01m6x4701P4UYZITsT0_!!840561787.jpg","/imgextra/i1/840561787/O1CN01YBTzp51P4UYe0IXip_!!840561787.jpg","/imgextra/i4/840561787/O1CN01xHakRl1P4UYaU1JPw_!!840561787.jpg","/imgextra/i3/840561787/O1CN017CR58U1P4UYX9pu1C_!!840561787.jpg","/imgextra/i3/840561787/O1CN016HDIKC1P4UYaU3WeY_!!840561787.jpg","/imgextra/i3/840561787/O1CN01La1to71P4UYXkiIop_!!840561787.jpg","/imgextra/i3/840561787/O1CN01ficDYW1P4UYZBQA5M_!!840561787.jpg","/imgextra/i2/840561787/O1CN015y1DRY1P4UYdAqJQd_!!840561787.jpg","/imgextra/i4/840561787/O1CN01sLqlfg1P4UYSZPZFH_!!840561787.jpg","/imgextra/i1/840561787/O1CN01lxNjWd1P4UXXjwlIQ_!!840561787.jpg"],"shop_item": [],"relate_items": []},"error": "","secache": "71a57276b8c4db987c104d17558f749f","secache_time": 1668924390,"secache_date": "-11-20 14:06:30","translate_status": "","translate_time": 0,"language": {"default_lang": "cn","current_lang": "cn"},"reason": "","error_code": "0000","cache": 0,"api_info": "today:10 max:10000 all[29=10+0+19];expires:2030-12-31","execution_time": "1.694","server_time": "Beijing/-11-20 14:06:30","client_ip": "106.6.34.253","call_args": {"num_iid": "688103781438","is_promotion": "1"},"api_type": "taobao","translate_language": "zh-CN","translate_engine": "baidu_api","server_memory": "6.05MB","request_id": "gw-3.6379c3e557931","last_id": "1366755168"}
响应参数
Version: Date:-04-04
请求示例Curl PHP PHPsdk JAVA C# Python
-- 请求示例 url 默认请求参数已经URL编码处理 curl -i "https://api-/taobao/item_get/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=520813250866&is_promotion=1"
API接口地址:https://console./console/?i=Anzexi