下图淘宝/天猫API接口测试:获取Key和secret
公共参数:
名称 | 类型 | 必须 | 描述 |
---|---|---|---|
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版本 |
请求参数:nick=lin130021&shop_url=https://shop63387065.taobao.com/
参数说明:nick:掌柜昵称
shop_url:PC端店铺主页地址
响应参数:
名称 | 类型 | 必须 | 示例值 | 描述 |
---|---|---|---|---|
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 | https://shop63387065.taobao.com/ | 店铺主页 |
level |
Mix | 0 | {"rank": 5,"type":"cap"} | 店铺等级 |
score |
Mix | 0 | [] | 店铺评分 |
tel |
String | 0 | 1891226351 | 电话 |
data_from |
String | 0 |
请求示例:
测试地址:https://console.open.onebound.cn/console/index.php?i=Anzexi
详情数据:
Request address:
https://api-gw.cn/taobao/seller_info/?key=&
&nick=lin130021&shop_url=https://enjeolon.tmall.com/?spm=a220o.1000855.1997427721.d4918089.1903597bpDuDTM&&lang=zh-CN&secret=
---------------------------------------
Result Object:
---------------------------------------
{
"user": {
"shop_id": "107518237",
"sid": "107518237",
"seller_id": "1860270913",
"nick": "英爵伦男装旗舰店",
"shop_name": "英爵伦男装旗舰店",
"shop_type": "B",
"shop_url": "https://enjeolon.tmall.com/?spm=a220o.1000855.1997427721.d4918089.1903597bpDuDTM",
"level": [],
"score": [
{
"score_type": "描述相符",
"score": "4.7",
"socre_text": "低于0.73%"
},
{
"score_type": "服务态度",
"score": "4.8",
"socre_text": "持平"
},
{
"score_type": "发货速度",
"score": "4.8",
"socre_text": "持平"
}
],
"tel": "",
"data_from": "PC"
},
"secache": "9728cd2da8b1deaa84ffc8014e26e2de",
"secache_time": 1655617883,
"secache_date": "2022-06-19 13:51:23",
"translate_status": "",
"translate_time": 0,
"language": {
"default_lang": "cn",
"current_lang": "cn"
},
"error": "",
"reason": "",
"error_code": "0000",
"cache": 1,
"api_info": "today:175 max:10100 all[207=175+16+16];expires:2030-12-31",
"execution_time": "0.299",
"server_time": "Beijing/2022-06-19 13:51:47",
"client_ip": "106.6.39.140",
"call_args": {
"nick": "lin130021",
"shop_url": "https://enjeolon.tmall.com/?spm=a220o.1000855.1997427721.d4918089.1903597bpDuDTM"
},
"api_type": "taobao",
"translate_language": "zh-CN",
"translate_engine": "baidu_api",
"server_memory": "5.81MB",
"request_id": "gw-3.62aeb97305a63",
"last_id": "1028208528"
}