为了进行电商平台API开发,我们需要做下面几件事情。
1)开发者注册一个账号
2)然后在平台应用注册一个应用程序键(App Key) 。
3)下载平台API的SDK并掌握基本的API基础知识和调用
4)利用SDK接口和对象,传入AppKey或者必要的时候获取并传入SessionKey来进行程序开发。
5)利用平台提供的API文档中心和测试工具,对接口进行测试。从而了解返回信息,方便程序获取。
以上是电商平台的API应用开发的关键流程,其中通过平台文档中心和API测试工具,进行概念了解和接口信息查询很重要。因为这些数据就是我们需要在逐步显示出来的。lazada 的API很多,不过都分为了好几个领域,慢慢就会了解深入了。
点击获取key和secret
易贝获得EBAY商品详情 API 返回值说明
公共参数
请求参数
API 返回结果
Request address:
https://api-gw.onebound.cn/ebay/item_get/?key=test_api_key&
&num_iid=224003224144&&lang=zh-CN&secret=
---------------------------------------
Result Object:
---------------------------------------
{
"item": {
"detail_url": "https://www.ebay.com/itm/0-/224003224144",
"title": "Rattan Effect Garden Hanging Egg Swing Chair Relaxing Patio Hammock w/ Cushions",
"brand": "",
"rootCatId": null,
"cid": null,
"item_imgs": [
{
"url": "https://i.ebayimg.com/images/g/Wl0AAOSwhIdgWdFV/s-l500.jpg"
},
{
"url": "https://i.ebayimg.com/images/g/kbwAAOSwe5ZiF-g5/s-l500.jpg"
},
{
"url": "https://i.ebayimg.com/images/g/L3oAAOSwrf9dZmnJ/s-l500.jpg"
},
{
"url": "https://i.ebayimg.com/images/g/XisAAOSwlLBdKK5n/s-l500.jpg"
},
{
"url": "https://i.ebayimg.com/images/g/bcUAAOSwFd9dKK44/s-l500.jpg"
},
{
"url": "https://i.ebayimg.com/images/g/sRgAAOSwoiFdKK46/s-l500.jpg"
},
{
"url": "https://i.ebayimg.com/images/g/lQsAAOSwkpxdKK6H/s-l500.jpg"
},
{
"url": "https://i.ebayimg.com/images/g/U5oAAOSwPW9dKK6J/s-l500.jpg"
},
{
"url": "https://i.ebayimg.com/images/g/8NgAAOSwP7ZdKK6O/s-l500.jpg"
},
{
"url": "https://i.ebayimg.com/images/g/734AAOSwU7lfroF~/s-l500.jpg"
}
],
"nick": "",
"num": 99,
"num_iid": "224003224144",
"pic_url": "https://i.ebayimg.com/images/g/Wl0AAOSwhIdgWdFV/s-l500.jpg",
"price": "GBP 188.99",
"orginal_price": "",
"delivery": "",
"location": "",
"express_fee": "",
"shipping_to": "",
"sku": "",
"property_alias": "d41d8c:0:Black;d41d8c:1:White;d41d8c:2:Brown;d41d8c:3:Grey;d41d8c:4:Brown;d41d8c:5:White;d41d8c:6:Black;d41d8c:7:Grey",
"props_list": {
"d41d8c:0": ":Black",
"d41d8c:1": ":White",
"d41d8c:2": ":Brown",
"d41d8c:3": ":Grey",
"d41d8c:4": ":Brown",
"d41d8c:5": ":White",
"d41d8c:6": ":Black",
"d41d8c:7": ":Grey"
},
"seller_info": {
"nick": "",
"delivery_score": "",
"item_score": "",
"sid": "",
"title": "",
"zhuy": "https://www.ebay.com/usr/",
"shop_name": ""
},
"skus": {
"sku": []
},
"props": [
{
"name": "30 天",
"value": "由买家支付退货运费"
}
],
"desc": "",
"language_code": "en",
"props_img": [],
"format_check": "ok",
"props_name": "",
"sales": 0,
"desc_img": [],
"shop_item": [],
"relate_items": []
},
"error": "",
"secache": "beda3112af4346e4294abd5ee0618458",
"secache_time": 1661236485,
"secache_date": "2022-08-23 14:34:45",
"translate_status": "ok",
"translate_time": 0.073,
"language": {
"current_lang": "cn",
"source_lang": "en"
},
"reason": "",
"error_code": "0000",
"cache": 0,
"api_info": "today:102 max:10000 all[187=102+36+49];expires:2030-12-31",
"execution_time": "1.787",
"server_time": "Beijing/2022-08-23 14:34:45",
"client_ip": "106.6.39.114",
"call_args": {
"num_iid": "224003224144"
},
"api_type": "ebay",
"translate_language": "zh-CN",
"translate_engine": "baidu",
"server_memory": "3.68MB",
"request_id": "gw-1.6304750380d72",
"last_id": "1169344070"
}