Skip to content

亚马逊商品详情 API (V1) ​

GET
接口健康状态
健康 可用 少量可用 基本不可用 暂无数据
正在加载健康状态…

通过ASIN获取指定国家市场中亚马逊商品的详情。用于查找已知列表以进行目录审查、商品比较或下游商业分析。

请求参数 ​

参数名位置类型必填默认值说明
tokenquerystring是-此API服务的鉴权令牌。
asinquerystring是-10 位字母数字的亚马逊标准识别号 (ASIN)。
countryquerystring否US亚马逊产品的国家代码。


可用值:

- US: 美国

- AU: 澳大利亚

- BR: 巴西

- CA: 加拿大

- CN: 中国

- FR: 法国

- DE: 德国

- IN: 印度

- IT: 意大利

- MX: 墨西哥

- NL: 荷兰

- SG: 新加坡

- ES: 西班牙

- TR: 土耳其

- AE: 阿拉伯联合酋长国

- GB: 英国

- JP: 日本

- SA: 沙特阿拉伯

- PL: 波兰

- SE: 瑞典

- BE: 比利时

- EG: 埃及

- ZA: 南非

- IE: 爱尔兰

代码示例 ​

bash
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/amazon/get-product-detail/v1?token=YOUR_API_KEY&asin=VALUE'
text
我想使用 JustOneAPI 提供的“商品详情 (V1)”接口。
接入地址: https://api.justoneapi.com。
接口路径: /api/amazon/get-product-detail/v1?token=YOUR_API_KEY&asin=VALUE
接口地址: BASE_URL + /api/amazon/get-product-detail/v1?token=YOUR_API_KEY&asin=VALUE
HTTP 方法: GET
身份验证: 在 URL 中传入 token 查询参数。
OpenAPI 定义: https://docs.justoneapi.com/openapi/amazon/product-details-v1-zh.json

请求参数说明:
- token (query): 此API服务的鉴权令牌。 (必填)
- asin (query): 10 位字母数字的亚马逊标准识别号 (ASIN)。 (必填)
- country (query): 亚马逊产品的国家代码。

可用值:
- `US`: 美国
- `AU`: 澳大利亚
- `BR`: 巴西
- `CA`: 加拿大
- `CN`: 中国
- `FR`: 法国
- `DE`: 德国
- `IN`: 印度
- `IT`: 意大利
- `MX`: 墨西哥
- `NL`: 荷兰
- `SG`: 新加坡
- `ES`: 西班牙
- `TR`: 土耳其
- `AE`: 阿拉伯联合酋长国
- `GB`: 英国
- `JP`: 日本
- `SA`: 沙特阿拉伯
- `PL`: 波兰
- `SE`: 瑞典
- `BE`: 比利时
- `EG`: 埃及
- `ZA`: 南非
- `IE`: 爱尔兰

返回格式: 请根据实际 Content-Type 安全处理 JSON 或文本响应。

响应处理与错误码:
1. 需通过返回体中的 "code" 字段判断业务结果(code 为 0 表示成功)。
2. 超时建议:建议将请求超时时间设置为 120 秒;如果 120 秒偏长,请至少设置为 60 秒,但可能会有少量请求因超时而未接收到结果。
3. 业务码说明:
   - 0: 成功
   - 100: Token 无效或已失效
   - 301: 采集失败,请重试
   - 302: 超出速率限制
   - 303: 超出每日配额
   - 400: 参数错误
   - 500: 内部服务器错误
   - 600: 权限不足
   - 601: 账户余额不足
   - 602: TOKEN 限额超限
4. code 601 表示账户共享余额不足。code 602 表示当前 API TOKEN 自身的累计消费上限已达到。TOKEN 限额不是资金划拨,多个 TOKEN 仍共享同一个账户余额。

请帮我用我擅长的编程语言写一个脚本来调用这个接口,并处理返回结果。
python
import requests

BASE_URL = "https://api.justoneapi.com"  # 由 OpenAPI servers 提供

url = BASE_URL + "/api/amazon/get-product-detail/v1?token=YOUR_API_KEY&asin=VALUE"
response = requests.get(url, timeout=120)
print(response.status_code)
if response.content:
    content_type = response.headers.get("content-type", "").lower()
    if "json" in content_type:
        try:
            print(response.json())
        except ValueError:
            print(response.text)
    elif content_type.startswith("text/") or "xml" in content_type or content_type.split(";", 1)[0].strip() in {"application/javascript", "application/x-www-form-urlencoded", "application/graphql"}:
        print(response.text)
    else:
        with open("response.bin", "wb") as output:
            output.write(response.content)
        print(f"Saved {len(response.content)} bytes to response.bin")
js
const BASE_URL = "https://api.justoneapi.com"; // 由 OpenAPI servers 提供
const url = BASE_URL + "/api/amazon/get-product-detail/v1?token=YOUR_API_KEY&asin=VALUE";

const response = await fetch(url, {
  method: "GET",
  signal: AbortSignal.timeout(120000)
});
console.log(response.status);
const responseBytes = await response.arrayBuffer();
if (responseBytes.byteLength) {
  const contentType = (response.headers.get("content-type") || "").toLowerCase();
  const mediaType = contentType.split(";", 1)[0].trim();
  const textual = contentType.startsWith("text/") || contentType.includes("json") || contentType.includes("xml") || ["application/javascript", "application/x-www-form-urlencoded", "application/graphql"].includes(mediaType);
  if (textual) {
    const responseText = new TextDecoder().decode(responseBytes);
    let data = responseText;
    if (contentType.includes("json")) {
      try { data = JSON.parse(responseText); } catch { /* Keep the raw body. */ }
    }
    console.log(data);
  } else {
    console.log(`Received ${responseBytes.byteLength} binary bytes`);
  }
}
java
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.time.Duration;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;

public class Main {
    public static void main(String[] args) throws Exception {
        final String BASE_URL = "https://api.justoneapi.com"; // 由 OpenAPI servers 提供
        final String url = BASE_URL + "/api/amazon/get-product-detail/v1?token=YOUR_API_KEY&asin=VALUE";

        HttpClient client = HttpClient.newBuilder().connectTimeout(Duration.ofSeconds(120)).build();
        HttpRequest.Builder builder = HttpRequest.newBuilder()
            .uri(URI.create(url))
            .timeout(Duration.ofSeconds(120))
            .method("GET", HttpRequest.BodyPublishers.noBody());

        HttpRequest request = builder.build();

        HttpResponse<byte[]> response = client.send(request, HttpResponse.BodyHandlers.ofByteArray());
        System.out.println(response.statusCode());
        String contentType = response.headers().firstValue("content-type").orElse("").toLowerCase();
        String mediaType = contentType.split(";", 2)[0].trim();
        if (contentType.startsWith("text/") || contentType.contains("json") || contentType.contains("xml") || mediaType.equals("application/javascript") || mediaType.equals("application/x-www-form-urlencoded") || mediaType.equals("application/graphql")) {
            System.out.println(new String(response.body(), StandardCharsets.UTF_8));
        } else {
            Files.write(Path.of("response.bin"), response.body());
            System.out.println("Saved " + response.body().length + " bytes to response.bin");
        }
    }
}
go
package main

import (
	"fmt"
	"io"
	"os"
	"strings"
	"net/http"
	"time"
)

const BASE_URL = "https://api.justoneapi.com" // 由 OpenAPI servers 提供

func main() {
	client := &http.Client{Timeout: 120 * time.Second}
	url := BASE_URL + "/api/amazon/get-product-detail/v1?token=YOUR_API_KEY&asin=VALUE"
	req, _ := http.NewRequest("GET", url, nil)
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	fmt.Println(resp.StatusCode)
	bodyBytes, _ := io.ReadAll(resp.Body)
	contentType := strings.ToLower(resp.Header.Get("Content-Type"))
	mediaType := strings.TrimSpace(strings.SplitN(contentType, ";", 2)[0])
	if strings.HasPrefix(contentType, "text/") || strings.Contains(contentType, "json") || strings.Contains(contentType, "xml") || mediaType == "application/javascript" || mediaType == "application/x-www-form-urlencoded" || mediaType == "application/graphql" {
		fmt.Println(string(bodyBytes))
	} else {
		os.WriteFile("response.bin", bodyBytes, 0600)
		fmt.Printf("Saved %d bytes to response.bin\n", len(bodyBytes))
	}
}
php
<?php
$BASE_URL = 'https://api.justoneapi.com'; // 由 OpenAPI servers 提供
$url = $BASE_URL . '/api/amazon/get-product-detail/v1?token=YOUR_API_KEY&asin=VALUE';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 120);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
$contentType = strtolower((string) curl_getinfo($ch, CURLINFO_CONTENT_TYPE));
curl_close($ch);
echo $status . PHP_EOL;
$mediaType = trim(explode(';', $contentType, 2)[0]);
if (str_starts_with($contentType, 'text/') || str_contains($contentType, 'json') || str_contains($contentType, 'xml') || in_array($mediaType, ['application/javascript', 'application/x-www-form-urlencoded', 'application/graphql'], true)) {
    echo $response;
} else {
    file_put_contents('response.bin', $response);
    echo 'Saved ' . strlen($response) . ' bytes to response.bin' . PHP_EOL;
}

返回字段 ​

业务成功时(code = 0)的主要返回字段。

商品与站点15 个字段

data

字段类型说明
asinstring返回商品的 ASIN。
landing_asinstring商品落地页的 ASIN。
parent_asinstring接口返回的商品系列父级 ASIN。
countrystring此查询使用的亚马逊站点国家代码。
domainstring亚马逊站点域名。
marketplace_idstring接口返回的亚马逊站点标识。
product_titlestring商品页展示的标题。
product_urlstring商品页地址。
product_photostring商品主图地址。
product_bylinestring | null商品署名栏展示的文字,可显示品牌或创作者。
product_byline_linkstring | null商品署名栏关联的链接,存在时返回。
product_byline_linksarray | null商品署名栏关联的链接列表,存在时返回。
product_byline_links[]string商品署名栏中的一个链接。
product_slugstring | null商品页地址中的标题短名,存在时返回。
is_redirectedboolean此次查询是否发生商品页跳转。
价格与优惠16 个字段

data

字段类型说明
product_pricestring所选站点展示的当前价格文本,可能带货币符号。
product_price_valuenumber存在时返回的当前价格数值,币种见 currency。
product_original_pricestring | null商品页显示的原价或参考价文本。
product_original_price_valuenumber存在时返回的原价或参考价数值。
currencystring此次站点价格使用的币种代码。
product_minimum_offer_pricestring | null商品显示的最低报价文本。
product_minimum_offer_price_valuenumber | null接口返回的最低报价数值。
product_minimum_offer_conditionstring | null接口返回的最低报价所对应的商品成色标签。
product_num_offersinteger接口返回的商品报价数量。
product_offers_linkstring | null商品报价列表的链接。
deal_badgestring商品页展示的促销标记文本。
coupon_discount_percentageinteger商品页显示的优惠券折扣百分比。
unit_countinteger | null存在时返回的报价所含计价单位数量。
unit_pricestring | null存在时返回的单位价格文本。
unit_price_valuenumber | null存在时返回的单位价格数值。
unit_price_unitstring | null单位价格所对应的计价单位。
购买与配送24 个字段

data

字段类型说明
is_primeboolean商品页是否标明适用 Prime。
product_conditionstring商品或当前报价展示的成色文本。
product_availabilitystring所选站点商品页展示的供货状态文本。
maximum_order_quantityinteger | null存在时返回的商品页所示最大购买数量。
main_buy_boxobject商品页购买区展示的主要报价。
main_buy_box.titlestring购买区展示的报价标签。
main_buy_box.pricestring购买区报价的展示文本。
main_buy_box.unit_pricestring该报价展示的单位价格。
main_buy_box.sellerstring该报价展示的公开卖家名称。
main_buy_box.seller_idstring该报价公开卖家的标识。
main_buy_box.seller_linkstring该报价所列公开卖家页链接。
main_buy_box.ships_fromstring该报价展示的发货方。
main_buy_box.return_policystring该报价展示的退货政策文本。
main_buy_box.is_fbaboolean | null该报价是否标明由亚马逊配送。
buy_boxesarray随商品返回的其他购买区报价。
buy_boxes[]object-
buy_boxes[].titlestring购买区展示的报价标签。
buy_boxes[].pricestring购买区报价的展示文本。
buy_boxes[].unit_pricestring该报价展示的单位价格。
buy_boxes[].is_fbaboolean | null该报价是否标明由亚马逊配送。
deliverystring商品页展示的配送说明。
delivery_pricestring页面展示的配送费用文本。
delivery_timestring商品页展示的配送日期或时间文本。
primary_delivery_timestring商品页展示的主要预计送达时间。
规格与变体16 个字段

data

字段类型说明
product_informationobject商品规格名称与展示值,键名随商品和站点语言变化。
product_information.{key}string对应键名所指商品规格的展示值。
product_detailsobject商品页列出的详情名称与展示值,键名随商品和站点语言变化。
product_details.{key}string对应键名所指商品详情的展示值。
product_variationsobject | array按变体维度索引的选项。部分商品返回空数组。
product_variations.{key}array对应键名所指变体维度的选项。
product_variations.{key}[]object-
product_variations.{key}[].asinstring此选项关联的 ASIN。
product_variations.{key}[].valuestring此选项的展示值。
product_variations.{key}[].photostring此选项关联的图片地址,存在时返回。
product_variations.{key}[].is_availableboolean此选项的可用状态标记。
product_variations_dimensionsarray接口返回的商品变体维度名称。
product_variations_dimensions[]string一个返回的变体维度名称。
all_product_variationsobject按变体 ASIN 索引的各维度展示值。
all_product_variations.{key}object对应键名所指变体 ASIN 的维度值集合。
all_product_variations.{key}.{key}string内层键名所指维度的展示值。
描述、图片与视频27 个字段

data

字段类型说明
product_item_highlightstring | null商品页面展示的简短亮点。
product_descriptionstring | null商品页展示的描述。
about_productarray商品要点列表。
about_product[]string一条商品要点。
product_photosarray商品页列出的图片地址。
product_photos[]string一张商品图片的地址。
product_photos_labeledarray带图片分类标签的商品图片。
product_photos_labeled[]object-
product_photos_labeled[].urlstring图片链接。
product_photos_labeled[].variantstring接口返回的此图片分类标签。
has_videoboolean商品是否标明含视频。
product_videosarray商品页列出的视频。
product_videos[]object-
product_videos[].idstring商品视频标识。
product_videos[].titlestring商品视频标题。
product_videos[].video_urlstring商品视频地址。
product_videos[].thumbnail_urlstring商品视频封面地址。
product_videos[].video_widthstring文本形式的返回视频宽度。
product_videos[].video_heightstring文本形式的返回视频高度。
product_videos[].product_asinstring该视频关联的商品 ASIN。
product_videos[].parent_asinstring该视频关联的父级 ASIN。
video_thumbnailstring商品页视频封面地址。
has_aplusboolean商品页是否标明含 A+ 内容。
aplus_textstring | null商品页 A+ 内容的文本。
aplus_imagesarray商品 A+ 内容中的图片地址。
aplus_images[]string一张商品 A+ 内容图片的地址。
has_brandstoryboolean商品页是否标明含品牌故事。
分类与排名17 个字段

data

字段类型说明
categoryobject商品关联的主分类。
category.idstring主分类标识。
category.namestring主分类展示名称。
category_patharray商品页展示的分类面包屑。
category_path[]object-
category_path[].idstring面包屑中此分类的标识。
category_path[].namestring此分类的展示名称。
category_path[].linkstring此分类的链接。
is_best_sellerboolean商品页是否显示亚马逊畅销商品标记。
is_amazon_choiceboolean商品页是否显示 Amazon’s Choice 标记。
climate_pledge_friendlyboolean商品页是否显示 Climate Pledge Friendly 标记。
sales_volumestring | null商品页展示的销量文本,可能使用缩写。
best_sellers_rankarray接口返回的各分类畅销排名。
best_sellers_rank[]object-
best_sellers_rank[].rankinteger接口返回的此分类畅销名次。
best_sellers_rank[].categorystring此排名关联的分类名称。
best_sellers_rank[].linkstring此排名关联的分类链接。
图书版本与作者14 个字段

data

字段类型说明
book_author_namestring图书作者介绍区展示的作者姓名。
book_author_aboutstring图书作者介绍区展示的简介。
book_author_profile_urlstring图书作者介绍区的公开资料链接。
book_authorsarray图书展示的作者链接与标签。
book_authors[]object-
book_authors[].textstring此图书作者条目的展示文本。
book_authors[].hrefstring此图书作者条目的链接。
book_publication_datestring图书展示的出版日期文本。
book_formatsarray图书列出的版本形式。
book_formats[]object-
book_formats[].asinstring该版本形式关联的 ASIN。
book_formats[].formatstring该版本形式的展示名称。
book_formats[].pricestring该版本形式显示的价格文本。
book_formats[].currentboolean该版本形式是否标为当前选中的版本。
评分与评价摘要20 个字段

data

字段类型说明
product_star_ratingstring文本形式的商品总体星级。
product_num_ratingsinteger接口返回的商品评分数量。
rating_distributionobject按星级索引的评分占比,值为百分比。
rating_distribution.{key}integer对应键名所指星级的评分百分比。
customers_saystring商品页展示的顾客评价摘要。
review_aspectsobject按展示标签索引的评价主题文本。
review_aspects.{key}string对应键名所指评价主题的文本。
review_aspects_detailsarray带情感标签和提及数量的评价主题列表。
review_aspects_details[]object-
review_aspects_details[].aspectstring评价主题展示名称。
review_aspects_details[].sentimentstring接口返回的此主题情感标签。
review_aspects_details[].mentionsinteger接口返回的此主题提及数量。
review_aspects_details[].positive_mentionsinteger接口返回的此主题正向提及数量。
review_aspects_details[].negative_mentionsinteger接口返回的此主题负向提及数量。
customer_review_mediaarray | null存在时返回的顾客评价区媒体列表。
customer_review_media[]object-
customer_review_media[].media_typestring接口返回的此条目媒体类型。
customer_review_media[].review_idstring该媒体关联的评价标识。
customer_review_media[].thumbnail_urlstring媒体缩略图地址。
customer_review_media[].urlstring评价区展示的媒体地址。
精选评价44 个字段

data

字段类型说明
top_reviewsarray在所选站点返回的精选评价。
top_reviews[]object-
top_reviews[].review_idstring公开评价的标识。
top_reviews[].review_titlestring评价标题。
top_reviews[].review_commentstring评价正文。
top_reviews[].review_star_ratingstring文本形式的评价星级。
top_reviews[].review_linkstring公开评价链接。
top_reviews[].review_authorstring评价者的公开展示名称。
top_reviews[].review_imagesarray公开评价附图列表。
top_reviews[].review_images[]string一张评价附图的地址。
top_reviews[].review_datestring评价日期展示文本。
top_reviews[].review_date_isostring存在时返回的 ISO 形式评价日期。
top_reviews[].is_verified_purchaseboolean评价是否显示已验证购买标记。
top_reviews[].helpful_vote_statementstring存在时返回的「有帮助」投票展示文本。
top_reviews[].helpful_votesinteger | null接口返回的评价「有帮助」投票数量。
top_reviews[].countrystring评价关联的国家字段。
top_reviews[].review_languagestring评价关联的语言字段。
top_reviews[].reviewed_product_asinstring评价指向的商品 ASIN。
top_reviews[].reviewed_product_urlstring评价指向的商品链接。
top_reviews[].reviewed_product_variantobject评价所示的商品变体名称和取值。
top_reviews[].reviewed_product_variant.{key}string对应键名所指变体的展示值。
top_reviews[].is_different_asinboolean该评价对应的商品是否标为不同 ASIN。
top_reviews[].is_vineboolean该评价是否标为 Amazon Vine 评价。
top_reviews_globalarray随商品返回的全球精选评价。
top_reviews_global[]object-
top_reviews_global[].review_idstring公开评价的标识。
top_reviews_global[].review_titlestring评价标题。
top_reviews_global[].review_commentstring评价正文。
top_reviews_global[].review_star_ratingstring文本形式的评价星级。
top_reviews_global[].review_linkstring公开评价链接。
top_reviews_global[].review_authorstring评价者的公开展示名称。
top_reviews_global[].review_imagesarray公开评价附图列表。
top_reviews_global[].review_images[]string一张评价附图的地址。
top_reviews_global[].review_datestring评价日期展示文本。
top_reviews_global[].review_date_isostring存在时返回的 ISO 形式评价日期。
top_reviews_global[].is_verified_purchaseboolean评价是否显示已验证购买标记。
top_reviews_global[].countrystring评价关联的国家字段。
top_reviews_global[].review_languagestring评价关联的语言字段。
top_reviews_global[].reviewed_product_asinstring评价指向的商品 ASIN。
top_reviews_global[].reviewed_product_urlstring评价指向的商品链接。
top_reviews_global[].reviewed_product_variantobject评价所示的商品变体名称和取值。
top_reviews_global[].reviewed_product_variant.{key}string对应键名所指变体的展示值。
top_reviews_global[].is_different_asinboolean该评价对应的商品是否标为不同 ASIN。
top_reviews_global[].is_vineboolean该评价是否标为 Amazon Vine 评价。
关联与推广商品31 个字段

data

字段类型说明
frequently_bought_togetherarray「经常一起购买」区列出的商品。
frequently_bought_together[]object-
frequently_bought_together[].asinstring一起购买区商品的 ASIN。
frequently_bought_together[].product_titlestring一起购买区商品的展示标题。
frequently_bought_together[].product_pricestring一起购买区商品的价格文本。
frequently_bought_together[].product_urlstring一起购买区商品的链接。
frequently_bought_together[].product_photostring一起购买区商品的图片地址。
frequently_bought_together_total_pricestring | null一起购买区商品的合计展示价格。
carousel_productsarray | null商品页轮播区返回的商品。
carousel_products[]object-
carousel_products[].asinstring轮播商品的 ASIN。
carousel_products[].product_titlestring轮播商品的展示标题。
carousel_products[].product_urlstring轮播商品的链接。
carousel_products[].product_photostring轮播商品的图片地址。
carousel_products[].product_pricestring | null轮播商品的价格文本。
carousel_products[].product_original_pricestring | null轮播商品的原价或参考价文本。
carousel_products[].product_star_ratingstring | null轮播商品的星级文本。
carousel_products[].product_num_ratingsinteger | null接口返回的轮播商品评分数量。
carousel_products[].carousel_titlestring该商品所在轮播的展示标题。
carousel_products[].positioninteger接口返回的商品轮播位置。
carousel_products[].badgesarray | null轮播商品展示的标记标签。
carousel_products[].badges[]string轮播商品的一个标记标签。
sponsored_productsarray | null随商品页返回的推广商品。
sponsored_products[]object-
sponsored_products[].asinstring推广商品的 ASIN。
sponsored_products[].product_titlestring推广商品的展示标题。
sponsored_products[].product_urlstring推广商品的链接。
sponsored_products[].product_photostring推广商品的图片地址。
sponsored_products[].product_pricestring | null推广商品的价格文本。
sponsored_products[].product_star_ratingstring | null推广商品的星级文本。
sponsored_products[].product_num_ratingsinteger | null接口返回的推广商品评分数量。

响应示例 ​

正在加载响应示例…