Skip to content

JD.com Product Details API (V1) ​

GET
API health status
Healthy Available Limited Mostly unavailable No data
Loading health status...

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

Highlights ​

Capability · Price

Product price information is available.

Guidance · Attributes

Provides basic product attributes. Use V3 or V4 for a more detailed parameter list.

Guidance · SKU options

Provides current-SKU information. Use V3 or V4 for a more complete variant list.

Capability · Main and carousel images

Provides main and carousel images for the selected SKU.

Condition · Description images

A dedicated description-image list and description HTML may be absent. Use V3 for this content.

Parameters ​

NameInTypeRequiredDefaultDescription
tokenquerystringYes-Access token for this API service.
itemIdquerystringYes-A unique product identifier on JD.com (item ID).

Code Samples ​

bash
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/jd/get-item-detail/v1?token=YOUR_API_KEY&itemId=VALUE'
text
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
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
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
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
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
$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;
}

Response Fields ​

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

Product overview7 fields

data.product

Details attached to the selected SKU.

FieldTypeDescription
skuIdstringSelected SKU identifier returned as text.
skuNamestringDisplay title of the selected SKU.
productIdstringProduct ID reported for the selected SKU.
realSpuIdstringPlatform-reported SPU identifier for the selected SKU, returned as text.
brandIdstringBrand identifier returned as text.
brandNamestringBrand name reported for the product.
sellPointstringSelling-point text displayed for the SKU.
Specifications and categories14 fields

data.product

FieldTypeDescription
modelstringModel information reported for the selected SKU.
colorstringColor label reported for the selected SKU.
sizestringSize label reported for the selected SKU.
salesAttrstringSales attribute text attached to the selected SKU.
categorystringCategory hierarchy in the returned text format.
cat1stringFirst-level category ID returned as text.
cat2stringSecond-level category ID returned as text.
cat3stringThird-level category ID returned as text.
upcstringUPC barcode text returned for the product.
productAreastringProduct-area label reported for this SKU.
heightstringProduct height value reported as text.
lengthstringProduct length value reported as text.
widthstringProduct width value reported as text.
weightstringProduct weight value reported as text.
Product status6 fields

data.product

FieldTypeDescription
skuStatusstringSKU status code returned as text.
isDeletestringDeletion-state value reported in the SKU metadata.
skuTypeintegerNumeric SKU type code reported by the platform.
productTypeintegerNumeric product type code reported by the platform.
saleDatestringSale date and time value returned as text.
jdexpressbooleanWhether the product information marks JD delivery.
Images and video4 fields

data

FieldTypeDescription
product.imageurlstringPrimary product image field as returned.
product.mainImagesarrayImage entries returned for the product carousel.
product.mainImages[]stringAn image entry returned in the product carousel.
mainVideoIdstringID of the main product video, returned as text when provided.
Price display7 fields

data

FieldTypeDescription
priceFloorobjectPrice display information returned for the product.
priceFloor.pricestringDisplayed price returned as text in the original format.
priceFloor.typestringPrice type code reported for this display entry.
priceFloor.extobjectAdditional price information returned for the product.
priceFloor.ext.jdPricestringJD price value returned as text in the additional price information.
commonInfoobjectCommon display information returned with the product details.
commonInfo.priceLoginTextstringSign-in prompt text associated with the price display.
Stock and delivery6 fields

data.stock

Stock and delivery information returned for the selected SKU.

FieldTypeDescription
skuIdstringSKU identifier used by the stock information, returned as text.
realSkuIdstringResolved SKU identifier reported by the stock information, returned as text.
StockStateintegerNumeric stock-state code reported for the selected SKU.
codeintegerNumeric result code returned with the stock information.
isJDexpressbooleanWhether the stock information marks JD delivery.
promiseResultstringDelivery promise text returned with the stock information.
Shop and seller21 fields

data

FieldTypeDescription
product.shopIdstringJD shop identifier returned as text in the product metadata.
product.venderIdstringJD merchant identifier returned as text in the product metadata.
stock.DobjectSeller information returned with the stock information.
stock.D.venderIdintegerJD merchant identifier returned as an integer in this seller record.
stock.D.venderstringSeller name shown in this merchant record.
stock.D.shopIdintegerJD shop identifier returned as an integer in this seller record.
stock.D.shopNamestringName of the JD shop.
stock.D.shopWebsitestringShop website link provided for this seller.
stock.D.urlstringShop link returned with this seller record.
stock.self_DobjectAdditional seller information returned with the stock information.
stock.self_D.venderIdintegerJD merchant identifier returned as an integer in this seller record.
stock.self_D.venderstringSeller name shown in this merchant record.
stock.self_D.shopIdintegerJD shop identifier returned as an integer in this seller record.
stock.self_D.shopNamestringName of the JD shop.
stock.self_D.shopWebsitestringShop website link provided for this seller.
stock.self_D.urlstringShop link returned with this seller record.
shopFloorobjectShop display information when provided.
shopFloor.shopFloorConfigobjectDisplay information for the shop section.
shopFloor.shopFloorConfig.shopTypestringShop type label returned with the shop display information.
shopFloor.shopFloorConfig.shopTypeDescstringDisplay description of the returned shop type.
shopFloor.shopFloorConfig.coverLogostringLogo image for the shop cover.
Service information20 fields

data.stock

FieldTypeDescription
irarrayService labels returned with the stock information.
ir[]objectA service label associated with the selected SKU.
ir[].showNamestringDisplay name of the service label.
ir[].iconTipstringExplanatory text shown for the service label.
ir[].picUrlstringImage URL returned for the service label.
ir[].helpLinkstringHelp link provided for this service label.
promiseYXobjectDelivery assurance display information returned with the stock data.
promiseYX.showNamestringDisplay name of the delivery assurance.
promiseYX.iconTipstringExplanatory text for the delivery assurance.
promiseYX.picUrlstringImage URL returned for the delivery assurance.
promiseYX.helpLinkstringHelp link provided with the delivery assurance.
unifiedServiceTagobjectService-tag information returned with the product stock details.
unifiedServiceTag.enablebooleanWhether the returned service-tag information is marked enabled.
unifiedServiceTag.tsfwarrayService labels included in the unified service-tag information.
unifiedServiceTag.tsfw[]objectAn entry in the unified service-tag list.
unifiedServiceTag.tsfw[].namestringService name reported for this entry.
unifiedServiceTag.tsfw[].descstringService description reported for this entry.
unifiedServiceTag.tsfw[].shortDescstringShort service description reported for this entry.
unifiedServiceTag.tsfw[].logoUrlstringLogo URL returned for this service.
unifiedServiceTag.tsfw[].helpUrlstringHelp URL returned for this service.
Notices and sharing10 fields

data

FieldTypeDescription
noticeFloorarrayDisplay notices returned with the product details.
noticeFloor[]objectA display notice for the selected product.
noticeFloor[].typestringType code returned for the notice.
noticeFloor[].descstringDisplay text of the notice.
noticeFloor[].statusstringStatus value returned with the notice when provided.
noticeFloor[].iconsarrayIcon entries returned with this notice.
noticeFloor[].icons[]stringAn icon entry returned with the notice.
shareInfoobjectSharing information returned for the product.
shareInfo.titlestringTitle returned for sharing the product.
shareInfo.shortTitlestringShort sharing title when provided.
Lookup status3 fields

data

Details for the selected JD SKU. A status-only result can contain the requested item ID and a message.

FieldTypeDescription
areaIdstringArea code returned with the product details.
itemIdstringRequested item ID returned in a status-only lookup result.
msgstringStatus message returned with the lookup result.

Response Example ​

Loading the response example...