---
title: "1688 Product Details API (V2)"
description: "Retrieves 1688 product details by item ID with an optional output language and dropshipping scene. Use it to inspect a known product during sourcing and catalog research."
aiUsagePrompt: true
---

# 1688 Product Details API \(V2\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/1688/get-item-detail/v2\"")'
  :summary='JSON.parse("\"Product Details (V2)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/1688/product-details-v2-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\":\"1688 product ID.\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"scene\",\"in\":\"query\",\"description\":\"Optional dropshipping pricing scene.\\n\\nAvailable Values:\\n- `drop_shipping`: Dropshipping\",\"required\":false,\"schema\":{\"type\":\"string\",\"description\":\"Optional product pricing scene\",\"enum\":[\"drop_shipping\"]}},{\"name\":\"optimizeTitle\",\"in\":\"query\",\"description\":\"Optimize Chinese titles by removing non-core words.\",\"required\":false,\"schema\":{\"type\":\"boolean\",\"default\":false}},{\"name\":\"language\",\"in\":\"query\",\"description\":\"Output language.\\n\\nAvailable Values:\\n- `en`: English\\n- `zh`: Chinese\\n- `ru`: Russian\\n- `th`: Thai\\n- `pt`: Portuguese\\n- `es`: Spanish\\n- `tr`: Turkish\\n- `vi`: Vietnamese\\n- `ja`: Japanese\\n- `ko`: Korean\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"zh\",\"description\":\"Supported output language\",\"enum\":[\"en\",\"zh\",\"ru\",\"th\",\"pt\",\"es\",\"tr\",\"vi\",\"ja\",\"ko\"]}}]")'
  :requestBody='JSON.parse("null")'
  :responses='JSON.parse("{\"200\":{\"description\":\"OK\",\"content\":{\"application/json\":{\"schema\":{\"if\":{\"properties\":{\"code\":{\"const\":0}},\"required\":[\"code\"]},\"then\":{\"properties\":{\"data\":{\"description\":\"The fields below apply to object data. A product-not-found response returns null.\",\"properties\":{\"item_id\":{\"type\":\"integer\",\"description\":\"1688 product ID, returned as an integer.\"},\"title\":{\"type\":\"string\",\"description\":\"Product display title. The requested language and title optimization can affect this text.\"},\"category_id\":{\"type\":\"integer\",\"description\":\"Category ID assigned to the product.\"},\"root_category_id\":{\"type\":\"integer\",\"description\":\"Top-level category ID assigned to the product.\"},\"offer_unit\":{\"type\":\"string\",\"description\":\"Sales unit displayed for the product.\"},\"sale_count\":{\"type\":\"string\",\"description\":\"Sales count display text, which can be empty.\"},\"sale_info\":{\"type\":\"object\",\"description\":\"Sales metrics returned for the product.\",\"properties\":{\"sale_quantity_year\":{\"type\":\"integer\",\"description\":\"Annual sales quantity reported for the product.\"}}},\"stock\":{\"type\":\"integer\",\"description\":\"Stock quantity reported at the product level.\"},\"is_sold_out\":{\"type\":\"boolean\",\"description\":\"Whether the product is marked as sold out.\"},\"created_at\":{\"type\":\"integer\",\"description\":\"Product creation time as Unix epoch milliseconds.\"},\"product_url\":{\"type\":\"string\",\"description\":\"Link to the product page on 1688.\"},\"product_props\":{\"type\":\"array\",\"description\":\"Product attributes keyed by their displayed attribute names. The requested language can affect the displayed names and values.\",\"items\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"Text value for the displayed attribute name in the key.\"},\"description\":\"An attribute object whose keys are displayed attribute names.\"}},\"main_imgs\":{\"type\":\"array\",\"description\":\"Product image URLs.\",\"items\":{\"type\":\"string\",\"description\":\"URL of a product image.\"}},\"video_url\":{\"type\":\"string\",\"description\":\"Product video URL. It can be an empty string.\"},\"currency\":{\"type\":\"string\",\"description\":\"Currency code reported for the product prices.\"},\"moq\":{\"type\":\"integer\",\"description\":\"Minimum order quantity reported for the product.\"},\"price_info\":{\"type\":\"object\",\"description\":\"Product-level prices, returned as text.\",\"properties\":{\"price\":{\"type\":\"string\",\"description\":\"Price reported at the product level, returned as text.\"},\"price_min\":{\"type\":\"string\",\"description\":\"Minimum price reported for the product, returned as text.\"},\"price_max\":{\"type\":\"string\",\"description\":\"Maximum price reported for the product, returned as text.\"},\"origin_price_min\":{\"type\":\"string\",\"description\":\"Minimum original price reported for the product, returned as text.\"},\"origin_price_max\":{\"type\":\"string\",\"description\":\"Maximum original price reported for the product, returned as text.\"},\"discount_price\":{\"type\":\"string\",\"description\":\"Reported discount price, returned as text. It can be an empty string.\"}}},\"tiered_price_info\":{\"type\":\"object\",\"description\":\"Quantity-based pricing reported for the product.\",\"properties\":{\"begin_num\":{\"type\":\"integer\",\"description\":\"Starting order quantity reported in the tiered-pricing information.\"},\"prices\":{\"type\":\"array\",\"description\":\"Reported price tiers by order quantity. This list can be empty.\",\"items\":{\"type\":\"object\",\"description\":\"One price tier and its qualifying quantity.\",\"properties\":{\"beginAmount\":{\"type\":\"string\",\"description\":\"Starting order quantity for this tier, returned as text.\"},\"price\":{\"type\":\"string\",\"description\":\"Price reported for this quantity tier, returned as text.\"}}}}}},\"mixed_batch\":{\"type\":[\"object\",\"null\"],\"description\":\"Mixed-batch purchasing information, returned as an object or null.\",\"properties\":{\"mix_amount\":{\"type\":[\"integer\",\"null\"],\"description\":\"Amount reported for mixed-batch purchasing. It can be null.\"},\"mix_num\":{\"type\":\"integer\",\"description\":\"Order quantity reported in the mixed-batch purchasing rules.\"}}},\"promotions\":{\"type\":\"array\",\"description\":\"Promotions returned for the product. This list can be empty.\",\"items\":{\"type\":\"object\",\"description\":\"One reported product promotion.\",\"properties\":{\"promotion_id\":{\"type\":\"string\",\"description\":\"Promotion ID. It can be an empty string.\"},\"title\":{\"type\":\"string\",\"description\":\"Display title of the promotion.\"},\"content\":{\"type\":\"string\",\"description\":\"Display text describing the promotion.\"},\"start_time\":{\"type\":\"integer\",\"description\":\"Start time reported for the promotion.\"},\"type\":{\"type\":\"string\",\"description\":\"Promotion type code reported by the platform.\"},\"type_name\":{\"type\":\"string\",\"description\":\"Display name of the promotion type.\"}}}},\"sku_props\":{\"type\":\"array\",\"description\":\"Specification properties and their available options.\",\"items\":{\"type\":\"object\",\"description\":\"A specification property available for the product.\",\"properties\":{\"pid\":{\"type\":\"string\",\"description\":\"Specification property ID, returned as a string.\"},\"prop_name\":{\"type\":\"string\",\"description\":\"Display name of the specification property.\"},\"values\":{\"type\":\"array\",\"description\":\"Available options for this specification property.\",\"items\":{\"type\":\"object\",\"description\":\"One selectable specification option.\",\"properties\":{\"vid\":{\"type\":\"string\",\"description\":\"Specification option ID, returned as a string.\"},\"name\":{\"type\":\"string\",\"description\":\"Display name of the specification option.\"},\"imageUrl\":{\"type\":\"string\",\"description\":\"Image URL for the option. It can be an empty string.\"}}}}}}},\"skus\":{\"type\":\"array\",\"description\":\"SKU variants and their reported prices and stock quantities.\",\"items\":{\"type\":\"object\",\"description\":\"One SKU variant and its selected specifications.\",\"properties\":{\"skuid\":{\"type\":\"string\",\"description\":\"SKU ID, returned as a string.\"},\"specid\":{\"type\":\"string\",\"description\":\"Identifier for the SKU specification combination, returned as a string.\"},\"sale_price\":{\"type\":\"string\",\"description\":\"Selling price reported for the SKU, returned as text.\"},\"origin_price\":{\"type\":\"string\",\"description\":\"Original price reported for the SKU, returned as text.\"},\"stock\":{\"type\":\"integer\",\"description\":\"Available stock quantity reported for the SKU.\"},\"props_ids\":{\"type\":\"string\",\"description\":\"Text containing the property and option IDs selected for this SKU.\"},\"props_names\":{\"type\":\"string\",\"description\":\"Text containing the displayed property and option names selected for this SKU.\"},\"package_info\":{\"type\":\"object\",\"description\":\"Package dimensions and weight reported for this SKU.\",\"properties\":{\"width\":{\"type\":\"number\",\"description\":\"Package width reported for this SKU.\"},\"height\":{\"type\":\"number\",\"description\":\"Package height reported for this SKU.\"},\"length\":{\"type\":\"number\",\"description\":\"Package length reported for this SKU.\"},\"volume\":{\"type\":\"number\",\"description\":\"Package volume reported for this SKU.\"},\"weight\":{\"type\":\"number\",\"description\":\"Package weight reported for this SKU.\"}}}}}},\"shop_info\":{\"type\":\"object\",\"description\":\"1688 storefront and seller identifiers for the product.\",\"properties\":{\"shop_name\":{\"type\":\"string\",\"description\":\"Display name of the 1688 storefront.\"},\"shop_url\":{\"type\":\"string\",\"description\":\"Link to the 1688 storefront.\"},\"seller_login_id\":{\"type\":\"string\",\"description\":\"Seller login name displayed by the platform.\"},\"seller_user_id\":{\"type\":\"string\",\"description\":\"1688 seller user ID, returned as a string.\"},\"seller_member_id\":{\"type\":\"string\",\"description\":\"1688 seller member ID, returned as a string.\"}}},\"delivery_info\":{\"type\":\"object\",\"description\":\"Shipping information returned for the product.\",\"properties\":{\"location\":{\"type\":\"string\",\"description\":\"Shipping origin display text.\"},\"location_code\":{\"type\":\"string\",\"description\":\"Regional code for the reported shipping origin.\"},\"delivery_fee\":{\"type\":\"number\",\"description\":\"Shipping fee reported for the product.\"},\"unit_weight\":{\"type\":[\"number\",\"null\"],\"description\":\"Reported unit weight. It can be null.\"},\"template_id\":{\"type\":\"string\",\"description\":\"Identifier of the platform shipping template.\"}}},\"service_tags\":{\"type\":\"array\",\"description\":\"Service tags displayed for the product.\",\"items\":{\"type\":\"string\",\"description\":\"Display text of a service tag.\"}}}}}},\"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/1688/get-item-detail/v2\"")' />

<p>Retrieves 1688 product details by item ID with an optional output language and dropshipping scene. Use it to inspect a known product during sourcing and catalog research.</p>

## Highlights

::: info Guidance
<p>A product-not-found result is a successful, billable lookup and returns null data.</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 | - | 1688 product ID. |
| <code>scene</code> | query | <code>string</code> | No | - | Optional dropshipping pricing scene.<br /><br><br>Available Values:<br /><br>- <code>drop_shipping</code>: Dropshipping |
| <code>optimizeTitle</code> | query | <code>boolean</code> | No | <code>false</code> | Optimize Chinese titles by removing non-core words. |
| <code>language</code> | query | <code>string</code> | No | <code>zh</code> | Output language.<br /><br><br>Available Values:<br /><br>- <code>en</code>: English<br /><br>- <code>zh</code>: Chinese<br /><br>- <code>ru</code>: Russian<br /><br>- <code>th</code>: Thai<br /><br>- <code>pt</code>: Portuguese<br /><br>- <code>es</code>: Spanish<br /><br>- <code>tr</code>: Turkish<br /><br>- <code>vi</code>: Vietnamese<br /><br>- <code>ja</code>: Japanese<br /><br>- <code>ko</code>: Korean |

</div>

## Code Samples

::: code-group

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

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

Parameters:
- token (query): Access token for this API service. (Required)
- itemId (query): 1688 product ID. (Required)
- scene (query): Optional dropshipping pricing scene.

Available Values:
- `drop_shipping`: Dropshipping
- optimizeTitle (query): Optimize Chinese titles by removing non-core words.
- language (query): Output language.

Available Values:
- `en`: English
- `zh`: Chinese
- `ru`: Russian
- `th`: Thai
- `pt`: Portuguese
- `es`: Spanish
- `tr`: Turkish
- `vi`: Vietnamese
- `ja`: Japanese
- `ko`: Korean

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/1688/get-item-detail/v2?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/1688/get-item-detail/v2?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/1688/get-item-detail/v2?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/1688/get-item-detail/v2?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/1688/get-item-detail/v2?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/1688/product-details-v2-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> | - | The fields below apply to object data. A product-not-found response returns null. |
| <code>data.item_id</code> | <code>integer</code> | 1688 product ID, returned as an integer. |
| <code>data.title</code> | <code>string</code> | Product display title. The requested language and title optimization can affect this text. |
| <code>data.category_id</code> | <code>integer</code> | Category ID assigned to the product. |
| <code>data.root_category_id</code> | <code>integer</code> | Top-level category ID assigned to the product. |
| <code>data.offer_unit</code> | <code>string</code> | Sales unit displayed for the product. |
| <code>data.sale_count</code> | <code>string</code> | Sales count display text, which can be empty. |
| <code>data.sale_info</code> | <code>object</code> | Sales metrics returned for the product. |
| <code>data.sale_info.sale_quantity_year</code> | <code>integer</code> | Annual sales quantity reported for the product. |
| <code>data.stock</code> | <code>integer</code> | Stock quantity reported at the product level. |
| <code>data.is_sold_out</code> | <code>boolean</code> | Whether the product is marked as sold out. |
| <code>data.created_at</code> | <code>integer</code> | Product creation time as Unix epoch milliseconds. |
| <code>data.product_url</code> | <code>string</code> | Link to the product page on 1688. |
| <code>data.product_props</code> | <code>array</code> | Product attributes keyed by their displayed attribute names. The requested language can affect the displayed names and values. |
| <code>data.product_props[]</code> | <code>object</code> | An attribute object whose keys are displayed attribute names. |
| <code>data.product_props[].{key}</code> | <code>string</code> | Text value for the displayed attribute name in the key. |
| <code>data.main_imgs</code> | <code>array</code> | Product image URLs. |
| <code>data.main_imgs[]</code> | <code>string</code> | URL of a product image. |
| <code>data.video_url</code> | <code>string</code> | Product video URL. It can be an empty string. |
| <code>data.currency</code> | <code>string</code> | Currency code reported for the product prices. |
| <code>data.moq</code> | <code>integer</code> | Minimum order quantity reported for the product. |
| <code>data.price_info</code> | <code>object</code> | Product-level prices, returned as text. |
| <code>data.price_info.price</code> | <code>string</code> | Price reported at the product level, returned as text. |
| <code>data.price_info.price_min</code> | <code>string</code> | Minimum price reported for the product, returned as text. |
| <code>data.price_info.price_max</code> | <code>string</code> | Maximum price reported for the product, returned as text. |
| <code>data.price_info.origin_price_min</code> | <code>string</code> | Minimum original price reported for the product, returned as text. |
| <code>data.price_info.origin_price_max</code> | <code>string</code> | Maximum original price reported for the product, returned as text. |
| <code>data.price_info.discount_price</code> | <code>string</code> | Reported discount price, returned as text. It can be an empty string. |
| <code>data.tiered_price_info</code> | <code>object</code> | Quantity-based pricing reported for the product. |
| <code>data.tiered_price_info.begin_num</code> | <code>integer</code> | Starting order quantity reported in the tiered-pricing information. |
| <code>data.tiered_price_info.prices</code> | <code>array</code> | Reported price tiers by order quantity. This list can be empty. |
| <code>data.tiered_price_info.prices[]</code> | <code>object</code> | One price tier and its qualifying quantity. |
| <code>data.tiered_price_info.prices[].beginAmount</code> | <code>string</code> | Starting order quantity for this tier, returned as text. |
| <code>data.tiered_price_info.prices[].price</code> | <code>string</code> | Price reported for this quantity tier, returned as text. |
| <code>data.mixed_batch</code> | <code>object &#124; null</code> | Mixed-batch purchasing information, returned as an object or null. |
| <code>data.mixed_batch.mix_amount</code> | <code>integer &#124; null</code> | Amount reported for mixed-batch purchasing. It can be null. |
| <code>data.mixed_batch.mix_num</code> | <code>integer</code> | Order quantity reported in the mixed-batch purchasing rules. |
| <code>data.promotions</code> | <code>array</code> | Promotions returned for the product. This list can be empty. |
| <code>data.promotions[]</code> | <code>object</code> | One reported product promotion. |
| <code>data.promotions[].promotion_id</code> | <code>string</code> | Promotion ID. It can be an empty string. |
| <code>data.promotions[].title</code> | <code>string</code> | Display title of the promotion. |
| <code>data.promotions[].content</code> | <code>string</code> | Display text describing the promotion. |
| <code>data.promotions[].start_time</code> | <code>integer</code> | Start time reported for the promotion. |
| <code>data.promotions[].type</code> | <code>string</code> | Promotion type code reported by the platform. |
| <code>data.promotions[].type_name</code> | <code>string</code> | Display name of the promotion type. |
| <code>data.sku_props</code> | <code>array</code> | Specification properties and their available options. |
| <code>data.sku_props[]</code> | <code>object</code> | A specification property available for the product. |
| <code>data.sku_props[].pid</code> | <code>string</code> | Specification property ID, returned as a string. |
| <code>data.sku_props[].prop_name</code> | <code>string</code> | Display name of the specification property. |
| <code>data.sku_props[].values</code> | <code>array</code> | Available options for this specification property. |
| <code>data.sku_props[].values[]</code> | <code>object</code> | One selectable specification option. |
| <code>data.sku_props[].values[].vid</code> | <code>string</code> | Specification option ID, returned as a string. |
| <code>data.sku_props[].values[].name</code> | <code>string</code> | Display name of the specification option. |
| <code>data.sku_props[].values[].imageUrl</code> | <code>string</code> | Image URL for the option. It can be an empty string. |
| <code>data.skus</code> | <code>array</code> | SKU variants and their reported prices and stock quantities. |
| <code>data.skus[]</code> | <code>object</code> | One SKU variant and its selected specifications. |
| <code>data.skus[].skuid</code> | <code>string</code> | SKU ID, returned as a string. |
| <code>data.skus[].specid</code> | <code>string</code> | Identifier for the SKU specification combination, returned as a string. |
| <code>data.skus[].sale_price</code> | <code>string</code> | Selling price reported for the SKU, returned as text. |
| <code>data.skus[].origin_price</code> | <code>string</code> | Original price reported for the SKU, returned as text. |
| <code>data.skus[].stock</code> | <code>integer</code> | Available stock quantity reported for the SKU. |
| <code>data.skus[].props_ids</code> | <code>string</code> | Text containing the property and option IDs selected for this SKU. |
| <code>data.skus[].props_names</code> | <code>string</code> | Text containing the displayed property and option names selected for this SKU. |
| <code>data.skus[].package_info</code> | <code>object</code> | Package dimensions and weight reported for this SKU. |
| <code>data.skus[].package_info.width</code> | <code>number</code> | Package width reported for this SKU. |
| <code>data.skus[].package_info.height</code> | <code>number</code> | Package height reported for this SKU. |
| <code>data.skus[].package_info.length</code> | <code>number</code> | Package length reported for this SKU. |
| <code>data.skus[].package_info.volume</code> | <code>number</code> | Package volume reported for this SKU. |
| <code>data.skus[].package_info.weight</code> | <code>number</code> | Package weight reported for this SKU. |
| <code>data.shop_info</code> | <code>object</code> | 1688 storefront and seller identifiers for the product. |
| <code>data.shop_info.shop_name</code> | <code>string</code> | Display name of the 1688 storefront. |
| <code>data.shop_info.shop_url</code> | <code>string</code> | Link to the 1688 storefront. |
| <code>data.shop_info.seller_login_id</code> | <code>string</code> | Seller login name displayed by the platform. |
| <code>data.shop_info.seller_user_id</code> | <code>string</code> | 1688 seller user ID, returned as a string. |
| <code>data.shop_info.seller_member_id</code> | <code>string</code> | 1688 seller member ID, returned as a string. |
| <code>data.delivery_info</code> | <code>object</code> | Shipping information returned for the product. |
| <code>data.delivery_info.location</code> | <code>string</code> | Shipping origin display text. |
| <code>data.delivery_info.location_code</code> | <code>string</code> | Regional code for the reported shipping origin. |
| <code>data.delivery_info.delivery_fee</code> | <code>number</code> | Shipping fee reported for the product. |
| <code>data.delivery_info.unit_weight</code> | <code>number &#124; null</code> | Reported unit weight. It can be null. |
| <code>data.delivery_info.template_id</code> | <code>string</code> | Identifier of the platform shipping template. |
| <code>data.service_tags</code> | <code>array</code> | Service tags displayed for the product. |
| <code>data.service_tags[]</code> | <code>string</code> | Display text of a service tag. |

</div>

## Response Example

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

