---
title: "Douyin E-commerce Product Search API (V1)"
description: "Searches Douyin E-commerce products by keyword with page and search-ID pagination. Use it to discover marketplace products and continue a multi-page search."
aiUsagePrompt: true
---

# Douyin E\-commerce Product Search API \(V1\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/douyin-ec/search-item-list/v1\"")'
  :summary='JSON.parse("\"Product Search (V1)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/douyin-e-commerce/product-search-v1-en.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"Access token for this API service.\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"keyword\",\"in\":\"query\",\"description\":\"Search keyword.\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"page\",\"in\":\"query\",\"description\":\"Page number for pagination.\",\"required\":false,\"schema\":{\"type\":\"string\"}},{\"name\":\"searchId\",\"in\":\"query\",\"description\":\"Search ID; use the search_id value returned by the last response for subsequent pages.\",\"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\":\"One page of Douyin E-commerce product search results. A successful response can have null data.\",\"properties\":{\"summary_promotions\":{\"type\":\"array\",\"description\":\"Product summaries on the requested page. The array can be empty.\",\"items\":{\"type\":\"object\",\"description\":\"One product summary returned in the search results.\",\"properties\":{\"product_id\":{\"type\":\"string\",\"description\":\"Douyin E-commerce product ID as text.\"},\"promotion_id\":{\"type\":\"string\",\"description\":\"Promotion listing ID as text.\"},\"base_model\":{\"type\":\"object\",\"description\":\"Product, price and shop information for the result.\",\"properties\":{\"product_info\":{\"type\":\"object\",\"description\":\"Product information displayed for this result.\",\"properties\":{\"name\":{\"type\":\"string\",\"description\":\"Product name displayed in this result.\"},\"category\":{\"type\":\"object\",\"description\":\"Reported product category hierarchy.\",\"properties\":{\"first_category\":{\"type\":\"object\",\"description\":\"First-level product category.\",\"properties\":{\"category_id\":{\"type\":\"integer\",\"description\":\"Category ID for this level. An unused level can have ID 0.\"},\"category_name\":{\"type\":\"string\",\"description\":\"Category name for this level, which may be empty.\"}}},\"second_category\":{\"type\":\"object\",\"description\":\"Second-level product category.\",\"properties\":{\"category_id\":{\"type\":\"integer\",\"description\":\"Category ID for this level. An unused level can have ID 0.\"},\"category_name\":{\"type\":\"string\",\"description\":\"Category name for this level, which may be empty.\"}}},\"third_category\":{\"type\":\"object\",\"description\":\"Third-level product category.\",\"properties\":{\"category_id\":{\"type\":\"integer\",\"description\":\"Category ID for this level. An unused level can have ID 0.\"},\"category_name\":{\"type\":\"string\",\"description\":\"Category name for this level, which may be empty.\"}}},\"fourth_category\":{\"type\":\"object\",\"description\":\"Fourth-level product category, when populated.\",\"properties\":{\"category_id\":{\"type\":\"integer\",\"description\":\"Category ID for this level. An unused level can have ID 0.\"},\"category_name\":{\"type\":\"string\",\"description\":\"Category name for this level, which may be empty.\"}}},\"leaf_layer\":{\"type\":\"integer\",\"description\":\"Deepest reported category level.\"}}},\"main_img\":{\"type\":\"object\",\"description\":\"Main image for the product.\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"Platform resource identifier for the main image.\"},\"url_list\":{\"type\":\"array\",\"description\":\"Image URLs returned for this asset.\",\"items\":{\"type\":\"string\",\"description\":\"One URL for the product image.\"}}}},\"white_img\":{\"type\":\"object\",\"description\":\"White-background product image, when available.\",\"properties\":{\"url_list\":{\"type\":\"array\",\"description\":\"Image URLs returned for this asset.\",\"items\":{\"type\":\"string\",\"description\":\"One URL for the product image.\"}}}},\"good_ratio\":{\"type\":\"object\",\"description\":\"Reported share of positive ratings with display parts, when available.\",\"properties\":{\"origin\":{\"type\":\"number\",\"description\":\"Positive rating percentage on the displayed scale.\"},\"integer\":{\"type\":\"string\",\"description\":\"Whole-number part of the displayed percentage as text.\"},\"decimal\":{\"type\":\"string\",\"description\":\"Fractional display text for the percentage, which may be empty.\"},\"suffix\":{\"type\":\"string\",\"description\":\"Suffix shown with the percentage.\"}}},\"month_sale\":{\"type\":\"object\",\"description\":\"Monthly sales figure reported for the product.\",\"properties\":{\"origin\":{\"type\":\"integer\",\"description\":\"Reported monthly sales count.\"}}},\"month_sale_text\":{\"type\":\"string\",\"description\":\"Display text accompanying the monthly sales figure.\"},\"sale_axis\":{\"type\":\"array\",\"description\":\"Sales figures reported by date.\",\"items\":{\"type\":\"object\",\"description\":\"One point in the reported sales series.\",\"properties\":{\"x\":{\"type\":\"string\",\"description\":\"Date of this sales point as YYYYMMDD text.\"},\"y\":{\"type\":\"integer\",\"description\":\"Sales value reported for this date.\"}}}}}},\"marketing_info\":{\"type\":\"object\",\"description\":\"Price display information for the product.\",\"properties\":{\"price_desc\":{\"type\":\"object\",\"description\":\"Reported current price and any comparison price.\",\"properties\":{\"price\":{\"type\":\"object\",\"description\":\"Current price and its display parts.\",\"properties\":{\"origin\":{\"type\":\"integer\",\"description\":\"Amount expressed in hundredths of the displayed price unit.\"},\"integer\":{\"type\":\"string\",\"description\":\"Whole-number part of the displayed amount as text.\"},\"decimal\":{\"type\":\"string\",\"description\":\"Fractional display text, which may be empty.\"},\"suffix\":{\"type\":\"string\",\"description\":\"Text appended to the displayed amount, which may be empty.\"}}},\"regular_price\":{\"type\":\"object\",\"description\":\"Regular price for comparison, when supplied.\",\"properties\":{\"origin\":{\"type\":\"integer\",\"description\":\"Amount expressed in hundredths of the displayed price unit.\"},\"integer\":{\"type\":\"string\",\"description\":\"Whole-number part of the displayed amount as text.\"},\"decimal\":{\"type\":\"string\",\"description\":\"Fractional display text, which may be empty.\"},\"suffix\":{\"type\":\"string\",\"description\":\"Text appended to the displayed amount, which may be empty.\"}}},\"price_text\":{\"type\":\"string\",\"description\":\"Price text as displayed for the product.\"}}}}},\"shop_info\":{\"type\":\"object\",\"description\":\"Shop information shown for this product.\",\"properties\":{\"shop_id\":{\"type\":\"integer\",\"description\":\"Numeric ID of the shop.\"},\"shop_name\":{\"type\":\"string\",\"description\":\"Name of the shop shown in the search result.\"},\"shop_score_info\":{\"type\":\"object\",\"description\":\"Shop score information and its availability flag.\",\"properties\":{\"has_data\":{\"type\":\"boolean\",\"description\":\"Whether shop score data is reported as available.\"},\"shop_score\":{\"type\":\"object\",\"description\":\"Reported shop score details.\",\"properties\":{\"score\":{\"type\":\"integer\",\"description\":\"Shop score value returned as an integer.\"}}}}}}}}}}}},\"promotions\":{\"type\":\"array\",\"description\":\"Separate promotion result list. It may be empty even when summary_promotions contains entries.\",\"items\":{\"type\":\"object\",\"description\":\"One entry from the separate promotion list.\",\"properties\":{\"product_id\":{\"type\":\"string\",\"description\":\"Douyin E-commerce product ID as text.\"},\"promotion_id\":{\"type\":\"string\",\"description\":\"Promotion listing ID as text.\"}}}},\"has_more\":{\"type\":\"boolean\",\"description\":\"Whether another page is reported. A follow-up request can still return an empty result.\"},\"total\":{\"type\":\"integer\",\"description\":\"Reported product result count for this response. It may vary between pages.\"},\"extra\":{\"type\":[\"object\",\"null\"],\"description\":\"Pagination metadata, which can be null on an empty page.\",\"properties\":{\"search_id\":{\"type\":\"string\",\"description\":\"Search identifier to send as searchId when continuing with the same keyword and the next page. Use has_more to decide whether to continue.\"}}}}}}},\"allOf\":[{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}]}}}},\"400\":{\"description\":\"Invalid request parameters or body\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"401\":{\"description\":\"Invalid or inactive access token\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"403\":{\"description\":\"Permission denied\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"429\":{\"description\":\"Request rate or daily quota limit exceeded\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"500\":{\"description\":\"Internal server error\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"503\":{\"description\":\"Service temporarily unavailable\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}}}")'
  :servers='JSON.parse("[{\"url\":\"https://api.justoneapi.com\",\"description\":\"Global production API (default)\"}]")'
  :security='JSON.parse("[]")'
  :securitySchemes='JSON.parse("{}")'
  :schemas='JSON.parse("{}")'
/>

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

<p>Searches Douyin E-commerce products by keyword with page and search-ID pagination. Use it to discover marketplace products and continue a multi-page search.</p>

## Parameters

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

| Name | In | Type | Required | Default | Description |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | query | <code>string</code> | Yes | - | Access token for this API service. |
| <code>keyword</code> | query | <code>string</code> | Yes | - | Search keyword. |
| <code>page</code> | query | <code>string</code> | No | - | Page number for pagination. |
| <code>searchId</code> | query | <code>string</code> | No | <code></code> | Search ID; use the search_id value returned by the last response for subsequent pages. |

</div>

## Code Samples

::: 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 [🤖 AI Prompt]
I want to use the "Product Search (V1)" API from JustOneAPI.
Base URL: https://api.justoneapi.com.
API Path: /api/douyin-ec/search-item-list/v1?token=YOUR_API_KEY&keyword=VALUE
API Endpoint: BASE_URL + /api/douyin-ec/search-item-list/v1?token=YOUR_API_KEY&keyword=VALUE
HTTP Method: GET
Authentication: Append the "token" query parameter to the URL.
OpenAPI Definition: https://docs.justoneapi.com/openapi/douyin-e-commerce/product-search-v1-en.json

Parameters:
- token (query): Access token for this API service. (Required)
- keyword (query): Search keyword. (Required)
- page (query): Page number for pagination.
- searchId (query): Search ID; use the search_id value returned by the last response for subsequent pages.

Return format: safely handle JSON or text according to the actual Content-Type.

Response Handling & Error Codes:
1. Business results should be determined by the "code" field in the response body (code 0 means success).
2. Timeout Recommendation: Set the request timeout to 120 seconds. If 120 seconds is too long for your use case, use at least 60 seconds, but a small number of requests may time out before receiving a result.
3. Business Code Reference:
   - 0: Success
   - 100: Invalid or Inactive Token
   - 301: Collection Failed. Please Retry.
   - 302: Rate Limit Exceeded
   - 303: Daily Quota Exceeded
   - 400: Invalid Parameters
   - 500: Internal Server Error
   - 600: Permission Denied
   - 601: Insufficient Balance
   - 602: Token Budget Exceeded
4. Code 601 means the shared account balance is insufficient. Code 602 means the current API token's own cumulative budget limit has been reached. Token budget limits do not transfer funds out of the shared account balance.

Please help me write a script in my preferred programming language to call this API and handle the response.
```

```python [🐍 Python]
import requests

BASE_URL = "https://api.justoneapi.com"  # Provided by OpenAPI servers

url = BASE_URL + "/api/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"; // Provided by OpenAPI servers
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"; // Provided by OpenAPI servers
        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" // Provided by OpenAPI servers

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

## Response Fields

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

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

| Field path | Type | Description |
| --- | --- | --- |
| <code>data</code> | <code>object &#124; null</code> | One page of Douyin E-commerce product search results. A successful response can have null data. |
| <code>data.summary_promotions</code> | <code>array</code> | Product summaries on the requested page. The array can be empty. |
| <code>data.summary_promotions[]</code> | <code>object</code> | One product summary returned in the search results. |
| <code>data.summary_promotions[].product_id</code> | <code>string</code> | Douyin E-commerce product ID as text. |
| <code>data.summary_promotions[].promotion_id</code> | <code>string</code> | Promotion listing ID as text. |
| <code>data.summary_promotions[].base_model</code> | <code>object</code> | Product, price and shop information for the result. |
| <code>data.summary_promotions[].base_model.product_info</code> | <code>object</code> | Product information displayed for this result. |
| <code>data.summary_promotions[].base_model.product_info.name</code> | <code>string</code> | Product name displayed in this result. |
| <code>data.summary_promotions[].base_model.product_info.category</code> | <code>object</code> | Reported product category hierarchy. |
| <code>data.summary_promotions[].base_model.product_info.category.first_category</code> | <code>object</code> | First-level product category. |
| <code>data.summary_promotions[].base_model.product_info.category.first_category.category_id</code> | <code>integer</code> | Category ID for this level. An unused level can have ID 0. |
| <code>data.summary_promotions[].base_model.product_info.category.first_category.category_name</code> | <code>string</code> | Category name for this level, which may be empty. |
| <code>data.summary_promotions[].base_model.product_info.category.second_category</code> | <code>object</code> | Second-level product category. |
| <code>data.summary_promotions[].base_model.product_info.category.second_category.category_id</code> | <code>integer</code> | Category ID for this level. An unused level can have ID 0. |
| <code>data.summary_promotions[].base_model.product_info.category.second_category.category_name</code> | <code>string</code> | Category name for this level, which may be empty. |
| <code>data.summary_promotions[].base_model.product_info.category.third_category</code> | <code>object</code> | Third-level product category. |
| <code>data.summary_promotions[].base_model.product_info.category.third_category.category_id</code> | <code>integer</code> | Category ID for this level. An unused level can have ID 0. |
| <code>data.summary_promotions[].base_model.product_info.category.third_category.category_name</code> | <code>string</code> | Category name for this level, which may be empty. |
| <code>data.summary_promotions[].base_model.product_info.category.fourth_category</code> | <code>object</code> | Fourth-level product category, when populated. |
| <code>data.summary_promotions[].base_model.product_info.category.fourth_category.category_id</code> | <code>integer</code> | Category ID for this level. An unused level can have ID 0. |
| <code>data.summary_promotions[].base_model.product_info.category.fourth_category.category_name</code> | <code>string</code> | Category name for this level, which may be empty. |
| <code>data.summary_promotions[].base_model.product_info.category.leaf_layer</code> | <code>integer</code> | Deepest reported category level. |
| <code>data.summary_promotions[].base_model.product_info.main_img</code> | <code>object</code> | Main image for the product. |
| <code>data.summary_promotions[].base_model.product_info.main_img.uri</code> | <code>string</code> | Platform resource identifier for the main image. |
| <code>data.summary_promotions[].base_model.product_info.main_img.url_list</code> | <code>array</code> | Image URLs returned for this asset. |
| <code>data.summary_promotions[].base_model.product_info.main_img.url_list[]</code> | <code>string</code> | One URL for the product image. |
| <code>data.summary_promotions[].base_model.product_info.white_img</code> | <code>object</code> | White-background product image, when available. |
| <code>data.summary_promotions[].base_model.product_info.white_img.url_list</code> | <code>array</code> | Image URLs returned for this asset. |
| <code>data.summary_promotions[].base_model.product_info.white_img.url_list[]</code> | <code>string</code> | One URL for the product image. |
| <code>data.summary_promotions[].base_model.product_info.good_ratio</code> | <code>object</code> | Reported share of positive ratings with display parts, when available. |
| <code>data.summary_promotions[].base_model.product_info.good_ratio.origin</code> | <code>number</code> | Positive rating percentage on the displayed scale. |
| <code>data.summary_promotions[].base_model.product_info.good_ratio.integer</code> | <code>string</code> | Whole-number part of the displayed percentage as text. |
| <code>data.summary_promotions[].base_model.product_info.good_ratio.decimal</code> | <code>string</code> | Fractional display text for the percentage, which may be empty. |
| <code>data.summary_promotions[].base_model.product_info.good_ratio.suffix</code> | <code>string</code> | Suffix shown with the percentage. |
| <code>data.summary_promotions[].base_model.product_info.month_sale</code> | <code>object</code> | Monthly sales figure reported for the product. |
| <code>data.summary_promotions[].base_model.product_info.month_sale.origin</code> | <code>integer</code> | Reported monthly sales count. |
| <code>data.summary_promotions[].base_model.product_info.month_sale_text</code> | <code>string</code> | Display text accompanying the monthly sales figure. |
| <code>data.summary_promotions[].base_model.product_info.sale_axis</code> | <code>array</code> | Sales figures reported by date. |
| <code>data.summary_promotions[].base_model.product_info.sale_axis[]</code> | <code>object</code> | One point in the reported sales series. |
| <code>data.summary_promotions[].base_model.product_info.sale_axis[].x</code> | <code>string</code> | Date of this sales point as YYYYMMDD text. |
| <code>data.summary_promotions[].base_model.product_info.sale_axis[].y</code> | <code>integer</code> | Sales value reported for this date. |
| <code>data.summary_promotions[].base_model.marketing_info</code> | <code>object</code> | Price display information for the product. |
| <code>data.summary_promotions[].base_model.marketing_info.price_desc</code> | <code>object</code> | Reported current price and any comparison price. |
| <code>data.summary_promotions[].base_model.marketing_info.price_desc.price</code> | <code>object</code> | Current price and its display parts. |
| <code>data.summary_promotions[].base_model.marketing_info.price_desc.price.origin</code> | <code>integer</code> | Amount expressed in hundredths of the displayed price unit. |
| <code>data.summary_promotions[].base_model.marketing_info.price_desc.price.integer</code> | <code>string</code> | Whole-number part of the displayed amount as text. |
| <code>data.summary_promotions[].base_model.marketing_info.price_desc.price.decimal</code> | <code>string</code> | Fractional display text, which may be empty. |
| <code>data.summary_promotions[].base_model.marketing_info.price_desc.price.suffix</code> | <code>string</code> | Text appended to the displayed amount, which may be empty. |
| <code>data.summary_promotions[].base_model.marketing_info.price_desc.regular_price</code> | <code>object</code> | Regular price for comparison, when supplied. |
| <code>data.summary_promotions[].base_model.marketing_info.price_desc.regular_price.origin</code> | <code>integer</code> | Amount expressed in hundredths of the displayed price unit. |
| <code>data.summary_promotions[].base_model.marketing_info.price_desc.regular_price.integer</code> | <code>string</code> | Whole-number part of the displayed amount as text. |
| <code>data.summary_promotions[].base_model.marketing_info.price_desc.regular_price.decimal</code> | <code>string</code> | Fractional display text, which may be empty. |
| <code>data.summary_promotions[].base_model.marketing_info.price_desc.regular_price.suffix</code> | <code>string</code> | Text appended to the displayed amount, which may be empty. |
| <code>data.summary_promotions[].base_model.marketing_info.price_desc.price_text</code> | <code>string</code> | Price text as displayed for the product. |
| <code>data.summary_promotions[].base_model.shop_info</code> | <code>object</code> | Shop information shown for this product. |
| <code>data.summary_promotions[].base_model.shop_info.shop_id</code> | <code>integer</code> | Numeric ID of the shop. |
| <code>data.summary_promotions[].base_model.shop_info.shop_name</code> | <code>string</code> | Name of the shop shown in the search result. |
| <code>data.summary_promotions[].base_model.shop_info.shop_score_info</code> | <code>object</code> | Shop score information and its availability flag. |
| <code>data.summary_promotions[].base_model.shop_info.shop_score_info.has_data</code> | <code>boolean</code> | Whether shop score data is reported as available. |
| <code>data.summary_promotions[].base_model.shop_info.shop_score_info.shop_score</code> | <code>object</code> | Reported shop score details. |
| <code>data.summary_promotions[].base_model.shop_info.shop_score_info.shop_score.score</code> | <code>integer</code> | Shop score value returned as an integer. |
| <code>data.promotions</code> | <code>array</code> | Separate promotion result list. It may be empty even when summary_promotions contains entries. |
| <code>data.promotions[]</code> | <code>object</code> | One entry from the separate promotion list. |
| <code>data.promotions[].product_id</code> | <code>string</code> | Douyin E-commerce product ID as text. |
| <code>data.promotions[].promotion_id</code> | <code>string</code> | Promotion listing ID as text. |
| <code>data.has_more</code> | <code>boolean</code> | Whether another page is reported. A follow-up request can still return an empty result. |
| <code>data.total</code> | <code>integer</code> | Reported product result count for this response. It may vary between pages. |
| <code>data.extra</code> | <code>object &#124; null</code> | Pagination metadata, which can be null on an empty page. |
| <code>data.extra.search_id</code> | <code>string</code> | Search identifier to send as searchId when continuing with the same keyword and the next page. Use has_more to decide whether to continue. |

</div>

## Response Example

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

