---
title: "Shopee Item Details API (V1)"
description: "Retrieves Shopee item details by marketplace site and item ID."
aiUsagePrompt: true
---

# Shopee Item Details API \(V1\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/shopee/get-item-detail/v1\"")'
  :summary='JSON.parse("\"Item Details (V1)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/shopee/item-details-v1-en.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"Authentication token for this API service.\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"site\",\"in\":\"query\",\"description\":\"Shopee marketplace site.\\n\\nAvailable Values:\\n- `TW`: Taiwan\\n- `ID`: Indonesia\\n- `TH`: Thailand\",\"required\":true,\"schema\":{\"type\":\"string\",\"description\":\"Shopee marketplace site\",\"enum\":[\"TW\",\"ID\",\"TH\"]}},{\"name\":\"itemId\",\"in\":\"query\",\"description\":\"Shopee item ID.\",\"required\":true,\"schema\":{\"type\":\"integer\",\"format\":\"int64\"}}]")'
  :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\",\"description\":\"Normalized Shopee product details for the requested marketplace and item.\",\"properties\":{\"found\":{\"type\":\"boolean\",\"description\":\"Whether the requested Shopee product was found.\"},\"status\":{\"type\":\"string\",\"description\":\"Lookup status reported for the requested product.\"},\"site\":{\"type\":\"string\",\"description\":\"Shopee marketplace site code for this result.\"},\"market\":{\"type\":\"string\",\"description\":\"Marketplace name returned for the product.\"},\"currency\":{\"type\":\"string\",\"description\":\"Currency code for the returned marketplace result.\"},\"version\":{\"type\":\"string\",\"description\":\"Version label for the returned product data format.\"},\"updated_at\":{\"type\":\"string\",\"description\":\"Recorded update time of this result as an ISO 8601 timestamp with a time zone.\"},\"product\":{\"type\":\"object\",\"description\":\"Basic details of the Shopee product.\",\"properties\":{\"item_id\":{\"type\":\"integer\",\"description\":\"Numeric Shopee product ID.\"},\"shop_id\":{\"type\":\"integer\",\"description\":\"Numeric Shopee ID of the store selling the product.\"},\"name\":{\"type\":\"string\",\"description\":\"Product name displayed on Shopee.\"},\"image_id\":{\"type\":\"string\",\"description\":\"Identifier of the primary product image.\"},\"image_url\":{\"type\":\"string\",\"description\":\"URL of the primary product image.\"},\"status\":{\"type\":[\"string\",\"null\"],\"description\":\"Product status when available, or null when unavailable.\"},\"images\":{\"type\":\"array\",\"description\":\"Image URLs included with the product details.\",\"items\":{\"type\":\"string\",\"description\":\"URL of a product image.\"}}}},\"price\":{\"type\":\"object\",\"description\":\"Price information in the currency reported by this section.\",\"properties\":{\"currency\":{\"type\":\"string\",\"description\":\"Currency code for the reported price amounts.\"},\"current\":{\"type\":[\"number\",\"null\"],\"description\":\"Reported current price amount. It can be null when a price is unavailable.\"},\"min\":{\"type\":[\"number\",\"null\"],\"description\":\"Lower end of the reported price range, if available.\"},\"max\":{\"type\":[\"number\",\"null\"],\"description\":\"Upper end of the reported price range, if available.\"},\"display\":{\"type\":[\"number\",\"null\"],\"description\":\"Numeric price amount used for display, if available.\"},\"original\":{\"description\":\"Original price amount, when supplied. Observed results returned null.\"},\"original_min\":{\"description\":\"Lower end of the original price range, when supplied. Observed results returned null.\"},\"original_max\":{\"description\":\"Upper end of the original price range, when supplied. Observed results returned null.\"},\"discount_percent\":{\"description\":\"Reported discount value, when supplied. Observed results returned null.\"}}},\"sales\":{\"type\":\"object\",\"description\":\"Sales information available for this product.\",\"properties\":{\"current\":{\"description\":\"Current sales information, when supplied. Observed results returned null.\"},\"historical\":{\"description\":\"Historical sales information, when supplied. Observed results returned null.\"},\"display\":{\"type\":[\"string\",\"null\"],\"description\":\"Sales display label, when supplied.\"},\"display_count\":{\"type\":[\"integer\",\"null\"],\"description\":\"Numeric count reported with the sales display label, when supplied.\"}}},\"stock\":{\"type\":\"object\",\"description\":\"Stock information available for this product.\",\"properties\":{\"quantity\":{\"description\":\"Stock quantity, when supplied. Observed results returned null.\"},\"available\":{\"type\":[\"boolean\",\"null\"],\"description\":\"Whether stock is marked available, or null when unknown.\"},\"status\":{\"type\":[\"string\",\"null\"],\"description\":\"Stock status label, when supplied.\"}}},\"sku\":{\"type\":\"object\",\"description\":\"Product specification dimensions and combinations, when available.\",\"properties\":{\"dimension_count\":{\"type\":\"integer\",\"description\":\"Number of option dimensions returned for the product.\"},\"combination_count\":{\"type\":\"integer\",\"description\":\"Number of option combinations returned for the product.\"},\"models\":{\"type\":\"array\",\"description\":\"Additional SKU model records, when supplied.\"},\"dimensions\":{\"type\":\"array\",\"description\":\"Option dimensions returned for this product.\",\"items\":{\"type\":\"object\",\"description\":\"One option dimension for the product.\",\"properties\":{\"index\":{\"type\":\"integer\",\"description\":\"Zero-based index of the option dimension.\"},\"name\":{\"type\":\"string\",\"description\":\"Display name of the dimension.\"},\"options\":{\"type\":\"array\",\"description\":\"Options available for this dimension.\",\"items\":{\"type\":\"object\",\"description\":\"One option in the dimension.\",\"properties\":{\"index\":{\"type\":\"integer\",\"description\":\"Zero-based index of this option within the dimension.\"},\"name\":{\"type\":\"string\",\"description\":\"Display name of this option.\"},\"image_id\":{\"type\":\"string\",\"description\":\"Image identifier associated with this option.\"},\"image_url\":{\"type\":\"string\",\"description\":\"Image URL associated with this option.\"}}}}}}},\"combinations\":{\"type\":\"array\",\"description\":\"Option combinations returned for the product.\",\"items\":{\"type\":\"object\",\"description\":\"One returned option combination.\",\"properties\":{\"key\":{\"type\":\"string\",\"description\":\"Combination key returned for this set of selected options.\"},\"review_count\":{\"type\":\"integer\",\"description\":\"Number of reviews reported for this option combination.\"},\"selectors\":{\"type\":\"array\",\"description\":\"String selectors for the options that form this combination.\",\"items\":{\"type\":\"string\",\"description\":\"One selected option&#39;s string selector.\"}},\"options\":{\"type\":\"array\",\"description\":\"Selected options that make up this combination.\",\"items\":{\"type\":\"object\",\"description\":\"One selected option in the combination.\",\"properties\":{\"dimension_index\":{\"type\":\"integer\",\"description\":\"Zero-based index of the selected option&#39;s dimension.\"},\"dimension\":{\"type\":\"string\",\"description\":\"Display name of the selected option&#39;s dimension.\"},\"option_index\":{\"type\":\"integer\",\"description\":\"Zero-based index of the selected option within its dimension.\"},\"option\":{\"type\":\"string\",\"description\":\"Display name of the selected option.\"}}}}}}}}},\"reviews\":{\"type\":\"object\",\"description\":\"Product-level review information, when available.\",\"properties\":{\"tags\":{\"type\":\"array\",\"description\":\"Review tags returned for the product, when supplied.\"},\"insights\":{\"type\":\"array\",\"description\":\"Review insights returned for the product, when supplied.\"},\"size_filter_count\":{\"description\":\"Count associated with the review size filter, when supplied. Observed results returned null.\"}}},\"coverage\":{\"type\":\"object\",\"description\":\"Availability flags for the different sections of the result.\",\"properties\":{\"basic\":{\"type\":\"boolean\",\"description\":\"Whether basic product details are available.\"},\"price\":{\"type\":\"boolean\",\"description\":\"Whether price information is available.\"},\"sales\":{\"type\":\"boolean\",\"description\":\"Whether sales information is available.\"},\"stock\":{\"type\":\"boolean\",\"description\":\"Whether stock information is available.\"},\"sku\":{\"type\":\"boolean\",\"description\":\"Whether specification information is available.\"},\"reviews\":{\"type\":\"boolean\",\"description\":\"Whether product-level review information is available. Individual option combinations can still have review counts.\"}}}}}}},\"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/shopee/get-item-detail/v1\"")' />

<p>Retrieves Shopee item details by marketplace site and item ID.</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 | - | Authentication token for this API service. |
| <code>site</code> | query | <code>string</code> | Yes | - | Shopee marketplace site.<br /><br><br>Available Values:<br /><br>- <code>TW</code>: Taiwan<br /><br>- <code>ID</code>: Indonesia<br /><br>- <code>TH</code>: Thailand |
| <code>itemId</code> | query | <code>integer</code> | Yes | - | Shopee item ID. |

</div>

## Code Samples

::: code-group

```bash [🐚 cURL]
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/shopee/get-item-detail/v1?token=YOUR_API_KEY&site=TW&itemId=0'
```

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

Parameters:
- token (query): Authentication token for this API service. (Required)
- site (query): Shopee marketplace site.

Available Values:
- `TW`: Taiwan
- `ID`: Indonesia
- `TH`: Thailand (Required)
- itemId (query): Shopee 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/shopee/get-item-detail/v1?token=YOUR_API_KEY&site=TW&itemId=0"
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/shopee/get-item-detail/v1?token=YOUR_API_KEY&site=TW&itemId=0";

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/shopee/get-item-detail/v1?token=YOUR_API_KEY&site=TW&itemId=0";

        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/shopee/get-item-detail/v1?token=YOUR_API_KEY&site=TW&itemId=0"
	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/shopee/get-item-detail/v1?token=YOUR_API_KEY&site=TW&itemId=0';

$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/shopee/item-details-v1-en.json" target="_blank" style="font-size: 12px; color: var(--vp-c-text-3); text-decoration: none; opacity: 0.8;">[OpenAPI Definition (JSON)]</a>
</div>

## Response Fields

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

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

| Field path | Type | Description |
| --- | --- | --- |
| <code>data</code> | <code>object</code> | Normalized Shopee product details for the requested marketplace and item. |
| <code>data.found</code> | <code>boolean</code> | Whether the requested Shopee product was found. |
| <code>data.status</code> | <code>string</code> | Lookup status reported for the requested product. |
| <code>data.site</code> | <code>string</code> | Shopee marketplace site code for this result. |
| <code>data.market</code> | <code>string</code> | Marketplace name returned for the product. |
| <code>data.currency</code> | <code>string</code> | Currency code for the returned marketplace result. |
| <code>data.version</code> | <code>string</code> | Version label for the returned product data format. |
| <code>data.updated_at</code> | <code>string</code> | Recorded update time of this result as an ISO 8601 timestamp with a time zone. |
| <code>data.product</code> | <code>object</code> | Basic details of the Shopee product. |
| <code>data.product.item_id</code> | <code>integer</code> | Numeric Shopee product ID. |
| <code>data.product.shop_id</code> | <code>integer</code> | Numeric Shopee ID of the store selling the product. |
| <code>data.product.name</code> | <code>string</code> | Product name displayed on Shopee. |
| <code>data.product.image_id</code> | <code>string</code> | Identifier of the primary product image. |
| <code>data.product.image_url</code> | <code>string</code> | URL of the primary product image. |
| <code>data.product.status</code> | <code>string &#124; null</code> | Product status when available, or null when unavailable. |
| <code>data.product.images</code> | <code>array</code> | Image URLs included with the product details. |
| <code>data.product.images[]</code> | <code>string</code> | URL of a product image. |
| <code>data.price</code> | <code>object</code> | Price information in the currency reported by this section. |
| <code>data.price.currency</code> | <code>string</code> | Currency code for the reported price amounts. |
| <code>data.price.current</code> | <code>number &#124; null</code> | Reported current price amount. It can be null when a price is unavailable. |
| <code>data.price.min</code> | <code>number &#124; null</code> | Lower end of the reported price range, if available. |
| <code>data.price.max</code> | <code>number &#124; null</code> | Upper end of the reported price range, if available. |
| <code>data.price.display</code> | <code>number &#124; null</code> | Numeric price amount used for display, if available. |
| <code>data.price.original</code> | - | Original price amount, when supplied. Observed results returned null. |
| <code>data.price.original_min</code> | - | Lower end of the original price range, when supplied. Observed results returned null. |
| <code>data.price.original_max</code> | - | Upper end of the original price range, when supplied. Observed results returned null. |
| <code>data.price.discount_percent</code> | - | Reported discount value, when supplied. Observed results returned null. |
| <code>data.sales</code> | <code>object</code> | Sales information available for this product. |
| <code>data.sales.current</code> | - | Current sales information, when supplied. Observed results returned null. |
| <code>data.sales.historical</code> | - | Historical sales information, when supplied. Observed results returned null. |
| <code>data.sales.display</code> | <code>string &#124; null</code> | Sales display label, when supplied. |
| <code>data.sales.display_count</code> | <code>integer &#124; null</code> | Numeric count reported with the sales display label, when supplied. |
| <code>data.stock</code> | <code>object</code> | Stock information available for this product. |
| <code>data.stock.quantity</code> | - | Stock quantity, when supplied. Observed results returned null. |
| <code>data.stock.available</code> | <code>boolean &#124; null</code> | Whether stock is marked available, or null when unknown. |
| <code>data.stock.status</code> | <code>string &#124; null</code> | Stock status label, when supplied. |
| <code>data.sku</code> | <code>object</code> | Product specification dimensions and combinations, when available. |
| <code>data.sku.dimension_count</code> | <code>integer</code> | Number of option dimensions returned for the product. |
| <code>data.sku.combination_count</code> | <code>integer</code> | Number of option combinations returned for the product. |
| <code>data.sku.models</code> | <code>array</code> | Additional SKU model records, when supplied. |
| <code>data.sku.dimensions</code> | <code>array</code> | Option dimensions returned for this product. |
| <code>data.sku.dimensions[]</code> | <code>object</code> | One option dimension for the product. |
| <code>data.sku.dimensions[].index</code> | <code>integer</code> | Zero-based index of the option dimension. |
| <code>data.sku.dimensions[].name</code> | <code>string</code> | Display name of the dimension. |
| <code>data.sku.dimensions[].options</code> | <code>array</code> | Options available for this dimension. |
| <code>data.sku.dimensions[].options[]</code> | <code>object</code> | One option in the dimension. |
| <code>data.sku.dimensions[].options[].index</code> | <code>integer</code> | Zero-based index of this option within the dimension. |
| <code>data.sku.dimensions[].options[].name</code> | <code>string</code> | Display name of this option. |
| <code>data.sku.dimensions[].options[].image_id</code> | <code>string</code> | Image identifier associated with this option. |
| <code>data.sku.dimensions[].options[].image_url</code> | <code>string</code> | Image URL associated with this option. |
| <code>data.sku.combinations</code> | <code>array</code> | Option combinations returned for the product. |
| <code>data.sku.combinations[]</code> | <code>object</code> | One returned option combination. |
| <code>data.sku.combinations[].key</code> | <code>string</code> | Combination key returned for this set of selected options. |
| <code>data.sku.combinations[].review_count</code> | <code>integer</code> | Number of reviews reported for this option combination. |
| <code>data.sku.combinations[].selectors</code> | <code>array</code> | String selectors for the options that form this combination. |
| <code>data.sku.combinations[].selectors[]</code> | <code>string</code> | One selected option's string selector. |
| <code>data.sku.combinations[].options</code> | <code>array</code> | Selected options that make up this combination. |
| <code>data.sku.combinations[].options[]</code> | <code>object</code> | One selected option in the combination. |
| <code>data.sku.combinations[].options[].dimension_index</code> | <code>integer</code> | Zero-based index of the selected option's dimension. |
| <code>data.sku.combinations[].options[].dimension</code> | <code>string</code> | Display name of the selected option's dimension. |
| <code>data.sku.combinations[].options[].option_index</code> | <code>integer</code> | Zero-based index of the selected option within its dimension. |
| <code>data.sku.combinations[].options[].option</code> | <code>string</code> | Display name of the selected option. |
| <code>data.reviews</code> | <code>object</code> | Product-level review information, when available. |
| <code>data.reviews.tags</code> | <code>array</code> | Review tags returned for the product, when supplied. |
| <code>data.reviews.insights</code> | <code>array</code> | Review insights returned for the product, when supplied. |
| <code>data.reviews.size_filter_count</code> | - | Count associated with the review size filter, when supplied. Observed results returned null. |
| <code>data.coverage</code> | <code>object</code> | Availability flags for the different sections of the result. |
| <code>data.coverage.basic</code> | <code>boolean</code> | Whether basic product details are available. |
| <code>data.coverage.price</code> | <code>boolean</code> | Whether price information is available. |
| <code>data.coverage.sales</code> | <code>boolean</code> | Whether sales information is available. |
| <code>data.coverage.stock</code> | <code>boolean</code> | Whether stock information is available. |
| <code>data.coverage.sku</code> | <code>boolean</code> | Whether specification information is available. |
| <code>data.coverage.reviews</code> | <code>boolean</code> | Whether product-level review information is available. Individual option combinations can still have review counts. |

</div>

## Response Example

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

