当前位置: 首页 > 工具软件 > automatic-api > 使用案例 >

阿里巴巴店铺的所有商品API接口(item_search_shop-获得店铺的所有商品接口),阿里巴巴API接口

公孙胡媚
2023-12-01

阿里巴巴店铺的所有商品API接口(item_search_shop-获得店铺的所有商品接口),阿里巴巴API接口对接可获取到店铺所有商品标题,价格,商品图片,商品链接,最小起批量等页面上有的数据均可以获取到,接口代码对接可适用于选品上架,数据分析,代购商城建站,erp系统商品数据选品,价格监控,品牌维权,商家搬货,店铺铺货,商家工具等业务,希望能够帮助到有需要的朋友,接口代码对接如下:

1.公共参数

名称类型必须描述
keyString调用key(必须以GET方式拼接在URL中,点击获取测试key和secret
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版本

2.请求参数

请求参数:seller_nick=sheenstar.en.alibaba.com&start_price=0&end_price=0&q=&page=1&cid=&sort=

参数说明:seller_nick:店铺域名
start_price:开始价格
end_price:结束价格
q:搜索关键字
page:页数
cid:分类ID
sort:排序[bid,_bid,bid2,_bid2,_sale,_credit]
  (bid:总价,sale:销量,new:新品,like:收藏,加_前缀为从大到小排序)

3.请求示例(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_shop/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&seller_nick=sheenstar.en.alibaba.com&start_price=0&end_price=0&q=&page=1&cid=&sort="
headers = {
    "Accept-Encoding": "gzip",
    "Connection": "close"
}
if __name__ == "__main__":
    r = requests.get(url, headers=headers)
    json_obj = r.json()
    print(json_obj)

 4.响应示例

{
	"user": {
		"zhuy": "https://sheenstar.en.alibaba.com/productlist.html",
		"menu": []
	},
	"items": {
		"item": [
			{
				"title": "",
				"num_iid": 1600550316116,
				"pic_url": "//sc04.alicdn.com/kf/Hb6f161c2a11d4496b1b93e85b7a150daO/Automatic-pineapple-making-juice-making-machine.jpg",
				"price": "$10,000.00 / set",
				"min_order": "1 set",
				"detail_url": "https://sheenstar.en.alibaba.com//www.alibaba.com/product-detail/Automatic-pineapple-making-juice-making-machine_1600550316116.html"
			},
			{
				"title": "",
				"num_iid": 1600550088893,
				"pic_url": "//sc04.alicdn.com/kf/H944ba8527d64488689d294b72bef0edaM/Automatic-glass-bottle-lemon-orange-juice-packing.jpg",
				"price": "$10,000.00 / set",
				"min_order": "1 set",
				"detail_url": "https://sheenstar.en.alibaba.com//www.alibaba.com/product-detail/Automatic-glass-bottle-lemon-orange-juice_1600550088893.html"
			},
			{
				"title": "",
				"num_iid": 1600543442846,
				"pic_url": "//sc04.alicdn.com/kf/H5dc35eeffabb455a9d9ea588796ee626Q/Hot-sale-drinking-water-mineral-water-filling.jpg",
				"price": "$10,000.00 - $13,500.00 / set",
				"min_order": "1 set",
				"detail_url": "https://sheenstar.en.alibaba.com//www.alibaba.com/product-detail/Hot-sale-drinking-water-mineral-water_1600543442846.html"
			},
			{
				"title": "",
				"num_iid": 1600543420982,
				"pic_url": "//sc04.alicdn.com/kf/H9cd0d7442e774f06b00d353dfe5452b8u/Hot-sale-full-automatic-500-ml-pet.jpg",
				"price": "$7,500.00 - $8,000.00 / set",
				"min_order": "1 set",
				"detail_url": "https://sheenstar.en.alibaba.com//www.alibaba.com/product-detail/Hot-sale-full-automatic-500-ml_1600543420982.html"
			},
			{
				"title": "",
				"num_iid": 1600536339790,
				"pic_url": "//sc04.alicdn.com/kf/H1e5788b1e9eb43d8aca5f3c1d474f70dY/Hot-sale-20000-bph-full-automatic-mineral.jpg",
				"price": "$70,000.00 / set",
				"min_order": "1 set",
				"detail_url": "https://sheenstar.en.alibaba.com//www.alibaba.com/product-detail/Hot-sale-20000-bph-full-automatic_1600536339790.html"
			},
			{
				"title": "Hot Sale 20000 bph mineral water filling and packaging machine plant factory",
				"num_iid": 1600536229973,
				"pic_url": "//sc04.alicdn.com/kf/Hf58b48101fb14ce9a6625a2e69a61363q/Hot-Sale-20000-bph-mineral-water-filling.jpg",
				"price": "$70,000.00 / set",
				"min_order": "1 set",
				"detail_url": "https://sheenstar.en.alibaba.com//www.alibaba.com/product-detail/Hot-Sale-20000-bph-mineral-water_1600536229973.html"
			},
			{
				"title": "",
				"num_iid": 1600529416522,
				"pic_url": "//sc04.alicdn.com/kf/H20361382302d4f2aa210c9600fcd9becQ/13-liter-big-bottle-non-touch-automatic.jpg",
				"price": "$22,000.00 - $23,500.00 / set",
				"min_order": "1 set",
				"detail_url": "https://sheenstar.en.alibaba.com//www.alibaba.com/product-detail/13-liter-big-bottle-non-touch_1600529416522.html"
			},
			{
				"title": "",
				"num_iid": 1600529366814,
				"pic_url": "//sc04.alicdn.com/kf/H09cbc68ca90f43f38d4d2510560049ffu/New-technology-non-touch-automatic-bottled-water.jpg",
				"price": "$22,000.00 - $23,500.00 / set",
				"min_order": "1 set",
				"detail_url": "https://sheenstar.en.alibaba.com//www.alibaba.com/product-detail/New-technology-non-touch-automatic-bottled_1600529366814.html"
			},
			{
				"title": "Hot sale 13 liter big bottle 3 in 1 drinking water filling machine automatic",
				"num_iid": 1600529422249,
				"pic_url": "//sc04.alicdn.com/kf/H2a01319f4f9143ceb97894ed036163das/Hot-sale-13-liter-big-bottle-3.jpg",
				"price": "$22,000.00 - $23,500.00 / set",
				"min_order": "1 set",
				"detail_url": "https://sheenstar.en.alibaba.com//www.alibaba.com/product-detail/Hot-sale-13-liter-big-bottle_1600529422249.html"
			},
			{
				"title": "13 liter big bottle drinking water filling machine production line",
				"num_iid": 1600529457029,
				"pic_url": "//sc04.alicdn.com/kf/H8349ab9b215141ae9e2a4b7d05d21095w/13-liter-big-bottle-drinking-water-filling.jpg",
				"price": "$22,000.00 - $23,500.00 / set",
				"min_order": "1 set",
				"detail_url": "https://sheenstar.en.alibaba.com//www.alibaba.com/product-detail/13-liter-big-bottle-drinking-water_1600529457029.html"
			},
			{
				"title": "Hot sale mineral water pure water filling machine plant",
				"num_iid": 1600529209871,
				"pic_url": "//sc04.alicdn.com/kf/H143ba0ccc27d442a9584d7cd68bc4928h/Hot-sale-mineral-water-pure-water-filling.jpg",
				"price": "$22,000.00 - $23,500.00 / set",
				"min_order": "1 set",
				"detail_url": "https://sheenstar.en.alibaba.com//www.alibaba.com/product-detail/Hot-sale-mineral-water-pure-water_1600529209871.html"
			},
			{
				"title": "Hot sale 13 liter big bottle water filling line 1200bph",
				"num_iid": 1600529314095,
				"pic_url": "//sc04.alicdn.com/kf/Hbbe86b6d800446ddabeb7138b3143d2cA/Hot-sale-13-liter-big-bottle-water.jpg",
				"price": "$22,000.00 - $23,500.00 / set",
				"min_order": "1 set",
				"detail_url": "https://sheenstar.en.alibaba.com//www.alibaba.com/product-detail/Hot-sale-13-liter-big-bottle_1600529314095.html"
			},
			{
				"title": "Hot sale automatic watermelon juice bottle filling processing capping machine line",
				"num_iid": 1600523728620,
				"pic_url": "//sc04.alicdn.com/kf/H0f78e92f3068439ca849dc5ad14c2f07p/Hot-sale-automatic-watermelon-juice-bottle-filling.jpg",
				"price": "$30,000.00 - $32,000.00 / set",
				"min_order": "1 set",
				"detail_url": "https://sheenstar.en.alibaba.com//www.alibaba.com/product-detail/Hot-sale-automatic-watermelon-juice-bottle_1600523728620.html"
			},
			{
				"title": "Hot sale fruit juice filling processing machine line in turkey",
				"num_iid": 1600523621831,
				"pic_url": "//sc04.alicdn.com/kf/H35507ffa7f7d465a93b73d2712fcf1f68/Hot-sale-fruit-juice-filling-processing-machine.jpg",
				"price": "$30,000.00 - $32,000.00 / set",
				"min_order": "1 set",
				"detail_url": "https://sheenstar.en.alibaba.com//www.alibaba.com/product-detail/Hot-sale-fruit-juice-filling-processing_1600523621831.html"
			},
			{
				"title": "Hot sale complete plastic juice liquid filling production machine line",
				"num_iid": 1600523674570,
				"pic_url": "//sc04.alicdn.com/kf/Hc7ffee032c8b4036a3e7f74bd500d0816/Hot-sale-complete-plastic-juice-liquid-filling.jpg",
				"price": "$30,000.00 - $32,000.00 / set",
				"min_order": "1 set",
				"detail_url": "https://sheenstar.en.alibaba.com//www.alibaba.com/product-detail/Hot-sale-complete-plastic-juice-liquid_1600523674570.html"
			},
			{
				"title": "Hot sale automatic plastic bottle juice filling and capping machine",
				"num_iid": 1600523406918,
				"pic_url": "//sc04.alicdn.com/kf/H28e82ad617ed4acd9011fe7facc7b29cJ/Hot-sale-automatic-plastic-bottle-juice-filling.jpg",
				"price": "$30,000.00 - $32,000.00 / set",
				"min_order": "1 set",
				"detail_url": "https://sheenstar.en.alibaba.com//www.alibaba.com/product-detail/Hot-sale-automatic-plastic-bottle-juice_1600523406918.html"
			}
		],
		"total_results": 32,
		"page_size": "",
		"pagecount": "",
		"page": 1,
		"url": null
	},
	"error": "",
	"secache": "1beea913e1dc8e0e07c8327858ef87b9",
	"secache_time": 1656485734,
	"secache_date": "2022-06-29 14:55:34",
	"translate_status": "error",
	"translate_time": 3.969,
	"language": {
		"current_lang": "cn",
		"source_lang": "en"
	},
	"reason": "",
	"error_code": "0000",
	"cache": 0,
	"api_info": "today:167 max:10100 all[296=167+91+44];expires:2030-12-31",
	"execution_time": "5.38",
	"server_time": "Beijing/2022-06-29 14:55:38",
	"client_ip": "106.6.35.151",
	"call_args": {
		"seller_nick": "sheenstar.en.alibaba.com",
		"start_price": "0",
		"end_price": "0",
		"page": "1"
	},
	"api_type": "alibaba",
	"translate_language": "zh-CN",
	"translate_engine": "baidu",
	"server_memory": "4.47MB",
	"request_id": "gw-1.62bbf7651629e",
	"last_id": "1047769118"
}

 类似资料: