一、亚马逊商品详情API接口(item_get-获得AMAZON商品详情接口),亚马逊API接口可获取到商品链接,商品ID,商品标题,商品价格,品牌名称,店铺昵称,sku规格,sku属性,发货地,详情属性,店铺信息等参数,接口对接可适用于选品上架,数据分析,代购商城建站,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.请求参数
请求参数:num_iid=B016LO4UTA
参数说明:num_iid:AMAZON商品ID(非.cn的请在后加 -com)
3.响应参数
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/amazon/item_get/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=B016LO4UTA"
headers = {
"Accept-Encoding": "gzip",
"Connection": "close"
}
if __name__ == "__main__":
r = requests.get(url, headers=headers)
json_obj = r.json()
print(json_obj)
5.响应示例
{
"item": {
"detail_url": "https://www.amazon.cn/dp/B00TTJHAQK?th=1&psc=1",
"crumbs": {
"2029189051": "鞋靴",
"2112046051": "男鞋",
"2112047051": "正装鞋"
},
"title": "Clarks 男士 Tilden 平纹牛津鞋",
"desc_short": "",
"brand": "",
"brandId": "",
"end_time": "",
"rootCatId": "2029189051",
"cid": "2112047051",
"star": "4",
"item_imgs": [
{
"url": "https://images-cn.ssl-images-amazon.cn/images/I/31ypiyTVgRL._AC_.jpg"
},
{
"url": "https://images-cn.ssl-images-amazon.cn/images/I/51heR2vgI7L._AC_.jpg"
},
{
"url": "https://images-cn.ssl-images-amazon.cn/images/I/41F-bWcWeRL._AC_.jpg"
},
{
"url": "https://images-cn.ssl-images-amazon.cn/images/I/3191dURocAL._AC_.jpg"
},
{
"url": "https://images-cn.ssl-images-amazon.cn/images/I/319gZF7igmL._AC_.jpg"
},
{
"url": "https://images-cn.ssl-images-amazon.cn/images/I/51sxKhxL9cL._AC_.jpg"
},
{
"url": "https://images-cn.ssl-images-amazon.cn/images/I/41TbsufkCbL._AC_.jpg"
},
{
"url": "https://images-cn.ssl-images-amazon.cn/images/I/313jQJSwabL._AC_.jpg"
}
],
"nick": "Clarks",
"num": "99",
"num_iid": "B00TTJHAQK",
"pic_url": "//images-cn.ssl-images-amazon.cn/images/I/61+ilt1JVfL._AC_UX695_.jpg",
"currency_code": "CNY",
"price": "¥403.01",
"orginal_price": "¥403.01",
"location": "",
"item_weight": "\n \n &lrm",
"item_size": "&rlm",
"post_fee": "",
"express_fee": "",
"prop_imgs": {
"prop_img": [
{
"properties": "1:0",
"url": "https://images-cn.ssl-images-amazon.cn/images/I/31-5ru7SZBL._SS47_.jpg"
},
{
"properties": "1:1",
"url": "https://images-cn.ssl-images-amazon.cn/images/I/31l+PoAZa6L._SS47_.jpg"
}
]
},
"props_img": {
"1:0": "https://images-cn.ssl-images-amazon.cn/images/I/31-5ru7SZBL._SS47_.jpg",
"1:1": "https://images-cn.ssl-images-amazon.cn/images/I/31l+PoAZa6L._SS47_.jpg"
},
"props_name": "0:0:尺寸:6 UK;0:1:尺寸:6 UK (39.5 EU);1:0:颜色:Black (Black Leather);1:1:颜色:棕色",
"property_alias": "0:0:6 UK;0:1:6 UK (39.5 EU);1:0:Black (Black Leather);1:1:棕色",
"props_list": {
"0:0": "尺寸:6 UK",
"0:1": "尺寸:6 UK (39.5 EU)",
"1:0": "颜色:Black (Black Leather)",
"1:1": "颜色:棕色"
},
"seller_info": {
"nick": "Clarks",
"city": "",
"bail": "",
"level": "",
"rate": "",
"score": "",
"delivery_score": "",
"item_score": "",
"shop_type": "",
"user_num_id": "1",
"sid": "1",
"title": "Clarks",
"zhuy": "https://www.amazon.cn/",
"company_name": "",
"menu": []
},
"error": "",
"warning": "",
"shopinfo": {
"shop_name": ""
},
"shop_item": [],
"relate_items": [],
"skus": {
"sku": [
{
"price": "¥403.01",
"orginal_price": "¥403.01",
"properties": "0:0;1:0",
"properties_name": "0:0:尺寸:6 UK;1:0:颜色:Black (Black Leather)",
"quantity": 99,
"sku_id": "B00TTJH9T8",
"sku_url": "https://www.amazon.cn/dp/B00TTJH9T8?th=1&psc=1"
},
{
"price": "¥403.01",
"orginal_price": "¥403.01",
"properties": "0:1;1:1",
"properties_name": "0:1:尺寸:6 UK (39.5 EU);1:1:颜色:棕色",
"quantity": 99,
"sku_id": "B07NS27TKG",
"sku_url": "https://www.amazon.cn/dp/B07NS27TKG?th=1&psc=1"
}
]
},
"desc": " \n 流畅的线条和经典的设计为这款男士系带鞋带来永恒而现代的外观。 Tilden plain是Clarks的系列之一,由丰富的皮革和Ortholite®鞋垫制成,带来舒适感。 耐穿的橡胶外底具有减震性能,并提供牵引力以增强稳定性。 从西服,正装裤,到牛仔面料和灯芯绒衣,都可以搭配。
",
"pinglun": [],
"format_check": "ok",
"sales": 0,
"desc_img": []
},
"error": "",
"secache": "63d1035d76ee2a5d1c51fae136978f43",
"secache_time": 1656472228,
"secache_date": "2022-06-29 11:10:28",
"translate_status": "",
"translate_time": 0,
"language": {
"default_lang": "cn",
"current_lang": "cn"
},
"reason": "",
"error_code": "0000",
"cache": 0,
"api_info": "today:52 max:10100 all[138=52+53+33];expires:2030-12-31",
"execution_time": "3.079",
"server_time": "Beijing/2022-06-29 11:10:28",
"client_ip": "106.6.35.151",
"call_args": {
"num_iid": "B00TTJHAQK"
},
"api_type": "amazon",
"translate_language": "zh-CN",
"translate_engine": "google_cn",
"server_memory": "1.86MB",
"request_id": "gw-4.62bbc2a1cfce1",
"last_id": "1047373767"
}