---
title: "E-commerce Douyin Pencarian Produk API (V1)"
description: "Cari produk e-commerce Douyin dengan kata kunci, dengan paginasi halaman dan ID pencarian. Gunakan untuk menemukan produk di pasar dan melanjutkan pencarian berbagai halaman."
lastUpdated: false
aiUsagePrompt: true
---

# E\-commerce Douyin Pencarian Produk API \(V1\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/douyin-ec/search-item-list/v1\"")'
  :summary='JSON.parse("\"Pencarian Produk (V1)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/douyin-e-commerce/product-search-v1-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\":\"keyword\",\"in\":\"query\",\"description\":\"Kata kunci pencarian.\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"page\",\"in\":\"query\",\"description\":\"Nomor halaman untuk paginasi.\",\"required\":false,\"schema\":{\"type\":\"string\"}},{\"name\":\"searchId\",\"in\":\"query\",\"description\":\"ID pencarian; gunakan nilai search_id yang dikembalikan oleh respons terakhir untuk halaman berikutnya.\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"\"}}]")'
  :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\":\"Satu halaman hasil pencarian produk e-commerce Douyin. Respons yang berhasil dapat memiliki data null.\",\"properties\":{\"summary_promotions\":{\"type\":\"array\",\"description\":\"Ringkasan produk di halaman yang diminta. Array ini dapat kosong.\",\"items\":{\"type\":\"object\",\"description\":\"Ringkasan satu produk yang ditampilkan dalam hasil pencarian.\",\"properties\":{\"product_id\":{\"type\":\"string\",\"description\":\"ID produk e-commerce Douyin dalam bentuk teks.\"},\"promotion_id\":{\"type\":\"string\",\"description\":\"ID listing promosi dalam bentuk teks.\"},\"base_model\":{\"type\":\"object\",\"description\":\"Informasi produk, harga, dan toko untuk hasil pencarian.\",\"properties\":{\"product_info\":{\"type\":\"object\",\"description\":\"Informasi produk yang ditampilkan untuk hasil pencarian ini.\",\"properties\":{\"name\":{\"type\":\"string\",\"description\":\"Nama produk yang ditampilkan dalam hasil pencarian ini.\"},\"category\":{\"type\":\"object\",\"description\":\"Hierarki kategori produk yang dilaporkan.\",\"properties\":{\"first_category\":{\"type\":\"object\",\"description\":\"Kategori produk tingkat pertama.\",\"properties\":{\"category_id\":{\"type\":\"integer\",\"description\":\"ID kategori untuk tingkat ini. Kategori yang tidak digunakan dapat memiliki ID 0.\"},\"category_name\":{\"type\":\"string\",\"description\":\"Nama kategori untuk tingkat ini, yang mungkin kosong.\"}}},\"second_category\":{\"type\":\"object\",\"description\":\"Kategori produk tingkat kedua.\",\"properties\":{\"category_id\":{\"type\":\"integer\",\"description\":\"ID kategori untuk tingkat ini. Kategori yang tidak digunakan dapat memiliki ID 0.\"},\"category_name\":{\"type\":\"string\",\"description\":\"Nama kategori untuk tingkat ini, yang mungkin kosong.\"}}},\"third_category\":{\"type\":\"object\",\"description\":\"Kategori produk tingkat ketiga.\",\"properties\":{\"category_id\":{\"type\":\"integer\",\"description\":\"ID kategori untuk tingkat ini. Kategori yang tidak digunakan dapat memiliki ID 0.\"},\"category_name\":{\"type\":\"string\",\"description\":\"Nama kategori untuk tingkat ini, yang mungkin kosong.\"}}},\"fourth_category\":{\"type\":\"object\",\"description\":\"Kategori produk tingkat keempat, jika tersedia.\",\"properties\":{\"category_id\":{\"type\":\"integer\",\"description\":\"ID kategori untuk tingkat ini. Kategori yang tidak digunakan dapat memiliki ID 0.\"},\"category_name\":{\"type\":\"string\",\"description\":\"Nama kategori untuk tingkat ini, yang mungkin kosong.\"}}},\"leaf_layer\":{\"type\":\"integer\",\"description\":\"Tingkat kategori yang paling dalam yang dilaporkan.\"}}},\"main_img\":{\"type\":\"object\",\"description\":\"Gambar utama produk.\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"Identifikasi sumber daya platform untuk gambar utama.\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL gambar produk yang dihasilkan.\",\"items\":{\"type\":\"string\",\"description\":\"Satu URL untuk gambar produk.\"}}}},\"white_img\":{\"type\":\"object\",\"description\":\"Gambar produk dengan latar belakang putih, jika tersedia.\",\"properties\":{\"url_list\":{\"type\":\"array\",\"description\":\"URL gambar produk yang dihasilkan.\",\"items\":{\"type\":\"string\",\"description\":\"Satu URL untuk gambar produk.\"}}}},\"good_ratio\":{\"type\":\"object\",\"description\":\"Persentase penilaian positif yang dilaporkan dengan bagian tampilan, jika tersedia.\",\"properties\":{\"origin\":{\"type\":\"number\",\"description\":\"Persentase penilaian positif pada skala yang ditampilkan.\"},\"integer\":{\"type\":\"string\",\"description\":\"Bagian angka bulat dari persentase yang ditampilkan dalam bentuk teks.\"},\"decimal\":{\"type\":\"string\",\"description\":\"Teks persempilahan untuk persentase yang mungkin kosong.\"},\"suffix\":{\"type\":\"string\",\"description\":\"Suku yang ditampilkan bersama persentase.\"}}},\"month_sale\":{\"type\":\"object\",\"description\":\"Angka penjualan bulanan yang dilaporkan untuk produk.\",\"properties\":{\"origin\":{\"type\":\"integer\",\"description\":\"Jumlah penjualan bulanan yang dilaporkan.\"}}},\"month_sale_text\":{\"type\":\"string\",\"description\":\"Teks yang ditampilkan bersama angka penjualan bulanan tersebut.\"},\"sale_axis\":{\"type\":\"array\",\"description\":\"Angka penjualan yang dilaporkan berdasarkan tanggal.\",\"items\":{\"type\":\"object\",\"description\":\"Satu titik dalam seri angka penjualan yang dilaporkan.\",\"properties\":{\"x\":{\"type\":\"string\",\"description\":\"Tanggal titik penjualan ini dalam format YYYYMMDD.\"},\"y\":{\"type\":\"integer\",\"description\":\"Nilai penjualan yang dilaporkan untuk tanggal tersebut.\"}}}}}},\"marketing_info\":{\"type\":\"object\",\"description\":\"Informasi penampilan harga produk.\",\"properties\":{\"price_desc\":{\"type\":\"object\",\"description\":\"Harga saat ini dan harga perbandingan jika ada.\",\"properties\":{\"price\":{\"type\":\"object\",\"description\":\"Harga saat ini dan bagian penampilannya.\",\"properties\":{\"origin\":{\"type\":\"integer\",\"description\":\"Jumlah yang dinyatakan dalam persentase dari satuan harga yang ditampilkan.\"},\"integer\":{\"type\":\"string\",\"description\":\"Bagian angka bulat dari jumlah yang ditampilkan dalam teks.\"},\"decimal\":{\"type\":\"string\",\"description\":\"Teks penampilan angka desimal, yang mungkin kosong.\"},\"suffix\":{\"type\":\"string\",\"description\":\"Teks yang ditambahkan pada jumlah yang ditampilkan, yang mungkin kosong.\"}}},\"regular_price\":{\"type\":\"object\",\"description\":\"Harga reguler untuk perbandingan, jika tersedia.\",\"properties\":{\"origin\":{\"type\":\"integer\",\"description\":\"Jumlah yang dinyatakan dalam persentase dari satuan harga yang ditampilkan.\"},\"integer\":{\"type\":\"string\",\"description\":\"Bagian angka bulat dari jumlah yang ditampilkan dalam teks.\"},\"decimal\":{\"type\":\"string\",\"description\":\"Teks penampilan angka desimal, yang mungkin kosong.\"},\"suffix\":{\"type\":\"string\",\"description\":\"Teks yang ditambahkan pada jumlah yang ditampilkan, yang mungkin kosong.\"}}},\"price_text\":{\"type\":\"string\",\"description\":\"Teks harga yang ditampilkan untuk produk.\"}}}}},\"shop_info\":{\"type\":\"object\",\"description\":\"Informasi toko yang ditampilkan untuk produk ini.\",\"properties\":{\"shop_id\":{\"type\":\"integer\",\"description\":\"ID numerik dari toko.\"},\"shop_name\":{\"type\":\"string\",\"description\":\"Nama toko yang ditampilkan dalam hasil pencarian.\"},\"shop_score_info\":{\"type\":\"object\",\"description\":\"Informasi skor toko dan flag ketersediaannya.\",\"properties\":{\"has_data\":{\"type\":\"boolean\",\"description\":\"Apakah data skor toko dilaporkan sebagai tersedia.\"},\"shop_score\":{\"type\":\"object\",\"description\":\"Detail skor toko yang dilaporkan.\",\"properties\":{\"score\":{\"type\":\"integer\",\"description\":\"Nilai skor toko yang dikembalikan dalam bentuk integer.\"}}}}}}}}}}}},\"promotions\":{\"type\":\"array\",\"description\":\"Daftar hasil promosi terpisah. Mungkin kosong meskipun summary_promotions berisi entri.\",\"items\":{\"type\":\"object\",\"description\":\"Satu entri dari daftar promosi terpisah.\",\"properties\":{\"product_id\":{\"type\":\"string\",\"description\":\"ID produk e-commerce Douyin dalam bentuk teks.\"},\"promotion_id\":{\"type\":\"string\",\"description\":\"ID listing promosi dalam bentuk teks.\"}}}},\"has_more\":{\"type\":\"boolean\",\"description\":\"Apakah halaman lain dilaporkan. Permintaan tindak lanjut masih bisa mengembalikan hasil kosong.\"},\"total\":{\"type\":\"integer\",\"description\":\"Jumlah hasil produk yang dilaporkan untuk respons ini. Hal ini dapat bervariasi antar halaman.\"},\"extra\":{\"type\":[\"object\",\"null\"],\"description\":\"Metadata paginasi, yang dapat bernilai null pada halaman kosong.\",\"properties\":{\"search_id\":{\"type\":\"string\",\"description\":\"Identifikasi pencarian yang akan dikirim sebagai searchId ketika melanjutkan dengan kata kunci yang sama ke halaman berikutnya. Gunakan has_more untuk menentukan apakah akan melanjutkan.\"}}}}}}},\"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/search-item-list/v1\"")' />

<p>Cari produk e-commerce Douyin dengan kata kunci, dengan paginasi halaman dan ID pencarian. Gunakan untuk menemukan produk di pasar dan melanjutkan pencarian berbagai halaman.</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>keyword</code> | query | <code>string</code> | Ya | - | Kata kunci pencarian. |
| <code>page</code> | query | <code>string</code> | Tidak | - | Nomor halaman untuk paginasi. |
| <code>searchId</code> | query | <code>string</code> | Tidak | <code></code> | ID pencarian; gunakan nilai search_id yang dikembalikan oleh respons terakhir untuk halaman berikutnya. |

</div>

## Contoh Kode

::: code-group

```bash [🐚 cURL]
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/douyin-ec/search-item-list/v1?token=YOUR_API_KEY&keyword=VALUE'
```

```text [🤖 Prompt AI]
Saya ingin menggunakan API "Pencarian Produk (V1)" dari JustOneAPI.
URL dasar: https://api.justoneapi.com.
Jalur API: /api/douyin-ec/search-item-list/v1?token=YOUR_API_KEY&keyword=VALUE
Endpoint API: BASE_URL + /api/douyin-ec/search-item-list/v1?token=YOUR_API_KEY&keyword=VALUE
Metode HTTP: GET
Autentikasi: Tambahkan parameter query "token" ke URL.
Definisi OpenAPI: https://docs.justoneapi.com/openapi/douyin-e-commerce/product-search-v1-id.json

Parameter:
- token (query): Token akses untuk layanan API ini. (Wajib)
- keyword (query): Kata kunci pencarian. (Wajib)
- page (query): Nomor halaman untuk paginasi.
- searchId (query): ID pencarian; gunakan nilai search_id yang dikembalikan oleh respons terakhir untuk halaman berikutnya.

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/search-item-list/v1?token=YOUR_API_KEY&keyword=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/search-item-list/v1?token=YOUR_API_KEY&keyword=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/search-item-list/v1?token=YOUR_API_KEY&keyword=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/search-item-list/v1?token=YOUR_API_KEY&keyword=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/search-item-list/v1?token=YOUR_API_KEY&keyword=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/product-search-v1-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> | Satu halaman hasil pencarian produk e-commerce Douyin. Respons yang berhasil dapat memiliki data null. |
| <code>data.summary_promotions</code> | <code>array</code> | Ringkasan produk di halaman yang diminta. Array ini dapat kosong. |
| <code>data.summary_promotions[]</code> | <code>object</code> | Ringkasan satu produk yang ditampilkan dalam hasil pencarian. |
| <code>data.summary_promotions[].product_id</code> | <code>string</code> | ID produk e-commerce Douyin dalam bentuk teks. |
| <code>data.summary_promotions[].promotion_id</code> | <code>string</code> | ID listing promosi dalam bentuk teks. |
| <code>data.summary_promotions[].base_model</code> | <code>object</code> | Informasi produk, harga, dan toko untuk hasil pencarian. |
| <code>data.summary_promotions[].base_model.product_info</code> | <code>object</code> | Informasi produk yang ditampilkan untuk hasil pencarian ini. |
| <code>data.summary_promotions[].base_model.product_info.name</code> | <code>string</code> | Nama produk yang ditampilkan dalam hasil pencarian ini. |
| <code>data.summary_promotions[].base_model.product_info.category</code> | <code>object</code> | Hierarki kategori produk yang dilaporkan. |
| <code>data.summary_promotions[].base_model.product_info.category.first_category</code> | <code>object</code> | Kategori produk tingkat pertama. |
| <code>data.summary_promotions[].base_model.product_info.category.first_category.category_id</code> | <code>integer</code> | ID kategori untuk tingkat ini. Kategori yang tidak digunakan dapat memiliki ID 0. |
| <code>data.summary_promotions[].base_model.product_info.category.first_category.category_name</code> | <code>string</code> | Nama kategori untuk tingkat ini, yang mungkin kosong. |
| <code>data.summary_promotions[].base_model.product_info.category.second_category</code> | <code>object</code> | Kategori produk tingkat kedua. |
| <code>data.summary_promotions[].base_model.product_info.category.second_category.category_id</code> | <code>integer</code> | ID kategori untuk tingkat ini. Kategori yang tidak digunakan dapat memiliki ID 0. |
| <code>data.summary_promotions[].base_model.product_info.category.second_category.category_name</code> | <code>string</code> | Nama kategori untuk tingkat ini, yang mungkin kosong. |
| <code>data.summary_promotions[].base_model.product_info.category.third_category</code> | <code>object</code> | Kategori produk tingkat ketiga. |
| <code>data.summary_promotions[].base_model.product_info.category.third_category.category_id</code> | <code>integer</code> | ID kategori untuk tingkat ini. Kategori yang tidak digunakan dapat memiliki ID 0. |
| <code>data.summary_promotions[].base_model.product_info.category.third_category.category_name</code> | <code>string</code> | Nama kategori untuk tingkat ini, yang mungkin kosong. |
| <code>data.summary_promotions[].base_model.product_info.category.fourth_category</code> | <code>object</code> | Kategori produk tingkat keempat, jika tersedia. |
| <code>data.summary_promotions[].base_model.product_info.category.fourth_category.category_id</code> | <code>integer</code> | ID kategori untuk tingkat ini. Kategori yang tidak digunakan dapat memiliki ID 0. |
| <code>data.summary_promotions[].base_model.product_info.category.fourth_category.category_name</code> | <code>string</code> | Nama kategori untuk tingkat ini, yang mungkin kosong. |
| <code>data.summary_promotions[].base_model.product_info.category.leaf_layer</code> | <code>integer</code> | Tingkat kategori yang paling dalam yang dilaporkan. |
| <code>data.summary_promotions[].base_model.product_info.main_img</code> | <code>object</code> | Gambar utama produk. |
| <code>data.summary_promotions[].base_model.product_info.main_img.uri</code> | <code>string</code> | Identifikasi sumber daya platform untuk gambar utama. |
| <code>data.summary_promotions[].base_model.product_info.main_img.url_list</code> | <code>array</code> | URL gambar produk yang dihasilkan. |
| <code>data.summary_promotions[].base_model.product_info.main_img.url_list[]</code> | <code>string</code> | Satu URL untuk gambar produk. |
| <code>data.summary_promotions[].base_model.product_info.white_img</code> | <code>object</code> | Gambar produk dengan latar belakang putih, jika tersedia. |
| <code>data.summary_promotions[].base_model.product_info.white_img.url_list</code> | <code>array</code> | URL gambar produk yang dihasilkan. |
| <code>data.summary_promotions[].base_model.product_info.white_img.url_list[]</code> | <code>string</code> | Satu URL untuk gambar produk. |
| <code>data.summary_promotions[].base_model.product_info.good_ratio</code> | <code>object</code> | Persentase penilaian positif yang dilaporkan dengan bagian tampilan, jika tersedia. |
| <code>data.summary_promotions[].base_model.product_info.good_ratio.origin</code> | <code>number</code> | Persentase penilaian positif pada skala yang ditampilkan. |
| <code>data.summary_promotions[].base_model.product_info.good_ratio.integer</code> | <code>string</code> | Bagian angka bulat dari persentase yang ditampilkan dalam bentuk teks. |
| <code>data.summary_promotions[].base_model.product_info.good_ratio.decimal</code> | <code>string</code> | Teks persempilahan untuk persentase yang mungkin kosong. |
| <code>data.summary_promotions[].base_model.product_info.good_ratio.suffix</code> | <code>string</code> | Suku yang ditampilkan bersama persentase. |
| <code>data.summary_promotions[].base_model.product_info.month_sale</code> | <code>object</code> | Angka penjualan bulanan yang dilaporkan untuk produk. |
| <code>data.summary_promotions[].base_model.product_info.month_sale.origin</code> | <code>integer</code> | Jumlah penjualan bulanan yang dilaporkan. |
| <code>data.summary_promotions[].base_model.product_info.month_sale_text</code> | <code>string</code> | Teks yang ditampilkan bersama angka penjualan bulanan tersebut. |
| <code>data.summary_promotions[].base_model.product_info.sale_axis</code> | <code>array</code> | Angka penjualan yang dilaporkan berdasarkan tanggal. |
| <code>data.summary_promotions[].base_model.product_info.sale_axis[]</code> | <code>object</code> | Satu titik dalam seri angka penjualan yang dilaporkan. |
| <code>data.summary_promotions[].base_model.product_info.sale_axis[].x</code> | <code>string</code> | Tanggal titik penjualan ini dalam format YYYYMMDD. |
| <code>data.summary_promotions[].base_model.product_info.sale_axis[].y</code> | <code>integer</code> | Nilai penjualan yang dilaporkan untuk tanggal tersebut. |
| <code>data.summary_promotions[].base_model.marketing_info</code> | <code>object</code> | Informasi penampilan harga produk. |
| <code>data.summary_promotions[].base_model.marketing_info.price_desc</code> | <code>object</code> | Harga saat ini dan harga perbandingan jika ada. |
| <code>data.summary_promotions[].base_model.marketing_info.price_desc.price</code> | <code>object</code> | Harga saat ini dan bagian penampilannya. |
| <code>data.summary_promotions[].base_model.marketing_info.price_desc.price.origin</code> | <code>integer</code> | Jumlah yang dinyatakan dalam persentase dari satuan harga yang ditampilkan. |
| <code>data.summary_promotions[].base_model.marketing_info.price_desc.price.integer</code> | <code>string</code> | Bagian angka bulat dari jumlah yang ditampilkan dalam teks. |
| <code>data.summary_promotions[].base_model.marketing_info.price_desc.price.decimal</code> | <code>string</code> | Teks penampilan angka desimal, yang mungkin kosong. |
| <code>data.summary_promotions[].base_model.marketing_info.price_desc.price.suffix</code> | <code>string</code> | Teks yang ditambahkan pada jumlah yang ditampilkan, yang mungkin kosong. |
| <code>data.summary_promotions[].base_model.marketing_info.price_desc.regular_price</code> | <code>object</code> | Harga reguler untuk perbandingan, jika tersedia. |
| <code>data.summary_promotions[].base_model.marketing_info.price_desc.regular_price.origin</code> | <code>integer</code> | Jumlah yang dinyatakan dalam persentase dari satuan harga yang ditampilkan. |
| <code>data.summary_promotions[].base_model.marketing_info.price_desc.regular_price.integer</code> | <code>string</code> | Bagian angka bulat dari jumlah yang ditampilkan dalam teks. |
| <code>data.summary_promotions[].base_model.marketing_info.price_desc.regular_price.decimal</code> | <code>string</code> | Teks penampilan angka desimal, yang mungkin kosong. |
| <code>data.summary_promotions[].base_model.marketing_info.price_desc.regular_price.suffix</code> | <code>string</code> | Teks yang ditambahkan pada jumlah yang ditampilkan, yang mungkin kosong. |
| <code>data.summary_promotions[].base_model.marketing_info.price_desc.price_text</code> | <code>string</code> | Teks harga yang ditampilkan untuk produk. |
| <code>data.summary_promotions[].base_model.shop_info</code> | <code>object</code> | Informasi toko yang ditampilkan untuk produk ini. |
| <code>data.summary_promotions[].base_model.shop_info.shop_id</code> | <code>integer</code> | ID numerik dari toko. |
| <code>data.summary_promotions[].base_model.shop_info.shop_name</code> | <code>string</code> | Nama toko yang ditampilkan dalam hasil pencarian. |
| <code>data.summary_promotions[].base_model.shop_info.shop_score_info</code> | <code>object</code> | Informasi skor toko dan flag ketersediaannya. |
| <code>data.summary_promotions[].base_model.shop_info.shop_score_info.has_data</code> | <code>boolean</code> | Apakah data skor toko dilaporkan sebagai tersedia. |
| <code>data.summary_promotions[].base_model.shop_info.shop_score_info.shop_score</code> | <code>object</code> | Detail skor toko yang dilaporkan. |
| <code>data.summary_promotions[].base_model.shop_info.shop_score_info.shop_score.score</code> | <code>integer</code> | Nilai skor toko yang dikembalikan dalam bentuk integer. |
| <code>data.promotions</code> | <code>array</code> | Daftar hasil promosi terpisah. Mungkin kosong meskipun summary_promotions berisi entri. |
| <code>data.promotions[]</code> | <code>object</code> | Satu entri dari daftar promosi terpisah. |
| <code>data.promotions[].product_id</code> | <code>string</code> | ID produk e-commerce Douyin dalam bentuk teks. |
| <code>data.promotions[].promotion_id</code> | <code>string</code> | ID listing promosi dalam bentuk teks. |
| <code>data.has_more</code> | <code>boolean</code> | Apakah halaman lain dilaporkan. Permintaan tindak lanjut masih bisa mengembalikan hasil kosong. |
| <code>data.total</code> | <code>integer</code> | Jumlah hasil produk yang dilaporkan untuk respons ini. Hal ini dapat bervariasi antar halaman. |
| <code>data.extra</code> | <code>object &#124; null</code> | Metadata paginasi, yang dapat bernilai null pada halaman kosong. |
| <code>data.extra.search_id</code> | <code>string</code> | Identifikasi pencarian yang akan dikirim sebagai searchId ketika melanjutkan dengan kata kunci yang sama ke halaman berikutnya. Gunakan has_more untuk menentukan apakah akan melanjutkan. |

</div>

## Contoh Respons

<ApiExampleSection :api='JSON.parse("\"/api/douyin-ec/search-item-list/v1\"")' />

