---
title: "Taobao and Tmall Product Questions API (V1)"
description: "Retrieves the Taobao or Tmall product social feed by item ID with page-based pagination. Use it to review product questions and related discussion during customer-concern or product research."
aiUsagePrompt: true
---

# Taobao and Tmall Product Questions API \(V1\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/taobao/get-social-feed/v1\"")'
  :summary='JSON.parse("\"Product Questions (V1)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/taobao-and-tmall/product-questions-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\":\"itemId\",\"in\":\"query\",\"description\":\"Unique product identifier on Taobao/Tmall (item ID).\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"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 or Tmall product questions, related replies, and pagination information.\",\"properties\":{\"item\":{\"type\":\"object\",\"description\":\"Product information returned with this discussion feed.\",\"properties\":{\"questionCount\":{\"type\":\"string\",\"description\":\"Reported product question count as text.\"},\"itemTitle\":{\"type\":\"string\",\"description\":\"Product title displayed for the discussion feed.\"},\"itemPic\":{\"type\":\"string\",\"description\":\"Product image URL displayed in the feed.\"},\"buyerCount\":{\"description\":\"Reported product buyer count information. The verified samples return null.\"},\"itemUrl\":{\"type\":\"string\",\"description\":\"Public link to the Taobao or Tmall product.\"},\"tags\":{\"type\":[\"object\",\"null\"],\"description\":\"Product topic tags returned with the discussion feed, or null when unavailable.\",\"properties\":{\"list\":{\"type\":\"array\",\"description\":\"Reported product topic tags.\",\"items\":{\"type\":\"object\",\"description\":\"One topic tag associated with the product.\",\"properties\":{\"count\":{\"type\":\"string\",\"description\":\"Topic count reported for this tag as text.\"},\"keyword\":{\"type\":\"string\",\"description\":\"Keyword displayed for this topic tag.\"},\"propertyId\":{\"type\":\"string\",\"description\":\"Property identifier reported for this topic tag.\"}}}}}}}},\"questionStatus\":{\"type\":\"object\",\"description\":\"Status information for product questions.\",\"properties\":{\"closeQuestion\":{\"type\":\"string\",\"description\":\"Whether product questions are closed, as a text flag.\"}}},\"questionWords\":{\"type\":\"array\",\"description\":\"Question keyword entries returned with the feed. The verified samples return an empty list.\"},\"pagination\":{\"type\":\"object\",\"description\":\"Page continuation information for this discussion feed.\",\"properties\":{\"direction\":{\"type\":\"string\",\"description\":\"Pagination direction code reported for this feed as text.\"},\"hasMore\":{\"type\":\"string\",\"description\":\"Text flag for whether another page is available. Continue when this field is true.\"},\"pageNum\":{\"type\":\"string\",\"description\":\"Next page number reported as text. Use it as the page query parameter when hasMore is true.\"},\"pageSize\":{\"type\":\"string\",\"description\":\"Requested page capacity reported as text.\"}}},\"total\":{\"type\":\"string\",\"description\":\"Reported total number of entries in the discussion feed as text.\"},\"list\":{\"type\":\"array\",\"description\":\"Groups of question cards returned on this page. The outer list can be empty.\",\"items\":{\"type\":\"array\",\"description\":\"One group of question cards.\",\"items\":{\"type\":\"object\",\"description\":\"One product question card.\",\"properties\":{\"clusterId\":{\"type\":[\"string\",\"null\"],\"description\":\"Identifier of the question cluster associated with the card, or null when unavailable.\"},\"clusterName\":{\"description\":\"Name information for the question cluster. The verified samples return null.\"},\"feedType\":{\"type\":\"string\",\"description\":\"Feed record type code reported for the question card as text.\"},\"gmtCreate\":{\"type\":\"string\",\"description\":\"Question creation time as a Unix timestamp in milliseconds, returned as a string.\"},\"gmtModified\":{\"type\":\"string\",\"description\":\"Question modification time as a Unix timestamp in milliseconds, returned as a string.\"},\"id\":{\"type\":\"string\",\"description\":\"Identifier of the product question card.\"},\"cardType\":{\"type\":\"string\",\"description\":\"Card type code returned for the question as text.\"},\"similarCount\":{\"description\":\"Reported similar-question count information. The verified samples return null.\"},\"similarFeeds\":{\"description\":\"Related similar feed entries. The verified samples return null.\"},\"subFeedsCount\":{\"type\":\"string\",\"description\":\"Reported total count of related replies as text. The returned reply list can contain fewer entries.\"},\"targetUrl\":{\"type\":\"string\",\"description\":\"Public link to the product question card.\"},\"title\":{\"type\":\"string\",\"description\":\"Question text displayed in the card title.\"},\"subFeeds\":{\"type\":\"array\",\"description\":\"Related replies returned with the question card.\",\"items\":{\"type\":\"object\",\"description\":\"One related reply returned with the question card.\",\"properties\":{\"answerType\":{\"type\":\"string\",\"description\":\"Answer type code reported for the reply as text.\"},\"gmtCreate\":{\"type\":\"string\",\"description\":\"Reply creation time as a Unix timestamp in milliseconds, returned as a string.\"},\"gmtModified\":{\"description\":\"Modification time information for the reply. The verified samples return null.\"},\"elements\":{\"type\":\"array\",\"description\":\"Additional content elements for the reply. The verified samples return an empty list.\"},\"feedType\":{\"type\":\"string\",\"description\":\"Feed record type code reported for the reply as text.\"},\"id\":{\"type\":\"string\",\"description\":\"Identifier of the related reply.\"},\"title\":{\"type\":\"string\",\"description\":\"Text displayed for the related reply.\"},\"user\":{\"type\":\"object\",\"description\":\"Public author information returned for the reply.\",\"properties\":{\"userNick\":{\"type\":\"string\",\"description\":\"Public nickname shown for the reply author.\"},\"userUrl\":{\"type\":\"string\",\"description\":\"Public profile link returned for the reply author.\"},\"userLogo\":{\"type\":\"string\",\"description\":\"Avatar image URL returned for the reply author.\"},\"userScore\":{\"description\":\"Score information returned for the reply author. The verified samples return null.\"}}}}}}}}}},\"dataSuccess\":{\"type\":\"string\",\"description\":\"Status flag for the feed data as text.\"},\"success\":{\"type\":\"string\",\"description\":\"Status flag for the feed response as text.\"}}}}},\"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/get-social-feed/v1\"")' />

<p>Retrieves the Taobao or Tmall product social feed by item ID with page-based pagination. Use it to review product questions and related discussion during customer-concern or product research.</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>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-social-feed/v1?token=YOUR_API_KEY&itemId=VALUE'
```

```text [🤖 AI Prompt]
I want to use the "Product Questions (V1)" API from JustOneAPI.
Base URL: https://api.justoneapi.com.
API Path: /api/taobao/get-social-feed/v1?token=YOUR_API_KEY&itemId=VALUE
API Endpoint: BASE_URL + /api/taobao/get-social-feed/v1?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-questions-v1-en.json

Parameters:
- token (query): Access token for this API service. (Required)
- itemId (query): Unique product identifier on Taobao/Tmall (item ID). (Required)
- 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-social-feed/v1?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-social-feed/v1?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-social-feed/v1?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-social-feed/v1?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-social-feed/v1?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-questions-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</code> | Taobao or Tmall product questions, related replies, and pagination information. |
| <code>data.item</code> | <code>object</code> | Product information returned with this discussion feed. |
| <code>data.item.questionCount</code> | <code>string</code> | Reported product question count as text. |
| <code>data.item.itemTitle</code> | <code>string</code> | Product title displayed for the discussion feed. |
| <code>data.item.itemPic</code> | <code>string</code> | Product image URL displayed in the feed. |
| <code>data.item.buyerCount</code> | - | Reported product buyer count information. The verified samples return null. |
| <code>data.item.itemUrl</code> | <code>string</code> | Public link to the Taobao or Tmall product. |
| <code>data.item.tags</code> | <code>object &#124; null</code> | Product topic tags returned with the discussion feed, or null when unavailable. |
| <code>data.item.tags.list</code> | <code>array</code> | Reported product topic tags. |
| <code>data.item.tags.list[]</code> | <code>object</code> | One topic tag associated with the product. |
| <code>data.item.tags.list[].count</code> | <code>string</code> | Topic count reported for this tag as text. |
| <code>data.item.tags.list[].keyword</code> | <code>string</code> | Keyword displayed for this topic tag. |
| <code>data.item.tags.list[].propertyId</code> | <code>string</code> | Property identifier reported for this topic tag. |
| <code>data.questionStatus</code> | <code>object</code> | Status information for product questions. |
| <code>data.questionStatus.closeQuestion</code> | <code>string</code> | Whether product questions are closed, as a text flag. |
| <code>data.questionWords</code> | <code>array</code> | Question keyword entries returned with the feed. The verified samples return an empty list. |
| <code>data.pagination</code> | <code>object</code> | Page continuation information for this discussion feed. |
| <code>data.pagination.direction</code> | <code>string</code> | Pagination direction code reported for this feed as text. |
| <code>data.pagination.hasMore</code> | <code>string</code> | Text flag for whether another page is available. Continue when this field is true. |
| <code>data.pagination.pageNum</code> | <code>string</code> | Next page number reported as text. Use it as the page query parameter when hasMore is true. |
| <code>data.pagination.pageSize</code> | <code>string</code> | Requested page capacity reported as text. |
| <code>data.total</code> | <code>string</code> | Reported total number of entries in the discussion feed as text. |
| <code>data.list</code> | <code>array</code> | Groups of question cards returned on this page. The outer list can be empty. |
| <code>data.list[]</code> | <code>array</code> | One group of question cards. |
| <code>data.list[][]</code> | <code>object</code> | One product question card. |
| <code>data.list[][].clusterId</code> | <code>string &#124; null</code> | Identifier of the question cluster associated with the card, or null when unavailable. |
| <code>data.list[][].clusterName</code> | - | Name information for the question cluster. The verified samples return null. |
| <code>data.list[][].feedType</code> | <code>string</code> | Feed record type code reported for the question card as text. |
| <code>data.list[][].gmtCreate</code> | <code>string</code> | Question creation time as a Unix timestamp in milliseconds, returned as a string. |
| <code>data.list[][].gmtModified</code> | <code>string</code> | Question modification time as a Unix timestamp in milliseconds, returned as a string. |
| <code>data.list[][].id</code> | <code>string</code> | Identifier of the product question card. |
| <code>data.list[][].cardType</code> | <code>string</code> | Card type code returned for the question as text. |
| <code>data.list[][].similarCount</code> | - | Reported similar-question count information. The verified samples return null. |
| <code>data.list[][].similarFeeds</code> | - | Related similar feed entries. The verified samples return null. |
| <code>data.list[][].subFeedsCount</code> | <code>string</code> | Reported total count of related replies as text. The returned reply list can contain fewer entries. |
| <code>data.list[][].targetUrl</code> | <code>string</code> | Public link to the product question card. |
| <code>data.list[][].title</code> | <code>string</code> | Question text displayed in the card title. |
| <code>data.list[][].subFeeds</code> | <code>array</code> | Related replies returned with the question card. |
| <code>data.list[][].subFeeds[]</code> | <code>object</code> | One related reply returned with the question card. |
| <code>data.list[][].subFeeds[].answerType</code> | <code>string</code> | Answer type code reported for the reply as text. |
| <code>data.list[][].subFeeds[].gmtCreate</code> | <code>string</code> | Reply creation time as a Unix timestamp in milliseconds, returned as a string. |
| <code>data.list[][].subFeeds[].gmtModified</code> | - | Modification time information for the reply. The verified samples return null. |
| <code>data.list[][].subFeeds[].elements</code> | <code>array</code> | Additional content elements for the reply. The verified samples return an empty list. |
| <code>data.list[][].subFeeds[].feedType</code> | <code>string</code> | Feed record type code reported for the reply as text. |
| <code>data.list[][].subFeeds[].id</code> | <code>string</code> | Identifier of the related reply. |
| <code>data.list[][].subFeeds[].title</code> | <code>string</code> | Text displayed for the related reply. |
| <code>data.list[][].subFeeds[].user</code> | <code>object</code> | Public author information returned for the reply. |
| <code>data.list[][].subFeeds[].user.userNick</code> | <code>string</code> | Public nickname shown for the reply author. |
| <code>data.list[][].subFeeds[].user.userUrl</code> | <code>string</code> | Public profile link returned for the reply author. |
| <code>data.list[][].subFeeds[].user.userLogo</code> | <code>string</code> | Avatar image URL returned for the reply author. |
| <code>data.list[][].subFeeds[].user.userScore</code> | - | Score information returned for the reply author. The verified samples return null. |
| <code>data.dataSuccess</code> | <code>string</code> | Status flag for the feed data as text. |
| <code>data.success</code> | <code>string</code> | Status flag for the feed response as text. |

</div>

## Response Example

<ApiExampleSection :api='JSON.parse("\"/api/taobao/get-social-feed/v1\"")' />

