Blame view

data_crawling/万邦API_shopee.md 2.56 KB
8f6f14da   tangwang   test data prepare:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
  
  key
  t8618339029
  
  secret
  9029f568
  
  
  item_search-根据关键词取商品列表 [查看演示]  
  shopee.item_search
  公共参数
  请求地址: https://api-gw.onebound.cn/shopee/item_search
  
  名称	类型	必须	描述
  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版本
  请求参数
  请求参数:q=dress&page=1&sort=&country=.co.th
  
  参数说明:q:搜索关键词-country:站点,目前支持的(.vn[越南];.co.th[泰国];.tw[台湾];.co.id[印尼];.sg[新加坡];.com.my[马来西亚]),
  page:页数
  
  响应参数
  Version: Date:
  
  名称	类型	必须	示例值	描述
  items	item[]	0		根据关键词取商品列表
  
  请求示例
  -- 请求示例 url 默认请求参数已经URL编码处理
  curl -i "https://api-gw.onebound.cn/shopee/item_search/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&q=dress&page=1&sort=&country=.co.th"
  
  
  
  响应示例
  复制
  {
  	"items": {
  		"url": "https://shopee.com.my/search?keyword=dress",
  		"keyword": "dress",
  		"list_page": "1",
  		"real_total_results": "4269453",
  		"total_results": 5000,
  		"pagecount": 100,
  		"current_lang": "en",
  		"currency_code": "MYR",
  		"item": [
  			{
  				"title": "COLOUR",
  				"pic_url": "https://cf.shopee.com.my/file/79ec29aaa306ec1defd6bd555967702d",
  				"price": 38.9,
  				"promotion_price": 0,
  				"price_range": 0,
  				"num_iid": "277113808/4577557680",
  				"shop_id": "277113808",
  				"sales": 293,
  				"area": "Kelantan",
  				"detail_url": "https://shopee.com.my/product/277113808/4577557680"
  			},
  ...
  		]
  	},
  	"error_code": "0000",
  	"reason": "ok",
  	"secache": "c223e77fc7d95dc48aa390259d5198a8",
  	"secache_time": 1615425217,
  	"secache_date": "2021-03-11 09:13:37",
  	"translate_status": "",
  	"translate_time": 0,
  	"language": {
  		"default_lang": "cn",
  		"current_lang": "cn"
  	},
  	"error": "",
  	"cache": 0,
  	"api_info": "today:2 max:10000",
  	"execution_time": 3.715,
  	"server_time": "Beijing/2021-03-11 09:13:37",
  	"client_ip": "106.6.35.144",
  	"call_args": {
  		"q": "dress",
  		"start_price": "1",
  		"page": ".com.my"
  	},
  	"api_type": "shopee",
  	"translate_language": "zh-CN",
  	"translate_engine": "baidu",
  	"server_memory": "3.07MB",
  	"request_id": "gw-1.60496ebd9ed56"
  }