---
title: "Taobao and Tmall Product Search API (V2)"
description: "Searches Taobao and Tmall products by keyword with page-based pagination and returns results sorted by sales. Use it to discover popular products for ecommerce research, catalog analysis, or product selection."
aiUsagePrompt: true
---

# Taobao and Tmall Product Search API \(V2\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/taobao/search-item-list/v2\"")'
  :summary='JSON.parse("\"Product Search (V2)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/taobao-and-tmall/product-search-v2-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, starting from 1.\",\"required\":false,\"schema\":{\"type\":\"integer\",\"format\":\"int32\",\"default\":1}}]")'
  :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\":\"Search results with mixed card types and reported pagination when a result object is returned.\",\"properties\":{\"mainInfo\":{\"type\":\"object\",\"description\":\"Pagination values reported for the search. They are returned as strings.\",\"properties\":{\"page\":{\"type\":\"string\",\"description\":\"Page number reported in this response, as text.\"},\"pageSize\":{\"type\":\"string\",\"description\":\"Page size reported as text. The number of returned cards can differ.\"},\"totalPage\":{\"type\":\"string\",\"description\":\"Total page count reported for this search, as text.\"},\"totalResults\":{\"type\":\"string\",\"description\":\"Total result count reported for this search, as text.\"}}},\"itemsArray\":{\"type\":\"array\",\"description\":\"Search cards, including product cards and other content. Some cards have no item ID, and an item may appear on more than one page.\",\"items\":{\"type\":\"object\",\"description\":\"One result card. Its fields depend on the card type.\",\"properties\":{\"item_id\":{\"type\":\"string\",\"description\":\"Taobao item ID when the card identifies a product.\"},\"title\":{\"type\":\"string\",\"description\":\"Product title displayed on the card.\"},\"auctionURL\":{\"type\":\"string\",\"description\":\"Link to the product listing.\"},\"pic_path\":{\"type\":\"string\",\"description\":\"URL of the product image displayed on the card.\"},\"leafCategory\":{\"type\":\"string\",\"description\":\"Identifier of the product&#39;s leaf category, as text.\"},\"procity\":{\"type\":\"string\",\"description\":\"Product location text reported on the card.\"},\"price\":{\"type\":\"string\",\"description\":\"Price reported for the product card as text. The displayed price and its label are provided separately in priceShow.\"},\"priceShow\":{\"type\":\"object\",\"description\":\"Display price and its associated text on the product card.\",\"properties\":{\"price\":{\"type\":\"string\",\"description\":\"Price value used for display, as text.\"},\"unit\":{\"type\":\"string\",\"description\":\"Currency symbol or unit text displayed with the price.\"},\"preText\":{\"type\":\"string\",\"description\":\"Text displayed before the price, when present.\"},\"priceDesc\":{\"type\":\"string\",\"description\":\"Qualifier attached to the displayed price, when present.\"}}},\"discountInfo\":{\"type\":\"object\",\"description\":\"Discount information shown on the product card when present.\",\"properties\":{\"text\":{\"type\":\"string\",\"description\":\"Discount text displayed on the card.\"},\"icon\":{\"type\":\"string\",\"description\":\"Icon URL shown alongside the discount, when provided.\"}}},\"realSales\":{\"type\":\"string\",\"description\":\"Sales or purchase indicator displayed on the card. It can contain units or abbreviations.\"},\"nick\":{\"type\":\"string\",\"description\":\"Seller nickname associated with the product card.\"},\"shopInfo\":{\"type\":\"object\",\"description\":\"Public shop information shown with the product.\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"Shop display name on the product card.\"},\"url\":{\"type\":\"string\",\"description\":\"Shop link shown with the product card, when present.\"},\"shopLogo\":{\"type\":\"string\",\"description\":\"Shop logo URL shown on the card, when present.\"},\"commonTagText\":{\"type\":\"string\",\"description\":\"Display text for the shop badge.\"},\"indTagText\":{\"type\":\"string\",\"description\":\"Display text for the shop&#39;s industry badge.\"},\"indTagIcon\":{\"type\":\"string\",\"description\":\"Icon URL shown for the shop&#39;s industry badge.\"}}},\"p4pLabel\":{\"type\":\"boolean\",\"description\":\"Whether the card carries the paid placement label when this flag is present.\"},\"icons\":{\"type\":\"array\",\"description\":\"Badges and icons shown on the card.\",\"items\":{\"type\":\"object\",\"description\":\"A displayed card badge or icon.\",\"properties\":{\"text\":{\"type\":\"string\",\"description\":\"Display text attached to the badge.\"}}}},\"video\":{\"type\":\"object\",\"description\":\"Video attachment shown on the product card.\",\"properties\":{\"videoUrl\":{\"type\":\"string\",\"description\":\"URL of the product-card video.\"},\"coverUrl\":{\"type\":\"string\",\"description\":\"Cover image URL for the product-card video.\"},\"videoDimension\":{\"type\":\"string\",\"description\":\"Video width-to-height ratio reported as text.\"}}},\"labelOrder\":{\"type\":\"array\",\"description\":\"Product display information such as selling points, attributes and ranking labels.\",\"items\":{\"type\":[\"object\",\"string\"],\"description\":\"One row of display information. Older responses can contain a label identifier as text.\",\"properties\":{\"detailCountSellpoint\":{\"type\":\"string\",\"description\":\"Displayed product selling-point text associated with a count.\"},\"detailAiSellpoint\":{\"type\":\"string\",\"description\":\"Displayed product selling-point text.\"},\"recommendReason\":{\"type\":\"string\",\"description\":\"Recommendation reason displayed for the product.\"},\"impressionWord\":{\"type\":\"string\",\"description\":\"Short impression label displayed for the product.\"},\"hotListInfo\":{\"type\":\"object\",\"description\":\"Ranking label information shown on the product card.\",\"properties\":{\"rank_short_text\":{\"type\":\"string\",\"description\":\"Short ranking label shown for the product.\"}}},\"summaryTips\":{\"type\":\"array\",\"description\":\"Short product summary tips shown on the card.\",\"items\":{\"type\":\"string\",\"description\":\"A short product summary tip.\"}},\"structuredUSPInfo\":{\"type\":\"array\",\"description\":\"Structured attributes displayed as product selling points.\",\"items\":{\"type\":\"object\",\"description\":\"One displayed product selling-point attribute.\",\"properties\":{\"propertyName\":{\"type\":\"string\",\"description\":\"Name of the product attribute.\"},\"propertyValueName\":{\"type\":\"string\",\"description\":\"Display value of the product attribute.\"}}}},\"iconAbstractInfo\":{\"type\":\"object\",\"description\":\"Short product information displayed with an icon.\",\"properties\":{\"text\":{\"type\":\"string\",\"description\":\"Product information text displayed with the icon.\"},\"icon\":{\"type\":\"string\",\"description\":\"Icon URL displayed with the product information.\"}}}}}},\"customCard\":{\"type\":\"object\",\"description\":\"Additional content shown in some search result cards.\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"Title displayed in the additional content card.\"},\"description\":{\"type\":\"string\",\"description\":\"Description displayed in the additional content card.\"}}},\"recommendQueryItemList\":{\"type\":\"array\",\"description\":\"Suggested queries displayed on a search result card, when present.\",\"items\":{\"type\":\"object\",\"description\":\"One suggested query.\",\"properties\":{\"showText\":{\"type\":\"string\",\"description\":\"Display label for the suggested query.\"},\"searchText\":{\"type\":\"string\",\"description\":\"Query text tied to the suggestion.\"}}}}}}}}}}},\"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/taobao/search-item-list/v2\"")' />

<p>Searches Taobao and Tmall products by keyword with page-based pagination and returns results sorted by sales. Use it to discover popular products for ecommerce research, catalog analysis, or product selection.</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>integer</code> | No | <code>1</code> | Page number for pagination, starting from 1. |

</div>

## Code Samples

::: code-group

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

```text [🤖 AI Prompt]
I want to use the "Product Search (V2)" API from JustOneAPI.
Base URL: https://api.justoneapi.com.
API Path: /api/taobao/search-item-list/v2?token=YOUR_API_KEY&keyword=VALUE
API Endpoint: BASE_URL + /api/taobao/search-item-list/v2?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/taobao-and-tmall/product-search-v2-en.json

Parameters:
- token (query): Access token for this API service. (Required)
- keyword (query): Search keyword. (Required)
- page (query): Page number for pagination, starting from 1.

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/taobao/search-item-list/v2?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/taobao/search-item-list/v2?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/taobao/search-item-list/v2?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/taobao/search-item-list/v2?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/taobao/search-item-list/v2?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/taobao-and-tmall/product-search-v2-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> | Search results with mixed card types and reported pagination when a result object is returned. |
| <code>data.mainInfo</code> | <code>object</code> | Pagination values reported for the search. They are returned as strings. |
| <code>data.mainInfo.page</code> | <code>string</code> | Page number reported in this response, as text. |
| <code>data.mainInfo.pageSize</code> | <code>string</code> | Page size reported as text. The number of returned cards can differ. |
| <code>data.mainInfo.totalPage</code> | <code>string</code> | Total page count reported for this search, as text. |
| <code>data.mainInfo.totalResults</code> | <code>string</code> | Total result count reported for this search, as text. |
| <code>data.itemsArray</code> | <code>array</code> | Search cards, including product cards and other content. Some cards have no item ID, and an item may appear on more than one page. |
| <code>data.itemsArray[]</code> | <code>object</code> | One result card. Its fields depend on the card type. |
| <code>data.itemsArray[].item_id</code> | <code>string</code> | Taobao item ID when the card identifies a product. |
| <code>data.itemsArray[].title</code> | <code>string</code> | Product title displayed on the card. |
| <code>data.itemsArray[].auctionURL</code> | <code>string</code> | Link to the product listing. |
| <code>data.itemsArray[].pic_path</code> | <code>string</code> | URL of the product image displayed on the card. |
| <code>data.itemsArray[].leafCategory</code> | <code>string</code> | Identifier of the product's leaf category, as text. |
| <code>data.itemsArray[].procity</code> | <code>string</code> | Product location text reported on the card. |
| <code>data.itemsArray[].price</code> | <code>string</code> | Price reported for the product card as text. The displayed price and its label are provided separately in priceShow. |
| <code>data.itemsArray[].priceShow</code> | <code>object</code> | Display price and its associated text on the product card. |
| <code>data.itemsArray[].priceShow.price</code> | <code>string</code> | Price value used for display, as text. |
| <code>data.itemsArray[].priceShow.unit</code> | <code>string</code> | Currency symbol or unit text displayed with the price. |
| <code>data.itemsArray[].priceShow.preText</code> | <code>string</code> | Text displayed before the price, when present. |
| <code>data.itemsArray[].priceShow.priceDesc</code> | <code>string</code> | Qualifier attached to the displayed price, when present. |
| <code>data.itemsArray[].discountInfo</code> | <code>object</code> | Discount information shown on the product card when present. |
| <code>data.itemsArray[].discountInfo.text</code> | <code>string</code> | Discount text displayed on the card. |
| <code>data.itemsArray[].discountInfo.icon</code> | <code>string</code> | Icon URL shown alongside the discount, when provided. |
| <code>data.itemsArray[].realSales</code> | <code>string</code> | Sales or purchase indicator displayed on the card. It can contain units or abbreviations. |
| <code>data.itemsArray[].nick</code> | <code>string</code> | Seller nickname associated with the product card. |
| <code>data.itemsArray[].shopInfo</code> | <code>object</code> | Public shop information shown with the product. |
| <code>data.itemsArray[].shopInfo.title</code> | <code>string</code> | Shop display name on the product card. |
| <code>data.itemsArray[].shopInfo.url</code> | <code>string</code> | Shop link shown with the product card, when present. |
| <code>data.itemsArray[].shopInfo.shopLogo</code> | <code>string</code> | Shop logo URL shown on the card, when present. |
| <code>data.itemsArray[].shopInfo.commonTagText</code> | <code>string</code> | Display text for the shop badge. |
| <code>data.itemsArray[].shopInfo.indTagText</code> | <code>string</code> | Display text for the shop's industry badge. |
| <code>data.itemsArray[].shopInfo.indTagIcon</code> | <code>string</code> | Icon URL shown for the shop's industry badge. |
| <code>data.itemsArray[].p4pLabel</code> | <code>boolean</code> | Whether the card carries the paid placement label when this flag is present. |
| <code>data.itemsArray[].icons</code> | <code>array</code> | Badges and icons shown on the card. |
| <code>data.itemsArray[].icons[]</code> | <code>object</code> | A displayed card badge or icon. |
| <code>data.itemsArray[].icons[].text</code> | <code>string</code> | Display text attached to the badge. |
| <code>data.itemsArray[].video</code> | <code>object</code> | Video attachment shown on the product card. |
| <code>data.itemsArray[].video.videoUrl</code> | <code>string</code> | URL of the product-card video. |
| <code>data.itemsArray[].video.coverUrl</code> | <code>string</code> | Cover image URL for the product-card video. |
| <code>data.itemsArray[].video.videoDimension</code> | <code>string</code> | Video width-to-height ratio reported as text. |
| <code>data.itemsArray[].labelOrder</code> | <code>array</code> | Product display information such as selling points, attributes and ranking labels. |
| <code>data.itemsArray[].labelOrder[]</code> | <code>object &#124; string</code> | One row of display information. Older responses can contain a label identifier as text. |
| <code>data.itemsArray[].labelOrder[].detailCountSellpoint</code> | <code>string</code> | Displayed product selling-point text associated with a count. |
| <code>data.itemsArray[].labelOrder[].detailAiSellpoint</code> | <code>string</code> | Displayed product selling-point text. |
| <code>data.itemsArray[].labelOrder[].recommendReason</code> | <code>string</code> | Recommendation reason displayed for the product. |
| <code>data.itemsArray[].labelOrder[].impressionWord</code> | <code>string</code> | Short impression label displayed for the product. |
| <code>data.itemsArray[].labelOrder[].hotListInfo</code> | <code>object</code> | Ranking label information shown on the product card. |
| <code>data.itemsArray[].labelOrder[].hotListInfo.rank_short_text</code> | <code>string</code> | Short ranking label shown for the product. |
| <code>data.itemsArray[].labelOrder[].summaryTips</code> | <code>array</code> | Short product summary tips shown on the card. |
| <code>data.itemsArray[].labelOrder[].summaryTips[]</code> | <code>string</code> | A short product summary tip. |
| <code>data.itemsArray[].labelOrder[].structuredUSPInfo</code> | <code>array</code> | Structured attributes displayed as product selling points. |
| <code>data.itemsArray[].labelOrder[].structuredUSPInfo[]</code> | <code>object</code> | One displayed product selling-point attribute. |
| <code>data.itemsArray[].labelOrder[].structuredUSPInfo[].propertyName</code> | <code>string</code> | Name of the product attribute. |
| <code>data.itemsArray[].labelOrder[].structuredUSPInfo[].propertyValueName</code> | <code>string</code> | Display value of the product attribute. |
| <code>data.itemsArray[].labelOrder[].iconAbstractInfo</code> | <code>object</code> | Short product information displayed with an icon. |
| <code>data.itemsArray[].labelOrder[].iconAbstractInfo.text</code> | <code>string</code> | Product information text displayed with the icon. |
| <code>data.itemsArray[].labelOrder[].iconAbstractInfo.icon</code> | <code>string</code> | Icon URL displayed with the product information. |
| <code>data.itemsArray[].customCard</code> | <code>object</code> | Additional content shown in some search result cards. |
| <code>data.itemsArray[].customCard.title</code> | <code>string</code> | Title displayed in the additional content card. |
| <code>data.itemsArray[].customCard.description</code> | <code>string</code> | Description displayed in the additional content card. |
| <code>data.itemsArray[].recommendQueryItemList</code> | <code>array</code> | Suggested queries displayed on a search result card, when present. |
| <code>data.itemsArray[].recommendQueryItemList[]</code> | <code>object</code> | One suggested query. |
| <code>data.itemsArray[].recommendQueryItemList[].showText</code> | <code>string</code> | Display label for the suggested query. |
| <code>data.itemsArray[].recommendQueryItemList[].searchText</code> | <code>string</code> | Query text tied to the suggestion. |

</div>

## Response Example

<ApiExampleSection :api='JSON.parse("\"/api/taobao/search-item-list/v2\"")' />

