---
title: "Taobao and Tmall Product Reviews API (V3)"
description: "Retrieves Taobao and Tmall product reviews by item ID with page-based pagination and configurable sorting. Use it to analyze customer feedback."
aiUsagePrompt: true
---

# Taobao and Tmall Product Reviews API \(V3\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/taobao/get-item-comment/v3\"")'
  :summary='JSON.parse("\"Product Reviews (V3)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/taobao-and-tmall/product-reviews-v3-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\":\"itemId\",\"in\":\"query\",\"description\":\"Unique product identifier on Taobao/Tmall (item ID).\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"orderType\",\"in\":\"query\",\"description\":\"Sort order for the result set.\\n\\nAvailable Values:\\n- `feedbackdate`: Sort by feedback date\\n- `general`: General sorting\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"feedbackdate\",\"description\":\"Sort order for product comments\",\"enum\":[\"feedbackdate\",\"general\"]}},{\"name\":\"page\",\"in\":\"query\",\"description\":\"Page number for pagination.\",\"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\",\"description\":\"Taobao and Tmall product review results. A successful result can contain an empty review list.\",\"properties\":{\"comments\":{\"type\":\"array\",\"description\":\"Reviews returned for the requested page and sort order. This list can be empty.\",\"items\":{\"type\":\"object\",\"description\":\"A product review.\",\"properties\":{\"rateId\":{\"type\":\"integer\",\"description\":\"Review ID returned as a JSON integer. Preserve its full precision when storing or comparing it.\"},\"content\":{\"type\":\"string\",\"description\":\"Product review text.\"},\"date\":{\"type\":\"string\",\"description\":\"Review date and time in the platform&#39;s returned text format.\"},\"rate\":{\"type\":\"string\",\"description\":\"Rating value reported as text.\"},\"likeCount\":{\"type\":\"integer\",\"description\":\"Number of likes reported for this review.\"},\"dayAfterConfirm\":{\"type\":\"integer\",\"description\":\"Day count after confirmation reported for the review.\"},\"photos\":{\"type\":\"array\",\"description\":\"Photos attached to the original review. The list can be empty.\",\"items\":{\"type\":\"object\",\"description\":\"A photo attached to a review.\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"Review photo URL.\"},\"thumbnail\":{\"type\":\"string\",\"description\":\"Thumbnail URL for the review photo.\"},\"fileId\":{\"type\":\"integer\",\"description\":\"File ID reported for the photo.\"}}}},\"append\":{\"type\":[\"object\",\"null\"],\"description\":\"Follow-up review details when provided. This field can be null.\",\"properties\":{\"appendId\":{\"type\":\"integer\",\"description\":\"Follow-up review ID returned as a JSON integer.\"},\"content\":{\"type\":\"string\",\"description\":\"Follow-up review text.\"},\"dayAfterConfirm\":{\"type\":\"integer\",\"description\":\"Day count after confirmation reported for the follow-up review.\"},\"photos\":{\"type\":\"array\",\"description\":\"Photos attached to the follow-up review. The list can be empty.\",\"items\":{\"type\":\"object\",\"description\":\"A photo attached to a review.\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"Review photo URL.\"},\"thumbnail\":{\"type\":\"string\",\"description\":\"Thumbnail URL for the review photo.\"},\"fileId\":{\"type\":\"integer\",\"description\":\"File ID reported for the photo.\"}}}},\"show\":{\"type\":\"boolean\",\"description\":\"Whether the follow-up review is marked for display.\"}}},\"appendList\":{\"type\":\"array\",\"description\":\"Follow-up review entries returned with the review. The list can be empty.\",\"items\":{\"type\":\"object\",\"description\":\"A follow-up review entry.\",\"properties\":{\"appendId\":{\"type\":\"integer\",\"description\":\"Follow-up review ID returned as a JSON integer.\"},\"content\":{\"type\":\"string\",\"description\":\"Follow-up review text.\"},\"dayAfterConfirm\":{\"type\":\"integer\",\"description\":\"Day count after confirmation reported for the follow-up review.\"},\"photos\":{\"type\":\"array\",\"description\":\"Photos attached to the follow-up review. The list can be empty.\",\"items\":{\"type\":\"object\",\"description\":\"A photo attached to a review.\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"Review photo URL.\"},\"thumbnail\":{\"type\":\"string\",\"description\":\"Thumbnail URL for the review photo.\"},\"fileId\":{\"type\":\"integer\",\"description\":\"File ID reported for the photo.\"}}}},\"show\":{\"type\":\"boolean\",\"description\":\"Whether the follow-up review is marked for display.\"}}}},\"user\":{\"type\":\"object\",\"description\":\"Reviewer profile fields returned with the review.\",\"properties\":{\"nick\":{\"type\":\"string\",\"description\":\"Reviewer display nickname as returned.\"},\"avatar\":{\"type\":\"string\",\"description\":\"Reviewer avatar URL.\"},\"anony\":{\"type\":\"boolean\",\"description\":\"Whether the review is marked anonymous.\"},\"rank\":{\"type\":\"integer\",\"description\":\"Account rank code reported for the reviewer.\"},\"vipLevel\":{\"type\":\"integer\",\"description\":\"Numeric VIP level reported for the reviewer.\"},\"vip\":{\"type\":\"string\",\"description\":\"VIP label reported for the reviewer.\"}}},\"auction\":{\"type\":\"object\",\"description\":\"Product information attached to the review.\",\"properties\":{\"aucNumId\":{\"type\":\"string\",\"description\":\"Taobao or Tmall item ID returned as a string.\"},\"link\":{\"type\":\"string\",\"description\":\"Link for the reviewed product. It can be a protocol-relative URL.\"},\"sku\":{\"type\":\"string\",\"description\":\"Product specification text attached to this review. It can be empty.\"}}},\"shareInfo\":{\"type\":\"object\",\"description\":\"Sharing metadata returned for the review.\",\"properties\":{\"share\":{\"type\":\"boolean\",\"description\":\"Share flag reported for the review.\"},\"pic\":{\"type\":\"integer\",\"description\":\"Original review photo count reported with the sharing metadata.\"}}},\"noQna\":{\"type\":\"boolean\",\"description\":\"Whether the review is marked as having Q&amp;A disabled.\"}}}},\"total\":{\"type\":\"integer\",\"description\":\"Review total reported for the product.\"},\"totalFuzzy\":{\"type\":\"string\",\"description\":\"Display text for the review total, which can be approximate.\"},\"hasMediaCount\":{\"type\":\"integer\",\"description\":\"Reported number of reviews with media.\"},\"hasAppendCount\":{\"type\":\"integer\",\"description\":\"Reported number of reviews with a follow-up.\"},\"currentPageNum\":{\"type\":\"integer\",\"description\":\"Current page number reported in the response.\"},\"maxPage\":{\"type\":\"integer\",\"description\":\"Maximum page number reported by the platform. Later pages can still contain reviews.\"},\"hasNextPage\":{\"type\":\"boolean\",\"description\":\"Whether the response marks a next page as available. A later page can contain reviews when the flag is false.\"},\"keywords\":{\"type\":\"array\",\"description\":\"Keyword labels returned for the reviews. The list can be empty.\",\"items\":{\"type\":\"object\",\"description\":\"A keyword label for the review results.\",\"properties\":{\"word\":{\"type\":\"string\",\"description\":\"Keyword text.\"},\"count\":{\"type\":\"string\",\"description\":\"Displayed count for this keyword, returned as text.\"},\"labelId\":{\"type\":\"string\",\"description\":\"Keyword label ID as returned.\"},\"type\":{\"type\":\"string\",\"description\":\"Keyword type label as returned.\"}}}},\"qnaDisabled\":{\"type\":\"boolean\",\"description\":\"Whether the result marks product Q&amp;A as disabled.\"}}}}},\"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\"},\"container\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"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},\"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\"},\"container\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"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},\"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\"},\"container\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"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},\"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\"},\"container\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"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},\"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\"},\"container\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"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},\"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\"},\"container\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"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},\"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\"},\"container\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"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},\"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/get-item-comment/v3\"")' />

<p>Retrieves Taobao and Tmall product reviews by item ID with page-based pagination and configurable sorting. Use it to analyze customer feedback.</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>itemId</code> | query | <code>string</code> | Yes | - | Unique product identifier on Taobao/Tmall (item ID). |
| <code>orderType</code> | query | <code>string</code> | No | <code>feedbackdate</code> | Sort order for the result set.<br /><br><br>Available Values:<br /><br>- <code>feedbackdate</code>: Sort by feedback date<br /><br>- <code>general</code>: General sorting |
| <code>page</code> | query | <code>integer</code> | No | <code>1</code> | Page number for pagination. |

</div>

## Code Samples

::: code-group

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

```text [🤖 AI Prompt]
I want to use the "Product Reviews (V3)" API from JustOneAPI.
Base URL: https://api.justoneapi.com.
API Path: /api/taobao/get-item-comment/v3?token=YOUR_API_KEY&itemId=VALUE
API Endpoint: BASE_URL + /api/taobao/get-item-comment/v3?token=YOUR_API_KEY&itemId=VALUE
HTTP Method: GET
Authentication: Append the "token" query parameter to the URL.
OpenAPI Definition: https://docs.justoneapi.com/openapi/taobao-and-tmall/product-reviews-v3-en.json

Parameters:
- token (query): Access token for this API service. (Required)
- itemId (query): Unique product identifier on Taobao/Tmall (item ID). (Required)
- orderType (query): Sort order for the result set.

Available Values:
- `feedbackdate`: Sort by feedback date
- `general`: General sorting
- page (query): Page number for pagination.

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/get-item-comment/v3?token=YOUR_API_KEY&itemId=VALUE"
response = requests.get(url, timeout=120)
print(response.status_code)
if response.content:
    content_type = response.headers.get("content-type", "").lower()
    if "json" in content_type:
        try:
            print(response.json())
        except ValueError:
            print(response.text)
    elif content_type.startswith("text/") or "xml" in content_type or content_type.split(";", 1)[0].strip() in {"application/javascript", "application/x-www-form-urlencoded", "application/graphql"}:
        print(response.text)
    else:
        with open("response.bin", "wb") as output:
            output.write(response.content)
        print(f"Saved {len(response.content)} bytes to response.bin")
```

```js [🌐 JavaScript]
const BASE_URL = "https://api.justoneapi.com"; // Provided by OpenAPI servers
const url = BASE_URL + "/api/taobao/get-item-comment/v3?token=YOUR_API_KEY&itemId=VALUE";

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

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

public class Main {
    public static void main(String[] args) throws Exception {
        final String BASE_URL = "https://api.justoneapi.com"; // Provided by OpenAPI servers
        final String url = BASE_URL + "/api/taobao/get-item-comment/v3?token=YOUR_API_KEY&itemId=VALUE";

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

        HttpRequest request = builder.build();

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

```go [🐹 Go]
package main

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

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

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

```php [🐘 PHP]
<?php
$BASE_URL = 'https://api.justoneapi.com'; // Provided by OpenAPI servers
$url = $BASE_URL . '/api/taobao/get-item-comment/v3?token=YOUR_API_KEY&itemId=VALUE';

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

:::

<div style="text-align: right; margin-top: -20px; margin-bottom: 20px;">
<a href="/openapi/taobao-and-tmall/product-reviews-v3-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</code> | Taobao and Tmall product review results. A successful result can contain an empty review list. |
| <code>data.comments</code> | <code>array</code> | Reviews returned for the requested page and sort order. This list can be empty. |
| <code>data.comments[]</code> | <code>object</code> | A product review. |
| <code>data.comments[].rateId</code> | <code>integer</code> | Review ID returned as a JSON integer. Preserve its full precision when storing or comparing it. |
| <code>data.comments[].content</code> | <code>string</code> | Product review text. |
| <code>data.comments[].date</code> | <code>string</code> | Review date and time in the platform's returned text format. |
| <code>data.comments[].rate</code> | <code>string</code> | Rating value reported as text. |
| <code>data.comments[].likeCount</code> | <code>integer</code> | Number of likes reported for this review. |
| <code>data.comments[].dayAfterConfirm</code> | <code>integer</code> | Day count after confirmation reported for the review. |
| <code>data.comments[].photos</code> | <code>array</code> | Photos attached to the original review. The list can be empty. |
| <code>data.comments[].photos[]</code> | <code>object</code> | A photo attached to a review. |
| <code>data.comments[].photos[].url</code> | <code>string</code> | Review photo URL. |
| <code>data.comments[].photos[].thumbnail</code> | <code>string</code> | Thumbnail URL for the review photo. |
| <code>data.comments[].photos[].fileId</code> | <code>integer</code> | File ID reported for the photo. |
| <code>data.comments[].append</code> | <code>object &#124; null</code> | Follow-up review details when provided. This field can be null. |
| <code>data.comments[].append.appendId</code> | <code>integer</code> | Follow-up review ID returned as a JSON integer. |
| <code>data.comments[].append.content</code> | <code>string</code> | Follow-up review text. |
| <code>data.comments[].append.dayAfterConfirm</code> | <code>integer</code> | Day count after confirmation reported for the follow-up review. |
| <code>data.comments[].append.photos</code> | <code>array</code> | Photos attached to the follow-up review. The list can be empty. |
| <code>data.comments[].append.photos[]</code> | <code>object</code> | A photo attached to a review. |
| <code>data.comments[].append.photos[].url</code> | <code>string</code> | Review photo URL. |
| <code>data.comments[].append.photos[].thumbnail</code> | <code>string</code> | Thumbnail URL for the review photo. |
| <code>data.comments[].append.photos[].fileId</code> | <code>integer</code> | File ID reported for the photo. |
| <code>data.comments[].append.show</code> | <code>boolean</code> | Whether the follow-up review is marked for display. |
| <code>data.comments[].appendList</code> | <code>array</code> | Follow-up review entries returned with the review. The list can be empty. |
| <code>data.comments[].appendList[]</code> | <code>object</code> | A follow-up review entry. |
| <code>data.comments[].appendList[].appendId</code> | <code>integer</code> | Follow-up review ID returned as a JSON integer. |
| <code>data.comments[].appendList[].content</code> | <code>string</code> | Follow-up review text. |
| <code>data.comments[].appendList[].dayAfterConfirm</code> | <code>integer</code> | Day count after confirmation reported for the follow-up review. |
| <code>data.comments[].appendList[].photos</code> | <code>array</code> | Photos attached to the follow-up review. The list can be empty. |
| <code>data.comments[].appendList[].photos[]</code> | <code>object</code> | A photo attached to a review. |
| <code>data.comments[].appendList[].photos[].url</code> | <code>string</code> | Review photo URL. |
| <code>data.comments[].appendList[].photos[].thumbnail</code> | <code>string</code> | Thumbnail URL for the review photo. |
| <code>data.comments[].appendList[].photos[].fileId</code> | <code>integer</code> | File ID reported for the photo. |
| <code>data.comments[].appendList[].show</code> | <code>boolean</code> | Whether the follow-up review is marked for display. |
| <code>data.comments[].user</code> | <code>object</code> | Reviewer profile fields returned with the review. |
| <code>data.comments[].user.nick</code> | <code>string</code> | Reviewer display nickname as returned. |
| <code>data.comments[].user.avatar</code> | <code>string</code> | Reviewer avatar URL. |
| <code>data.comments[].user.anony</code> | <code>boolean</code> | Whether the review is marked anonymous. |
| <code>data.comments[].user.rank</code> | <code>integer</code> | Account rank code reported for the reviewer. |
| <code>data.comments[].user.vipLevel</code> | <code>integer</code> | Numeric VIP level reported for the reviewer. |
| <code>data.comments[].user.vip</code> | <code>string</code> | VIP label reported for the reviewer. |
| <code>data.comments[].auction</code> | <code>object</code> | Product information attached to the review. |
| <code>data.comments[].auction.aucNumId</code> | <code>string</code> | Taobao or Tmall item ID returned as a string. |
| <code>data.comments[].auction.link</code> | <code>string</code> | Link for the reviewed product. It can be a protocol-relative URL. |
| <code>data.comments[].auction.sku</code> | <code>string</code> | Product specification text attached to this review. It can be empty. |
| <code>data.comments[].shareInfo</code> | <code>object</code> | Sharing metadata returned for the review. |
| <code>data.comments[].shareInfo.share</code> | <code>boolean</code> | Share flag reported for the review. |
| <code>data.comments[].shareInfo.pic</code> | <code>integer</code> | Original review photo count reported with the sharing metadata. |
| <code>data.comments[].noQna</code> | <code>boolean</code> | Whether the review is marked as having Q&amp;A disabled. |
| <code>data.total</code> | <code>integer</code> | Review total reported for the product. |
| <code>data.totalFuzzy</code> | <code>string</code> | Display text for the review total, which can be approximate. |
| <code>data.hasMediaCount</code> | <code>integer</code> | Reported number of reviews with media. |
| <code>data.hasAppendCount</code> | <code>integer</code> | Reported number of reviews with a follow-up. |
| <code>data.currentPageNum</code> | <code>integer</code> | Current page number reported in the response. |
| <code>data.maxPage</code> | <code>integer</code> | Maximum page number reported by the platform. Later pages can still contain reviews. |
| <code>data.hasNextPage</code> | <code>boolean</code> | Whether the response marks a next page as available. A later page can contain reviews when the flag is false. |
| <code>data.keywords</code> | <code>array</code> | Keyword labels returned for the reviews. The list can be empty. |
| <code>data.keywords[]</code> | <code>object</code> | A keyword label for the review results. |
| <code>data.keywords[].word</code> | <code>string</code> | Keyword text. |
| <code>data.keywords[].count</code> | <code>string</code> | Displayed count for this keyword, returned as text. |
| <code>data.keywords[].labelId</code> | <code>string</code> | Keyword label ID as returned. |
| <code>data.keywords[].type</code> | <code>string</code> | Keyword type label as returned. |
| <code>data.qnaDisabled</code> | <code>boolean</code> | Whether the result marks product Q&amp;A as disabled. |

</div>

## Response Example

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

