随着电商市场的不断发展壮大,越来越多的人开始选择在网上购买商品。其中,东南亚地区的Lazada电商平台备受欢迎。如果您是一名电商从业者,或者打算在Lazada上开店,那么获取商品详情信息将是一个非常重要的环节。本文将介绍如何使用API接口获取Lazada商品详情信息。

首先,Lazada提供了丰富的API接口,供开发者使用。在使用API接口前,您需要先注册账号,获取授权码和密钥。

接着,我们可以通过以下步骤获取Lazada商品详情信息:

item_get-获得lazada商品详情  注册开通

lazada.item_get

公共参数

名称 类型 必须 描述
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版本

请求参数

请求参数:num_iid=267690734&nation=co.th

参数说明:num_iid:lazada商品ID(是对应国家不同国家的ID不能通用)
nation:国家
国家域名后缀可选值如下:co.id、com.my、com.ph、sg、co.th、vn

响应参数

Version: Date:

名称 类型 必须 示例值 描述
item
item[] 0   获得lazada商品详情
num_iid
String 0 267690734 宝贝ID
title
String 0 中国新年假期交付63年2月2日!!城市豪宅鞋鞋高跟鞋男士正商务正装男士鞋鞋牛津牛津向左急转福特男性电影ShoeFree。 商品标题
price
Float 0 7.70 价格
nick
String 0 URBAN SAFARI 卖家昵称
pic_url
String 0 //my-test-11.slatic.net/original/208de91b5132477f8a723c82c56c3a58.jpg 宝贝图片
detail_url
String 0 https://www.lazada.co.th/products/2-63-urban-luxury-oxfords-shoefree-i267690734-s418579763.html 宝贝链接
brand
String 0 MAJE 品牌
orginal_price
Float 0 7.70 原价
skus
Mix 0 {"sku": [{"properties": "0:0", "properties_name": "0:0:颜色:小号", "price": "7.70", "orginal_price": "7.70", "quantity": 716, "sku_id": 3184603612387 }]} 商品规格信息列表
props_name
String 0 0:0:小号:;0:1:中号:;0:2:大号: 商品属性名
props_img
Mix 0   属性图片
item_imgs
Mix 0 [{"url": "//my-test-11.slatic.net/original/208de91b5132477f8a723c82c56c3a58.jpg"}] 商品图片列表
seller
Mix 0    
desc
String 0    
props_list
Mix 0 {"0:0": "颜色:小号"} 商品属性
seller_info
Mix 0 {"level": "", "shop_type": "A", "user_num_id": "2620712400", "cid": null, "delivery_score": null, "item_score": null, "score_p": null, "city": "广东 广州", "shop_name": "深圳市福田区尚我佳日用制品厂", "nick": "尚我佳日用品厂", "zhuy": "https://m.1688.com/winport/b2b-262071240083f4c.html", "sid": "b2b-262071240083f4c"} 卖家信息
num
Int 0 2191  
post_fee
Float 0 9.00 邮费
language
String 0 th  
currency_code
String 0 THB  
property_alias
String 0 0:0:小号;0:1:中号;0:2:大号 属性别名

请求示例

-- 请求示例 url 默认请求参数已经URL编码处理
curl -i "https://api-gw.onebound.cn/lazada/item_get/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=267690734&nation=co.th"

响应示例

{
"item": {
"num_iid": "267690734",
"title": "城市奢华男士鞋正式鞋高跟鞋商务套装男牛津鞋尖头牛津鞋男士皮革婚礼",
"price": 232,
"nick": "URBAN SAFARI",
"pic_url": "//my-test-11.slatic.net/original/208de91b5132477f8a723c82c56c3a58.jpg",
"detail_url": "https://www.lazada.co.th/products/oxfords-i267690734-s418579763.html",
"brand": "No Brand",
"orginal_price": null,
"skus": {
"sku": [
{
"total_price": 0,
"price": 232,
"orginal_price": 417,
"quantity": 1950,
"properties": "30097:95204;30585:133117",
"properties_name": "30097:95204:涂料:白色;30585:133117:大小:38",
"sku_id": "418579756"
},
{
"total_price": 0,
"price": 232,
"orginal_price": 417,
"quantity": 1949,
"properties": "30097:95204;30585:133137",
"properties_name": "30097:95204:涂料:白色;30585:133137:大小:39",
"sku_id": "418579757"
},
{
"total_price": 0,
"price": 232,
"orginal_price": 417,
"quantity": 1947,
"properties": "30097:95204;30585:133146",
"properties_name": "30097:95204:涂料:白色;30585:133146:大小:40",
"sku_id": "418579758"
},
{
"total_price": 0,
"price": 232,
"orginal_price": 417,
"quantity": 1948,
"properties": "30097:95204;30585:133152",
"properties_name": "30097:95204:涂料:白色;30585:133152:大小:41",
"sku_id": "418579759"
},
{
"total_price": 0,
"price": 232,
"orginal_price": 417,
"quantity": 1946,
"properties": "30097:95204;30585:133157",
"properties_name": "30097:95204:涂料:白色;30585:133157:大小:42",
"sku_id": "418579760"
},
{
"total_price": 0,
"price": 232,
"orginal_price": 417,
"quantity": 1946,
"properties": "30097:95204;30585:133165",
"properties_name": "30097:95204:涂料:白色;30585:133165:大小:43",
"sku_id": "418579761"
},
{
"total_price": 0,
"price": 232,
"orginal_price": 417,
"quantity": 1949,
"properties": "30097:95204;30585:133172",
"properties_name": "30097:95204:涂料:白色;30585:133172:大小:44",
"sku_id": "418579762"
},
{
"total_price": 0,
"price": 232,
"orginal_price": 417,
"quantity": 1949,
"properties": "30097:95204;30585:133178",
"properties_name": "30097:95204:涂料:白色;30585:133178:大小:45",
"sku_id": "418579763"
},
{
"total_price": 0,
"price": 232,
"orginal_price": 417,
"quantity": 1948,
"properties": "30097:95204;30585:133177",
"properties_name": "30097:95204:涂料:白色;30585:133177:大小:46",
"sku_id": "418579764"
},
{
"total_price": 0,
"price": 232,
"orginal_price": 417,
"quantity": 1950,
"properties": "30097:95204;30585:133198",
"properties_name": "30097:95204:涂料:白色;30585:133198:大小:47","sku_id":"418579765"},{"total_price":0,"price":232,"orginal_price":417,"quantity":1950,"properties":"30097:95204;30585:133204","properties_name":"30097:95204:涂料:白色;30585:133204:大小:48","sku_id":"418579766"},{"total_price":0,"price":232,"orginal_price":417,"quantity":1950,"properties":"30097:4660;30585:133117","properties_name":"30097:4660:涂料:黑色;30585:133117:大小:38","sku_id":"418579767"},{"total_price":0,"price":232,"orginal_price":417,"quantity":1950,"properties":"30097:4660;30585:133137","properties_name":"30097:4660:涂料:黑色;30585:133137:大小:39","sku_id":"418579768"},{"total_price":0,"price":232,"orginal_price":417,"quantity":1946,"properties":"30097:4660;30585:133146","properties_name":"30097:4660:涂料:黑色;30585:133146:大小:40","sku_id":"418579769"},{"total_price":0,"price":232,"orginal_price":417,"quantity":1947,"properties":"30097:4660;30585:133152","properties_name":"30097:4660:涂料:黑色;30585:133152:大小:41","sku_id":"418579770"},{"total_price":0,"price":232,"orginal_price":417,"quantity":1947,"properties":"30097:4660;30585:133157","properties_name":"30097:4660:涂料:黑色;30585:133157:大小:42","sku_id":"418579771"},{"total_price":0,"price":232,"orginal_price":417,"quantity":1948,"properties":"30097:4660;30585:133165","properties_name":"30097:4660:涂料:黑色;30585:133165:大小:43","sku_id":"418579772"},{"total_price":0,"price":232,"orginal_price":417,"quantity":1949,"properties":"30097:4660;30585:133172","properties_name":"30097:4660:涂料:黑色;30585:133172:大小:44","sku_id":"418579773"},{"total_price":0,"price":232,"orginal_price":417,"quantity":1949,"properties":"30097:4660;30585:133178","properties_name":"30097:4660:涂料:黑色;30585:133178:大小:45","sku_id":"418579774"},{"total_price":0,"price":232,"orginal_price":417,"quantity":1949,"properties":"30097:4660;30585:133177","properties_name":"30097:4660:涂料:黑色;30585:133177:大小:46","sku_id":"418579775"},{"total_price":0,"price":232,"orginal_price":417,"quantity":1950,"properties":"30097:4660;30585:133198","properties_name":"30097:4660:涂料:黑色;30585:133198:大小:47","sku_id":"418579776"},{"total_price":0,"price":232,"orginal_price":417,"quantity":1950,"properties":"30097:4660;30585:133204","properties_name":"30097:4660:涂料:黑色;30585:133204:大小:48","sku_id":"418579777"},{"total_price":0,"price":232,"orginal_price":417,"quantity":1950,"properties":"30097:4799;30585:133117","properties_name":"30097:4799:涂料:棕色;30585:133117:大小:38","sku_id":"418579778"},{"total_price":0,"price":232,"orginal_price":417,"quantity":1950,"properties":"30097:4799;30585:133137","properties_name":"30097:4799:涂料:棕色;30585:133137:大小:39","sku_id":"418579779"},{"total_price":0,"price":232,"orginal_price":417,"quantity":1950,"properties":"30097:4799;30585:133146","properties_name":"30097:4799:涂料:棕色;30585:133146:大小:40","sku_id":"418579780"},{"total_price":0,"price":232,"orginal_price":417,"quantity":1950,"properties":"30097:4799;30585:133152","properties_name":"30097:4799:涂料:棕色;30585:133152:大小:41","sku_id":"418579781"},{"total_price":0,"price":232,"orginal_price":417,"quantity":1948,"properties":"30097:4799;30585:133157","properties_name":"30097:4799:涂料:棕色;30585:133157:大小:42","sku_id":"418579782"},{"total_price":0,"price":232,"orginal_price":417,"quantity":1948,"properties":"30097:4799;30585:133165","properties_name":"30097:4799:涂料:棕色;30585:133165:大小:43","sku_id":"418579783"},{"total_price":0,"price":232,"orginal_price":417,"quantity":1949,"properties":"30097:4799;30585:133172","properties_name":"30097:4799:涂料:棕色;30585:133172:大小:44","sku_id":"418579784"},{"total_price":0,"price":232,"orginal_price":417,"quantity":1949,"properties":"30097:4799;30585:133178","properties_name":"30097:4799:涂料:棕色;30585:133178:大小:45","sku_id":"418579785"},{"total_price":0,"price":232,"orginal_price":417,"quantity":1949,"properties":"30097:4799;30585:133177","properties_name":"30097:4799:涂料:棕色;30585:133177:大小:46","sku_id":"418579786"},{"total_price":0,"price":232,"orginal_price":417,"quantity":1950,"properties":"30097:4799;30585:133198","properties_name":"30097:4799:涂料:棕色;30585:133198:大小:47","sku_id":"418579787"},{"total_price":0,"price":232,"orginal_price":417,"quantity":1950,"properties":"30097:4799;30585:133204","properties_name":"30097:4799:涂料:棕色;30585:133204:大小:48","sku_id":"418579788"}]},"prop_imgs":{"prop_img":[{"properties":"30097:4660","url":"//my-test-11.slatic.net/original/00b3ab8196673755dff35a21b7daaf14.jpg"},{"properties":"30097:4799","url":"//my-test-11.slatic.net/original/5cd049094680f6f029cea8de5aba45e6.jpg"},{"properties":"30097:95204","url":"//my-test-11.slatic.net/original/208de91b5132477f8a723c82c56c3a58.jpg"}]},"props_name":"30097:95204:涂料:白色;30097:4660:涂料:黑色;30097:4799:涂料:棕色;30585:133117:大小:38;30585:133137:大小:39;30585:133146:大小:40;30585:133152:大小:41;30585:133157:大小:42;30585:133165:大小:43;30585:133172:大小:44;30585:133178:大小:45;30585:133177:大小:46;30585:133198:大小:47;30585:133204:大小:48","props_img":{"30097:4660":"//my-test-11.slatic.net/original/00b3ab8196673755dff35a21b7daaf14.jpg","30097:4799":"//my-test-11.slatic.net/original/5cd049094680f6f029cea8de5aba45e6.jpg","30097:95204":"//my-test-11.slatic.net/original/208de91b5132477f8a723c82c56c3a58.jpg"},"item_imgs":[{"url":"//my-test-11.slatic.net/original/208de91b5132477f8a723c82c56c3a58.jpg"},{"url":"//my-test-11.slatic.net/original/208de91b5132477f8a723c82c56c3a58.jpg"},{"url":"//my-test-11.slatic.net/original/208de91b5132477f8a723c82c56c3a58.jpg"},{"url":"//my-test-11.slatic.net/original/208de91b5132477f8a723c82c56c3a58.jpg"}],"seller":[],"desc":"<h2><strong>จุดขายสินค้า:</strong></h2><h2><strong>1. หนังคุณภาพสูงหนังนุ่มและละเอียดอ่อนพื้นผิวใสระบายอากาศได้ดีและสะดวกสบาย</strong></h2><h2><strong>2. ตกแต่งโลหะมีสไตล์และสวยงาม</strong></h2><h2><strong>3. ระบายอากาศภายในสะดวกสบายระบายอากาศได้ดีและไม่อับ</strong></h2><h2><strong>4. พื้นรองเท้ายางกันลื่นและทนต่อการสึกหรอ</strong></h2><p style=\"margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><span></span></p><div style=\"width: 100.0%;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;\"><img src=\"https://my-live-01.slatic.net/original/7af35659d117cf122b2d1c1f927b8d8f.jpg\" style=\"width: 100.0%;display: block;\"/></div></div></div><div style=\"width: 800.0px;height: 800.0px;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 800.0px;height: 800.0px;display: block;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 800.0px;height: 800.0px;display: block;\"><img src=\"https://my-live-01.slatic.net/original/804da6ae2bcb7667ecac415be945cc49.jpg\" style=\"width: 800.0px;height: 800.0px;display: block;\"/></div></div></div><div style=\"width: 100.0%;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;\"><img src=\"https://my-live-01.slatic.net/original/e15bd4ccc756c23f1885708e4c8666cb.jpg\" style=\"width: 100.0%;display: block;\"/></div></div></div><span></span><span></span><div style=\"width: 100.0%;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;\"><img src=\"https://my-live-01.slatic.net/original/681c2c9f6ca395dbc0a0069e372bb98d.jpg\" style=\"width: 100.0%;display: block;\"/></div></div></div><span></span><span></span><div style=\"width: 100.0%;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;\"><img src=\"https://my-live-01.slatic.net/original/f7fbb14c71a5256aef4560acbbd92c87.jpg\" style=\"width: 100.0%;display: block;\"/></div></div></div><span></span><span></span><div style=\"width: 100.0%;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;\"><img src=\"https://my-live-01.slatic.net/original/9c5a6247e8eade219cd2acc93e9260da.jpg\" style=\"width: 100.0%;display: block;\"/></div></div></div><span></span><span></span><div style=\"width: 100.0%;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;\"><img src=\"https://my-live-01.slatic.net/original/303110c6c43933073cd72e4aebe68543.jpg\" style=\"width: 100.0%;display: block;\"/></div></div></div><span></span><div style=\"width: 100.0%;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;\"><img src=\"https://my-live-01.slatic.net/original/444635248f5173da9cf1b7296d2ffeb4.jpg\" style=\"width: 100.0%;display: block;\"/></div></div></div><span></span><span></span><div style=\"width: 100.0%;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;\"><img src=\"https://my-live-01.slatic.net/original/e3d2799ebb71bcf6c77523780f0c203b.jpg\" style=\"width: 100.0%;display: block;\"/></div></div></div><span></span><span></span><div style=\"width: 100.0%;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;\"><img src=\"https://my-live-01.slatic.net/original/b66455186c06997362eefad48962f67c.jpg\" style=\"width: 100.0%;display: block;\"/></div></div></div><span></span><span></span><div style=\"width: 100.0%;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;\"><img src=\"https://my-live-01.slatic.net/original/a114bfe261da3d549765000a15f683ae.jpg\" style=\"width: 100.0%;display: block;\"/></div></div></div><span></span><span></span><div style=\"width: 100.0%;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;\"><img src=\"https://my-live-01.slatic.net/original/b83963309c479ab42e8223556461e2d3.jpg\" style=\"width: 100.0%;display: block;\"/></div></div></div><span></span><span></span><div style=\"width: 100.0%;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;\"><img src=\"https://my-live-01.slatic.net/original/a64418e722ff7002c5ee737a4e8a0230.jpg\" style=\"width: 100.0%;display: block;\"/></div></div></div><div style=\"width: 100.0%;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;\"><img src=\"https://my-live-01.slatic.net/original/cbb094264e3b122755d90ebb8880b10d.jpg\" style=\"width: 100.0%;display: block;\"/></div></div></div><span></span><span></span><div style=\"width: 100.0%;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;\"><img src=\"https://my-live-01.slatic.net/original/6c11d757a1e76963eee1aefaa9fa49eb.jpg\" style=\"width: 100.0%;display: block;\"/></div></div></div><span></span><span></span><div style=\"width: 100.0%;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;\"><img src=\"https://my-live-01.slatic.net/original/a3487824abf217ebf4611940384e3c9f.jpg\" style=\"width: 100.0%;display: block;\"/></div></div></div><span></span><span></span><div style=\"width: 100.0%;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;\"><img src=\"https://my-live-01.slatic.net/original/1a0f1cda1853bd10eaf066362cd6a55d.jpg\" style=\"width: 100.0%;display: block;\"/></div></div></div><p style=\"margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><span></span></p>","props_list":{"30097:95204":"涂料:白色","30097:4660":"涂料:黑色","30097:4799":"涂料:棕色","30585:133117":"大小:38","30585:133137":"大小:39","30585:133146":"大小:40","30585:133152":"大小:41","30585:133157":"大小:42","30585:133165":"大小:43","30585:133172":"大小:44","30585:133178":"大小:45","30585:133177":"大小:46","30585:133198":"大小:47","30585:133204":"大小:48"},"seller_info":{"nick":"URBAN SAFARI","tltle":"URBAN SAFARI","shop_name":"URBAN SAFARI","user_num_id":"71550","zhuy":"//www.lazada.co.th/shop/urban-safari/?itemId=267690734&channelSource=pdp","level":3},"num":64310,"post_fee":"ฟรี","language":"th","currency_code":"THB","property_alias":"30097:95204:白色;30585:133117:38;30097:95204:白色;30585:133137:39;30097:95204:白色;30585:133146:40;30097:95204:白色;30585:133152:41;30097:95204:白色;30585:133157:42;30097:95204:白色;30585:133165:43;30097:95204:白色;30585:133172:44;30097:95204:白色;30585:133178:45;30097:95204:白色;30585:133177:46;30097:95204:白色;30585:133198:47;30097:95204:白色;30585:133204:48;30097:4660:黑色;30585:133117:38;30097:4660:黑色;30585:133137:39;30097:4660:黑色;30585:133146:40;30097:4660:黑色;30585:133152:41;30097:4660:黑色;30585:133157:42;30097:4660:黑色;30585:133165:43;30097:4660:黑色;30585:133172:44;30097:4660:黑色;30585:133178:45;30097:4660:黑色;30585:133177:46;30097:4660:黑色;30585:133198:47;30097:4660:黑色;30585:133204:48;30097:4799:棕色;30585:133117:38;30097:4799:棕色;30585:133137:39;30097:4799:棕色;30585:133146:40;30097:4799:棕色;30585:133152:41;30097:4799:棕色;30585:133157:42;30097:4799:棕色;30585:133165:43;30097:4799:棕色;30585:133172:44;30097:4799:棕色;30585:133178:45;30097:4799:棕色;30585:133177:46;30097:4799:棕色;30585:133198:47;30097:4799:棕色;30585:133204:48"},"secache":"142ca71401476a77b9155576ca350664","secache_time":1614924434,"secache_date":"2021-03-05 14:07:14","translate_status":"ok","translate_time":0.882,"language":{"current_lang":"cn","source_lang":"th"},"error":"","reason":"","error_code":"0000","cache":1,"api_info":"today: max:10000","execution_time":0.935,"server_time":"Beijing/2021-03-10 17:07:19","client_ip":"106.6.35.144","call_args":{"num_iid":"267690734","is_promotion":"co.th"},"api_type":"lazada","translate_language":"zh-CN","translate_engine":"google_cn","server_memory":"3.07MB","request_id":"gw-1.60488c46c8c8e"}

异常示例

{
"error": "item-not-found",
"reason": "商品没找到",
"error_code": "2000",
"success": 0,
"cache": 0,
"api_info": "today:0 max:10000",
"execution_time": 0.081,
"server_time": "Beijing/2020-06-10 23:44:00",
"call_args": [],
"api_type": "taobao",
"request_id": "15ee0ffc041242"}

相关资料

 

错误码解释

状态代码(error_code) 状态信息 详细描述 是否收费
0000 success 接口调用成功并返回相关数据
2000 Search success but no result 接口访问成功,但是搜索没有结果
4000 Server internal error 服务器内部错误
4001 Network error 网络错误
4002 Target server error 目标服务器错误
4003 Param error 用户输入参数错误 忽略
4004 Account not found 用户帐号不存在 忽略
4005 Invalid authentication credentials 授权失败 忽略
4006 API stopped 您的当前API已停用 忽略
4007 Account stopped 您的账户已停用 忽略
4008 API rate limit exceeded 并发已达上限 忽略
4009 API maintenance API维护中 忽略
4010 API not found with these values API不存在 忽略
4012 Please add api first 请先添加api 忽略
4013 Number of calls exceeded 调用次数超限 忽略
4014 Missing url param 参数缺失 忽略
4015 Wrong pageToken 参数pageToken有误 忽略
4016 Insufficient balance 余额不足 忽略
4017 timeout error 请求超时
5000 unknown error 未知错误

分析商品详情信息

获取商品详情信息后,根据自己的需求对信息进行分析和处理。例如,获取商品标题、描述、价格、库存等字段值,并存入数据库中或进行其他操作。

总结

通过以上步骤,我们可以使用API接口获取Lazada商品详情信息。需要注意的是,使用Lazada开放平台API接口时,要先了解API接口的限制和调用频率,避免对API接口造成过多负载,严重影响后续的调用。

如何使用API接口获取Lazada商品详情数据的更多相关文章

  1. 从api接口获取数据-okhttp

    首先先介绍下api接口: API:应用程序接口(API:Application Program Interface) 通常用于数据连接,调用函数提供功能等等... 从api接口获取数据有四种方式:Ht ...

  2. 05-06 Flutter JSON和序列化反序列化、创建模型类转换Json数据、轮播图数据渲染:Flutter创建商品数据模型 、请求Api接口渲染热门商品 推荐商品

    Config.dart class Config{ static String domain='http://jd.itying.com/'; } FocusModel.dart class Focu ...

  3. 汽车之家店铺商品详情数据抓取 DotnetSpider实战[二]

    一.迟到的下期预告 自从上一篇文章发布到现在,大约差不多有3个月的样子,其实一直想把这个实战入门系列的教程写完,一个是为了支持DotnetSpider,二个是为了.Net 社区发展献出一份绵薄之力,这 ...

  4. C# 请求Web Api 接口,返回的json数据直接反序列化为实体类

    须要的引用的dll类: Newtonsoft.Json.dll.System.Net.Http.dll.System.Net.Http.Formatting.dll Web Api接口为GET形式: ...

  5. 通过zabbix的API接口获取服务器列表

    Zabbix API说明 1) 基于Web的API,作为Web前端的一部分提供,使用JSON-RPC 2.0协议 2) 身份认证Token:在访问Zabbix中的任何数据之前,需要登录并获取身份验证令 ...

  6. 使用百度地图api接口获取公交地图路线和车站

    需要在页面文件中引用百度的js @*<script type="text/javascript" src="http://api.map.baidu.com/api ...

  7. 用户Ip地址和百度地图api接口获取用户地理位置(经纬度坐标,城市)

    <?php   //获取用户ip(外网ip 服务器上可以获取用户外网Ip 本机ip地址只能获取127.0.0.1) function getip(){     if(!empty($_SERVE ...

  8. vcenter api 接口获取开发

    通过连接vcenter 管理服务器,获取其下所有的:存储,网络,ESXI实体机,虚拟机相关信息的脚步: #!/opt/python3/bin/python3 #Author: zhaoyong &qu ...

  9. java从Swagger Api接口获取数据工具类

  10. #PHP#微信支付 第二篇 JSAPI 调用统一下单接口获取预支付交易数据

    上一篇讲到成功获取 openid,本篇要调用微信统一接口创建预支付交易单,并获取到相关数据,以便(后边)在微信内调起H5支付 第三步,调用微信统一下单接口创建预支付交易单 微信统一下单API是微信支付 ...

随机推荐

  1. UCOS II源码分析二

    最近大家都沉浸在找到实习的快乐中,自我充电的时间相对减少了,今天重拾一下ucosii的学习,记录如下: 上一篇文章分析了ucosii源码文件组织结构以及简单介绍了各个文件夹里对应文件的功能,要是对uc ...

  2. web自动化08-下拉选择框、弹出框、滚动条

    1.下拉选择框操作 下拉框就是HTML中<select>元素:   先列需求: 需求:使用'注册A.html'页面,完成对城市的下拉框的操作 1).选择'广州' 2).暂停2秒,选择'上海 ...

  3. 一分钟学一个 Linux 命令 - ls

    前言 大家好,我是 god23bin.今天我给大家带来的是 Linux 命令系列,每天只需一分钟,记住一个 Linux 命令不成问题.今天,我们要介绍的是一个常用而又强大的命令:ls(list). 什 ...

  4. FTL潜规则:调优,才是算法精华

    前言 在存储领域中有一个FTL的概念,这是一种Flash的内存管理算法,属于各个厂商的核心机密,每个厂商的处理方式不同,有的处理简单,有的处理复杂. FTL,即Flash Translations l ...

  5. 项目小结:使用Docker迁移服务到离线服务器

    前言 最近遇到的这个场景,需要把之前开发的一套系统迁移到一个离线的服务器上,这个服务器有点麻烦,接入VPN后通过堡垒机才能访问,速度也很慢,遇到不少坑,本文记录一下迁移过程. 基本信息 原本这套系统也 ...

  6. Vue——vuex使用、Router使用、localstorage、sessionstorage和cookie

    vuex使用 # vuex :状态管理器--->存数据(变量)的地方,所有组件都可以操作 在Vue中实现集中式状态(数据)管理的一个Vue插件,对vue应用中多个组件的共享状态进行集中式的管理( ...

  7. 4. DI相关内容

    我们先来思考 向一个类中传递数据的方式有几种? 普通方法(set 方法) 构造方法 依赖注入描述了在容器中建立 bean 与 bean 之间的依赖关系的过程,如果 bean 运行需要的是数字或字符串呢 ...

  8. 前端学习 C 语言 —— GDB调试器

    GDB调试器 我们在讲指针时用 GDB 调试段错误. 本篇将详细介绍 gdb 的最常用命令.日志记录.检测点,最后介绍如何用 gdb 调试进程以及用gdb 调试一个开源项目的调试版本 -- glmar ...

  9. 4.6 x64dbg 内存扫描与查壳实现

    LyScript 插件中默认提供了多种内存特征扫描函数,每一种扫描函数用法各不相同,在使用扫描函数时应首先搞清楚不同函数之间的差异,本章内容将分别详细介绍每一种内存扫描函数是如何灵活运用,并实现一种内 ...

  10. 配置http协议访问Harbor镜像仓库

    解决http: server gave HTTP response to HTTPS client问题,此问题在上传与下载时均可能出现. 由于docker镜像拉取与推送服务使用的是https协议,但是 ...