请求地址:api-gw.onebound.cn/shopee/sell…
名称 | 类型 | 必须 | 描述 |
---|---|---|---|
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版本 |
2、请求参数
请求参数:shop_id=41311013&country=.ph
参数说明:nick:卖家ID-country:网站后缀(.com.my;.vn;.ph)
3、响应参数
Version: Date:
名称 | 类型 | 必须 | 示例值 | 描述 |
---|---|---|---|---|
shop_name | String | 0 | 爱利仕内衣服饰 | 店铺名 |
shop_id | Bigint | 0 | 88452106 | 店铺ID |
level | String | 0 | 4.714286 | 店铺等级 |
zhuy | String | 0 | shopee.com.my/13642345042… | 店铺主页 |
user_num_id | Bigint | 0 | 88453584 | 用户ID |
nick | String | 0 | 13642345042.my | 掌柜名字 |
modified | Date | 0 | 2019-03-19 10:39:47 | 改进日期 |
created | Date | 0 | 2011-09-22 16:23:59 | 创建日期 |
last_active_time | Date | 0 | 2020-09-22 16:23:59 | 最后登录日期 |
desc | String | 0 | 描述 | |
pic_url | String | 0 | cf.shopee.com.my/file/4eb5ee… | |
shop_desc | Mix | 0 | {"num": 53,"fanscount": 55,"favcount": 16,"location": "Overseas","item_score": 57} | 店铺描述 |
4、请求示例
# coding:utf-8
"""
Compatible for python2.x and python3.x
requirement: pip install requests
"""
from __future__ import print_function
import requests
# 请求示例 url 默认请求参数已经做URL编码
url = "https://api-gw.onebound.cn/shopee/seller_info/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&shop_id=41311013&country=.ph"
headers = {
"Accept-Encoding": "gzip",
"Connection": "close"
}
if __name__ == "__main__":
r = requests.get(url, headers=headers)
json_obj = r.json()
print(json_obj)
5、代码展示
{
"shop_name": "BuyMorePh",
"shop_id": 41311013,
"zhuy": "https://shopee.ph/buymore_ph",
"level": 1,
"seller_id": 41312399,
"user_num_id": 41312399,
"nick": "buymore_ph",
"created": "2017-11-02 06:56:21",
"last_active_time": "2022-10-24 08:49:09",
"pic_url": "https://cf.shopee.ph/file/7bf5c086188b5cb34ff0fdfe6c2fdf90",
"shop_desc": {
"num": 415,
"fanscount": 2222005,
"location": "Pasig City,Metro Manila",
"item_score": 90
},
"data_from": "shopee",
"translate_status": "",
"translate_time": 0,
"language": {
"default_lang": "cn",
"current_lang": "cn"
},
"error": "",
"reason": "",
"error_code": "0000",
"cache": 0,
"api_info": "today:13 max:10000 all[59=13+11+35];expires:2030-12-31",
"execution_time": "0.854",
"server_time": "Beijing/2022-10-24 09:02:50",
"client_ip": "117.170.201.38",
"call_args": {
"nick": "41311013",
"shop_url": ".ph"
},
"api_type": "shopee",
"translate_language": "zh-CN",
"translate_engine": "baidu",
"server_memory": "3.03MB",
"request_id": "gw-3.6355e439711a4",
"last_id": "1306668297"
}