1、淘宝/天猫API接口
item_get 获得淘宝商品详情
item_get_pro 获得淘宝商品详情高级版
item_review 获得淘宝商品评论
item_fee 获得淘宝商品快递费用
item_password 获得淘口令真实url
item_list_updown 批量获得淘宝商品上下架时间
seller_info 获得淘宝店铺详情
item_search 按关键字搜索淘宝商品
item_search_tmall 按关键字搜索天猫商品
item_search_pro 高级关键字搜索淘宝商品
item_search_img 按图搜索淘宝商品(拍立淘)
item_search_shop 获得店铺的所有商品
item_search_seller 搜索店铺列表
item_search_guang 爱逛街
item_search_suggest 获得搜索词推荐
item_search_jupage 天天特价
item_search_coupon 优惠券查询
cat_get 获得淘宝分类详情
item_cat_get 获得淘宝商品类目
item_search_samestyle 搜索同款的商品
item_search_similar 搜索相似的商品
item_sku 获取sku详细信息
item_recommend 获取推荐商品列表
brand_cat 获取品牌分类列表
brand_cat_top 获取分类推荐品牌列表
brand_cat_list 得到指定分类的品牌列表
brand_keyword_list 得到指定关键词的品牌列表
brand_info 得到品牌相关信息
brand_product_list 得到指定品牌的产品
custom 自定义API操作
buyer_cart_add 添加到购物车
buyer_cart_remove 删除购物车商品
buyer_cart_clear 清空购物车
buyer_cart_list 获取购物车的商品列表
buyer_cart_order 将购物车商品保存为订单
buyer_order_list 获取购买到的商品订单列表
buyer_order_detail 获取购买到的商品订单详情
buyer_order_express 获取购买到的商品订单物流
buyer_order_message 获取购买到的订单买家留言
buyer_address_list 收货地址列表
buyer_address_clear 清除收货地址
buyer_address_remove 删除收货地址
buyer_address_modify 修改收货地址
buyer_address_add 添加收货地址
buyer_info 买家信息
buyer_token 买家token
seller_order_list 获取卖出的商品订单列表
seller_order_detail 获取卖出的商品订单详情
seller_order_close 卖家关闭一笔交易
seller_order_message 获取或修改卖出去的订单备注
seller_auction_list 商品可上下架商品列表
seller_auction 商品上下架
seller_item_add 商品上传
upload_img 上传图片到淘宝
img2text 图片识别商品接口
tbk_order_query 淘宝客订单查询
item_list_weight 批量获取商品信息
item_history_price 获取商品历史价格信息
item_get_app 获得淘宝app商品详情原数据
2、测试接口如图所示:
3、测试入口:获取Key和secret
请求参数:num_iid=520813250866&is_promotion=1
参数说明:num_iid:淘宝商品ID
is_promotion:是否获取取促销价
4、测试数据:
{
"item": {
"num_iid": "520813250866",
"title": "三刃木折叠刀创意迷你钥匙扣钥匙刀户外随身多功能锋利开箱小刀",
"desc_short": "",
"price": "22.7",
"orginal_price": "25.80",
"nick": "欢乐购客栈",
"num": "200",
"pic_url": "//img.alicdn.com/imgextra/i3/2596264565/O1CN01L8HLol1jaonor67d8_!!2596264565.jpg",
"brand": "三刃木",
"brandId": "4036703",
"rootCatId": "50013886",
"cid": "50014822",
"crumbs": [],
"detail_url": "https://item.taobao.com/item.htm?id=520813250866",
"desc": "<p><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i2/2596264565/TB2nAHqgyC9MuFjSZFoXXbUzFXa_!!2596264565.jpg\" /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i3/2596264565/TB2ahCelVXXXXc_XXXXXXXXXXXX_!!2596264565.jpg\" /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i4/2596264565/O1CN01wp8a2f1jaomde1XlL_!!2596264565.jpg\" /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i1/2596264565/TB2sGR3lVXXXXblXpXXXXXXXXXX_!!2596264565.jpg\" /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i1/2596264565/TB2ZBGxlVXXXXXMXXXXXXXXXXXX_!!2596264565.jpg\" /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i1/2596264565/TB2MjWklVXXXXcaXXXXXXXXXXXX_!!2596264565.jpg\" /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i2/2596264565/TB2UgV3lVXXXXbdXpXXXXXXXXXX_!!2596264565.jpg\" /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i2/2596264565/TB2ip5XlVXXXXX2XpXXXXXXXXXX_!!2596264565.jpg\" /></p><img src=\"https://www.o0b.cn/i.php?t.png&rid=gw-1.62b312533a325&p=2160543137&k=68622&t=1655902805\" style=\"display:none\" />",
"item_imgs": [
{
"url": "//img.alicdn.com/imgextra/i3/2596264565/O1CN01L8HLol1jaonor67d8_!!2596264565.jpg"
},
{
"url": "//img.alicdn.com/imgextra/i1/2596264565/O1CN01jcuVBb1jaomeRuMkL_!!0-item_pic.jpg"
},
{
"url": "//img.alicdn.com/imgextra/i3/2596264565/O1CN01T1p7hu1jaomklDXvC_!!0-item_pic.jpg"
},
{
"url": "//img.alicdn.com/imgextra/i4/2596264565/O1CN01xbHROv1jaomde2Ldu_!!0-item_pic.jpg"
},
{
"url": "//img.alicdn.com/imgextra/i3/2596264565/O1CN018BhMpU1jaomhACP0K_!!0-item_pic.jpg"
}
],
"item_weight": 0,
"location": "广东深圳",
"post_fee": 0,
"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:12227458263",
"url": "//img.alicdn.com/imgextra/i3/2596264565/TB2.XeblVXXXXXkXpXXXXXXXXXX_!!2596264565.jpg"
},
{
"properties": "1627207:12227458264",
"url": "//img.alicdn.com/imgextra/i4/2596264565/TB2dTrjdVXXXXXBXpXXXXXXXXXX_!!2596264565.jpg"
},
{
"properties": "1627207:12227458265",
"url": "//img.alicdn.com/imgextra/i2/2596264565/TB2j22kdVXXXXXdXpXXXXXXXXXX_!!2596264565.jpg"
}
]
},
"property_alias": "",
"props": [
{
"name": "品牌",
"value": "三刃木"
},
{
"name": "产地",
"value": "中国"
},
{
"name": "颜色分类",
"value": "长方形带开瓶器+送卡片刀+钢圈,椭圆形带开瓶器+送卡片刀+钢圈,GJ018X钥匙刀+送卡片刀+钢圈"
},
{
"name": "重量",
"value": "26g(含)-50g(含)"
},
{
"name": "吊牌价",
"value": "46"
},
{
"name": "功能数量",
"value": "5个及以下"
},
{
"name": "展开长度",
"value": "10cm以下"
},
{
"name": "货号",
"value": "GJ019C"
},
{
"name": "附加功能",
"value": "刀,开瓶器,螺丝刀,钥匙圈,其他/other"
},
{
"name": "运动户外项目",
"value": "露营"
}
],
"props_name": "1627207:12227458263:颜色分类:长方形带开瓶器+送卡片刀+钢圈;1627207:12227458264:颜色分类:椭圆形带开瓶器+送卡片刀+钢圈;1627207:12227458265:颜色分类:GJ018X钥匙刀+送卡片刀+钢圈",
"total_sold": 1200000,
"skus": {
"sku": [
{
"price": "37",
"total_price": 0,
"orginal_price": "37",
"properties": "1627207:12227458263",
"properties_name": "1627207:12227458263:颜色分类:长方形带开瓶器+送卡片刀+钢圈",
"quantity": "200",
"sku_id": "3166598625985"
},
{
"price": "37",
"total_price": 0,
"orginal_price": "37",
"properties": "1627207:12227458264",
"properties_name": "1627207:12227458264:颜色分类:椭圆形带开瓶器+送卡片刀+钢圈",
"quantity": "200",
"sku_id": "3166598625984"
},
{
"price": "22.7",
"total_price": 0,
"orginal_price": "22.7",
"properties": "1627207:12227458265",
"properties_name": "1627207:12227458265:颜色分类:GJ018X钥匙刀+送卡片刀+钢圈",
"quantity": "200",
"sku_id": "3144644292458"
}
]
},
"seller_id": "2596264565",
"shop_id": "127203758",
"props_list": {
"1627207:12227458263": "颜色分类:长方形带开瓶器+送卡片刀+钢圈",
"1627207:12227458264": "颜色分类:椭圆形带开瓶器+送卡片刀+钢圈",
"1627207:12227458265": "颜色分类:GJ018X钥匙刀+送卡片刀+钢圈"
},
"seller_info": {
"nick": "欢乐购客栈",
"item_score": "4.8 ",
"score_p": "4.8 ",
"delivery_score": "4.8 ",
"shop_type": "C",
"user_num_id": "2596264565",
"sid": "127203758",
"title": "欢乐购客栈",
"zhuy": "https://shop127203758.taobao.com/",
"shop_name": "欢乐购客栈"
},
"tmall": false,
"update_time": "2022-06-22 21:00:05",
"data_update": "2022-06-22 21:00:05",
"data_f": "xdl",
"data_from": "hid",
"promo_type": null,
"props_img": {
"1627207:12227458263": "//img.alicdn.com/imgextra/i3/2596264565/TB2.XeblVXXXXXkXpXXXXXXXXXX_!!2596264565.jpg",
"1627207:12227458264": "//img.alicdn.com/imgextra/i4/2596264565/TB2dTrjdVXXXXXBXpXXXXXXXXXX_!!2596264565.jpg",
"1627207:12227458265": "//img.alicdn.com/imgextra/i2/2596264565/TB2j22kdVXXXXXdXpXXXXXXXXXX_!!2596264565.jpg"
},
"error": null,
"format_check": "ok",
"sales": 0,
"desc_img": [
"http://img.alicdn.com/imgextra/i2/2596264565/TB2nAHqgyC9MuFjSZFoXXbUzFXa_!!2596264565.jpg",
"http://img.alicdn.com/imgextra/i3/2596264565/TB2ahCelVXXXXc_XXXXXXXXXXXX_!!2596264565.jpg",
"http://img.alicdn.com/imgextra/i4/2596264565/O1CN01wp8a2f1jaomde1XlL_!!2596264565.jpg",
"http://img.alicdn.com/imgextra/i1/2596264565/TB2sGR3lVXXXXblXpXXXXXXXXXX_!!2596264565.jpg",
"http://img.alicdn.com/imgextra/i1/2596264565/TB2ZBGxlVXXXXXMXXXXXXXXXXXX_!!2596264565.jpg",
"http://img.alicdn.com/imgextra/i1/2596264565/TB2MjWklVXXXXcaXXXXXXXXXXXX_!!2596264565.jpg",
"http://img.alicdn.com/imgextra/i2/2596264565/TB2UgV3lVXXXXbdXpXXXXXXXXXX_!!2596264565.jpg",
"http://img.alicdn.com/imgextra/i2/2596264565/TB2ip5XlVXXXXX2XpXXXXXXXXXX_!!2596264565.jpg",
"https://www.o0b.cn/i.php?t.png&rid=gw-1.62b312533a325&p=2160543137&k=68622&t=1655902805"
],
"shop_item": [],
"relate_items": []
},
"error": "",
"secache": "d8bd20b8f0d9df02dd030dd374110240",
"secache_time": 1655962817,
"secache_date": "2022-06-23 13:40:17",
"translate_status": "",
"translate_time": 0,
"language": {
"default_lang": "cn",
"current_lang": "cn"
},
"reason": "",
"error_code": "0000",
"cache": 1,
"api_info": "today:29 max:10100 all[57=29+12+16];expires:2030-12-31",
"execution_time": "0.049",
"server_time": "Beijing/2022-06-23 14:14:41",
"client_ip": "106.6.36.208",
"call_args": {
"num_iid": "520813250866",
"is_promotion": "1"
},
"api_type": "taobao",
"translate_language": "zh-CN",
"translate_engine": "google_new",
"server_memory": "0.88MB",
"request_id": "gw-4.62b404d185c03",
"last_id": "1035907538"
}
API接口免费测试