---
title: "JD.com Product Details API (V1)"
description: "Retrieve JD.com product details for a known item ID. Use it to inspect an individual product after finding its identifier."
aiUsagePrompt: true
---

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

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/jd/get-item-detail/v1\"")'
  :summary='JSON.parse("\"Product Details (V1)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/jdcom/product-details-v1-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\":\"Details for the selected JD SKU. A status-only result can contain the requested item ID and a message.\",\"properties\":{\"product\":{\"type\":\"object\",\"description\":\"Details attached to the selected SKU.\",\"properties\":{\"skuId\":{\"type\":\"string\",\"description\":\"Selected SKU identifier returned as text.\"},\"skuName\":{\"type\":\"string\",\"description\":\"Display title of the selected SKU.\"},\"productId\":{\"type\":\"string\",\"description\":\"Product ID reported for the selected SKU.\"},\"realSpuId\":{\"type\":\"string\",\"description\":\"Platform-reported SPU identifier for the selected SKU, returned as text.\"},\"skuStatus\":{\"type\":\"string\",\"description\":\"SKU status code returned as text.\"},\"isDelete\":{\"type\":\"string\",\"description\":\"Deletion-state value reported in the SKU metadata.\"},\"skuType\":{\"type\":\"integer\",\"description\":\"Numeric SKU type code reported by the platform.\"},\"productType\":{\"type\":\"integer\",\"description\":\"Numeric product type code reported by the platform.\"},\"model\":{\"type\":\"string\",\"description\":\"Model information reported for the selected SKU.\"},\"color\":{\"type\":\"string\",\"description\":\"Color label reported for the selected SKU.\"},\"size\":{\"type\":\"string\",\"description\":\"Size label reported for the selected SKU.\"},\"salesAttr\":{\"type\":\"string\",\"description\":\"Sales attribute text attached to the selected SKU.\"},\"brandId\":{\"type\":\"string\",\"description\":\"Brand identifier returned as text.\"},\"brandName\":{\"type\":\"string\",\"description\":\"Brand name reported for the product.\"},\"category\":{\"type\":\"string\",\"description\":\"Category hierarchy in the returned text format.\"},\"cat1\":{\"type\":\"string\",\"description\":\"First-level category ID returned as text.\"},\"cat2\":{\"type\":\"string\",\"description\":\"Second-level category ID returned as text.\"},\"cat3\":{\"type\":\"string\",\"description\":\"Third-level category ID returned as text.\"},\"sellPoint\":{\"type\":\"string\",\"description\":\"Selling-point text displayed for the SKU.\"},\"saleDate\":{\"type\":\"string\",\"description\":\"Sale date and time value returned as text.\"},\"upc\":{\"type\":\"string\",\"description\":\"UPC barcode text returned for the product.\"},\"productArea\":{\"type\":\"string\",\"description\":\"Product-area label reported for this SKU.\"},\"height\":{\"type\":\"string\",\"description\":\"Product height value reported as text.\"},\"length\":{\"type\":\"string\",\"description\":\"Product length value reported as text.\"},\"width\":{\"type\":\"string\",\"description\":\"Product width value reported as text.\"},\"weight\":{\"type\":\"string\",\"description\":\"Product weight value reported as text.\"},\"imageurl\":{\"type\":\"string\",\"description\":\"Primary product image field as returned.\"},\"mainImages\":{\"type\":\"array\",\"description\":\"Image entries returned for the product carousel.\",\"items\":{\"type\":\"string\",\"description\":\"An image entry returned in the product carousel.\"}},\"shopId\":{\"type\":\"string\",\"description\":\"JD shop identifier returned as text in the product metadata.\"},\"venderId\":{\"type\":\"string\",\"description\":\"JD merchant identifier returned as text in the product metadata.\"},\"jdexpress\":{\"type\":\"boolean\",\"description\":\"Whether the product information marks JD delivery.\"}}},\"priceFloor\":{\"type\":\"object\",\"description\":\"Price display information returned for the product.\",\"properties\":{\"price\":{\"type\":\"string\",\"description\":\"Displayed price returned as text in the original format.\"},\"type\":{\"type\":\"string\",\"description\":\"Price type code reported for this display entry.\"},\"ext\":{\"type\":\"object\",\"description\":\"Additional price information returned for the product.\",\"properties\":{\"jdPrice\":{\"type\":\"string\",\"description\":\"JD price value returned as text in the additional price information.\"}}}}},\"commonInfo\":{\"type\":\"object\",\"description\":\"Common display information returned with the product details.\",\"properties\":{\"priceLoginText\":{\"type\":\"string\",\"description\":\"Sign-in prompt text associated with the price display.\"}}},\"stock\":{\"type\":\"object\",\"description\":\"Stock and delivery information returned for the selected SKU.\",\"properties\":{\"skuId\":{\"type\":\"string\",\"description\":\"SKU identifier used by the stock information, returned as text.\"},\"realSkuId\":{\"type\":\"string\",\"description\":\"Resolved SKU identifier reported by the stock information, returned as text.\"},\"StockState\":{\"type\":\"integer\",\"description\":\"Numeric stock-state code reported for the selected SKU.\"},\"code\":{\"type\":\"integer\",\"description\":\"Numeric result code returned with the stock information.\"},\"isJDexpress\":{\"type\":\"boolean\",\"description\":\"Whether the stock information marks JD delivery.\"},\"promiseResult\":{\"type\":\"string\",\"description\":\"Delivery promise text returned with the stock information.\"},\"D\":{\"type\":\"object\",\"description\":\"Seller information returned with the stock information.\",\"properties\":{\"venderId\":{\"type\":\"integer\",\"description\":\"JD merchant identifier returned as an integer in this seller record.\"},\"vender\":{\"type\":\"string\",\"description\":\"Seller name shown in this merchant record.\"},\"shopId\":{\"type\":\"integer\",\"description\":\"JD shop identifier returned as an integer in this seller record.\"},\"shopName\":{\"type\":\"string\",\"description\":\"Name of the JD shop.\"},\"shopWebsite\":{\"type\":\"string\",\"description\":\"Shop website link provided for this seller.\"},\"url\":{\"type\":\"string\",\"description\":\"Shop link returned with this seller record.\"}}},\"self_D\":{\"type\":\"object\",\"description\":\"Additional seller information returned with the stock information.\",\"properties\":{\"venderId\":{\"type\":\"integer\",\"description\":\"JD merchant identifier returned as an integer in this seller record.\"},\"vender\":{\"type\":\"string\",\"description\":\"Seller name shown in this merchant record.\"},\"shopId\":{\"type\":\"integer\",\"description\":\"JD shop identifier returned as an integer in this seller record.\"},\"shopName\":{\"type\":\"string\",\"description\":\"Name of the JD shop.\"},\"shopWebsite\":{\"type\":\"string\",\"description\":\"Shop website link provided for this seller.\"},\"url\":{\"type\":\"string\",\"description\":\"Shop link returned with this seller record.\"}}},\"ir\":{\"type\":\"array\",\"description\":\"Service labels returned with the stock information.\",\"items\":{\"type\":\"object\",\"description\":\"A service label associated with the selected SKU.\",\"properties\":{\"showName\":{\"type\":\"string\",\"description\":\"Display name of the service label.\"},\"iconTip\":{\"type\":\"string\",\"description\":\"Explanatory text shown for the service label.\"},\"picUrl\":{\"type\":\"string\",\"description\":\"Image URL returned for the service label.\"},\"helpLink\":{\"type\":\"string\",\"description\":\"Help link provided for this service label.\"}}}},\"promiseYX\":{\"type\":\"object\",\"description\":\"Delivery assurance display information returned with the stock data.\",\"properties\":{\"showName\":{\"type\":\"string\",\"description\":\"Display name of the delivery assurance.\"},\"iconTip\":{\"type\":\"string\",\"description\":\"Explanatory text for the delivery assurance.\"},\"picUrl\":{\"type\":\"string\",\"description\":\"Image URL returned for the delivery assurance.\"},\"helpLink\":{\"type\":\"string\",\"description\":\"Help link provided with the delivery assurance.\"}}},\"unifiedServiceTag\":{\"type\":\"object\",\"description\":\"Service-tag information returned with the product stock details.\",\"properties\":{\"enable\":{\"type\":\"boolean\",\"description\":\"Whether the returned service-tag information is marked enabled.\"},\"tsfw\":{\"type\":\"array\",\"description\":\"Service labels included in the unified service-tag information.\",\"items\":{\"type\":\"object\",\"description\":\"An entry in the unified service-tag list.\",\"properties\":{\"name\":{\"type\":\"string\",\"description\":\"Service name reported for this entry.\"},\"desc\":{\"type\":\"string\",\"description\":\"Service description reported for this entry.\"},\"shortDesc\":{\"type\":\"string\",\"description\":\"Short service description reported for this entry.\"},\"logoUrl\":{\"type\":\"string\",\"description\":\"Logo URL returned for this service.\"},\"helpUrl\":{\"type\":\"string\",\"description\":\"Help URL returned for this service.\"}}}}}}}},\"shopFloor\":{\"type\":\"object\",\"description\":\"Shop display information when provided.\",\"properties\":{\"shopFloorConfig\":{\"type\":\"object\",\"description\":\"Display information for the shop section.\",\"properties\":{\"shopType\":{\"type\":\"string\",\"description\":\"Shop type label returned with the shop display information.\"},\"shopTypeDesc\":{\"type\":\"string\",\"description\":\"Display description of the returned shop type.\"},\"coverLogo\":{\"type\":\"string\",\"description\":\"Logo image for the shop cover.\"}}}}},\"mainVideoId\":{\"type\":\"string\",\"description\":\"ID of the main product video, returned as text when provided.\"},\"noticeFloor\":{\"type\":\"array\",\"description\":\"Display notices returned with the product details.\",\"items\":{\"type\":\"object\",\"description\":\"A display notice for the selected product.\",\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"Type code returned for the notice.\"},\"desc\":{\"type\":\"string\",\"description\":\"Display text of the notice.\"},\"status\":{\"type\":\"string\",\"description\":\"Status value returned with the notice when provided.\"},\"icons\":{\"type\":\"array\",\"description\":\"Icon entries returned with this notice.\",\"items\":{\"type\":\"string\",\"description\":\"An icon entry returned with the notice.\"}}}}},\"shareInfo\":{\"type\":\"object\",\"description\":\"Sharing information returned for the product.\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"Title returned for sharing the product.\"},\"shortTitle\":{\"type\":\"string\",\"description\":\"Short sharing title when provided.\"}}},\"areaId\":{\"type\":\"string\",\"description\":\"Area code returned with the product details.\"},\"itemId\":{\"type\":\"string\",\"description\":\"Requested item ID returned in a status-only lookup result.\"},\"msg\":{\"type\":\"string\",\"description\":\"Status message returned with the lookup result.\"}}}}},\"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/v1\"")' />

<p>Retrieve JD.com product details for a known item ID. Use it to inspect an individual product after finding its identifier.</p>

## Highlights

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

::: warning Guidance · Attributes
<p>Provides basic product attributes. Use V3 or V4 for a more detailed parameter list.</p>
:::

::: warning Guidance · SKU options
<p>Provides current-SKU information. Use V3 or V4 for a more complete variant list.</p>
:::

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

::: warning Condition · Description images
<p>A dedicated description-image list and description HTML may be absent. Use V3 for this content.</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/v1?token=YOUR_API_KEY&itemId=VALUE'
```

```text [🤖 AI Prompt]
I want to use the "Product Details (V1)" API from JustOneAPI.
Base URL: https://api.justoneapi.com.
API Path: /api/jd/get-item-detail/v1?token=YOUR_API_KEY&itemId=VALUE
API Endpoint: BASE_URL + /api/jd/get-item-detail/v1?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-v1-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/v1?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/v1?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/v1?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/v1?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/v1?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-v1-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> | Details for the selected JD SKU. A status-only result can contain the requested item ID and a message. |
| <code>data.product</code> | <code>object</code> | Details attached to the selected SKU. |
| <code>data.product.skuId</code> | <code>string</code> | Selected SKU identifier returned as text. |
| <code>data.product.skuName</code> | <code>string</code> | Display title of the selected SKU. |
| <code>data.product.productId</code> | <code>string</code> | Product ID reported for the selected SKU. |
| <code>data.product.realSpuId</code> | <code>string</code> | Platform-reported SPU identifier for the selected SKU, returned as text. |
| <code>data.product.skuStatus</code> | <code>string</code> | SKU status code returned as text. |
| <code>data.product.isDelete</code> | <code>string</code> | Deletion-state value reported in the SKU metadata. |
| <code>data.product.skuType</code> | <code>integer</code> | Numeric SKU type code reported by the platform. |
| <code>data.product.productType</code> | <code>integer</code> | Numeric product type code reported by the platform. |
| <code>data.product.model</code> | <code>string</code> | Model information reported for the selected SKU. |
| <code>data.product.color</code> | <code>string</code> | Color label reported for the selected SKU. |
| <code>data.product.size</code> | <code>string</code> | Size label reported for the selected SKU. |
| <code>data.product.salesAttr</code> | <code>string</code> | Sales attribute text attached to the selected SKU. |
| <code>data.product.brandId</code> | <code>string</code> | Brand identifier returned as text. |
| <code>data.product.brandName</code> | <code>string</code> | Brand name reported for the product. |
| <code>data.product.category</code> | <code>string</code> | Category hierarchy in the returned text format. |
| <code>data.product.cat1</code> | <code>string</code> | First-level category ID returned as text. |
| <code>data.product.cat2</code> | <code>string</code> | Second-level category ID returned as text. |
| <code>data.product.cat3</code> | <code>string</code> | Third-level category ID returned as text. |
| <code>data.product.sellPoint</code> | <code>string</code> | Selling-point text displayed for the SKU. |
| <code>data.product.saleDate</code> | <code>string</code> | Sale date and time value returned as text. |
| <code>data.product.upc</code> | <code>string</code> | UPC barcode text returned for the product. |
| <code>data.product.productArea</code> | <code>string</code> | Product-area label reported for this SKU. |
| <code>data.product.height</code> | <code>string</code> | Product height value reported as text. |
| <code>data.product.length</code> | <code>string</code> | Product length value reported as text. |
| <code>data.product.width</code> | <code>string</code> | Product width value reported as text. |
| <code>data.product.weight</code> | <code>string</code> | Product weight value reported as text. |
| <code>data.product.imageurl</code> | <code>string</code> | Primary product image field as returned. |
| <code>data.product.mainImages</code> | <code>array</code> | Image entries returned for the product carousel. |
| <code>data.product.mainImages[]</code> | <code>string</code> | An image entry returned in the product carousel. |
| <code>data.product.shopId</code> | <code>string</code> | JD shop identifier returned as text in the product metadata. |
| <code>data.product.venderId</code> | <code>string</code> | JD merchant identifier returned as text in the product metadata. |
| <code>data.product.jdexpress</code> | <code>boolean</code> | Whether the product information marks JD delivery. |
| <code>data.priceFloor</code> | <code>object</code> | Price display information returned for the product. |
| <code>data.priceFloor.price</code> | <code>string</code> | Displayed price returned as text in the original format. |
| <code>data.priceFloor.type</code> | <code>string</code> | Price type code reported for this display entry. |
| <code>data.priceFloor.ext</code> | <code>object</code> | Additional price information returned for the product. |
| <code>data.priceFloor.ext.jdPrice</code> | <code>string</code> | JD price value returned as text in the additional price information. |
| <code>data.commonInfo</code> | <code>object</code> | Common display information returned with the product details. |
| <code>data.commonInfo.priceLoginText</code> | <code>string</code> | Sign-in prompt text associated with the price display. |
| <code>data.stock</code> | <code>object</code> | Stock and delivery information returned for the selected SKU. |
| <code>data.stock.skuId</code> | <code>string</code> | SKU identifier used by the stock information, returned as text. |
| <code>data.stock.realSkuId</code> | <code>string</code> | Resolved SKU identifier reported by the stock information, returned as text. |
| <code>data.stock.StockState</code> | <code>integer</code> | Numeric stock-state code reported for the selected SKU. |
| <code>data.stock.code</code> | <code>integer</code> | Numeric result code returned with the stock information. |
| <code>data.stock.isJDexpress</code> | <code>boolean</code> | Whether the stock information marks JD delivery. |
| <code>data.stock.promiseResult</code> | <code>string</code> | Delivery promise text returned with the stock information. |
| <code>data.stock.D</code> | <code>object</code> | Seller information returned with the stock information. |
| <code>data.stock.D.venderId</code> | <code>integer</code> | JD merchant identifier returned as an integer in this seller record. |
| <code>data.stock.D.vender</code> | <code>string</code> | Seller name shown in this merchant record. |
| <code>data.stock.D.shopId</code> | <code>integer</code> | JD shop identifier returned as an integer in this seller record. |
| <code>data.stock.D.shopName</code> | <code>string</code> | Name of the JD shop. |
| <code>data.stock.D.shopWebsite</code> | <code>string</code> | Shop website link provided for this seller. |
| <code>data.stock.D.url</code> | <code>string</code> | Shop link returned with this seller record. |
| <code>data.stock.self_D</code> | <code>object</code> | Additional seller information returned with the stock information. |
| <code>data.stock.self_D.venderId</code> | <code>integer</code> | JD merchant identifier returned as an integer in this seller record. |
| <code>data.stock.self_D.vender</code> | <code>string</code> | Seller name shown in this merchant record. |
| <code>data.stock.self_D.shopId</code> | <code>integer</code> | JD shop identifier returned as an integer in this seller record. |
| <code>data.stock.self_D.shopName</code> | <code>string</code> | Name of the JD shop. |
| <code>data.stock.self_D.shopWebsite</code> | <code>string</code> | Shop website link provided for this seller. |
| <code>data.stock.self_D.url</code> | <code>string</code> | Shop link returned with this seller record. |
| <code>data.stock.ir</code> | <code>array</code> | Service labels returned with the stock information. |
| <code>data.stock.ir[]</code> | <code>object</code> | A service label associated with the selected SKU. |
| <code>data.stock.ir[].showName</code> | <code>string</code> | Display name of the service label. |
| <code>data.stock.ir[].iconTip</code> | <code>string</code> | Explanatory text shown for the service label. |
| <code>data.stock.ir[].picUrl</code> | <code>string</code> | Image URL returned for the service label. |
| <code>data.stock.ir[].helpLink</code> | <code>string</code> | Help link provided for this service label. |
| <code>data.stock.promiseYX</code> | <code>object</code> | Delivery assurance display information returned with the stock data. |
| <code>data.stock.promiseYX.showName</code> | <code>string</code> | Display name of the delivery assurance. |
| <code>data.stock.promiseYX.iconTip</code> | <code>string</code> | Explanatory text for the delivery assurance. |
| <code>data.stock.promiseYX.picUrl</code> | <code>string</code> | Image URL returned for the delivery assurance. |
| <code>data.stock.promiseYX.helpLink</code> | <code>string</code> | Help link provided with the delivery assurance. |
| <code>data.stock.unifiedServiceTag</code> | <code>object</code> | Service-tag information returned with the product stock details. |
| <code>data.stock.unifiedServiceTag.enable</code> | <code>boolean</code> | Whether the returned service-tag information is marked enabled. |
| <code>data.stock.unifiedServiceTag.tsfw</code> | <code>array</code> | Service labels included in the unified service-tag information. |
| <code>data.stock.unifiedServiceTag.tsfw[]</code> | <code>object</code> | An entry in the unified service-tag list. |
| <code>data.stock.unifiedServiceTag.tsfw[].name</code> | <code>string</code> | Service name reported for this entry. |
| <code>data.stock.unifiedServiceTag.tsfw[].desc</code> | <code>string</code> | Service description reported for this entry. |
| <code>data.stock.unifiedServiceTag.tsfw[].shortDesc</code> | <code>string</code> | Short service description reported for this entry. |
| <code>data.stock.unifiedServiceTag.tsfw[].logoUrl</code> | <code>string</code> | Logo URL returned for this service. |
| <code>data.stock.unifiedServiceTag.tsfw[].helpUrl</code> | <code>string</code> | Help URL returned for this service. |
| <code>data.shopFloor</code> | <code>object</code> | Shop display information when provided. |
| <code>data.shopFloor.shopFloorConfig</code> | <code>object</code> | Display information for the shop section. |
| <code>data.shopFloor.shopFloorConfig.shopType</code> | <code>string</code> | Shop type label returned with the shop display information. |
| <code>data.shopFloor.shopFloorConfig.shopTypeDesc</code> | <code>string</code> | Display description of the returned shop type. |
| <code>data.shopFloor.shopFloorConfig.coverLogo</code> | <code>string</code> | Logo image for the shop cover. |
| <code>data.mainVideoId</code> | <code>string</code> | ID of the main product video, returned as text when provided. |
| <code>data.noticeFloor</code> | <code>array</code> | Display notices returned with the product details. |
| <code>data.noticeFloor[]</code> | <code>object</code> | A display notice for the selected product. |
| <code>data.noticeFloor[].type</code> | <code>string</code> | Type code returned for the notice. |
| <code>data.noticeFloor[].desc</code> | <code>string</code> | Display text of the notice. |
| <code>data.noticeFloor[].status</code> | <code>string</code> | Status value returned with the notice when provided. |
| <code>data.noticeFloor[].icons</code> | <code>array</code> | Icon entries returned with this notice. |
| <code>data.noticeFloor[].icons[]</code> | <code>string</code> | An icon entry returned with the notice. |
| <code>data.shareInfo</code> | <code>object</code> | Sharing information returned for the product. |
| <code>data.shareInfo.title</code> | <code>string</code> | Title returned for sharing the product. |
| <code>data.shareInfo.shortTitle</code> | <code>string</code> | Short sharing title when provided. |
| <code>data.areaId</code> | <code>string</code> | Area code returned with the product details. |
| <code>data.itemId</code> | <code>string</code> | Requested item ID returned in a status-only lookup result. |
| <code>data.msg</code> | <code>string</code> | Status message returned with the lookup result. |

</div>

## Response Example

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

