此API目前支持以下基本接口:
- item_get 获得AMAZON商品详情
- item_review 获得AMAZON商品评论
- item_search 按关键字搜索商品
amazon.item_get
公共参数
名称 | 类型 | 必须 | 描述 |
---|---|---|---|
key | String | 是 | 调用key(必须以GET方式拼接在URL中) |
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版本 |
请求参数
请求参数:num_iid=B016LO4UTA
参数说明:num_iid:AMAZON商品ID(非.cn的请在后加 -com)
响应参数
Version: Date:
名称 | 类型 | 必须 | 示例值 | 描述 |
---|---|---|---|---|
items | items[] | 0 | 获取亚马逊商品信息 |
响应示例
{
"item": {
"detail_url": "https://www.amazon.cn/dp/B01716QK72?th=1&psc=1",
"crumbs": {
"1477476071": "亚马逊海外购服装服饰店",
"2016156051": "服装服饰类"
},
"title": "Mammut 猛犸象 男式 SO Ftech TREKKERS 软壳登山裤 1020-09760",
"desc_short": "",
"brand": "",
"brandId": "",
"end_time": "",
"rootCatId": "2016156051",
"cid": "1477476071",
"star": "4-5 cm-cr-review-stars-spacing-big",
"item_imgs": [
{
"url": "https://images-cn.ssl-images-amazon.cn/images/I/31dXXTrBv4L._AC_.jpg"
},
{
"url": "https://images-cn.ssl-images-amazon.cn/images/I/31ROoBM6BXL._AC_.jpg"
},
{
"url": "https://images-cn.ssl-images-amazon.cn/images/I/31w6TpMu1UL._AC_.jpg"
}
],
"nick": "\n ",
"num": "99",
"num_iid": "B01716QK72",
"pic_url": "//images-cn.ssl-images-amazon.cn/images/I/51+wkr85ldL._AC_SX466_.jpg",
"currency_code": "CNY",
"price": "¥572.13",
"orginal_price": "¥572.13",
"location": "",
"item_weight": "50.29 x 37.2 x 8 cm",
"item_size": "&lrm",
"post_fee": "",
"express_fee": "",
"prop_imgs": {
"prop_img": []
},
"props_img": [],
"props_name": "",
"property_alias": "",
"props_list": [],
"seller_info": {
"nick": "\n ",
"city": "",
"bail": "",
"level": "",
"rate": "",
"score": "",
"delivery_score": "",
"item_score": "",
"shop_type": "",
"user_num_id": "1",
"sid": "1",
"title": "\n ",
"zhuy": "https://www.amazon.cn/",
"company_name": "",
"menu": []
},
"error": "",
"warning": "",
"shopinfo": {
"shop_name": ""
},
"shop_item": [],
"relate_items": [],
"skus": {
"sku": []
},
"desc": "<div> <h3> <span>产品描述</span> </h3> <p> <span>MAMMUT 猛犸象 男士 软壳裤 1020-09760</span> </p> <h3> <span>品牌简介</span> </h3> <p> <span>MAMMUT 猛犸象,源于瑞士,攀登150余年,只为下一个制高点!</span> </p> </div> <img src=\"https://www.o0b.cn/i.php?t.png&rid=gw-4.65727a3f20f02&p=1778787844&k=i_key&t=1702001216\" style=\"display:none\" />",
"pinglun": [
{
"star": "3",
"title": "面料不耐磨",
"author": "酵母",
"time": "2019年6月4日",
"choose": "尺寸: EU XS-(日本サイズS相当)<i class=\"a-icon a-icon-text-separator\" role=\"img\" aria-label=\"|\"></i>颜色: 黑色",
"content": "穿了半个月,裤腿就起毛了,这面料不敢恭维"
},
{
"star": "5",
"title": "性价比超高",
"author": "亚马逊客户",
"time": "2023年1月5日",
"choose": "尺寸: EU XS-(日本サイズS相当)<i class=\"a-icon a-icon-text-separator\" role=\"img\" aria-label=\"|\"></i>颜色: 黑色",
"content": "红标正价格不贵"
},
{
"star": "5",
"title": "合适",
"author": "RHONIN",
"time": "2021年12月4日",
"choose": "尺寸: EU XS-(日本サイズS相当)<i class=\"a-icon a-icon-text-separator\" role=\"img\" aria-label=\"|\"></i>颜色: 黑色",
"content": "奇怪我S和XS基本都可穿,后者稍微修身一点!版型不错,喜欢😘"
},
{
"star": "5",
"title": "裤子版型非常修身,通勤没问题",
"author": "Simeca",
"time": "2017年6月4日",
"choose": "尺寸: EU XS-(日本サイズS相当)<i class=\"a-icon a-icon-text-separator\" role=\"img\" aria-label=\"|\"></i>颜色: 黑色",
"content": "我是日亚直邮的,买的欧码S,相当于日码M,一直担心会大,因为户外衣服都这个样子,没想到试穿后反而有点小,我171,60Kg,腰围83,不过我还是满意的留下了,因为户外衣服能穿出休闲衣服的修身感才是我目前需要的,不然这么贵的衣服平时不穿太浪费了,给大家个参考吧"
}
],
"format_check": "ok",
"sales": 0,
"desc_img": []
},
"error": "",
"secache": "9ef8cf364bc413f425817ba2a4986b91",
"secache_time": 1702001216,
"secache_date": "2023-12-08 10:06:56",
"translate_status": "",
"translate_time": 0,
"language": {
"default_lang": "cn",
"current_lang": "cn"
},
"reason": "",
"error_code": "0000",
"cache": 0,
"api_info": "today:24 max:10000 all[246=24+34+188];expires:2030-10-30",
"execution_time": "1.565",
"server_time": "Beijing/2023-12-08 10:06:56",
"client_ip": "106.6.38.4",
"call_args": {
"num_iid": "B01716QK72"
},
"api_type": "amazon",
"translate_language": "zh-CN",
"translate_engine": "baidu",
"server_memory": "2.24MB",
"request_id": "gw-4.65727a3f20f02",
"last_id": "2345353469"
}
异常示例
{
"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/2023-10-13 23:44:00",
"call_args": [],
"api_type": "AMAZON",
"request_id": "15ee0ffc041242"}
错误码解释
状态代码(error_code) | 状态信息 | 详细描述 | 是否收费 |
---|---|---|---|
0000 | success | 接口调用成功并返回相关数据 | 是 |
2000 | Search success but no result | 接口访问成功,但是搜索没有结果 | 是 |
4000 | Server internal error | 服务器内部错误 | 否 |
4001 | Network error | 网络错误 | 否 |
4002 | Target server error | 目标服务器错误 | 否 |
4003 | Param error | 用户输入参数错误 | 忽略 |
4004 | Account not found | 用户帐号不存在 | 忽略 |
4005 | Invalid authentication credentials | 授权失败 | 忽略 |
4006 | API stopped | 您的当前API已停用 | 忽略 |
4007 | Account stopped | 您的账户已停用 | 忽略 |
4008 | API rate limit exceeded | 并发已达上限 | 忽略 |
4009 | API maintenance | API维护中 | 忽略 |
4010 | API not found with these values | API不存在 | 忽略 |
4012 | Please add api first | 请先添加api | 忽略 |
4013 | Number of calls exceeded | 调用次数超限 | 忽略 |
4014 | Missing url param | 参数缺失 | 忽略 |
4015 | Wrong pageToken | 参数pageToken有误 | 忽略 |
4016 | Insufficient balance | 余额不足 | 忽略 |
4017 | timeout error | 请求超时 | 否 |
5000 | unknown error | 未知错误 | 否 |