API不是产品,而是战略,所有操作系统与网络操作系统都有API。在网络环境中不同机器的API兼容是必要的,否则程序对其所驻留的机器将是不兼容的。
1、公共参数
请求地址: api-gw.onebound.cn/taobao/sell…
| 名称 | 类型 | 必须 | 描述 |
|---|---|---|---|
| key | String | 是 | 调用key(免费获取测试key和secret) |
| 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版本 |
2、请求参数
请求参数:nick=lin130021&shop_url=shop63387065.taobao.com/
参数说明:nick:掌柜昵称
shop_url:PC端店铺主页地址
3、响应参数
| 名称 | 类型 | 必须 | 示例值 | 描述 |
|---|---|---|---|---|
| shop_id | Bigint | 0 | 63387065 | 店铺ID |
| sid | Bigint | 0 | 63387065 | |
| seller_id | Bigint | 0 | 59531614 | 卖家ID |
| nick | String | 0 | lin130021 | 掌柜名字 |
| shop_name | String | 0 | 外新人 琳琳 | 店铺名 |
| shop_type | String | 0 | c | 店铺类型 |
| shop_url | String | 0 | shop63387065.taobao.com/ | 店铺主页 |
| level | Mix | 0 | {"rank": 5,"type":"cap"} | 店铺等级 |
| score | Mix | 0 | [] | 店铺评分 |
| tel | String | 0 | 1891226351 | 电话 |
| data_from | String | 0 |
4、代码展示
{
"item": [
{
"num_iid": "520813250866",
"detail_url": "http://item.taobao.com/item.htm?id=520813250866",
"title": "三刃木折叠刀创意迷你钥匙扣钥匙刀户外随身多功能锋利开箱小刀",
"price": "25.80",
"pic_url": "http://img.alicdn.com/i3/2596264565/O1CN01L8HLol1jaonor67d8_!!2596264565.jpg",
"quantity": "200",
"preSellPrice": "",
"promotion_price": "22.70",
"sales_30day": "18",
"total_sales": "4271"
}
],
"data_from": "app_vip",
"error": "",
"reason": "",
"error_code": "0000",
"cache": 0,
"api_info": "today:70 max:10000 all[421=70+67+290];expires:2030-12-31",
"execution_time": "0.532",
"server_time": "Beijing/2022-10-09 14:41:31",
"client_ip": "106.6.32.64",
"call_args": [],
"api_type": "taobao",
"translate_language": "zh-CN",
"translate_engine": "google_new",
"server_memory": "0.84MB",
"request_id": "gw-4.63426d1b562b7",
"last_id": "1270982335"
}