---
title: "Taobao dan Tmall Detail Produk API (V3)"
description: "Mendapatkan detail produk Taobao atau Tmall berdasarkan ID item melalui endpoint V3. Gunakan untuk pencarian produk langsung untuk penelitian katalog, pemantauan produk, atau analisis e-commerce."
lastUpdated: false
aiUsagePrompt: true
---

# Taobao dan Tmall Detail Produk API \(V3\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/taobao/get-item-detail/v3\"")'
  :summary='JSON.parse("\"Detail Produk (V3)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/taobao-and-tmall/product-details-v3-id.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"Token akses untuk layanan API ini.\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"itemId\",\"in\":\"query\",\"description\":\"Identifikasi produk unik di Taobao/Tmall (ID item).\",\"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\",\"description\":\"Detail produk Taobao atau Tmall, media, varian SKU, dan informasi penjual.\",\"properties\":{\"num_iid\":{\"type\":\"string\",\"description\":\"ID item Taobao atau Tmall, diberikan dalam bentuk string.\"},\"title\":{\"type\":\"string\",\"description\":\"Judul tampilan item.\"},\"brand\":{\"type\":\"string\",\"description\":\"Nama merek yang dilaporkan untuk item tersebut.\"},\"cid\":{\"type\":\"string\",\"description\":\"ID kategori marketplace untuk item tersebut, diberikan dalam bentuk teks.\"},\"location\":{\"type\":\"string\",\"description\":\"Lokasi yang ditampilkan untuk item.\"},\"detail_url\":{\"type\":\"string\",\"description\":\"Tautan ke halaman detail produk.\"},\"pic_url\":{\"type\":\"string\",\"description\":\"URL gambar utama produk.\"},\"desc\":{\"type\":\"string\",\"description\":\"Deskripsi produk dalam bentuk teks HTML.\"},\"desc_img\":{\"type\":\"array\",\"description\":\"URL gambar yang dilaporkan untuk deskripsi produk.\",\"items\":{\"type\":\"string\",\"description\":\"URL gambar deskripsi produk.\"}},\"item_imgs\":{\"type\":\"array\",\"description\":\"Gambar yang diberikan untuk listing produk.\",\"items\":{\"type\":\"object\",\"description\":\"Satu rekaman gambar produk.\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"URL gambar produk.\"}}}},\"video\":{\"type\":\"object\",\"description\":\"Informasi video yang diberikan bersama item tersebut.\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"URL video produk. Bisa berupa string kosong.\"}}},\"price\":{\"type\":\"string\",\"description\":\"Harga item yang dilaporkan dalam respons, diberikan dalam bentuk teks.\"},\"orginal_price\":{\"type\":\"string\",\"description\":\"Harga asli item yang dilaporkan, diberikan dalam bentuk teks.\"},\"num\":{\"type\":\"integer\",\"description\":\"Jumlah yang dilaporkan pada tingkat item.\"},\"sales\":{\"type\":\"integer\",\"description\":\"Jumlah penjualan yang dilaporkan untuk item tersebut.\"},\"total_sold\":{\"type\":[\"string\",\"integer\"],\"description\":\"Total penjualan yang dilaporkan, dalam bentuk teks atau bilangan bulat.\"},\"skus\":{\"type\":\"object\",\"description\":\"Informasi SKU dan baris varian yang dilaporkan.\",\"properties\":{\"sku\":{\"type\":\"array\",\"description\":\"Baris varian SKU yang dilaporkan untuk item tersebut.\",\"items\":{\"type\":\"object\",\"description\":\"Satu SKU beserta spesifikasinya, harga, dan jumlah yang dipilih.\",\"properties\":{\"sku_id\":{\"type\":[\"string\",\"integer\"],\"description\":\"ID SKU, dalam bentuk string atau bilangan bulat.\"},\"properties\":{\"type\":\"string\",\"description\":\"Jalur spesifikasi SKU, terdiri dari pasangan ID properti dan ID opsi.\"},\"properties_name\":{\"type\":\"string\",\"description\":\"Label properti dan opsi spesifikasi untuk SKU ini, dalam bentuk teks.\"},\"price\":{\"type\":\"number\",\"description\":\"Harga numerik yang dilaporkan untuk SKU.\"},\"orginal_price\":{\"type\":\"number\",\"description\":\"Harga asli numerik yang dilaporkan untuk SKU.\"},\"quantity\":{\"type\":[\"string\",\"integer\"],\"description\":\"Jumlah yang dilaporkan untuk SKU, dalam bentuk teks atau bilangan bulat.\"}}}}}},\"props\":{\"type\":\"array\",\"description\":\"Atribut item yang dilaporkan dalam bentuk pasangan nama dan nilai.\",\"items\":{\"type\":\"object\",\"description\":\"Satu atribut produk yang deskriptif.\",\"properties\":{\"name\":{\"type\":\"string\",\"description\":\"Nama tampilan atribut produk.\"},\"value\":{\"type\":\"string\",\"description\":\"Nilai tampilan atribut produk.\"}}}},\"props_name\":{\"type\":\"string\",\"description\":\"Label properti dan opsi spesifikasi, dalam bentuk string teks.\"},\"props_list\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"Label tampilan untuk pasangan properti dan opsi dalam peta tersebut.\"},\"description\":\"Peta label spesifikasi, dikaitkan dengan pasangan ID properti dan ID opsi.\"},\"prop_imgs\":{\"type\":\"object\",\"description\":\"Koleksi gambar spesifikasi yang dilaporkan bersama dengan item.\",\"properties\":{\"prop_img\":{\"type\":\"array\",\"description\":\"Gambar yang terkait dengan opsi spesifikasi.\",\"items\":{\"type\":\"object\",\"description\":\"Gambar untuk satu opsi spesifikasi.\",\"properties\":{\"properties\":{\"type\":\"string\",\"description\":\"Pasangan ID properti dan opsi yang terkait dengan gambar tersebut.\"},\"url\":{\"type\":\"string\",\"description\":\"URL gambar opsi spesifikasi.\"}}}}}},\"props_imgs\":{\"type\":\"object\",\"description\":\"Koleksi gambar spesifikasi tambahan yang dilaporkan bersama dengan item.\",\"properties\":{\"prop_img\":{\"type\":\"array\",\"description\":\"Gambar yang terkait dengan opsi spesifikasi.\",\"items\":{\"type\":\"object\",\"description\":\"Gambar untuk satu opsi spesifikasi.\",\"properties\":{\"properties\":{\"type\":\"string\",\"description\":\"Pasangan ID properti dan opsi yang terkait dengan gambar tersebut.\"},\"url\":{\"type\":\"string\",\"description\":\"URL gambar opsi spesifikasi.\"}}}}}},\"props_img\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"URL gambar untuk pasangan properti dan opsi dalam peta tersebut.\"},\"description\":\"Peta URL gambar spesifikasi, dikaitkan dengan pasangan ID properti dan ID opsi.\"},\"seller_id\":{\"type\":\"string\",\"description\":\"ID Penjual, dikembalikan sebagai string.\"},\"shop_id\":{\"type\":\"string\",\"description\":\"ID Toko, dikembalikan sebagai string.\"},\"nick\":{\"type\":\"string\",\"description\":\"Nama samaran Penjual yang dilaporkan bersama dengan item.\"},\"tmall\":{\"type\":\"boolean\",\"description\":\"Apakah item ditandai sebagai listing Tmall.\"},\"seller_info\":{\"type\":\"object\",\"description\":\"Informasi Penjual dan toko yang terkait dengan item.\",\"properties\":{\"nick\":{\"type\":\"string\",\"description\":\"Nama samaran penjual yang ditampilkan.\"},\"shop_name\":{\"type\":\"string\",\"description\":\"Nama tampilan toko.\"},\"zhuy\":{\"type\":\"string\",\"description\":\"Tautan ke beranda penjual.\"}}}}}}},\"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\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"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\":\"Parameter atau isi permintaan yang tidak valid\",\"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\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"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\":\"Token akses yang tidak valid atau tidak aktif\",\"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\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"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\":\"Izin ditolak\",\"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\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"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\":\"Laju permintaan atau batas kuota harian terlampaui\",\"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\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"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\":\"Kesalahan server internal\",\"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\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"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\":\"Layanan sementara tidak tersedia\",\"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\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"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\":\"API produksi global (default)\"}]")'
  :security='JSON.parse("[]")'
  :securitySchemes='JSON.parse("{}")'
  :schemas='JSON.parse("{}")'
/>

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

<p>Mendapatkan detail produk Taobao atau Tmall berdasarkan ID item melalui endpoint V3. Gunakan untuk pencarian produk langsung untuk penelitian katalog, pemantauan produk, atau analisis e-commerce.</p>

## Hal-hal penting

::: info Kemampuan · Harga
<p>Mengembalikan harga produk asli dan harga SKU.</p>
:::

::: info Kemampuan · Atribut
<p>Menyediakan atribut produk sebagai nama dan nilai.</p>
:::

::: info Kemampuan · Opsi SKU
<p>Menyediakan identifikasi SKU, opsi spesifikasi, dan informasi jumlah.</p>
:::

::: info Kemampuan · Gambar utama dan gambar carousel
<p>Menyediakan gambar utama dan gambar carousel produk.</p>
:::

::: info Kemampuan · Gambar deskripsi
<p>Menyediakan daftar gambar deskripsi terpisah dan HTML deskripsi.</p>
:::

## Parameter

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

| Nama | Lokasi | Jenis | Wajib | Bawaan | Deskripsi |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | query | <code>string</code> | Ya | - | Token akses untuk layanan API ini. |
| <code>itemId</code> | query | <code>string</code> | Ya | - | Identifikasi produk unik di Taobao/Tmall (ID item). |

</div>

## Contoh Kode

::: code-group

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

```text [🤖 Prompt AI]
Saya ingin menggunakan API "Detail Produk (V3)" dari JustOneAPI.
URL dasar: https://api.justoneapi.com.
Jalur API: /api/taobao/get-item-detail/v3?token=YOUR_API_KEY&itemId=VALUE
Endpoint API: BASE_URL + /api/taobao/get-item-detail/v3?token=YOUR_API_KEY&itemId=VALUE
Metode HTTP: GET
Autentikasi: Tambahkan parameter query "token" ke URL.
Definisi OpenAPI: https://docs.justoneapi.com/openapi/taobao-and-tmall/product-details-v3-id.json

Parameter:
- token (query): Token akses untuk layanan API ini. (Wajib)
- itemId (query): Identifikasi produk unik di Taobao/Tmall (ID item). (Wajib)

Format Kembalian: tangani dengan aman JSON atau teks sesuai dengan Content-Type yang sebenarnya.

Penanganan respons dan kode kesalahan:
1. Tentukan hasil pemrosesan dari kolom "code" dalam isi respons (code 0 berarti berhasil).
2. Batas waktu yang disarankan: Atur batas waktu permintaan menjadi 120 detik. Jika 120 detik terlalu lama untuk kebutuhan Anda, gunakan setidaknya 60 detik. Sebagian kecil permintaan mungkin mencapai batas waktu sebelum hasil diterima.
3. Kode hasil:
   - 0: Berhasil
   - 100: Token tidak valid atau tidak aktif
   - 301: Gagal mengambil data. Silakan coba lagi.
   - 302: Batas frekuensi permintaan terlampaui
   - 303: Kuota harian terlampaui
   - 400: Parameter tidak valid
   - 500: Kesalahan internal server
   - 600: Akses ditolak
   - 601: Saldo tidak mencukupi
   - 602: Batas anggaran token tercapai
4. Kode 601 berarti saldo bersama akun tidak mencukupi. Kode 602 berarti token API yang digunakan telah mencapai batas anggaran kumulatifnya sendiri. Menetapkan batas anggaran token tidak memindahkan dana dari saldo bersama akun.

Tolong bantu saya menulis skrip dalam bahasa pemrograman favorit saya untuk memanggil API ini dan menangani responsnya.
```

```python [🐍 Python]
import requests

BASE_URL = "https://api.justoneapi.com"  # Diberikan oleh server OpenAPI

url = BASE_URL + "/api/taobao/get-item-detail/v3?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"; // Diberikan oleh server OpenAPI
const url = BASE_URL + "/api/taobao/get-item-detail/v3?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"; // Diberikan oleh server OpenAPI
        final String url = BASE_URL + "/api/taobao/get-item-detail/v3?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" // Diberikan oleh server OpenAPI

func main() {
	client := &http.Client{Timeout: 120 * time.Second}
	url := BASE_URL + "/api/taobao/get-item-detail/v3?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'; // Diberikan oleh server OpenAPI
$url = $BASE_URL . '/api/taobao/get-item-detail/v3?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-v3-id.json" target="_blank" style="font-size: 12px; color: var(--vp-c-text-3); text-decoration: none; opacity: 0.8;">[Definisi OpenAPI (JSON)]</a>
</div>

## Field Respons

Field Kunci dalam respons yang sukses (`code = 0`).

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

| Jalur Field | Jenis | Deskripsi |
| --- | --- | --- |
| <code>data</code> | <code>object</code> | Detail produk Taobao atau Tmall, media, varian SKU, dan informasi penjual. |
| <code>data.num_iid</code> | <code>string</code> | ID item Taobao atau Tmall, diberikan dalam bentuk string. |
| <code>data.title</code> | <code>string</code> | Judul tampilan item. |
| <code>data.brand</code> | <code>string</code> | Nama merek yang dilaporkan untuk item tersebut. |
| <code>data.cid</code> | <code>string</code> | ID kategori marketplace untuk item tersebut, diberikan dalam bentuk teks. |
| <code>data.location</code> | <code>string</code> | Lokasi yang ditampilkan untuk item. |
| <code>data.detail_url</code> | <code>string</code> | Tautan ke halaman detail produk. |
| <code>data.pic_url</code> | <code>string</code> | URL gambar utama produk. |
| <code>data.desc</code> | <code>string</code> | Deskripsi produk dalam bentuk teks HTML. |
| <code>data.desc_img</code> | <code>array</code> | URL gambar yang dilaporkan untuk deskripsi produk. |
| <code>data.desc_img[]</code> | <code>string</code> | URL gambar deskripsi produk. |
| <code>data.item_imgs</code> | <code>array</code> | Gambar yang diberikan untuk listing produk. |
| <code>data.item_imgs[]</code> | <code>object</code> | Satu rekaman gambar produk. |
| <code>data.item_imgs[].url</code> | <code>string</code> | URL gambar produk. |
| <code>data.video</code> | <code>object</code> | Informasi video yang diberikan bersama item tersebut. |
| <code>data.video.url</code> | <code>string</code> | URL video produk. Bisa berupa string kosong. |
| <code>data.price</code> | <code>string</code> | Harga item yang dilaporkan dalam respons, diberikan dalam bentuk teks. |
| <code>data.orginal_price</code> | <code>string</code> | Harga asli item yang dilaporkan, diberikan dalam bentuk teks. |
| <code>data.num</code> | <code>integer</code> | Jumlah yang dilaporkan pada tingkat item. |
| <code>data.sales</code> | <code>integer</code> | Jumlah penjualan yang dilaporkan untuk item tersebut. |
| <code>data.total_sold</code> | <code>string &#124; integer</code> | Total penjualan yang dilaporkan, dalam bentuk teks atau bilangan bulat. |
| <code>data.skus</code> | <code>object</code> | Informasi SKU dan baris varian yang dilaporkan. |
| <code>data.skus.sku</code> | <code>array</code> | Baris varian SKU yang dilaporkan untuk item tersebut. |
| <code>data.skus.sku[]</code> | <code>object</code> | Satu SKU beserta spesifikasinya, harga, dan jumlah yang dipilih. |
| <code>data.skus.sku[].sku_id</code> | <code>string &#124; integer</code> | ID SKU, dalam bentuk string atau bilangan bulat. |
| <code>data.skus.sku[].properties</code> | <code>string</code> | Jalur spesifikasi SKU, terdiri dari pasangan ID properti dan ID opsi. |
| <code>data.skus.sku[].properties_name</code> | <code>string</code> | Label properti dan opsi spesifikasi untuk SKU ini, dalam bentuk teks. |
| <code>data.skus.sku[].price</code> | <code>number</code> | Harga numerik yang dilaporkan untuk SKU. |
| <code>data.skus.sku[].orginal_price</code> | <code>number</code> | Harga asli numerik yang dilaporkan untuk SKU. |
| <code>data.skus.sku[].quantity</code> | <code>string &#124; integer</code> | Jumlah yang dilaporkan untuk SKU, dalam bentuk teks atau bilangan bulat. |
| <code>data.props</code> | <code>array</code> | Atribut item yang dilaporkan dalam bentuk pasangan nama dan nilai. |
| <code>data.props[]</code> | <code>object</code> | Satu atribut produk yang deskriptif. |
| <code>data.props[].name</code> | <code>string</code> | Nama tampilan atribut produk. |
| <code>data.props[].value</code> | <code>string</code> | Nilai tampilan atribut produk. |
| <code>data.props_name</code> | <code>string</code> | Label properti dan opsi spesifikasi, dalam bentuk string teks. |
| <code>data.props_list</code> | <code>object</code> | Peta label spesifikasi, dikaitkan dengan pasangan ID properti dan ID opsi. |
| <code>data.props_list.{key}</code> | <code>string</code> | Label tampilan untuk pasangan properti dan opsi dalam peta tersebut. |
| <code>data.prop_imgs</code> | <code>object</code> | Koleksi gambar spesifikasi yang dilaporkan bersama dengan item. |
| <code>data.prop_imgs.prop_img</code> | <code>array</code> | Gambar yang terkait dengan opsi spesifikasi. |
| <code>data.prop_imgs.prop_img[]</code> | <code>object</code> | Gambar untuk satu opsi spesifikasi. |
| <code>data.prop_imgs.prop_img[].properties</code> | <code>string</code> | Pasangan ID properti dan opsi yang terkait dengan gambar tersebut. |
| <code>data.prop_imgs.prop_img[].url</code> | <code>string</code> | URL gambar opsi spesifikasi. |
| <code>data.props_imgs</code> | <code>object</code> | Koleksi gambar spesifikasi tambahan yang dilaporkan bersama dengan item. |
| <code>data.props_imgs.prop_img</code> | <code>array</code> | Gambar yang terkait dengan opsi spesifikasi. |
| <code>data.props_imgs.prop_img[]</code> | <code>object</code> | Gambar untuk satu opsi spesifikasi. |
| <code>data.props_imgs.prop_img[].properties</code> | <code>string</code> | Pasangan ID properti dan opsi yang terkait dengan gambar tersebut. |
| <code>data.props_imgs.prop_img[].url</code> | <code>string</code> | URL gambar opsi spesifikasi. |
| <code>data.props_img</code> | <code>object</code> | Peta URL gambar spesifikasi, dikaitkan dengan pasangan ID properti dan ID opsi. |
| <code>data.props_img.{key}</code> | <code>string</code> | URL gambar untuk pasangan properti dan opsi dalam peta tersebut. |
| <code>data.seller_id</code> | <code>string</code> | ID Penjual, dikembalikan sebagai string. |
| <code>data.shop_id</code> | <code>string</code> | ID Toko, dikembalikan sebagai string. |
| <code>data.nick</code> | <code>string</code> | Nama samaran Penjual yang dilaporkan bersama dengan item. |
| <code>data.tmall</code> | <code>boolean</code> | Apakah item ditandai sebagai listing Tmall. |
| <code>data.seller_info</code> | <code>object</code> | Informasi Penjual dan toko yang terkait dengan item. |
| <code>data.seller_info.nick</code> | <code>string</code> | Nama samaran penjual yang ditampilkan. |
| <code>data.seller_info.shop_name</code> | <code>string</code> | Nama tampilan toko. |
| <code>data.seller_info.zhuy</code> | <code>string</code> | Tautan ke beranda penjual. |

</div>

## Contoh Respons

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

