---
title: "Taobao and Tmall Product Details API (V9)"
description: "Retrieves Taobao or Tmall product details by item ID through the V9 endpoint. Use it to perform direct product lookup for catalog research, product monitoring, or ecommerce analysis."
aiUsagePrompt: true
---

# Taobao and Tmall Product Details API \(V9\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/taobao/get-item-detail/v9\"")'
  :summary='JSON.parse("\"Product Details (V9)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/taobao-and-tmall/product-details-v9-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\":\"Unique product identifier on Taobao/Tmall (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\":\"Product details for the requested Taobao or Tmall item. A successful response can have null data.\",\"properties\":{\"itemId\":{\"type\":\"string\",\"description\":\"Taobao or Tmall item ID as text.\"},\"title\":{\"type\":\"string\",\"description\":\"Title of the product.\"},\"categoryId\":{\"type\":\"string\",\"description\":\"Product category ID as text.\"},\"num\":{\"type\":\"string\",\"description\":\"Count displayed for the product. It may be an abbreviated text value.\"},\"price\":{\"type\":\"string\",\"description\":\"Reported product price as text.\"},\"nick\":{\"type\":\"string\",\"description\":\"Reported seller nickname.\"},\"userId\":{\"type\":\"string\",\"description\":\"Seller account ID as text.\"},\"sellerType\":{\"type\":\"string\",\"description\":\"Reported seller type code as text.\"},\"shopId\":{\"type\":\"string\",\"description\":\"Taobao or Tmall shop ID as text.\"},\"shopName\":{\"type\":\"string\",\"description\":\"Reported shop name.\"},\"location\":{\"type\":\"string\",\"description\":\"Location label reported for the product.\"},\"desc\":{\"type\":\"string\",\"description\":\"Product description returned as HTML text.\"},\"videoUrl\":{\"type\":\"string\",\"description\":\"Product video URL, which may be empty.\"},\"item_imgs\":{\"type\":\"array\",\"description\":\"Main and carousel images returned for the product.\",\"items\":{\"type\":\"string\",\"description\":\"URL of one product image.\"}},\"attribute\":{\"type\":\"array\",\"description\":\"Product attributes returned as name and value pairs.\",\"items\":{\"type\":\"object\",\"description\":\"One product attribute.\",\"properties\":{\"key\":{\"type\":\"string\",\"description\":\"Display name of the product attribute.\"},\"value\":{\"type\":\"string\",\"description\":\"Display value of the product attribute.\"}}}},\"skus\":{\"type\":\"array\",\"description\":\"SKU variants returned for the product.\",\"items\":{\"type\":\"object\",\"description\":\"One SKU variant.\",\"properties\":{\"skuId\":{\"type\":\"integer\",\"description\":\"Numeric identifier of this SKU.\"},\"id\":{\"type\":\"string\",\"description\":\"Encoded specification combination, with colon-separated property and value IDs and semicolons between pairs.\"},\"quantity\":{\"type\":\"string\",\"description\":\"Reported inventory quantity for this SKU as text.\"},\"price\":{\"type\":\"string\",\"description\":\"Reported SKU price as text. In sampled responses it was expressed in hundredths of the product price unit.\"},\"orign_price\":{\"type\":\"integer\",\"description\":\"Reported original-price value for this SKU as an integer.\"}}}},\"props\":{\"type\":\"array\",\"description\":\"Product specification properties and their available values.\",\"items\":{\"type\":\"object\",\"description\":\"One specification property.\",\"properties\":{\"pid\":{\"type\":\"string\",\"description\":\"Specification property ID as text.\"},\"pname\":{\"type\":\"string\",\"description\":\"Display name of this specification property.\"},\"values\":{\"type\":\"array\",\"description\":\"Available values for this specification property.\",\"items\":{\"type\":\"object\",\"description\":\"One specification value.\",\"properties\":{\"vid\":{\"type\":\"string\",\"description\":\"Specification value ID as text.\"},\"vname\":{\"type\":\"string\",\"description\":\"Display name of the specification value.\"},\"sku_url\":{\"type\":\"string\",\"description\":\"Image URL for the specification value, which may be empty.\"}}}}}}},\"specs\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"array\",\"description\":\"Ordered specification value details. The first entry is the display name. The second is the image URL and may be empty.\",\"items\":{\"type\":\"string\",\"description\":\"Specification display name or image URL at the indicated position.\"}},\"description\":\"Values for the property, keyed by the property ID and value ID pair.\"},\"description\":\"Specification lookup keyed by property display name.\"},\"mainItemInfo\":{\"type\":\"object\",\"description\":\"Product information with reported prices and promotions.\",\"properties\":{\"itemId\":{\"type\":\"string\",\"description\":\"Item ID reported in the promotion information, as text.\"},\"itemName\":{\"type\":\"string\",\"description\":\"Product name shown in this information block.\"},\"pic\":{\"type\":\"string\",\"description\":\"Main image URL reported in this information block.\"},\"auctionIconUrl\":{\"type\":\"string\",\"description\":\"Product badge icon URL, when supplied.\"},\"afterCouponAmountPrice\":{\"type\":\"string\",\"description\":\"Reported amount after coupons as text.\"},\"hasSubsidy\":{\"type\":\"string\",\"description\":\"Reported subsidy indicator as text.\"},\"promotionModel\":{\"type\":\"object\",\"description\":\"Promotional prices and display tags.\",\"properties\":{\"promotionPriceModel\":{\"type\":\"object\",\"description\":\"Promotional prices and their display labels.\",\"properties\":{\"promotionPrice\":{\"type\":\"string\",\"description\":\"Reported promotional price as text.\"},\"promotionPriceDescDisplay\":{\"type\":\"string\",\"description\":\"Description shown next to the promotional price.\"},\"promotionPriceDisplay\":{\"type\":\"string\",\"description\":\"Promotional price formatted for display.\"},\"zkPrice\":{\"type\":\"string\",\"description\":\"Price text associated with the zkPriceDisplay value.\"},\"zkPriceDisplay\":{\"type\":\"string\",\"description\":\"Formatted display value for zkPrice.\"}}},\"promotionTagModel\":{\"type\":\"array\",\"description\":\"Tags shown with promotions.\",\"items\":{\"type\":\"object\",\"description\":\"One promotional tag.\",\"properties\":{\"tagDisplay\":{\"type\":\"string\",\"description\":\"Displayed text for this tag.\"},\"tagType\":{\"type\":\"string\",\"description\":\"Type code reported for this tag as text.\"},\"tagTypeDisplay\":{\"type\":\"string\",\"description\":\"Display text for the tag type.\"},\"tagIcon\":{\"type\":\"string\",\"description\":\"Icon associated with this tag, when supplied.\"}}}}}},\"taobaoPromotionModel\":{\"type\":\"object\",\"description\":\"Taobao promotion details for the product.\",\"properties\":{\"finalPromotionInfo\":{\"type\":\"object\",\"description\":\"Final promotional price and any reported coupon details.\",\"properties\":{\"finalPromotionPrice\":{\"type\":\"string\",\"description\":\"Reported final promotional price as text.\"},\"couponPromotionModel\":{\"type\":\"object\",\"description\":\"Coupon information when returned.\",\"properties\":{\"couponType\":{\"type\":\"string\",\"description\":\"Reported coupon type code as text.\"},\"promotionTitle\":{\"type\":\"string\",\"description\":\"Title of the coupon promotion.\"},\"couponPromotionDesc\":{\"type\":\"string\",\"description\":\"Displayed description of the coupon promotion.\"}}}}}}}}}}}}},\"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/taobao/get-item-detail/v9\"")' />

<p>Retrieves Taobao or Tmall product details by item ID through the V9 endpoint. Use it to perform direct product lookup for catalog research, product monitoring, or ecommerce analysis.</p>

## Highlights

::: info Capability · Price
<p>Returns the original product price and SKU prices.</p>
:::

::: info Capability · Attributes
<p>Provides product attributes as names and values.</p>
:::

::: info Capability · SKU options
<p>Provides SKU identifiers, specification options and quantity information.</p>
:::

::: info Capability · Main and carousel images
<p>Provides product main and carousel images.</p>
:::

::: warning Condition · Description images
<p>Description images are included in description HTML and need to be extracted; a separate image list is not provided.</p>
:::

::: tip Condition
<p>Some products may not be available through this endpoint.</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 | - | Unique product identifier on Taobao/Tmall (item ID). |

</div>

## Code Samples

::: code-group

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

```text [🤖 AI Prompt]
I want to use the "Product Details (V9)" API from JustOneAPI.
Base URL: https://api.justoneapi.com.
API Path: /api/taobao/get-item-detail/v9?token=YOUR_API_KEY&itemId=VALUE
API Endpoint: BASE_URL + /api/taobao/get-item-detail/v9?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/taobao-and-tmall/product-details-v9-en.json

Parameters:
- token (query): Access token for this API service. (Required)
- itemId (query): Unique product identifier on Taobao/Tmall (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/taobao/get-item-detail/v9?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/taobao/get-item-detail/v9?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/taobao/get-item-detail/v9?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/taobao/get-item-detail/v9?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/taobao/get-item-detail/v9?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/taobao-and-tmall/product-details-v9-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> | Product details for the requested Taobao or Tmall item. A successful response can have null data. |
| <code>data.itemId</code> | <code>string</code> | Taobao or Tmall item ID as text. |
| <code>data.title</code> | <code>string</code> | Title of the product. |
| <code>data.categoryId</code> | <code>string</code> | Product category ID as text. |
| <code>data.num</code> | <code>string</code> | Count displayed for the product. It may be an abbreviated text value. |
| <code>data.price</code> | <code>string</code> | Reported product price as text. |
| <code>data.nick</code> | <code>string</code> | Reported seller nickname. |
| <code>data.userId</code> | <code>string</code> | Seller account ID as text. |
| <code>data.sellerType</code> | <code>string</code> | Reported seller type code as text. |
| <code>data.shopId</code> | <code>string</code> | Taobao or Tmall shop ID as text. |
| <code>data.shopName</code> | <code>string</code> | Reported shop name. |
| <code>data.location</code> | <code>string</code> | Location label reported for the product. |
| <code>data.desc</code> | <code>string</code> | Product description returned as HTML text. |
| <code>data.videoUrl</code> | <code>string</code> | Product video URL, which may be empty. |
| <code>data.item_imgs</code> | <code>array</code> | Main and carousel images returned for the product. |
| <code>data.item_imgs[]</code> | <code>string</code> | URL of one product image. |
| <code>data.attribute</code> | <code>array</code> | Product attributes returned as name and value pairs. |
| <code>data.attribute[]</code> | <code>object</code> | One product attribute. |
| <code>data.attribute[].key</code> | <code>string</code> | Display name of the product attribute. |
| <code>data.attribute[].value</code> | <code>string</code> | Display value of the product attribute. |
| <code>data.skus</code> | <code>array</code> | SKU variants returned for the product. |
| <code>data.skus[]</code> | <code>object</code> | One SKU variant. |
| <code>data.skus[].skuId</code> | <code>integer</code> | Numeric identifier of this SKU. |
| <code>data.skus[].id</code> | <code>string</code> | Encoded specification combination, with colon-separated property and value IDs and semicolons between pairs. |
| <code>data.skus[].quantity</code> | <code>string</code> | Reported inventory quantity for this SKU as text. |
| <code>data.skus[].price</code> | <code>string</code> | Reported SKU price as text. In sampled responses it was expressed in hundredths of the product price unit. |
| <code>data.skus[].orign_price</code> | <code>integer</code> | Reported original-price value for this SKU as an integer. |
| <code>data.props</code> | <code>array</code> | Product specification properties and their available values. |
| <code>data.props[]</code> | <code>object</code> | One specification property. |
| <code>data.props[].pid</code> | <code>string</code> | Specification property ID as text. |
| <code>data.props[].pname</code> | <code>string</code> | Display name of this specification property. |
| <code>data.props[].values</code> | <code>array</code> | Available values for this specification property. |
| <code>data.props[].values[]</code> | <code>object</code> | One specification value. |
| <code>data.props[].values[].vid</code> | <code>string</code> | Specification value ID as text. |
| <code>data.props[].values[].vname</code> | <code>string</code> | Display name of the specification value. |
| <code>data.props[].values[].sku_url</code> | <code>string</code> | Image URL for the specification value, which may be empty. |
| <code>data.specs</code> | <code>object</code> | Specification lookup keyed by property display name. |
| <code>data.specs.{key}</code> | <code>object</code> | Values for the property, keyed by the property ID and value ID pair. |
| <code>data.specs.{key}.{key}</code> | <code>array</code> | Ordered specification value details. The first entry is the display name. The second is the image URL and may be empty. |
| <code>data.specs.{key}.{key}[]</code> | <code>string</code> | Specification display name or image URL at the indicated position. |
| <code>data.mainItemInfo</code> | <code>object</code> | Product information with reported prices and promotions. |
| <code>data.mainItemInfo.itemId</code> | <code>string</code> | Item ID reported in the promotion information, as text. |
| <code>data.mainItemInfo.itemName</code> | <code>string</code> | Product name shown in this information block. |
| <code>data.mainItemInfo.pic</code> | <code>string</code> | Main image URL reported in this information block. |
| <code>data.mainItemInfo.auctionIconUrl</code> | <code>string</code> | Product badge icon URL, when supplied. |
| <code>data.mainItemInfo.afterCouponAmountPrice</code> | <code>string</code> | Reported amount after coupons as text. |
| <code>data.mainItemInfo.hasSubsidy</code> | <code>string</code> | Reported subsidy indicator as text. |
| <code>data.mainItemInfo.promotionModel</code> | <code>object</code> | Promotional prices and display tags. |
| <code>data.mainItemInfo.promotionModel.promotionPriceModel</code> | <code>object</code> | Promotional prices and their display labels. |
| <code>data.mainItemInfo.promotionModel.promotionPriceModel.promotionPrice</code> | <code>string</code> | Reported promotional price as text. |
| <code>data.mainItemInfo.promotionModel.promotionPriceModel.promotionPriceDescDisplay</code> | <code>string</code> | Description shown next to the promotional price. |
| <code>data.mainItemInfo.promotionModel.promotionPriceModel.promotionPriceDisplay</code> | <code>string</code> | Promotional price formatted for display. |
| <code>data.mainItemInfo.promotionModel.promotionPriceModel.zkPrice</code> | <code>string</code> | Price text associated with the zkPriceDisplay value. |
| <code>data.mainItemInfo.promotionModel.promotionPriceModel.zkPriceDisplay</code> | <code>string</code> | Formatted display value for zkPrice. |
| <code>data.mainItemInfo.promotionModel.promotionTagModel</code> | <code>array</code> | Tags shown with promotions. |
| <code>data.mainItemInfo.promotionModel.promotionTagModel[]</code> | <code>object</code> | One promotional tag. |
| <code>data.mainItemInfo.promotionModel.promotionTagModel[].tagDisplay</code> | <code>string</code> | Displayed text for this tag. |
| <code>data.mainItemInfo.promotionModel.promotionTagModel[].tagType</code> | <code>string</code> | Type code reported for this tag as text. |
| <code>data.mainItemInfo.promotionModel.promotionTagModel[].tagTypeDisplay</code> | <code>string</code> | Display text for the tag type. |
| <code>data.mainItemInfo.promotionModel.promotionTagModel[].tagIcon</code> | <code>string</code> | Icon associated with this tag, when supplied. |
| <code>data.mainItemInfo.taobaoPromotionModel</code> | <code>object</code> | Taobao promotion details for the product. |
| <code>data.mainItemInfo.taobaoPromotionModel.finalPromotionInfo</code> | <code>object</code> | Final promotional price and any reported coupon details. |
| <code>data.mainItemInfo.taobaoPromotionModel.finalPromotionInfo.finalPromotionPrice</code> | <code>string</code> | Reported final promotional price as text. |
| <code>data.mainItemInfo.taobaoPromotionModel.finalPromotionInfo.couponPromotionModel</code> | <code>object</code> | Coupon information when returned. |
| <code>data.mainItemInfo.taobaoPromotionModel.finalPromotionInfo.couponPromotionModel.couponType</code> | <code>string</code> | Reported coupon type code as text. |
| <code>data.mainItemInfo.taobaoPromotionModel.finalPromotionInfo.couponPromotionModel.promotionTitle</code> | <code>string</code> | Title of the coupon promotion. |
| <code>data.mainItemInfo.taobaoPromotionModel.finalPromotionInfo.couponPromotionModel.couponPromotionDesc</code> | <code>string</code> | Displayed description of the coupon promotion. |

</div>

## Response Example

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

