如何获取lazada商品详情 API 返回值说明

lazada.item_get

公共参数

请求地址: https://api-gw-4.cn/lazada/item_get

名称类型必须描述
keyString调用key(必须以GET方式拼接在URL中)
secretString调用密钥
api_nameStringAPI接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等]
cacheString[yes,no]默认yes,将调用缓存的数据,速度比较快
result_typeString[json,jsonu,xml,serialize,var_export]返回数据格式,默认为json,jsonu输出的内容中文可以直接阅读
langString[cn,en,ru]翻译语言,默认cn简体中文
versionStringAPI版本

请求参数

请求参数: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商品详情

请求示例

复制

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

API 工具

Lazada 提供了一套API接口供开发者使用,以获取商品详情、订单信息、物流跟踪等数据。但是,由于API的具体实现和返回值可能会随着时间推移而发生变化,以下是一个基于一般情况的概述,而不是特定于当前Lazada API的精确描述。

获取Lazada商品详情API返回值概述

当你调用Lazada的商品详情API时,通常你会得到一个JSON格式的响应。这个响应会包含有关请求商品的各种信息。以下是一些常见的字段和它们可能的含义:

  1. status:API调用的状态码,通常用于指示请求是否成功。例如,200 表示成功,而 4xx 或 5xx 系列的代码表示不同类型的错误。

  2. message:与状态码相关的描述性消息。如果状态码是成功的,这个字段可能会提供额外的信息。如果状态码是错误的,这个字段通常会提供有关错误的详细信息。

  3. data:包含商品详情的主体数据。这个字段通常是一个复杂的JSON对象,包含以下子字段:

    • product_id:商品的唯一标识符。
    • sku_id(如果有的话):商品的SKU(库存单位)标识符。
    • name:商品的名称。
    • description:商品的描述。
    • price:商品的价格(可能是原始价格、折扣价格、促销价格等)。
    • images:包含商品图片的URL的数组。
    • attributes:商品的属性列表,如颜色、尺寸、品牌等。
    • availability:商品的库存状态或可用性信息。
    • shipping_info:有关商品的配送信息,如配送方式、配送费用等。
    • reviews(如果有的话):包含商品评价的列表或摘要。
    • ...:其他与商品相关的字段,具体取决于API的实现和版本。
  4. error(如果有的话):如果API调用失败,这个字段可能会包含有关错误的详细信息,如错误代码、错误消息等。

注意事项

  • 由于API的具体实现和返回值可能会发生变化,因此你应该查阅Lazada的官方文档以获取最新的信息。
  • 在处理API响应时,你应该始终检查状态码和错误字段,以确保你的代码能够适当地处理成功和失败的情况。
  • API调用可能会受到频率限制、身份验证和授权等要求的限制,因此你应该确保你的代码符合这些要求。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值