---
title: "E-commerce Douyin Detail Item API (V2)"
description: "Mengambil detail produk e-commerce Douyin (TikTok China) berdasarkan ID item. Digunakan untuk memeriksa item pasar tertentu untuk penelitian katalog atau produk."
lastUpdated: false
aiUsagePrompt: true
---

# E\-commerce Douyin Detail Item API \(V2\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/douyin-ec/get-item-detail/v2\"")'
  :summary='JSON.parse("\"Detail Item (V2)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/douyin-e-commerce/item-details-v2-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\":\"ID unik item di Douyin E-commerce.\",\"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 item e-commerce Douyin dengan informasi toko dan label layanan yang tersedia.\",\"properties\":{\"product_id\":{\"type\":\"string\",\"description\":\"Identifikasi produk e-commerce Douyin yang mendasarinya.\"},\"promotion_id\":{\"type\":\"string\",\"description\":\"Identifikasi promosi yang dikembalikan untuk pencarian ini. Ini dapat cocok dengan itemId yang diberikan.\"},\"item_type\":{\"type\":\"integer\",\"description\":\"Kode jenis item yang dilaporkan untuk produk tersebut.\"},\"model\":{\"type\":\"object\",\"description\":\"Informasi produk, toko, dan modul bantu.\",\"properties\":{\"product\":{\"type\":\"object\",\"description\":\"Informasi terstruktur tentang produk.\",\"properties\":{\"product_base\":{\"type\":\"object\",\"description\":\"Informasi dasar produk dan gambar-gambarnya.\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"Judul produk.\"},\"cover\":{\"type\":\"string\",\"description\":\"URL gambar sampul produk.\"},\"images\":{\"type\":\"array\",\"description\":\"URL gambar produk.\",\"items\":{\"type\":\"string\",\"description\":\"URL gambar produk.\"}},\"white_background\":{\"type\":\"string\",\"description\":\"URL gambar produk untuk versi latar belakang putih.\"},\"big_imgs\":{\"type\":\"array\",\"description\":\"URL gambar dari daftar gambar besar produk.\",\"items\":{\"type\":\"string\",\"description\":\"URL gambar dalam daftar gambar besar.\"}},\"is_global_shoping\":{\"type\":\"boolean\",\"description\":\"Menunjukkan apakah produk ditandai sebagai bagian dari Douyin Global Shopping.\"},\"is_sui_xin_tui\":{\"type\":\"boolean\",\"description\":\"Menunjukkan apakah produk ditandai untuk fitur promosi Sui Xin Tui.\"}}},\"product_sales\":{\"type\":\"object\",\"description\":\"Jumlah penjualan dan label tampilan untuk produk.\",\"properties\":{\"product_label\":{\"type\":\"object\",\"description\":\"Label penjualan produk dengan jumlah numerik dan string tampilan.\",\"properties\":{\"sales_num\":{\"type\":\"integer\",\"description\":\"Jumlah penjualan numerik dalam label produk.\"},\"sales_text\":{\"type\":\"string\",\"description\":\"Teks tampilan jumlah penjualan dalam label produk.\"}}},\"sell_num\":{\"type\":\"integer\",\"description\":\"Jumlah penjualan yang dikembalikan untuk produk.\"},\"total_sales\":{\"type\":\"integer\",\"description\":\"Jumlah penjualan total yang dilaporkan untuk produk.\"}}},\"product_comment\":{\"type\":\"object\",\"description\":\"Persentase ulasan positif untuk produk, dengan label tampilannya.\",\"properties\":{\"good_ratio\":{\"type\":\"number\",\"description\":\"Persentase ulasan positif sebagai angka. Nilai 83.6 berarti 83.6%. Label tampilan mungkin membulatkan nilai ini.\"},\"comment_label\":{\"type\":\"object\",\"description\":\"Label tampilan untuk metrik ulasan produk.\",\"properties\":{\"good_ratio\":{\"type\":\"string\",\"description\":\"Persentase ulasan positif yang diformat untuk tampilan.\"}}}}},\"product_privilege\":{\"type\":\"object\",\"description\":\"Manfaat dan janji layanan yang ditampilkan untuk produk.\",\"properties\":{\"privilege_info_label\":{\"type\":\"object\",\"description\":\"Informasi tampilan untuk manfaat produk.\",\"properties\":{\"privilege_id\":{\"type\":\"integer\",\"description\":\"Identifikasi yang dilaporkan untuk grup manfaat produk.\"},\"privilege_info_detail\":{\"type\":\"array\",\"description\":\"Entri manfaat yang ditampilkan untuk produk.\",\"items\":{\"type\":\"object\",\"description\":\"Satu entri manfaat produk.\",\"properties\":{\"tag_id\":{\"type\":\"string\",\"description\":\"Identifikasi tag untuk manfaat ini.\"},\"title\":{\"type\":\"string\",\"description\":\"Judul tampilan untuk manfaat ini.\"},\"content\":{\"type\":\"string\",\"description\":\"Teks tampilan yang menjelaskan manfaat ini.\"},\"icon\":{\"type\":\"object\",\"description\":\"Ikon untuk manfaat yang ditampilkan.\",\"properties\":{\"url_list\":{\"type\":\"array\",\"description\":\"URL gambar untuk ikon manfaat.\",\"items\":{\"type\":\"string\",\"description\":\"Satu URL gambar untuk ikon manfaat ini.\"}}}},\"link\":{\"type\":\"string\",\"description\":\"Link aplikasi Douyin yang terkait dengan manfaat, jika diberikan.\"}}}}}}}}}},\"shop\":{\"type\":\"object\",\"description\":\"Informasi tentang toko yang terkait dengan produk tersebut.\",\"properties\":{\"shop_id\":{\"type\":\"string\",\"description\":\"ID toko e-commerce Douyin.\"},\"shop_base\":{\"type\":\"object\",\"description\":\"Informasi dasar toko.\",\"properties\":{\"shop_name\":{\"type\":\"string\",\"description\":\"Nama toko yang ditampilkan.\"},\"shop_logo\":{\"type\":\"string\",\"description\":\"URL gambar logo toko.\"},\"platform_source\":{\"type\":\"integer\",\"description\":\"Kode sumber platform yang dilaporkan untuk toko tersebut.\"}}}}},\"promotion_data\":{\"type\":\"object\",\"description\":\"Status modul promosi.\",\"properties\":{\"code\":{\"type\":\"integer\",\"description\":\"Kode status yang dilaporkan untuk modul ini.\"}}},\"comment_data\":{\"type\":\"object\",\"description\":\"Status modul komentar.\",\"properties\":{\"code\":{\"type\":\"integer\",\"description\":\"Kode status yang dilaporkan untuk modul ini.\"}}},\"author_data\":{\"type\":\"object\",\"description\":\"Status modul penulis.\",\"properties\":{\"code\":{\"type\":\"integer\",\"description\":\"Kode status yang dilaporkan untuk modul ini.\"}}},\"content_data\":{\"type\":\"object\",\"description\":\"Status modul konten.\",\"properties\":{\"code\":{\"type\":\"integer\",\"description\":\"Kode status yang dilaporkan untuk modul ini.\"}}},\"hot_content_data\":{\"type\":\"object\",\"description\":\"Status modul konten populer.\",\"properties\":{\"code\":{\"type\":\"integer\",\"description\":\"Kode status yang dilaporkan untuk modul ini.\"}}},\"shop_product_data\":{\"type\":\"object\",\"description\":\"Status modul produk toko.\",\"properties\":{\"code\":{\"type\":\"integer\",\"description\":\"Kode status yang dilaporkan untuk modul ini.\"}}},\"material_data\":{\"type\":\"object\",\"description\":\"Status modul bahan.\",\"properties\":{\"code\":{\"type\":\"integer\",\"description\":\"Kode status yang dilaporkan untuk modul ini.\"}}}}},\"label\":{\"type\":\"object\",\"description\":\"Label tampilan yang terkait dengan produk.\",\"properties\":{\"service_module\":{\"type\":\"object\",\"description\":\"Modul layanan yang ditampilkan untuk produk.\",\"properties\":{\"module_list\":{\"type\":\"array\",\"description\":\"Daftar modul layanan.\",\"items\":{\"type\":\"object\",\"description\":\"Satu modul layanan yang ditampilkan.\",\"properties\":{\"module_type\":{\"type\":\"string\",\"description\":\"Identifikasi jenis modul layanan.\"},\"title\":{\"type\":\"object\",\"description\":\"Judul tampilan modul layanan.\",\"properties\":{\"title_list\":{\"type\":\"array\",\"description\":\"Bagian-bagian yang membentuk judul modul layanan.\",\"items\":{\"type\":\"object\",\"description\":\"Satu bagian tampilan dalam judul modul layanan.\",\"properties\":{\"rich_text\":{\"type\":\"object\",\"description\":\"Informasi teks mendalam untuk bagian judul.\",\"properties\":{\"rich_text_type\":{\"type\":\"integer\",\"description\":\"Kode jenis untuk bagian teks mendalam.\"},\"text\":{\"type\":\"object\",\"description\":\"Objek teks dalam bagian teks mendalam.\",\"properties\":{\"text\":{\"type\":\"string\",\"description\":\"Teks tampilan untuk bagian judul.\"}}}}},\"suffix_type\":{\"type\":\"integer\",\"description\":\"Kode jenis untuk entri tampilan ini.\"}}}}}},\"content\":{\"type\":\"object\",\"description\":\"Detail yang ditampilkan dalam modul layanan.\",\"properties\":{\"content_list\":{\"type\":\"array\",\"description\":\"Entri yang ditampilkan dalam detail modul layanan.\",\"items\":{\"type\":\"object\",\"description\":\"Satu entri dalam detail modul layanan.\",\"properties\":{\"content_type\":{\"type\":\"string\",\"description\":\"Identifikasi jenis untuk entri tampilan.\"},\"content\":{\"type\":\"object\",\"description\":\"Konten yang ditampilkan untuk entri ini.\",\"properties\":{\"title_list\":{\"type\":\"array\",\"description\":\"Bagian judul untuk konten tampilan.\",\"items\":{\"type\":\"object\",\"description\":\"Satu bagian judul tampilan.\",\"properties\":{\"rich_text\":{\"type\":\"object\",\"description\":\"Informasi teks padat untuk bagian judul konten.\",\"properties\":{\"rich_text_type\":{\"type\":\"integer\",\"description\":\"Kode jenis untuk bagian teks mendalam.\"},\"text\":{\"type\":\"object\",\"description\":\"Objek teks dalam bagian teks mendalam.\",\"properties\":{\"text\":{\"type\":\"string\",\"description\":\"Teks tampilan untuk bagian judul konten.\"},\"font_color\":{\"type\":\"string\",\"description\":\"Nilai warna untuk teks. Field ini dapat berupa string kosong.\"}}}}},\"suffix_type\":{\"type\":\"integer\",\"description\":\"Kode jenis untuk entri tampilan ini.\"}}}}}},\"suffix_type\":{\"type\":\"integer\",\"description\":\"Kode jenis untuk entri tampilan ini.\"}}}}}}}}}}}}}}}}},\"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/douyin-ec/get-item-detail/v2\"")' />

<p>Mengambil detail produk e-commerce Douyin (TikTok China) berdasarkan ID item. Digunakan untuk memeriksa item pasar tertentu untuk penelitian katalog atau produk.</p>

## Hal-hal penting

::: tip Kemampuan
<p>Endpoint ini termasuk data penjualan produk.</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 | - | ID unik item di Douyin E-commerce. |

</div>

## Contoh Kode

::: code-group

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

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

Parameter:
- token (query): Token akses untuk layanan API ini. (Wajib)
- itemId (query): ID unik item di Douyin E-commerce. (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/douyin-ec/get-item-detail/v2?token=YOUR_API_KEY&itemId=VALUE"
response = requests.get(url, timeout=120)
print(response.status_code)
if response.content:
    content_type = response.headers.get("content-type", "").lower()
    if "json" in content_type:
        try:
            print(response.json())
        except ValueError:
            print(response.text)
    elif content_type.startswith("text/") or "xml" in content_type or content_type.split(";", 1)[0].strip() in {"application/javascript", "application/x-www-form-urlencoded", "application/graphql"}:
        print(response.text)
    else:
        with open("response.bin", "wb") as output:
            output.write(response.content)
        print(f"Saved {len(response.content)} bytes to response.bin")
```

```js [🌐 JavaScript]
const BASE_URL = "https://api.justoneapi.com"; // Diberikan oleh server OpenAPI
const url = BASE_URL + "/api/douyin-ec/get-item-detail/v2?token=YOUR_API_KEY&itemId=VALUE";

const response = await fetch(url, {
  method: "GET",
  signal: AbortSignal.timeout(120000)
});
console.log(response.status);
const responseBytes = await response.arrayBuffer();
if (responseBytes.byteLength) {
  const contentType = (response.headers.get("content-type") || "").toLowerCase();
  const mediaType = contentType.split(";", 1)[0].trim();
  const textual = contentType.startsWith("text/") || contentType.includes("json") || contentType.includes("xml") || ["application/javascript", "application/x-www-form-urlencoded", "application/graphql"].includes(mediaType);
  if (textual) {
    const responseText = new TextDecoder().decode(responseBytes);
    let data = responseText;
    if (contentType.includes("json")) {
      try { data = JSON.parse(responseText); } catch { /* Keep the raw body. */ }
    }
    console.log(data);
  } else {
    console.log(`Received ${responseBytes.byteLength} binary bytes`);
  }
}
```

```java [☕ Java]
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.time.Duration;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;

public class Main {
    public static void main(String[] args) throws Exception {
        final String BASE_URL = "https://api.justoneapi.com"; // Diberikan oleh server OpenAPI
        final String url = BASE_URL + "/api/douyin-ec/get-item-detail/v2?token=YOUR_API_KEY&itemId=VALUE";

        HttpClient client = HttpClient.newBuilder().connectTimeout(Duration.ofSeconds(120)).build();
        HttpRequest.Builder builder = HttpRequest.newBuilder()
            .uri(URI.create(url))
            .timeout(Duration.ofSeconds(120))
            .method("GET", HttpRequest.BodyPublishers.noBody());

        HttpRequest request = builder.build();

        HttpResponse<byte[]> response = client.send(request, HttpResponse.BodyHandlers.ofByteArray());
        System.out.println(response.statusCode());
        String contentType = response.headers().firstValue("content-type").orElse("").toLowerCase();
        String mediaType = contentType.split(";", 2)[0].trim();
        if (contentType.startsWith("text/") || contentType.contains("json") || contentType.contains("xml") || mediaType.equals("application/javascript") || mediaType.equals("application/x-www-form-urlencoded") || mediaType.equals("application/graphql")) {
            System.out.println(new String(response.body(), StandardCharsets.UTF_8));
        } else {
            Files.write(Path.of("response.bin"), response.body());
            System.out.println("Saved " + response.body().length + " bytes to response.bin");
        }
    }
}
```

```go [🐹 Go]
package main

import (
	"fmt"
	"io"
	"os"
	"strings"
	"net/http"
	"time"
)

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

func main() {
	client := &http.Client{Timeout: 120 * time.Second}
	url := BASE_URL + "/api/douyin-ec/get-item-detail/v2?token=YOUR_API_KEY&itemId=VALUE"
	req, _ := http.NewRequest("GET", url, nil)
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	fmt.Println(resp.StatusCode)
	bodyBytes, _ := io.ReadAll(resp.Body)
	contentType := strings.ToLower(resp.Header.Get("Content-Type"))
	mediaType := strings.TrimSpace(strings.SplitN(contentType, ";", 2)[0])
	if strings.HasPrefix(contentType, "text/") || strings.Contains(contentType, "json") || strings.Contains(contentType, "xml") || mediaType == "application/javascript" || mediaType == "application/x-www-form-urlencoded" || mediaType == "application/graphql" {
		fmt.Println(string(bodyBytes))
	} else {
		os.WriteFile("response.bin", bodyBytes, 0600)
		fmt.Printf("Saved %d bytes to response.bin\n", len(bodyBytes))
	}
}
```

```php [🐘 PHP]
<?php
$BASE_URL = 'https://api.justoneapi.com'; // Diberikan oleh server OpenAPI
$url = $BASE_URL . '/api/douyin-ec/get-item-detail/v2?token=YOUR_API_KEY&itemId=VALUE';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 120);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
$contentType = strtolower((string) curl_getinfo($ch, CURLINFO_CONTENT_TYPE));
curl_close($ch);
echo $status . PHP_EOL;
$mediaType = trim(explode(';', $contentType, 2)[0]);
if (str_starts_with($contentType, 'text/') || str_contains($contentType, 'json') || str_contains($contentType, 'xml') || in_array($mediaType, ['application/javascript', 'application/x-www-form-urlencoded', 'application/graphql'], true)) {
    echo $response;
} else {
    file_put_contents('response.bin', $response);
    echo 'Saved ' . strlen($response) . ' bytes to response.bin' . PHP_EOL;
}
```

:::

<div style="text-align: right; margin-top: -20px; margin-bottom: 20px;">
<a href="/openapi/douyin-e-commerce/item-details-v2-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 item e-commerce Douyin dengan informasi toko dan label layanan yang tersedia. |
| <code>data.product_id</code> | <code>string</code> | Identifikasi produk e-commerce Douyin yang mendasarinya. |
| <code>data.promotion_id</code> | <code>string</code> | Identifikasi promosi yang dikembalikan untuk pencarian ini. Ini dapat cocok dengan itemId yang diberikan. |
| <code>data.item_type</code> | <code>integer</code> | Kode jenis item yang dilaporkan untuk produk tersebut. |
| <code>data.model</code> | <code>object</code> | Informasi produk, toko, dan modul bantu. |
| <code>data.model.product</code> | <code>object</code> | Informasi terstruktur tentang produk. |
| <code>data.model.product.product_base</code> | <code>object</code> | Informasi dasar produk dan gambar-gambarnya. |
| <code>data.model.product.product_base.title</code> | <code>string</code> | Judul produk. |
| <code>data.model.product.product_base.cover</code> | <code>string</code> | URL gambar sampul produk. |
| <code>data.model.product.product_base.images</code> | <code>array</code> | URL gambar produk. |
| <code>data.model.product.product_base.images[]</code> | <code>string</code> | URL gambar produk. |
| <code>data.model.product.product_base.white_background</code> | <code>string</code> | URL gambar produk untuk versi latar belakang putih. |
| <code>data.model.product.product_base.big_imgs</code> | <code>array</code> | URL gambar dari daftar gambar besar produk. |
| <code>data.model.product.product_base.big_imgs[]</code> | <code>string</code> | URL gambar dalam daftar gambar besar. |
| <code>data.model.product.product_base.is_global_shoping</code> | <code>boolean</code> | Menunjukkan apakah produk ditandai sebagai bagian dari Douyin Global Shopping. |
| <code>data.model.product.product_base.is_sui_xin_tui</code> | <code>boolean</code> | Menunjukkan apakah produk ditandai untuk fitur promosi Sui Xin Tui. |
| <code>data.model.product.product_sales</code> | <code>object</code> | Jumlah penjualan dan label tampilan untuk produk. |
| <code>data.model.product.product_sales.product_label</code> | <code>object</code> | Label penjualan produk dengan jumlah numerik dan string tampilan. |
| <code>data.model.product.product_sales.product_label.sales_num</code> | <code>integer</code> | Jumlah penjualan numerik dalam label produk. |
| <code>data.model.product.product_sales.product_label.sales_text</code> | <code>string</code> | Teks tampilan jumlah penjualan dalam label produk. |
| <code>data.model.product.product_sales.sell_num</code> | <code>integer</code> | Jumlah penjualan yang dikembalikan untuk produk. |
| <code>data.model.product.product_sales.total_sales</code> | <code>integer</code> | Jumlah penjualan total yang dilaporkan untuk produk. |
| <code>data.model.product.product_comment</code> | <code>object</code> | Persentase ulasan positif untuk produk, dengan label tampilannya. |
| <code>data.model.product.product_comment.good_ratio</code> | <code>number</code> | Persentase ulasan positif sebagai angka. Nilai 83.6 berarti 83.6%. Label tampilan mungkin membulatkan nilai ini. |
| <code>data.model.product.product_comment.comment_label</code> | <code>object</code> | Label tampilan untuk metrik ulasan produk. |
| <code>data.model.product.product_comment.comment_label.good_ratio</code> | <code>string</code> | Persentase ulasan positif yang diformat untuk tampilan. |
| <code>data.model.product.product_privilege</code> | <code>object</code> | Manfaat dan janji layanan yang ditampilkan untuk produk. |
| <code>data.model.product.product_privilege.privilege_info_label</code> | <code>object</code> | Informasi tampilan untuk manfaat produk. |
| <code>data.model.product.product_privilege.privilege_info_label.privilege_id</code> | <code>integer</code> | Identifikasi yang dilaporkan untuk grup manfaat produk. |
| <code>data.model.product.product_privilege.privilege_info_label.privilege_info_detail</code> | <code>array</code> | Entri manfaat yang ditampilkan untuk produk. |
| <code>data.model.product.product_privilege.privilege_info_label.privilege_info_detail[]</code> | <code>object</code> | Satu entri manfaat produk. |
| <code>data.model.product.product_privilege.privilege_info_label.privilege_info_detail[].tag_id</code> | <code>string</code> | Identifikasi tag untuk manfaat ini. |
| <code>data.model.product.product_privilege.privilege_info_label.privilege_info_detail[].title</code> | <code>string</code> | Judul tampilan untuk manfaat ini. |
| <code>data.model.product.product_privilege.privilege_info_label.privilege_info_detail[].content</code> | <code>string</code> | Teks tampilan yang menjelaskan manfaat ini. |
| <code>data.model.product.product_privilege.privilege_info_label.privilege_info_detail[].icon</code> | <code>object</code> | Ikon untuk manfaat yang ditampilkan. |
| <code>data.model.product.product_privilege.privilege_info_label.privilege_info_detail[].icon.url_list</code> | <code>array</code> | URL gambar untuk ikon manfaat. |
| <code>data.model.product.product_privilege.privilege_info_label.privilege_info_detail[].icon.url_list[]</code> | <code>string</code> | Satu URL gambar untuk ikon manfaat ini. |
| <code>data.model.product.product_privilege.privilege_info_label.privilege_info_detail[].link</code> | <code>string</code> | Link aplikasi Douyin yang terkait dengan manfaat, jika diberikan. |
| <code>data.model.shop</code> | <code>object</code> | Informasi tentang toko yang terkait dengan produk tersebut. |
| <code>data.model.shop.shop_id</code> | <code>string</code> | ID toko e-commerce Douyin. |
| <code>data.model.shop.shop_base</code> | <code>object</code> | Informasi dasar toko. |
| <code>data.model.shop.shop_base.shop_name</code> | <code>string</code> | Nama toko yang ditampilkan. |
| <code>data.model.shop.shop_base.shop_logo</code> | <code>string</code> | URL gambar logo toko. |
| <code>data.model.shop.shop_base.platform_source</code> | <code>integer</code> | Kode sumber platform yang dilaporkan untuk toko tersebut. |
| <code>data.model.promotion_data</code> | <code>object</code> | Status modul promosi. |
| <code>data.model.promotion_data.code</code> | <code>integer</code> | Kode status yang dilaporkan untuk modul ini. |
| <code>data.model.comment_data</code> | <code>object</code> | Status modul komentar. |
| <code>data.model.comment_data.code</code> | <code>integer</code> | Kode status yang dilaporkan untuk modul ini. |
| <code>data.model.author_data</code> | <code>object</code> | Status modul penulis. |
| <code>data.model.author_data.code</code> | <code>integer</code> | Kode status yang dilaporkan untuk modul ini. |
| <code>data.model.content_data</code> | <code>object</code> | Status modul konten. |
| <code>data.model.content_data.code</code> | <code>integer</code> | Kode status yang dilaporkan untuk modul ini. |
| <code>data.model.hot_content_data</code> | <code>object</code> | Status modul konten populer. |
| <code>data.model.hot_content_data.code</code> | <code>integer</code> | Kode status yang dilaporkan untuk modul ini. |
| <code>data.model.shop_product_data</code> | <code>object</code> | Status modul produk toko. |
| <code>data.model.shop_product_data.code</code> | <code>integer</code> | Kode status yang dilaporkan untuk modul ini. |
| <code>data.model.material_data</code> | <code>object</code> | Status modul bahan. |
| <code>data.model.material_data.code</code> | <code>integer</code> | Kode status yang dilaporkan untuk modul ini. |
| <code>data.label</code> | <code>object</code> | Label tampilan yang terkait dengan produk. |
| <code>data.label.service_module</code> | <code>object</code> | Modul layanan yang ditampilkan untuk produk. |
| <code>data.label.service_module.module_list</code> | <code>array</code> | Daftar modul layanan. |
| <code>data.label.service_module.module_list[]</code> | <code>object</code> | Satu modul layanan yang ditampilkan. |
| <code>data.label.service_module.module_list[].module_type</code> | <code>string</code> | Identifikasi jenis modul layanan. |
| <code>data.label.service_module.module_list[].title</code> | <code>object</code> | Judul tampilan modul layanan. |
| <code>data.label.service_module.module_list[].title.title_list</code> | <code>array</code> | Bagian-bagian yang membentuk judul modul layanan. |
| <code>data.label.service_module.module_list[].title.title_list[]</code> | <code>object</code> | Satu bagian tampilan dalam judul modul layanan. |
| <code>data.label.service_module.module_list[].title.title_list[].rich_text</code> | <code>object</code> | Informasi teks mendalam untuk bagian judul. |
| <code>data.label.service_module.module_list[].title.title_list[].rich_text.rich_text_type</code> | <code>integer</code> | Kode jenis untuk bagian teks mendalam. |
| <code>data.label.service_module.module_list[].title.title_list[].rich_text.text</code> | <code>object</code> | Objek teks dalam bagian teks mendalam. |
| <code>data.label.service_module.module_list[].title.title_list[].rich_text.text.text</code> | <code>string</code> | Teks tampilan untuk bagian judul. |
| <code>data.label.service_module.module_list[].title.title_list[].suffix_type</code> | <code>integer</code> | Kode jenis untuk entri tampilan ini. |
| <code>data.label.service_module.module_list[].content</code> | <code>object</code> | Detail yang ditampilkan dalam modul layanan. |
| <code>data.label.service_module.module_list[].content.content_list</code> | <code>array</code> | Entri yang ditampilkan dalam detail modul layanan. |
| <code>data.label.service_module.module_list[].content.content_list[]</code> | <code>object</code> | Satu entri dalam detail modul layanan. |
| <code>data.label.service_module.module_list[].content.content_list[].content_type</code> | <code>string</code> | Identifikasi jenis untuk entri tampilan. |
| <code>data.label.service_module.module_list[].content.content_list[].content</code> | <code>object</code> | Konten yang ditampilkan untuk entri ini. |
| <code>data.label.service_module.module_list[].content.content_list[].content.title_list</code> | <code>array</code> | Bagian judul untuk konten tampilan. |
| <code>data.label.service_module.module_list[].content.content_list[].content.title_list[]</code> | <code>object</code> | Satu bagian judul tampilan. |
| <code>data.label.service_module.module_list[].content.content_list[].content.title_list[].rich_text</code> | <code>object</code> | Informasi teks padat untuk bagian judul konten. |
| <code>data.label.service_module.module_list[].content.content_list[].content.title_list[].rich_text.rich_text_type</code> | <code>integer</code> | Kode jenis untuk bagian teks mendalam. |
| <code>data.label.service_module.module_list[].content.content_list[].content.title_list[].rich_text.text</code> | <code>object</code> | Objek teks dalam bagian teks mendalam. |
| <code>data.label.service_module.module_list[].content.content_list[].content.title_list[].rich_text.text.text</code> | <code>string</code> | Teks tampilan untuk bagian judul konten. |
| <code>data.label.service_module.module_list[].content.content_list[].content.title_list[].rich_text.text.font_color</code> | <code>string</code> | Nilai warna untuk teks. Field ini dapat berupa string kosong. |
| <code>data.label.service_module.module_list[].content.content_list[].content.title_list[].suffix_type</code> | <code>integer</code> | Kode jenis untuk entri tampilan ini. |
| <code>data.label.service_module.module_list[].content.content_list[].suffix_type</code> | <code>integer</code> | Kode jenis untuk entri tampilan ini. |

</div>

## Contoh Respons

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

