通过亚马逊API高效获取全球商品详情的步骤如下:
名称 | 类型 | 必须 | 描述 |
---|---|---|---|
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版本 |
"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 al
通过遵循这些步骤,你可以高效地使用亚马逊API获取全球商品详情。但请记住,这只是一种可能的实现方式,具体的实现可能会根据你的需求和技术栈而有所不同。