---
title: "Taobao dan Tmall Detail Produk API (V6)"
description: "Mendapatkan detail produk Taobao atau Tmall berdasarkan ID item melalui endpoint V6, termasuk angka penjualan perkiraan, biaya pengiriman, dan status gratis pengiriman. Gunakan untuk penelitian produk dan pemantauan e-commerce."
lastUpdated: false
aiUsagePrompt: true
---

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

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/taobao/get-item-detail/v6\"")'
  :summary='JSON.parse("\"Detail Produk (V6)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/taobao-and-tmall/product-details-v6-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\",\"null\"],\"description\":\"Detail produk untuk item Taobao atau Tmall yang diminta. Respons yang berhasil dapat memiliki data null.\",\"properties\":{\"item\":{\"type\":\"object\",\"description\":\"Informasi dan media produk.\",\"properties\":{\"itemId\":{\"type\":\"string\",\"description\":\"ID item Taobao atau Tmall sebagai teks.\"},\"title\":{\"type\":\"string\",\"description\":\"Judul produk.\"},\"categoryId\":{\"type\":\"string\",\"description\":\"ID kategori produk sebagai teks, yang mungkin kosong.\"},\"originalPrice\":{\"type\":\"number\",\"description\":\"Harga produk asli yang dilaporkan.\"},\"price\":{\"type\":\"number\",\"description\":\"Harga produk yang dilaporkan.\"},\"couponPrice\":{\"type\":\"string\",\"description\":\"Harga yang dilaporkan setelah kupon sebagai teks, yang mungkin kosong.\"},\"images\":{\"type\":\"array\",\"description\":\"Gambar produk utama dan carousel.\",\"items\":{\"type\":\"string\",\"description\":\"URL gambar produk.\"}},\"detailImages\":{\"type\":\"array\",\"description\":\"Gambar yang ditampilkan dalam deskripsi produk.\",\"items\":{\"type\":\"string\",\"description\":\"URL gambar deskripsi produk.\"}},\"desc\":{\"type\":\"string\",\"description\":\"Deskripsi produk dikirimkan dalam format teks HTML.\"},\"attribute\":{\"type\":\"array\",\"description\":\"Atribut produk dikembalikan dalam bentuk pasangan nama dan nilai.\",\"items\":{\"type\":\"object\",\"description\":\"Satu atribut produk.\",\"properties\":{\"key\":{\"type\":\"string\",\"description\":\"Nama tampilan atribut produk.\"},\"value\":{\"type\":\"string\",\"description\":\"Nilai tampilan atribut produk.\"}}}},\"videoUrl\":{\"type\":\"string\",\"description\":\"URL video produk, yang mungkin kosong.\"},\"videos\":{\"type\":\"array\",\"description\":\"Entri video jika diberikan. Array ini bisa kosong jika videoUrl sudah diisi.\"},\"videoId\":{\"type\":\"string\",\"description\":\"ID video produk yang dilaporkan, yang mungkin kosong.\"},\"videoCover\":{\"type\":\"string\",\"description\":\"URL sampul video yang dilaporkan, yang mungkin kosong.\"}}},\"seller\":{\"type\":\"object\",\"description\":\"Informasi toko dan penjual yang dikirimkan untuk item tersebut.\",\"properties\":{\"shopId\":{\"type\":\"string\",\"description\":\"ID toko Taobao atau Tmall dalam bentuk teks.\"},\"shopName\":{\"type\":\"string\",\"description\":\"Nama toko yang dilaporkan, yang mungkin kosong.\"},\"sellerId\":{\"type\":\"string\",\"description\":\"ID akun penjual dalam bentuk teks, yang mungkin kosong.\"},\"sellerName\":{\"type\":\"string\",\"description\":\"Nama penjual yang dilaporkan, yang mungkin kosong.\"}}},\"delivery\":{\"type\":\"object\",\"description\":\"Informasi pengiriman yang dikirimkan untuk item tersebut.\",\"properties\":{\"postage\":{\"type\":\"string\",\"description\":\"Biaya pengiriman yang ditampilkan dalam teks, yang mungkin kosong.\"},\"from\":{\"type\":\"string\",\"description\":\"Asal pengiriman yang ditampilkan, yang mungkin kosong.\"},\"to\":{\"type\":\"string\",\"description\":\"Tujuan pengiriman yang ditampilkan, yang mungkin kosong.\"}}},\"skuBase\":{\"type\":\"object\",\"description\":\"Varian produk dan opsi spesifikasinya.\",\"properties\":{\"skus\":{\"type\":\"array\",\"description\":\"Varian SKU yang dikirimkan untuk produk tersebut.\",\"items\":{\"type\":\"object\",\"description\":\"Satu varian SKU.\",\"properties\":{\"skuId\":{\"type\":\"string\",\"description\":\"Identifikator SKU dalam bentuk teks. Gunakan untuk mencari entri sku2info yang sesuai.\"},\"propPath\":{\"type\":\"string\",\"description\":\"Jalur spesifikasi yang dienkripsi untuk SKU ini. Beberapa identifikator di jalur bisa hilang dari props.\"}}}},\"props\":{\"type\":\"array\",\"description\":\"Atribut spesifikasi produk dengan nilai-nilai yang tersedia.\",\"items\":{\"type\":\"object\",\"description\":\"Satu atribut spesifikasi.\",\"properties\":{\"pid\":{\"type\":\"string\",\"description\":\"ID atribut spesifikasi dalam bentuk teks.\"},\"pname\":{\"type\":\"string\",\"description\":\"Nama tampilan atribut spesifikasi di bawah pname, jika diberikan.\"},\"name\":{\"type\":\"string\",\"description\":\"Nama tampilan atribut spesifikasi di bawah name, jika diberikan.\"},\"values\":{\"type\":\"array\",\"description\":\"Nilai-nilai yang tersedia untuk atribut ini.\",\"items\":{\"type\":\"object\",\"description\":\"Satu nilai spesifikasi.\",\"properties\":{\"vid\":{\"type\":\"string\",\"description\":\"ID nilai spesifikasi sebagai teks.\"},\"vname\":{\"type\":\"string\",\"description\":\"Nama tampilan nilai spesifikasi di bawah vname, jika disediakan.\"},\"name\":{\"type\":\"string\",\"description\":\"Nama tampilan nilai spesifikasi di bawah name, jika disediakan.\"},\"sku_url\":{\"type\":\"string\",\"description\":\"URL gambar yang dilaporkan untuk nilai spesifikasi di bawah sku_url, yang mungkin kosong.\"},\"image\":{\"type\":\"string\",\"description\":\"URL gambar yang dilaporkan untuk nilai spesifikasi di bawah image.\"}}}}}}}}},\"skuCore\":{\"type\":\"object\",\"description\":\"Informasi harga dan jumlah untuk item serta variannya.\",\"properties\":{\"sku2info\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\",\"description\":\"Informasi harga dan jumlah untuk entri peta ini.\",\"properties\":{\"quantity\":{\"type\":\"integer\",\"description\":\"Jumlah stok yang dilaporkan untuk entri ini.\"},\"originalPrice\":{\"type\":\"number\",\"description\":\"Harga asli yang dilaporkan untuk entri ini.\"},\"price\":{\"type\":\"number\",\"description\":\"Harga yang dilaporkan untuk entri ini.\"},\"couponPrice\":{\"type\":\"string\",\"description\":\"Harga setelah kupon yang dilaporkan untuk entri ini sebagai teks, yang mungkin kosong.\"}}},\"description\":\"Peta yang diurutkan berdasarkan ID SKU. Entri di bawah kunci 0 dapat berisi nilai jumlah dan harga tingkat produk.\"}}},\"status\":{\"type\":\"integer\",\"description\":\"Kode status numerik yang dilaporkan bersama dengan detail produk.\"},\"tid\":{\"type\":\"string\",\"description\":\"Identifikasi produk yang dilaporkan di tingkat respons sebagai teks. Ini dapat cocok dengan item.itemId.\"}}}}},\"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/v6\"")' />

<p>Mendapatkan detail produk Taobao atau Tmall berdasarkan ID item melalui endpoint V6, termasuk angka penjualan perkiraan, biaya pengiriman, dan status gratis pengiriman. Gunakan untuk penelitian produk dan pemantauan 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>
:::

::: tip Kemampuan
<p>Endpoint ini dapat mengambil volume penjualan yang hampir akurat.</p>
:::

::: tip Kemampuan
<p>Endpoint ini memberikan informasi biaya pengiriman, termasuk apakah pengiriman gratis.</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/v6?token=YOUR_API_KEY&itemId=VALUE'
```

```text [🤖 Prompt AI]
Saya ingin menggunakan API "Detail Produk (V6)" dari JustOneAPI.
URL dasar: https://api.justoneapi.com.
Jalur API: /api/taobao/get-item-detail/v6?token=YOUR_API_KEY&itemId=VALUE
Endpoint API: BASE_URL + /api/taobao/get-item-detail/v6?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-v6-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/v6?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/v6?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/v6?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/v6?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/v6?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-v6-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 &#124; null</code> | Detail produk untuk item Taobao atau Tmall yang diminta. Respons yang berhasil dapat memiliki data null. |
| <code>data.item</code> | <code>object</code> | Informasi dan media produk. |
| <code>data.item.itemId</code> | <code>string</code> | ID item Taobao atau Tmall sebagai teks. |
| <code>data.item.title</code> | <code>string</code> | Judul produk. |
| <code>data.item.categoryId</code> | <code>string</code> | ID kategori produk sebagai teks, yang mungkin kosong. |
| <code>data.item.originalPrice</code> | <code>number</code> | Harga produk asli yang dilaporkan. |
| <code>data.item.price</code> | <code>number</code> | Harga produk yang dilaporkan. |
| <code>data.item.couponPrice</code> | <code>string</code> | Harga yang dilaporkan setelah kupon sebagai teks, yang mungkin kosong. |
| <code>data.item.images</code> | <code>array</code> | Gambar produk utama dan carousel. |
| <code>data.item.images[]</code> | <code>string</code> | URL gambar produk. |
| <code>data.item.detailImages</code> | <code>array</code> | Gambar yang ditampilkan dalam deskripsi produk. |
| <code>data.item.detailImages[]</code> | <code>string</code> | URL gambar deskripsi produk. |
| <code>data.item.desc</code> | <code>string</code> | Deskripsi produk dikirimkan dalam format teks HTML. |
| <code>data.item.attribute</code> | <code>array</code> | Atribut produk dikembalikan dalam bentuk pasangan nama dan nilai. |
| <code>data.item.attribute[]</code> | <code>object</code> | Satu atribut produk. |
| <code>data.item.attribute[].key</code> | <code>string</code> | Nama tampilan atribut produk. |
| <code>data.item.attribute[].value</code> | <code>string</code> | Nilai tampilan atribut produk. |
| <code>data.item.videoUrl</code> | <code>string</code> | URL video produk, yang mungkin kosong. |
| <code>data.item.videos</code> | <code>array</code> | Entri video jika diberikan. Array ini bisa kosong jika videoUrl sudah diisi. |
| <code>data.item.videoId</code> | <code>string</code> | ID video produk yang dilaporkan, yang mungkin kosong. |
| <code>data.item.videoCover</code> | <code>string</code> | URL sampul video yang dilaporkan, yang mungkin kosong. |
| <code>data.seller</code> | <code>object</code> | Informasi toko dan penjual yang dikirimkan untuk item tersebut. |
| <code>data.seller.shopId</code> | <code>string</code> | ID toko Taobao atau Tmall dalam bentuk teks. |
| <code>data.seller.shopName</code> | <code>string</code> | Nama toko yang dilaporkan, yang mungkin kosong. |
| <code>data.seller.sellerId</code> | <code>string</code> | ID akun penjual dalam bentuk teks, yang mungkin kosong. |
| <code>data.seller.sellerName</code> | <code>string</code> | Nama penjual yang dilaporkan, yang mungkin kosong. |
| <code>data.delivery</code> | <code>object</code> | Informasi pengiriman yang dikirimkan untuk item tersebut. |
| <code>data.delivery.postage</code> | <code>string</code> | Biaya pengiriman yang ditampilkan dalam teks, yang mungkin kosong. |
| <code>data.delivery.from</code> | <code>string</code> | Asal pengiriman yang ditampilkan, yang mungkin kosong. |
| <code>data.delivery.to</code> | <code>string</code> | Tujuan pengiriman yang ditampilkan, yang mungkin kosong. |
| <code>data.skuBase</code> | <code>object</code> | Varian produk dan opsi spesifikasinya. |
| <code>data.skuBase.skus</code> | <code>array</code> | Varian SKU yang dikirimkan untuk produk tersebut. |
| <code>data.skuBase.skus[]</code> | <code>object</code> | Satu varian SKU. |
| <code>data.skuBase.skus[].skuId</code> | <code>string</code> | Identifikator SKU dalam bentuk teks. Gunakan untuk mencari entri sku2info yang sesuai. |
| <code>data.skuBase.skus[].propPath</code> | <code>string</code> | Jalur spesifikasi yang dienkripsi untuk SKU ini. Beberapa identifikator di jalur bisa hilang dari props. |
| <code>data.skuBase.props</code> | <code>array</code> | Atribut spesifikasi produk dengan nilai-nilai yang tersedia. |
| <code>data.skuBase.props[]</code> | <code>object</code> | Satu atribut spesifikasi. |
| <code>data.skuBase.props[].pid</code> | <code>string</code> | ID atribut spesifikasi dalam bentuk teks. |
| <code>data.skuBase.props[].pname</code> | <code>string</code> | Nama tampilan atribut spesifikasi di bawah pname, jika diberikan. |
| <code>data.skuBase.props[].name</code> | <code>string</code> | Nama tampilan atribut spesifikasi di bawah name, jika diberikan. |
| <code>data.skuBase.props[].values</code> | <code>array</code> | Nilai-nilai yang tersedia untuk atribut ini. |
| <code>data.skuBase.props[].values[]</code> | <code>object</code> | Satu nilai spesifikasi. |
| <code>data.skuBase.props[].values[].vid</code> | <code>string</code> | ID nilai spesifikasi sebagai teks. |
| <code>data.skuBase.props[].values[].vname</code> | <code>string</code> | Nama tampilan nilai spesifikasi di bawah vname, jika disediakan. |
| <code>data.skuBase.props[].values[].name</code> | <code>string</code> | Nama tampilan nilai spesifikasi di bawah name, jika disediakan. |
| <code>data.skuBase.props[].values[].sku_url</code> | <code>string</code> | URL gambar yang dilaporkan untuk nilai spesifikasi di bawah sku_url, yang mungkin kosong. |
| <code>data.skuBase.props[].values[].image</code> | <code>string</code> | URL gambar yang dilaporkan untuk nilai spesifikasi di bawah image. |
| <code>data.skuCore</code> | <code>object</code> | Informasi harga dan jumlah untuk item serta variannya. |
| <code>data.skuCore.sku2info</code> | <code>object</code> | Peta yang diurutkan berdasarkan ID SKU. Entri di bawah kunci 0 dapat berisi nilai jumlah dan harga tingkat produk. |
| <code>data.skuCore.sku2info.{key}</code> | <code>object</code> | Informasi harga dan jumlah untuk entri peta ini. |
| <code>data.skuCore.sku2info.{key}.quantity</code> | <code>integer</code> | Jumlah stok yang dilaporkan untuk entri ini. |
| <code>data.skuCore.sku2info.{key}.originalPrice</code> | <code>number</code> | Harga asli yang dilaporkan untuk entri ini. |
| <code>data.skuCore.sku2info.{key}.price</code> | <code>number</code> | Harga yang dilaporkan untuk entri ini. |
| <code>data.skuCore.sku2info.{key}.couponPrice</code> | <code>string</code> | Harga setelah kupon yang dilaporkan untuk entri ini sebagai teks, yang mungkin kosong. |
| <code>data.status</code> | <code>integer</code> | Kode status numerik yang dilaporkan bersama dengan detail produk. |
| <code>data.tid</code> | <code>string</code> | Identifikasi produk yang dilaporkan di tingkat respons sebagai teks. Ini dapat cocok dengan item.itemId. |

</div>

## Contoh Respons

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

