---
title: "JD.com Product Details API (V4)"
description: "Retrieve JD.com product details by item ID. Use it to review product information and images for catalog research or ecommerce analysis."
aiUsagePrompt: true
---

# JD\.com Product Details API \(V4\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/jd/get-item-detail/v4\"")'
  :summary='JSON.parse("\"Product Details (V4)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/jdcom/product-details-v4-en.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"Access token for this API service.\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"itemId\",\"in\":\"query\",\"description\":\"A unique product identifier on JD.com (item ID).\",\"required\":true,\"schema\":{\"type\":\"string\"}}]")'
  :requestBody='JSON.parse("null")'
  :responses='JSON.parse("{\"200\":{\"description\":\"OK\",\"content\":{\"application/json\":{\"schema\":{\"if\":{\"properties\":{\"code\":{\"const\":0}},\"required\":[\"code\"]},\"then\":{\"properties\":{\"data\":{\"type\":[\"object\",\"null\"],\"description\":\"JD product details for the requested SKU, including available pricing, images and specifications.\",\"properties\":{\"itemOnly\":{\"type\":\"object\",\"description\":\"Item summary with brand, category and selectable SKUs.\",\"properties\":{\"skuId\":{\"type\":\"string\",\"description\":\"Requested JD SKU identifier returned as text.\"},\"skuName\":{\"type\":\"string\",\"description\":\"SKU title as returned in the item summary.\"},\"brandId\":{\"type\":\"string\",\"description\":\"JD brand identifier returned as text.\"},\"brandName\":{\"type\":\"string\",\"description\":\"Brand name in the JD catalog.\"},\"category\":{\"type\":\"array\",\"description\":\"JD category IDs along the SKU category path.\",\"items\":{\"type\":\"string\",\"description\":\"One JD category ID.\"}},\"venderID\":{\"type\":\"string\",\"description\":\"JD seller identifier returned as text.\"},\"isPop\":{\"type\":\"boolean\",\"description\":\"JD marketplace selling flag for the SKU.\"},\"image\":{\"type\":\"array\",\"description\":\"Image references attached to the item summary.\",\"items\":{\"type\":\"string\",\"description\":\"One summary image reference.\"}},\"newColorSize\":{\"type\":\"array\",\"description\":\"Selectable SKUs listed for the product, including the requested SKU when listed.\",\"items\":{\"type\":\"object\",\"description\":\"One listed SKU and its specification values.\",\"properties\":{\"skuId\":{\"type\":\"string\",\"description\":\"JD SKU identifier for this variant.\"},\"color\":{\"type\":\"string\",\"description\":\"Color or first specification label shown for this variant.\"},\"size\":{\"type\":\"string\",\"description\":\"Size, capacity or second specification label when available.\"},\"spec\":{\"type\":\"string\",\"description\":\"Additional specification value when available.\"},\"specName\":{\"type\":\"string\",\"description\":\"Name of the additional specification when available.\"},\"imagePath\":{\"type\":\"string\",\"description\":\"Image reference for this variant.\"}}}},\"saleProp\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"Display name of the sale property.\"},\"description\":\"Map from sale-property IDs to their display names.\"},\"salePropSeq\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"array\",\"description\":\"Ordered specification values for this sale property.\",\"items\":{\"type\":\"string\",\"description\":\"One specification value as text.\"}},\"description\":\"Map from sale-property IDs to ordered lists of specification values.\"},\"spAttr\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"Display value for this specification.\"},\"description\":\"Map from specification names to values displayed for the SKU.\"}}},\"itemInfo\":{\"type\":\"object\",\"description\":\"Detailed product information and price display fields.\",\"properties\":{\"product\":{\"type\":\"object\",\"description\":\"Detailed product and selected-SKU information.\",\"properties\":{\"skuId\":{\"type\":\"string\",\"description\":\"JD SKU identifier in the detailed product section.\"},\"skuName\":{\"type\":\"string\",\"description\":\"Product title in the detailed product section. This title may differ from the item summary title.\"},\"realSpuId\":{\"type\":\"string\",\"description\":\"SPU identifier reported by JD, returned as text.\"},\"brandId\":{\"type\":\"string\",\"description\":\"JD brand ID in the detailed product section.\"},\"brandName\":{\"type\":\"string\",\"description\":\"Brand name in the detailed product section.\"},\"cat1\":{\"type\":\"string\",\"description\":\"First-level JD category ID.\"},\"cat2\":{\"type\":\"string\",\"description\":\"Second-level JD category ID.\"},\"cat3\":{\"type\":\"string\",\"description\":\"Third-level JD category ID.\"},\"color\":{\"type\":\"string\",\"description\":\"Color or first specification label of the selected SKU.\"},\"size\":{\"type\":\"string\",\"description\":\"Size, capacity or second specification label of the selected SKU when available.\"},\"spec\":{\"type\":\"string\",\"description\":\"Additional specification value of the selected SKU when available.\"},\"specName\":{\"type\":\"string\",\"description\":\"Name of the selected SKU additional specification when available.\"},\"imageurl\":{\"type\":\"string\",\"description\":\"Image reference of the selected SKU in the detailed product section.\"},\"venderId\":{\"type\":\"string\",\"description\":\"Seller ID in the detailed product section, returned as text.\"},\"shopId\":{\"type\":\"string\",\"description\":\"Shop ID in the detailed product section, returned as text.\"},\"model\":{\"type\":\"string\",\"description\":\"Product model label when available.\"},\"length\":{\"type\":\"string\",\"description\":\"Length reported for the product, returned as text.\"},\"width\":{\"type\":\"string\",\"description\":\"Width reported for the product, returned as text.\"},\"height\":{\"type\":\"string\",\"description\":\"Height reported for the product, returned as text.\"},\"weight\":{\"type\":\"string\",\"description\":\"Weight reported for the product, returned as text.\"}}},\"priceFloor\":{\"type\":\"object\",\"description\":\"Display-price information from the detailed product section.\",\"properties\":{\"price\":{\"type\":\"string\",\"description\":\"JD price display text. This field can contain a non-decimal value.\"},\"ext\":{\"type\":\"object\",\"description\":\"Additional price display information.\",\"properties\":{\"jdPrice\":{\"type\":\"string\",\"description\":\"JD price text from the extended display information.\"}}}}}}},\"priceInfo\":{\"type\":\"object\",\"description\":\"Price data returned for this SKU.\",\"properties\":{\"skuId\":{\"type\":\"integer\",\"description\":\"JD SKU identifier used by this price record, returned as an integer.\"},\"jdPrice\":{\"type\":\"number\",\"description\":\"Numeric JD price reported by this price section.\"},\"productPrice\":{\"type\":\"object\",\"description\":\"Additional numeric product prices.\",\"properties\":{\"jdPrice\":{\"type\":\"number\",\"description\":\"Numeric JD price in the product-price details.\"},\"marketPrice\":{\"type\":\"number\",\"description\":\"Market reference price reported by JD when available.\"}}}}},\"img_list\":{\"type\":\"array\",\"description\":\"Product image gallery returned separately from the item summary.\",\"items\":{\"type\":\"string\",\"description\":\"One product gallery image reference.\"}},\"description\":{\"type\":\"string\",\"description\":\"JD product description as an HTML string.\"},\"products_introduction\":{\"type\":\"array\",\"description\":\"Structured product attribute groups.\",\"items\":{\"type\":\"object\",\"description\":\"One product attribute group.\",\"properties\":{\"groupName\":{\"type\":\"string\",\"description\":\"Display name of the product attribute group when available.\"},\"atts\":{\"type\":\"array\",\"description\":\"Attributes in this group.\",\"items\":{\"type\":\"object\",\"description\":\"One named product attribute.\",\"properties\":{\"attName\":{\"type\":\"string\",\"description\":\"Attribute display name.\"},\"categoryGroupAttId\":{\"type\":\"string\",\"description\":\"Category-group attribute ID returned as text.\"},\"attRemark\":{\"type\":\"string\",\"description\":\"Remark supplied for the attribute when available.\"},\"vals\":{\"type\":\"array\",\"description\":\"Display values listed for the attribute.\",\"items\":{\"type\":\"string\",\"description\":\"One display value as text.\"}},\"attVals\":{\"type\":\"array\",\"description\":\"Structured values of the attribute.\",\"items\":{\"type\":\"object\",\"description\":\"One structured attribute value.\",\"properties\":{\"attValId\":{\"type\":\"integer\",\"description\":\"Attribute-value ID when available.\"},\"attValName\":{\"type\":\"string\",\"description\":\"Display name of the attribute value.\"},\"attValueDefinition\":{\"type\":\"string\",\"description\":\"Definition text supplied for the attribute value when available.\"},\"orderSort\":{\"type\":\"integer\",\"description\":\"Ordering position reported for the attribute value.\"}}}}}}}}}},\"shop_infos\":{\"type\":\"object\",\"description\":\"JD shop and seller information returned with the SKU.\",\"properties\":{\"shopId\":{\"type\":\"integer\",\"description\":\"JD shop identifier returned as an integer.\"},\"shopName\":{\"type\":\"string\",\"description\":\"Shop display name.\"},\"venderId\":{\"type\":\"integer\",\"description\":\"JD seller identifier returned as an integer.\"},\"vender\":{\"type\":\"string\",\"description\":\"Seller name shown by JD.\"}}}}}}},\"allOf\":[{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}]}}}},\"400\":{\"description\":\"Invalid request parameters or body\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"401\":{\"description\":\"Invalid or inactive access token\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"403\":{\"description\":\"Permission denied\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"429\":{\"description\":\"Request rate or daily quota limit exceeded\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"500\":{\"description\":\"Internal server error\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"503\":{\"description\":\"Service temporarily unavailable\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}}}")'
  :servers='JSON.parse("[{\"url\":\"https://api.justoneapi.com\",\"description\":\"Global production API (default)\"}]")'
  :security='JSON.parse("[]")'
  :securitySchemes='JSON.parse("{}")'
  :schemas='JSON.parse("{}")'
/>

<ApiHealthSection :api='JSON.parse("\"/api/jd/get-item-detail/v4\"")' />

<p>Retrieve JD.com product details by item ID. Use it to review product information and images for catalog research or ecommerce analysis.</p>

## Highlights

::: info Capability · Price
<p>Product price information is available.</p>
:::

::: info Capability · Attributes
<p>Provides a grouped product-parameter table.</p>
:::

::: info Capability · SKU options
<p>Provides SKU identifiers, option names and images.</p>
:::

::: info Capability · Main and carousel images
<p>Provides main and carousel images for the selected SKU.</p>
:::

::: warning Condition · Description images
<p>img_list may mix main images with some description or illustration images. Use V3 for a separate, more complete description-image list.</p>
:::

## Parameters

<div class="api-doc-table api-doc-table--params">

| Name | In | Type | Required | Default | Description |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | query | <code>string</code> | Yes | - | Access token for this API service. |
| <code>itemId</code> | query | <code>string</code> | Yes | - | A unique product identifier on JD.com (item ID). |

</div>

## Code Samples

::: code-group

```bash [🐚 cURL]
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/jd/get-item-detail/v4?token=YOUR_API_KEY&itemId=VALUE'
```

```text [🤖 AI Prompt]
I want to use the "Product Details (V4)" API from JustOneAPI.
Base URL: https://api.justoneapi.com.
API Path: /api/jd/get-item-detail/v4?token=YOUR_API_KEY&itemId=VALUE
API Endpoint: BASE_URL + /api/jd/get-item-detail/v4?token=YOUR_API_KEY&itemId=VALUE
HTTP Method: GET
Authentication: Append the "token" query parameter to the URL.
OpenAPI Definition: https://docs.justoneapi.com/openapi/jdcom/product-details-v4-en.json

Parameters:
- token (query): Access token for this API service. (Required)
- itemId (query): A unique product identifier on JD.com (item ID). (Required)

Return format: safely handle JSON or text according to the actual Content-Type.

Response Handling & Error Codes:
1. Business results should be determined by the "code" field in the response body (code 0 means success).
2. Timeout Recommendation: Set the request timeout to 120 seconds. If 120 seconds is too long for your use case, use at least 60 seconds, but a small number of requests may time out before receiving a result.
3. Business Code Reference:
   - 0: Success
   - 100: Invalid or Inactive Token
   - 301: Collection Failed. Please Retry.
   - 302: Rate Limit Exceeded
   - 303: Daily Quota Exceeded
   - 400: Invalid Parameters
   - 500: Internal Server Error
   - 600: Permission Denied
   - 601: Insufficient Balance
   - 602: Token Budget Exceeded
4. Code 601 means the shared account balance is insufficient. Code 602 means the current API token's own cumulative budget limit has been reached. Token budget limits do not transfer funds out of the shared account balance.

Please help me write a script in my preferred programming language to call this API and handle the response.
```

```python [🐍 Python]
import requests

BASE_URL = "https://api.justoneapi.com"  # Provided by OpenAPI servers

url = BASE_URL + "/api/jd/get-item-detail/v4?token=YOUR_API_KEY&itemId=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 [🌐 JavaScript]
const BASE_URL = "https://api.justoneapi.com"; // Provided by OpenAPI servers
const url = BASE_URL + "/api/jd/get-item-detail/v4?token=YOUR_API_KEY&itemId=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 [☕ 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"; // Provided by OpenAPI servers
        final String url = BASE_URL + "/api/jd/get-item-detail/v4?token=YOUR_API_KEY&itemId=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 [🐹 Go]
package main

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

const BASE_URL = "https://api.justoneapi.com" // Provided by OpenAPI servers

func main() {
	client := &http.Client{Timeout: 120 * time.Second}
	url := BASE_URL + "/api/jd/get-item-detail/v4?token=YOUR_API_KEY&itemId=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]
<?php
$BASE_URL = 'https://api.justoneapi.com'; // Provided by OpenAPI servers
$url = $BASE_URL . '/api/jd/get-item-detail/v4?token=YOUR_API_KEY&itemId=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;
}
```

:::

<div style="text-align: right; margin-top: -20px; margin-bottom: 20px;">
<a href="/openapi/jdcom/product-details-v4-en.json" target="_blank" style="font-size: 12px; color: var(--vp-c-text-3); text-decoration: none; opacity: 0.8;">[OpenAPI Definition (JSON)]</a>
</div>

## Response Fields

Key fields in a successful response (`code = 0`).

<div class="api-doc-table api-doc-table--response">

| Field path | Type | Description |
| --- | --- | --- |
| <code>data</code> | <code>object &#124; null</code> | JD product details for the requested SKU, including available pricing, images and specifications. |
| <code>data.itemOnly</code> | <code>object</code> | Item summary with brand, category and selectable SKUs. |
| <code>data.itemOnly.skuId</code> | <code>string</code> | Requested JD SKU identifier returned as text. |
| <code>data.itemOnly.skuName</code> | <code>string</code> | SKU title as returned in the item summary. |
| <code>data.itemOnly.brandId</code> | <code>string</code> | JD brand identifier returned as text. |
| <code>data.itemOnly.brandName</code> | <code>string</code> | Brand name in the JD catalog. |
| <code>data.itemOnly.category</code> | <code>array</code> | JD category IDs along the SKU category path. |
| <code>data.itemOnly.category[]</code> | <code>string</code> | One JD category ID. |
| <code>data.itemOnly.venderID</code> | <code>string</code> | JD seller identifier returned as text. |
| <code>data.itemOnly.isPop</code> | <code>boolean</code> | JD marketplace selling flag for the SKU. |
| <code>data.itemOnly.image</code> | <code>array</code> | Image references attached to the item summary. |
| <code>data.itemOnly.image[]</code> | <code>string</code> | One summary image reference. |
| <code>data.itemOnly.newColorSize</code> | <code>array</code> | Selectable SKUs listed for the product, including the requested SKU when listed. |
| <code>data.itemOnly.newColorSize[]</code> | <code>object</code> | One listed SKU and its specification values. |
| <code>data.itemOnly.newColorSize[].skuId</code> | <code>string</code> | JD SKU identifier for this variant. |
| <code>data.itemOnly.newColorSize[].color</code> | <code>string</code> | Color or first specification label shown for this variant. |
| <code>data.itemOnly.newColorSize[].size</code> | <code>string</code> | Size, capacity or second specification label when available. |
| <code>data.itemOnly.newColorSize[].spec</code> | <code>string</code> | Additional specification value when available. |
| <code>data.itemOnly.newColorSize[].specName</code> | <code>string</code> | Name of the additional specification when available. |
| <code>data.itemOnly.newColorSize[].imagePath</code> | <code>string</code> | Image reference for this variant. |
| <code>data.itemOnly.saleProp</code> | <code>object</code> | Map from sale-property IDs to their display names. |
| <code>data.itemOnly.saleProp.{key}</code> | <code>string</code> | Display name of the sale property. |
| <code>data.itemOnly.salePropSeq</code> | <code>object</code> | Map from sale-property IDs to ordered lists of specification values. |
| <code>data.itemOnly.salePropSeq.{key}</code> | <code>array</code> | Ordered specification values for this sale property. |
| <code>data.itemOnly.salePropSeq.{key}[]</code> | <code>string</code> | One specification value as text. |
| <code>data.itemOnly.spAttr</code> | <code>object</code> | Map from specification names to values displayed for the SKU. |
| <code>data.itemOnly.spAttr.{key}</code> | <code>string</code> | Display value for this specification. |
| <code>data.itemInfo</code> | <code>object</code> | Detailed product information and price display fields. |
| <code>data.itemInfo.product</code> | <code>object</code> | Detailed product and selected-SKU information. |
| <code>data.itemInfo.product.skuId</code> | <code>string</code> | JD SKU identifier in the detailed product section. |
| <code>data.itemInfo.product.skuName</code> | <code>string</code> | Product title in the detailed product section. This title may differ from the item summary title. |
| <code>data.itemInfo.product.realSpuId</code> | <code>string</code> | SPU identifier reported by JD, returned as text. |
| <code>data.itemInfo.product.brandId</code> | <code>string</code> | JD brand ID in the detailed product section. |
| <code>data.itemInfo.product.brandName</code> | <code>string</code> | Brand name in the detailed product section. |
| <code>data.itemInfo.product.cat1</code> | <code>string</code> | First-level JD category ID. |
| <code>data.itemInfo.product.cat2</code> | <code>string</code> | Second-level JD category ID. |
| <code>data.itemInfo.product.cat3</code> | <code>string</code> | Third-level JD category ID. |
| <code>data.itemInfo.product.color</code> | <code>string</code> | Color or first specification label of the selected SKU. |
| <code>data.itemInfo.product.size</code> | <code>string</code> | Size, capacity or second specification label of the selected SKU when available. |
| <code>data.itemInfo.product.spec</code> | <code>string</code> | Additional specification value of the selected SKU when available. |
| <code>data.itemInfo.product.specName</code> | <code>string</code> | Name of the selected SKU additional specification when available. |
| <code>data.itemInfo.product.imageurl</code> | <code>string</code> | Image reference of the selected SKU in the detailed product section. |
| <code>data.itemInfo.product.venderId</code> | <code>string</code> | Seller ID in the detailed product section, returned as text. |
| <code>data.itemInfo.product.shopId</code> | <code>string</code> | Shop ID in the detailed product section, returned as text. |
| <code>data.itemInfo.product.model</code> | <code>string</code> | Product model label when available. |
| <code>data.itemInfo.product.length</code> | <code>string</code> | Length reported for the product, returned as text. |
| <code>data.itemInfo.product.width</code> | <code>string</code> | Width reported for the product, returned as text. |
| <code>data.itemInfo.product.height</code> | <code>string</code> | Height reported for the product, returned as text. |
| <code>data.itemInfo.product.weight</code> | <code>string</code> | Weight reported for the product, returned as text. |
| <code>data.itemInfo.priceFloor</code> | <code>object</code> | Display-price information from the detailed product section. |
| <code>data.itemInfo.priceFloor.price</code> | <code>string</code> | JD price display text. This field can contain a non-decimal value. |
| <code>data.itemInfo.priceFloor.ext</code> | <code>object</code> | Additional price display information. |
| <code>data.itemInfo.priceFloor.ext.jdPrice</code> | <code>string</code> | JD price text from the extended display information. |
| <code>data.priceInfo</code> | <code>object</code> | Price data returned for this SKU. |
| <code>data.priceInfo.skuId</code> | <code>integer</code> | JD SKU identifier used by this price record, returned as an integer. |
| <code>data.priceInfo.jdPrice</code> | <code>number</code> | Numeric JD price reported by this price section. |
| <code>data.priceInfo.productPrice</code> | <code>object</code> | Additional numeric product prices. |
| <code>data.priceInfo.productPrice.jdPrice</code> | <code>number</code> | Numeric JD price in the product-price details. |
| <code>data.priceInfo.productPrice.marketPrice</code> | <code>number</code> | Market reference price reported by JD when available. |
| <code>data.img_list</code> | <code>array</code> | Product image gallery returned separately from the item summary. |
| <code>data.img_list[]</code> | <code>string</code> | One product gallery image reference. |
| <code>data.description</code> | <code>string</code> | JD product description as an HTML string. |
| <code>data.products_introduction</code> | <code>array</code> | Structured product attribute groups. |
| <code>data.products_introduction[]</code> | <code>object</code> | One product attribute group. |
| <code>data.products_introduction[].groupName</code> | <code>string</code> | Display name of the product attribute group when available. |
| <code>data.products_introduction[].atts</code> | <code>array</code> | Attributes in this group. |
| <code>data.products_introduction[].atts[]</code> | <code>object</code> | One named product attribute. |
| <code>data.products_introduction[].atts[].attName</code> | <code>string</code> | Attribute display name. |
| <code>data.products_introduction[].atts[].categoryGroupAttId</code> | <code>string</code> | Category-group attribute ID returned as text. |
| <code>data.products_introduction[].atts[].attRemark</code> | <code>string</code> | Remark supplied for the attribute when available. |
| <code>data.products_introduction[].atts[].vals</code> | <code>array</code> | Display values listed for the attribute. |
| <code>data.products_introduction[].atts[].vals[]</code> | <code>string</code> | One display value as text. |
| <code>data.products_introduction[].atts[].attVals</code> | <code>array</code> | Structured values of the attribute. |
| <code>data.products_introduction[].atts[].attVals[]</code> | <code>object</code> | One structured attribute value. |
| <code>data.products_introduction[].atts[].attVals[].attValId</code> | <code>integer</code> | Attribute-value ID when available. |
| <code>data.products_introduction[].atts[].attVals[].attValName</code> | <code>string</code> | Display name of the attribute value. |
| <code>data.products_introduction[].atts[].attVals[].attValueDefinition</code> | <code>string</code> | Definition text supplied for the attribute value when available. |
| <code>data.products_introduction[].atts[].attVals[].orderSort</code> | <code>integer</code> | Ordering position reported for the attribute value. |
| <code>data.shop_infos</code> | <code>object</code> | JD shop and seller information returned with the SKU. |
| <code>data.shop_infos.shopId</code> | <code>integer</code> | JD shop identifier returned as an integer. |
| <code>data.shop_infos.shopName</code> | <code>string</code> | Shop display name. |
| <code>data.shop_infos.venderId</code> | <code>integer</code> | JD seller identifier returned as an integer. |
| <code>data.shop_infos.vender</code> | <code>string</code> | Seller name shown by JD. |

</div>

## Response Example

<ApiExampleSection :api='JSON.parse("\"/api/jd/get-item-detail/v4\"")' />

