阿里巴巴关键字搜索商品API接口(item_search-按关键字搜索商品接口),阿里巴巴搜索API接口

阿里巴巴关键字搜索商品API接口(item_search-按关键字搜索商品接口),阿里巴巴搜索API接口可以获取到整个页面上看的到的数据,包括:商品ID,商品标题,商品图片,优惠价,价格,价格范围,销量,卖家昵称,物流费用,店铺所在地等参数,接口代码对接可适用于选品上架,数据分析,代购商城建站,erp系统商品数据选品,价格监控,品牌维权,商家搬货,店铺铺货,商家工具等业务,希望能够帮助到有需要的朋友,接口代码对接如下:
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,bid2,_bid2,_sale,_credit]
  (bid:总价,bid2:商品价格,sale:销量,credit信用,加_前缀为从大到小排序)
page:

3.响应参数

名称 类型 必须 示例值 描述

title

String 0 中国工厂户外驾驶休闲鞋男,司机鞋男 商品标题

pic_url

String 0 //sc02.alicdn.com/kf/HTB1ta_basfrK1RjSszcq6xGGFXaA/China-Factory-Outdoor-Driving-Casual-Shoes-Men.jpg_220x220.jpg 商品图片

promotion_price

String 0 5.70 优惠价

price

String 0 5.70 价格

sales

Bigint 0 1 销量

num_iid

Bigint 0 60869458489 商品ID

sample_id

Bigint 0 风格ID

seller_nick

String 0 yiwujunbangshoe 卖家昵称

post_fee

Float 0 物流费用

area

String 0 店铺所在地

detail_url

String 0 //www.alibaba.com/product-detail/China-Factory-Outdoor-Driving-Casual-Shoes_60869458489.html?s=p 商品链接

 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/alibaba/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": "",
		"error": null,
		"real_total_results": 382309,
		"total_results": 382309,
		"item": [
			{
				"title": "Manufacturers customized round elastic laces for leisure shoes  leather shoes  sports shoes",
				"pic_url": "https://s.alicdn.com/@sc04/kf/H95725c2b308b4d30b6083bd936f2729fP.jpg",
				"promotion_price": "0.35",
				"price": "0.58",
				"sales": 500,
				"num_iid": 1600260956077,
				"sample_id": "",
				"seller_nick": "Shenzhen Guangliyuan Technology Co., Ltd.",
				"post_fee": "",
				"area": null,
				"detail_url": "https://www.alibaba.com/product-detail/Manufacturers-customized-round-elastic-laces-for_1600260956077.html"
			},
			{
				"title": "BC-326 Clean room shoes CPE plastic disposable shoes cover",
				"pic_url": "https://s.alicdn.com/@sc04/kf/HTB13iq3JVXXXXcIXVXXq6xXFXXXA.jpg",
				"promotion_price": "1.0",
				"price": "10.0",
				"sales": 5000,
				"num_iid": 60148071118,
				"sample_id": "",
				"seller_nick": "BHO TECH SUPPLY CO., LTD.",
				"post_fee": "",
				"area": null,
				"detail_url": "https://www.alibaba.com/product-detail/BC-326-Clean-room-shoes-CPE_60148071118.html?s=p"
			},
			{
				"title": "High Quality Roller Skate Shoes Toe Stop Girls Boys Double Row Rollerskate toe stops",
				"pic_url": "https://s.alicdn.com/@sc04/kf/H41dbc2ec6eae46808d7248fdc3b770daz.png_300x300.png",
				"promotion_price": "1.9",
				"price": "1.9",
				"sales": 100,
				"num_iid": 1600407598414,
				"sample_id": "",
				"seller_nick": "Dongguan Sporting Goods Co., Ltd.",
				"post_fee": "",
				"area": null,
				"detail_url": "https://www.alibaba.com/product-detail/High-Quality-Roller-Skate-Shoes-Toe_1600407598414.html?s=p"
			},
			{
				"title": "Sneakers Decrease For Force Trainer Anti Crease Sneaker Multiple Shield Utility Protector Against Shoe Creases Shoes Shield",
				"pic_url": "https://s.alicdn.com/@sc04/kf/Hc48da250d1a647869cb85b264b1b99abi.jpg",
				"promotion_price": "0.5",
				"price": "0.8",
				"sales": 1,
				"num_iid": 1600144073721,
				"sample_id": "",
				"seller_nick": "Dongguan Jiuhui Industrial Limited",
				"post_fee": "",
				"area": null,
				"detail_url": "https://www.alibaba.com/product-detail/Sneakers-Decrease-For-Force-Trainer-Anti_1600144073721.html?s=p"
			},
			{
				"title": "Shoe Shoe Insole Board 1mm Customs Shoe Paper Inside Insole Board Laminated Material Shank",
				"pic_url": "https://s.alicdn.com/@sc04/kf/Hc85db925e7ad4838ba9203a68a1cde4bK.jpg",
				"promotion_price": "1.0",
				"price": "1.0",
				"sales": 2000,
				"num_iid": 1600540437502,
				"sample_id": "",
				"seller_nick": "Jiangyin Besto Special Paper Board Co., Ltd.",
				"post_fee": "",
				"area": null,
				"detail_url": "https://www.alibaba.com/product-detail/Shoe-Shoe-Insole-Board-1mm-Customs_1600540437502.html?s=p"
			},
			{
				"title": "6oz Shoe repellent spray for suede leather nubuck and most materials",
				"pic_url": "https://s.alicdn.com/@sc04/kf/H8d5ef9b3a49d4cf7b88862aa49e43482p.jpg",
				"promotion_price": "0.95",
				"price": "1.0",
				"sales": 3000,
				"num_iid": 1600509423841,
				"sample_id": "",
				"seller_nick": "Jiangyin Yinghuameng Houseware Co., Ltd.",
				"post_fee": "",
				"area": null,
				"detail_url": "https://www.alibaba.com/product-detail/6oz-Shoe-repellent-spray-for-suede_1600509423841.html?s=p"
			},
			{
				"title": "Wholesale Cheap Price Men Work Safety Shoes Boots with Steel Toe and Steel Plate",
				"pic_url": "https://s.alicdn.com/@sc04/kf/H8972c88cf64044ce8e54ccb0c9b43daeO.jpg",
				"promotion_price": "4.3",
				"price": "6.5",
				"sales": 2,
				"num_iid": 62461121070,
				"sample_id": "",
				"seller_nick": "Beijing Diamond Sport International Trading Company Limited",
				"post_fee": "",
				"area": null,
				"detail_url": "https://www.alibaba.com/product-detail/Wholesale-Cheap-Price-Men-Work-Safety_62461121070.html"
			},
			{
				"title": "2022 New Arrival Women's Classic High Top Canvas Sneakers Trending White Casual Skateboarding Shoes for men Custom Sneakers OEM",
				"pic_url": "https://s.alicdn.com/@sc04/kf/Ha6840296bd9a47dea86c8bd8c89e7355r.jpg",
				"promotion_price": "4.74",
				"price": "6.56",
				"sales": 1,
				"num_iid": 1600184611602,
				"sample_id": "",
				"seller_nick": "XIAMEN XURUIHANG IMPORT AND EXPORT CO., LTD.",
				"post_fee": "",
				"area": null,
				"detail_url": "https://www.alibaba.com/product-detail/2022-New-Arrival-Women-s-Classic_1600184611602.html"
			},
			{
				"title": "Hot Style Fashion Breathable Sport Casual Canvas Shoes For Men",
				"pic_url": "https://s.alicdn.com/@sc04/kf/HTB1d471KzDpK1RjSZFrq6y78VXa4.jpg",
				"promotion_price": "2.99",
				"price": "4.35",
				"sales": 5,
				"num_iid": 62027834889,
				"sample_id": "",
				"seller_nick": "Yiwu Mingchang Fashion Co., Ltd.",
				"post_fee": "",
				"area": null,
				"detail_url": "https://www.alibaba.com/product-detail/Hot-Style-Fashion-Breathable-Sport-Casual_62027834889.html"
			},
			{
				"title": "Good quality luxury formal mens genuine leather dress loafers shoes for men",
				"pic_url": "https://s.alicdn.com/@sc04/kf/Hcdcefa59455d4cb7a5f61a798fc1d638L.jpg",
				"promotion_price": "23.0",
				"price": "30.6",
				"sales": 6,
				"num_iid": 1600202768045,
				"sample_id": "",
				"seller_nick": "Wenzhou Wuxing International Trade Co., Ltd.",
				"post_fee": "",
				"area": null,
				"detail_url": "https://www.alibaba.com/product-detail/Good-quality-luxury-formal-mens-genuine_1600202768045.html"
			},
			{
				"title": "Cheap Second Hand Shoes Branded Used Shoes In Bales For Sale In Kenya",
				"pic_url": "https://s.alicdn.com/@sc04/kf/H5785cec0083e449e9ceba7fa6c542c84g.jpg",
				"promotion_price": "1.0",
				"price": "1.5",
				"sales": 1000,
				"num_iid": 62253070151,
				"sample_id": "",
				"seller_nick": "Guangzhou Gracer Renewable Resources Co., Ltd.",
				"post_fee": "",
				"area": null,
				"detail_url": "https://www.alibaba.com/product-detail/Cheap-Second-Hand-Shoes-Branded-Used_62253070151.html"
			},
			{
				"title": "Labor insurance shoes lightweight breathable deodorant work shoes summer Men's casual sports safety shoes with rubber bottom",
				"pic_url": "https://s.alicdn.com/@sc04/kf/H3777d778b5d64d179dd36446d99a7b11b.jpg",
				"promotion_price": "8.7",
				"price": "9.52",
				"sales": 2,
				"num_iid": 62048892454,
				"sample_id": "",
				"seller_nick": "Gaomi Manwei Labor Product Co., Ltd.",
				"post_fee": "",
				"area": null,
				"detail_url": "https://www.alibaba.com/product-detail/Labor-insurance-shoes-lightweight-breathable-deodorant_62048892454.html"
			},
			{
				"title": "2019 new fashion mesh upper breathable casual running men sport shoes",
				"pic_url": "https://s.alicdn.com/@sc04/kf/H6396f3ae83544d03888d63dbf60afeb1l.jpg",
				"promotion_price": "2.5",
				"price": "2.8",
				"sales": 1,
				"num_iid": 62347145180,
				"sample_id": "",
				"seller_nick": "Wangdu Baoyuan Shoes Co., Ltd.",
				"post_fee": "",
				"area": null,
				"detail_url": "https://www.alibaba.com/product-detail/2019-new-fashion-mesh-upper-breathable_62347145180.html"
			},
			{
				"title": "OEM ODM Industrial Construction Work Genuine Leather Steel Toe Cap Boots zapatos de seguridad sepatu Safety Shoes With CE S3",
				"pic_url": "https://s.alicdn.com/@sc04/kf/H7417d9abc34d463182854179354f7d80m.jpg",
				"promotion_price": "6.45",
				"price": "6.99",
				"sales": 500,
				"num_iid": 62280389410,
				"sample_id": "",
				"seller_nick": "Guangzhou Aj Flying Import&export Co., Ltd.",
				"post_fee": "",
				"area": null,
				"detail_url": "https://www.alibaba.com/product-detail/OEM-ODM-Industrial-Construction-Work-Genuine_62280389410.html"
			},
			{
				"title": "Baby Walking Shoes Custom Logo Soft Soled Non Slip Socks Indoor Baby Breathable Shoes And Socks",
				"pic_url": "https://s.alicdn.com/@sc04/kf/Hef9f843cac3e48e2ab29bef5045d704am.jpg",
				"promotion_price": "1.89",
				"price": "2.29",
				"sales": 50,
				"num_iid": 1600290923877,
				"sample_id": "",
				"seller_nick": "Aoyatex Co., Ltd.",
				"post_fee": "",
				"area": null,
				"detail_url": "https://www.alibaba.com/product-detail/Baby-Walking-Shoes-Custom-Logo-Soft_1600290923877.html"
			},
			{
				"title": "2021 Factory Lace Up Army Desert Commando Men Safety Boots Army Boot Military Boot Shoes Camouflage Shoes Women",
				"pic_url": "https://s.alicdn.com/@sc04/kf/Hf976b6f3e4dc4a37a6e112a887002aa9g.jpg",
				"promotion_price": "9.9",
				"price": "11.9",
				"sales": 2,
				"num_iid": 1600368371763,
				"sample_id": "",
				"seller_nick": "Wuhan Jinteng Manufacturing & Trading Co., Ltd.",
				"post_fee": "",
				"area": null,
				"detail_url": "https://www.alibaba.com/product-detail/2021-Factory-Lace-Up-Army-Desert_1600368371763.html"
			},
			{
				"title": "Amazon Top Sell Best Quality Unisex Reusable Shoes Protectors Waterproof Anti Slip Water Resistant Rain Silicone Shoes Covers",
				"pic_url": "https://s.alicdn.com/@sc04/kf/Heb9608e129874dc689c94a52c7249c63b.jpg",
				"promotion_price": "0.3",
				"price": "1.83",
				"sales": 10,
				"num_iid": 1600054059930,
				"sample_id": "",
				"seller_nick": "Ningbo Pinbo Plastic Manufactory Co., Ltd.",
				"post_fee": "",
				"area": null,
				"detail_url": "https://www.alibaba.com/product-detail/Amazon-Top-Sell-Best-Quality-Unisex_1600054059930.html"
			},
			{
				"title": "sneaker manufacturer Latest Sport Breathable Leather Made White Flat Sneakers Black Casual Shoes Men and Women",
				"pic_url": "https://s.alicdn.com/@sc04/kf/Hb28f6f81708546a6b3600cdbf5b3e372a.jpg",
				"promotion_price": "7.53",
				"price": "8.61",
				"sales": 2,
				"num_iid": 1600084302276,
				"sample_id": "",
				"seller_nick": "Xiamen Kaisun Trading Co., Ltd.",
				"post_fee": "",
				"area": null,
				"detail_url": "https://www.alibaba.com/product-detail/sneaker-manufacturer-Latest-Sport-Breathable-Leather_1600084302276.html"
			},
			{
				"title": "New Arrival Running Shoes Footwear Hot Sale Casual Sport Other Trendy Shoes for Men",
				"pic_url": "https://s.alicdn.com/@sc04/kf/H140e9a8ed45247c293b4d0d7144c474dq.jpg",
				"promotion_price": "2.5",
				"price": "5.0",
				"sales": 50,
				"num_iid": 62140293620,
				"sample_id": "",
				"seller_nick": "Wangdu Yuxing Shoes Factory",
				"post_fee": "",
				"area": null,
				"detail_url": "https://www.alibaba.com/product-detail/New-Arrival-Running-Shoes-Footwear-Hot_62140293620.html"
			},
			{
				"title": "Oil water resistant anti slip work shoes steel toe puncture proof men industrial groundwork safety shoes boots S3",
				"pic_url": "https://s.alicdn.com/@sc04/kf/H0264650718f047d3968b142448800cd4M.jpg",
				"promotion_price": "7.8",
				"price": "12.8",
				"sales": 100,
				"num_iid": 60417544305,
				"sample_id": "",
				"seller_nick": "Heilongjiang Safer Co., Ltd.",
				"post_fee": "",
				"area": null,
				"detail_url": "https://www.alibaba.com/product-detail/Oil-water-resistant-anti-slip-work_60417544305.html"
			},
			{
				"title": "Custom Mens Sneakers OEM logo basketball style Casual sport man white black Footwear shoes customized",
				"pic_url": "https://s.alicdn.com/@sc04/kf/H0300f7d533954e8aa4157479983c0a8af.jpg",
				"promotion_price": "8.01",
				"price": "9.79",
				"sales": 15,
				"num_iid": 1600345155835,
				"sample_id": "",
				"seller_nick": "Fuzhou Harvest Land Industry Co., Ltd.",
				"post_fee": "",
				"area": null,
				"detail_url": "https://www.alibaba.com/product-detail/Custom-Mens-Sneakers-OEM-logo-basketball_1600345155835.html"
			},
			{
				"title": "Rain Serhoe Covers, Reusable Silicone Shoe Covs Waterproof Foldable Slip Cycling Outdoor Shoe Covers for Women,Men",
				"pic_url": "https://s.alicdn.com/@sc04/kf/H71fc7311714f4be182f8c557207cbbe6u.jpg",
				"promotion_price": "1.75",
				"price": "2.0",
				"sales": 100,
				"num_iid": 62556370358,
				"sample_id": "",
				"seller_nick": "Shenzhen Kean Silicone Baby Product Co., Ltd.",
				"post_fee": "",
				"area": null,
				"detail_url": "https://www.alibaba.com/product-detail/Rain-Serhoe-Covers-Reusable-Silicone-Shoe_62556370358.html"
			},
			{
				"title": "2020 New Fashion Custom Breathable Mesh Running Shoes Sports Shoes For Men",
				"pic_url": "https://s.alicdn.com/@sc04/kf/H824f883e266044f1b7cf498198bfeed60.png_300x300.png",
				"promotion_price": "2.9",
				"price": "3.8",
				"sales": 300,
				"num_iid": 62404329999,
				"sample_id": "",
				"seller_nick": "Adit Shoes Manufacture Co., Ltd.",
				"post_fee": "",
				"area": null,
				"detail_url": "https://www.alibaba.com/product-detail/2020-New-Fashion-Custom-Breathable-Mesh_62404329999.html"
			},
			{
				"title": "China Factory Fashion Low Price Durable Lace-up Non-slip Mens Sports Running Shoes And sneakers for men and women",
				"pic_url": "https://s.alicdn.com/@sc04/kf/Hdef3fef707074889a504db78bd01e089v.jpg",
				"promotion_price": "16.5",
				"price": "22.5",
				"sales": 1,
				"num_iid": 62418696379,
				"sample_id": "",
				"seller_nick": "Yangzhou Haixing Slipper Co.,ltd.",
				"post_fee": "",
				"area": null,
				"detail_url": "https://www.alibaba.com/product-detail/China-Factory-Fashion-Low-Price-Durable_62418696379.html"
			}
		]
	},
	"error_code": "0000",
	"reason": "ok",
	"secache": "a799cd7c0b5c3217932480868ddb51cc",
	"secache_time": 1656485047,
	"secache_date": "2022-06-29 14:44:07",
	"translate_status": "error",
	"translate_time": 0.044,
	"language": {
		"current_lang": "cn",
		"source_lang": "en"
	},
	"error": "",
	"cache": 0,
	"api_info": "today:166 max:10100 all[294=166+90+44];expires:2030-12-31",
	"execution_time": "1.529",
	"server_time": "Beijing/2022-06-29 14:44:07",
	"client_ip": "106.6.35.151",
	"call_args": {
		"q": "shoe"
	},
	"api_type": "alibaba",
	"translate_language": "zh-CN",
	"translate_engine": "baidu",
	"server_memory": "4.43MB",
	"request_id": "gw-1.62bbf4b5bdf9b",
	"last_id": "1047750564"
}

你可能感兴趣的:(阿里巴巴平台API接口开发系列,大数据,阿里巴巴关键词搜索API接口,数据分析,产品运营,数据挖掘)