快捷高效且实用的淘宝api接口

  • taobao.readme接入文档
  • item_get获得淘宝商品详情
  • item_get_app获得淘宝app商品详情原数据
  • item_get_pro获得淘宝商品详情高级版
  • item_review获得淘宝商品评论
  • item_sku获取sku详细信息
  • item_fee获得淘宝商品快递费用
  • item_password获得淘口令真实url
  • cat_get获得淘宝分类详情
  • item_cat_get获得淘宝商品类目
  • item_list_weight批量获取商品信息
  • item_history_price获取商品历史价格信息
  • item_list_updown批量获得淘宝商品上下架时间
  • seller_info获得淘宝店铺详情
  • item_search按关键字搜索淘宝商品
  • item_search_pro高级关键字搜索淘宝商品
  • item_search_img按图搜索淘宝商品(拍立淘)
  • item_search_shop获得店铺的所有商品
  • item_search_seller搜索店铺列表
  • item_search_guang爱逛街
  • item_search_suggest获得搜索词推荐
  • item_search_jupage天天特价
  • item_search_coupon优惠券查询
  • item_search_samestyle搜索同款的商品
  • item_search_similar搜索相似的商品
  • item_recommend获取推荐商品列表
  • item_videolist按分类搜索淘宝直播接口
  • item_videolist_cat获取淘宝直播分类id接口
  • item_search_best天猫畅销榜
  • item_question_answer淘宝评论问答列表接口
  • upload_img上传图片到淘宝
  • img2text图片识别商品接口
  • brand_cat获取品牌分类列表
  • brand_cat_top获取分类推荐品牌列表
  • custom自定义API操作
  • buyer_cart_add添加到购物车
  • buyer_cart_remove删除购物车商品
  • buyer_cart_list获取购物车的商品列表
  • buyer_order_list获取购买到的商品订单列表
  • buyer_order_detail获取购买到的商品订单详情
  • buyer_order_express获取购买到的商品订单物流
  • buyer_address_list收货地址列表
  • buyer_address_add添加收货地址
  • buyer_info买家信息
  • seller_order_list获取卖出的商品订单列表
  • seller_cat_props商品分类属性
  • product_add卖家店铺添加宝贝

万邦淘宝/天猫获得淘宝商品详情 API 返回值说明

item_get-获得淘宝商品详情 欢迎测试

onebound.taobao.item_get

公共参数

请求地址: https://api-gw.onebound.cn/taobao/item_get

名称 类型 必须 描述
key String 调用key(必须以GET方式拼接在URL中)
secret String 调用密钥
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=520813250866&is_promotion=1

参数说明:num_iid:淘宝商品ID
is_promotion:是否获取取促销价

响应参数

Version: Date:2022-04-04

名称 类型 必须 示例值 描述

item

item[] 1 宝贝详情数据

请求示例

  • Curl
  • PHP
  • PHPsdk
  • JAVA
  • C#
  • Python
	
-- 请求示例 url 默认请求参数已经URL编码处理
curl -i "https://api-gw.onebound.cn/taobao/item_get/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=520813250866&is_promotion=1"

响应示例

{
    "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": "http://item.taobao.com/item.htm?id=520813250866",
      "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": "

小店所有产品都支持刻字,如需刻字,拍之前联系客服即可。

炎炎夏日来临,一把随身携带便携式的折叠小刀,带开瓶器功能,喝酒不用愁。(钥匙刀不带开瓶器功能)

可以当吊牌项链装饰,也可当钥匙扣挂饰, 水果刀 开瓶器 户外防身.

部分客户跟我们反映链子质量还不够好,因此小店已重新订购一批质量更好的链子赠送,加量不加价,只为让你买的更舒心,戴的更放心。

购买就送工具刀卡和链子一条

璀璨钻石套餐包含【SK016D钥匙扣+GJ019C折叠刀+GJ017D工具卡】

超凡大师套餐包括【304不锈钢钥匙扣+GJ019C折叠刀+GJ017D工具卡】

 

最强王者套餐包括【钛钢钥匙扣+GJ019C折叠刀+GJ017D工具卡】

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

相关资料

错误码解释

状态代码(error_code) 状态信息 详细描述 是否收费
0000 success 接口调用成功并返回相关数据
2000 Search success but no result 接口访问成功,但是搜索没有结果
4000 Server internal error 服务器内部错误
4001 Network error 网络错误
4002 Target server error 目标服务器错误
4003 Param error 用户输入参数错误 忽略
4004 Account not found 用户帐号不存在 忽略
4005 Invalid authentication credentials 授权失败 忽略
4006 API stopped 您的当前API已停用 忽略
4007 Account stopped 您的账户已停用 忽略
4008 API rate limit exceeded 并发已达上限 忽略
4009 API maintenance API维护中 忽略
4010 API not found with these values API不存在 忽略
4012 Please add api first 请先添加api 忽略
4013 Number of calls exceeded 调用次数超限 忽略
4014 Missing url param 参数缺失 忽略
4015 Wrong pageToken 参数pageToken有误 忽略
4016 Insufficient balance 余额不足 忽略
4017 timeout error 请求超时
5000 unknown error 未知错误

你可能感兴趣的:(api接口,api,java,前端,服务器)