速卖通关键字搜索aliexpress商品API接口(aliexpress商品搜索API接口)

速卖通关键字搜索aliexpress商品API接口(aliexpress商品搜索API接口)代码对接如下:

1.公共参数

名称 类型 必须 描述
key String 调用key(必须以GET方式拼接在URL中,点击获取请求key和secret)
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.请求参数

请求参数:q=shoe&start_price=&end_price=&page=&cat=&discount_only=&sort=&page_size=&seller_info=&nick=&ppath=

参数说明:q:搜索关键字
cat:分类ID
start_price:开始价格
end_price:结束价格
sort:排序[bid,_bid,_sale,_new]
  (bid:总价,sale:销量,new上架时间,加_前缀为从大到小排序)
page: 

3. 响应参数

速卖通关键字搜索aliexpress商品API接口(aliexpress商品搜索API接口)_第1张图片

 4.请求示例(CURL、PHP 、PHPsdk 、Java 、C# 、Python…)

# 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://vx19970108018/aliexpress/item_search/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&q=shoe&start_price=&end_price=&page=&cat=&discount_only=&sort=&page_size=&seller_info=&nick=&ppath="
headers = {
    "Accept-Encoding": "gzip",
    "Connection": "close"
}
if __name__ == "__main__":
    r = requests.get(url, headers=headers)
    json_obj = r.json()
    print(json_obj)

5.响应示例

{
	"items": {
		"page": 1,
		"error": "",
		"real_total_results": "769172",
		"total_results": 4400,
		"item": [
			{
				"title": "Zapatos Deportivos informales hechos a medida, triangulación de envíos, especiales para hacer negocios, zapatillas para correr, fútbol, caminar, Bad Bunny",
				"pic_url": "https://ae04.alicdn.com/kf/S9b7c75a31f4d4bc0b376224074c80e7dA.png",
				"promotion_price": 10,
				"price": 10,
				"orginal_price": "",
				"sales": 0,
				"num_iid": "3256804038645676",
				"sample_id": "5cf92a63-2d1d-417d-bc6c-0583a48fbf05-0",
				"seller_nick": "",
				"detail_url": "https://www.aliexpress.com/item/3256804038645676.html"
			},
			{
				"title": "Valstone-Zapatillas deportivas transpirables para hombre y mujer, zapatos de tenis Unisex para caminar, mocasines informales súper ligeros y cómodos, para verano",
				"pic_url": "https://ae04.alicdn.com/kf/Sdaf1415f277f4ce5b6685f5d4814c5f2n.jpg",
				"promotion_price": 17.59,
				"price": 17.59,
				"orginal_price": "",
				"sales": 0,
				"num_iid": "3256804128930184",
				"sample_id": "5cf92a63-2d1d-417d-bc6c-0583a48fbf05-1",
				"seller_nick": "",
				"detail_url": "https://www.aliexpress.com/item/3256804128930184.html"
			},
			{
				"title": "HUANQIU-zapatos de lona con cordones para mujer, calzado informal de alta calidad, estilo Retro, para caminar, color blanco, para verano, 2022",
				"pic_url": "//ae04.alicdn.com/kf/S78a5f139e7884cca81740e827f203ea1R.jpg",
				"promotion_price": 29.4,
				"price": 29.4,
				"orginal_price": "",
				"sales": 0,
				"num_iid": "3256804195937120",
				"sample_id": "5cf92a63-2d1d-417d-bc6c-0583a48fbf05-2",
				"seller_nick": "",
				"detail_url": "https://www.aliexpress.com/item/3256804195937120.html"
			},
			{
				"title": "Calcetín Unisex, zapatos acuáticos, zapatillas de natación, Yoga, minimalista, deportes de playa, descalzos, calzado ligero Ultra portátil",
				"pic_url": "//ae04.alicdn.com/kf/Sd8ee20eb88a4422e8460e8728a9920a6T.jpg",
				"promotion_price": 14.45,
				"price": 14.45,
				"orginal_price": "",
				"sales": 0,
				"num_iid": "3256803789036299",
				"sample_id": "5cf92a63-2d1d-417d-bc6c-0583a48fbf05-3",
				"seller_nick": "",
				"detail_url": "https://www.aliexpress.com/item/3256803789036299.html"
			},
			{
				"title": "Zapatos Deportivos casuales hechos a medida, envío directo, especial para la operación,",
				"pic_url": "https://ae04.alicdn.com/kf/S8dc5db8b5cb04d2a9a4750772c4b070aO.jpg",
				"promotion_price": 10,
				"price": 10,
				"orginal_price": "",
				"sales": 0,
				"num_iid": "3256803798717149",
				"sample_id": "5cf92a63-2d1d-417d-bc6c-0583a48fbf05-4",
				"seller_nick": "",
				"detail_url": "https://www.aliexpress.com/item/3256803798717149.html"
			},
			{
				"title": "Zapatos informales para hombre, zapatillas deportivas para caminar al aire libre, mocasines cómodos, calzado ligero de talla grande 48, novedad de 2022",
				"pic_url": "https://ae04.alicdn.com/kf/S92db4be5d0484644ab4f97814da34bc8v.jpg",
				"promotion_price": 9.98,
				"price": 9.98,
				"orginal_price": "",
				"sales": 0,
				"num_iid": "3256804029020115",
				"sample_id": "5cf92a63-2d1d-417d-bc6c-0583a48fbf05-5",
				"seller_nick": "",
				"detail_url": "https://www.aliexpress.com/item/3256804029020115.html"
			},
			{
				"title": "B",
				"pic_url": null,
				"promotion_price": null,
				"price": null,
				"orginal_price": "",
				"sales": 0,
				"num_iid": null,
				"sample_id": null,
				"seller_nick": "",
				"detail_url": "https://www.aliexpress.com/item/.html"
			},
			{
				"title": "Zapatillas deportivas transpirables para hombre y mujer, zapatos informales de punto, para correr, caminar y gimnasio, color negro",
				"pic_url": "https://ae04.alicdn.com/kf/Sde2201b3df7342c7a60ab5ff384518b8j.jpg",
				"promotion_price": 10.34,
				"price": 10.34,
				"orginal_price": "",
				"sales": 0,
				"num_iid": "3256802497777243",
				"sample_id": "5cf92a63-2d1d-417d-bc6c-0583a48fbf05-7",
				"seller_nick": "",
				"detail_url": "https://www.aliexpress.com/item/3256802497777243.html"
			},
			{
				"title": "COOLVFATBO-Zapatillas deportivas de dibujos animados para mujer, zapatos altos informales, vulcanizados, para correr",
				"pic_url": "//ae04.alicdn.com/kf/S6bd750e3b8104b0b815c035742d52065R.jpg",
				"promotion_price": 25.09,
				"price": 25.09,
				"orginal_price": "",
				"sales": 0,
				"num_iid": "3256803306742429",
				"sample_id": "5cf92a63-2d1d-417d-bc6c-0583a48fbf05-8",
				"seller_nick": "",
				"detail_url": "https://www.aliexpress.com/item/3256803306742429.html"
			},
			{
				"title": "Sandalias con diamantes de imitación y cristales para niña, zapatos de princesa para fiesta de boda, calzado de baile para niña, color rosa y plateado, 2022",
				"pic_url": "//ae04.alicdn.com/kf/S574d099b7707465096d4279fecbc7123o.jpg",
				"promotion_price": 14.26,
				"price": 14.26,
				"orginal_price": "",
				"sales": 0,
				"num_iid": "3256804107848728",
				"sample_id": "5cf92a63-2d1d-417d-bc6c-0583a48fbf05-9",
				"seller_nick": "",
				"detail_url": "https://www.aliexpress.com/item/3256804107848728.html"
			},
			{
				"title": "New Basic White Shoes Female Low Help German Training Shoes Student Running Casual Board Shoes Female Zapatillas De Mujer",
				"pic_url": "https://ae04.alicdn.com/kf/Sb3fd87a2acd64ddd834c51209b29e537f.jpg",
				"promotion_price": 7.14,
				"price": 7.14,
				"orginal_price": "",
				"sales": 0,
				"num_iid": "3256804205421977",
				"sample_id": "5cf92a63-2d1d-417d-bc6c-0583a48fbf05-10",
				"seller_nick": "",
				"detail_url": "https://www.aliexpress.com/item/3256804205421977.html"
			},
			{
				"title": "B",
				"pic_url": null,
				"promotion_price": null,
				"price": null,
				"orginal_price": "",
				"sales": 0,
				"num_iid": null,
				"sample_id": null,
				"seller_nick": "",
				"detail_url": "https://www.aliexpress.com/item/.html"
			},
			{
				"title": "Zapatos informales de moda para Hombre, zapatillas de deporte resistentes al desgaste de suela gruesa, de malla transpirable, para correr, de verano, 2022",
				"pic_url": "//ae04.alicdn.com/kf/S7f33f6661e724a159a20df9006249234z.jpg",
				"promotion_price": 32.37,
				"price": 32.37,
				"orginal_price": "",
				"sales": 0,
				"num_iid": "3256804242165160",
				"sample_id": "5cf92a63-2d1d-417d-bc6c-0583a48fbf05-12",
				"seller_nick": "",
				"detail_url": "https://www.aliexpress.com/item/3256804242165160.html"
			},
			{
				"title": "Zapatos informales de verano para hombre, zapatillas deportivas ligeras con cordones, Tenis de malla transpirables, a la moda, de talla grande 39-48",
				"pic_url": "//ae04.alicdn.com/kf/S8c28091463e3488a997d738f8af6df06o.jpg",
				"promotion_price": 12.65,
				"price": 12.65,
				"orginal_price": "",
				"sales": 0,
				"num_iid": "3256804090767145",
				"sample_id": "5cf92a63-2d1d-417d-bc6c-0583a48fbf05-13",
				"seller_nick": "",
				"detail_url": "https://www.aliexpress.com/item/3256804090767145.html"
			},
			{
				"title": "Valstone-zapatillas de tenis informales para hombre y mujer, calzado sin cordones, transpirable, a la moda, de verano, talla grande 49",
				"pic_url": "https://ae04.alicdn.com/kf/S9b9d1ca917164d62b68351f2196d469fc.jpg",
				"promotion_price": 14.29,
				"price": 14.29,
				"orginal_price": "",
				"sales": 0,
				"num_iid": "3256804138933901",
				"sample_id": "5cf92a63-2d1d-417d-bc6c-0583a48fbf05-14",
				"seller_nick": "",
				"detail_url": "https://www.aliexpress.com/item/3256804138933901.html"
			},
			{
				"title": "Zapatos de cuero de lujo para hombre, mocasines formales informales sin cordones, italianos, negros, para conducir, 2020",
				"pic_url": "https://ae04.alicdn.com/kf/Hdaa8ab09be8f46e6a036baaaf1e624d47.jpg",
				"promotion_price": 15.36,
				"price": 15.36,
				"orginal_price": "",
				"sales": 0,
				"num_iid": "3256801112359241",
				"sample_id": "5cf92a63-2d1d-417d-bc6c-0583a48fbf05-15",
				"seller_nick": "",
				"detail_url": "https://www.aliexpress.com/item/3256801112359241.html"
			},
			{
				"title": "Niñas niños Pointe Zapatos zapatillas de baile de alta calidad bailarina práctica zapato de Ballet 5 color bailarín de Ballet calzado profesional",
				"pic_url": "https://ae04.alicdn.com/kf/H9037091e47244d3582c010b45e3e9927o.jpg",
				"promotion_price": 3.37,
				"price": 3.37,
				"orginal_price": "",
				"sales": 0,
				"num_iid": "2255800038477695",
				"sample_id": "5cf92a63-2d1d-417d-bc6c-0583a48fbf05-16",
				"seller_nick": "",
				"detail_url": "https://www.aliexpress.com/item/2255800038477695.html"
			},
			{
				"title": "Zapatos de suela roja para hombre, zapatillas planas informales con remaches, de cuero, de marca a la moda, de alta calidad, vip",
				"pic_url": "//ae04.alicdn.com/kf/Hc6c6c45bb6a1461fb70f82dc1e692fe7M.jpg",
				"promotion_price": 98.6,
				"price": 98.6,
				"orginal_price": "",
				"sales": 0,
				"num_iid": "3256802960456880",
				"sample_id": "5cf92a63-2d1d-417d-bc6c-0583a48fbf05-17",
				"seller_nick": "",
				"detail_url": "https://www.aliexpress.com/item/3256802960456880.html"
			},
			{
				"title": "Abalorios clásicos de película de dibujos animados para mujer, de Plata de Ley 925, compatibles con pulsera Pandora Original, abalorio, collar, joyería artesanal",
				"pic_url": "https://ae04.alicdn.com/kf/S34e54558e2fc4cea9e39a6a113c71351m.jpg",
				"promotion_price": 2.99,
				"price": 2.99,
				"orginal_price": "",
				"sales": 0,
				"num_iid": "3256804165461102",
				"sample_id": "5cf92a63-2d1d-417d-bc6c-0583a48fbf05-18",
				"seller_nick": "",
				"detail_url": "https://www.aliexpress.com/item/3256804165461102.html"
			},
			{
				"title": "Zapatillas de baloncesto de alta calidad, zapatos de Skateboard de la más alta calidad, Travis Scott, 2022",
				"pic_url": "https://ae04.alicdn.com/kf/Udb636537bed64de8a4d9c6af9abc4a42n.jpg",
				"promotion_price": 96,
				"price": 96,
				"orginal_price": "",
				"sales": 0,
				"num_iid": "3256803465321213",
				"sample_id": "5cf92a63-2d1d-417d-bc6c-0583a48fbf05-19",
				"seller_nick": "",
				"detail_url": "https://www.aliexpress.com/item/3256803465321213.html"
			}
		],
		"related_keywords": [],
		"nav_catcamp": [],
		"crumbs": [],
		"breadcrumbs": [],
		"navs": [],
		"data_from": "",
		"url": "",
		"keyword": "shoe",
		"cid": "",
		"page_size": 20,
		"pagecount": ""
	},
	"error_code": "0000",
	"reason": "ok",
	"secache": "a799cd7c0b5c3217932480868ddb51cc",
	"secache_time": 1657771181,
	"secache_date": "2022-07-14 11:59:41",
	"error": "",
	"cache": 0,
	"api_info": "today:22 max:10100 all[70=22+21+27];expires:2030-12-31",
	"execution_time": "2.166",
	"server_time": "Beijing/2022-07-14 11:59:41",
	"client_ip": "106.6.38.1",
	"call_args": {
		"q": "shoe"
	},
	"api_type": "aliexpress",
	"translate_language": "zh-CN",
	"translate_engine": "google_cn",
	"server_memory": "3.24MB",
	"request_id": "gw-3.62cf94ab7f5da",
	"last_id": "1077316087"
}

你可能感兴趣的:(速卖通API开发系列,大数据,速卖通关键词搜索商品API接口)