---
title: "Xiaohongshu (RedNote) Topic Note List API (V1)"
description: "Retrieves Xiaohongshu (RedNote) notes associated with a topic ID, with hot or latest sorting and cursor pagination. Use it to support topic content discovery, trend review, and continuing through topic result pages."
aiUsagePrompt: true
---

# Xiaohongshu \(RedNote\) Topic Note List API \(V1\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/xiaohongshu/get-topic-note-list/v1\"")'
  :summary='JSON.parse("\"Topic Note List (V1)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/xiaohongshu-rednote/topic-note-list-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\":\"topicId\",\"in\":\"query\",\"description\":\"Unique topic identifier on Xiaohongshu.\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"sort\",\"in\":\"query\",\"description\":\"Sort order for the result set.\\n\\nAvailable Values:\\n- `time`: Latest\\n- `hot`: Hot\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"hot\",\"description\":\"Xiaohongshu Topic Sort\",\"enum\":[\"time\",\"hot\"]}},{\"name\":\"cursor\",\"in\":\"query\",\"description\":\"Pagination cursor from the previous page.\",\"required\":false,\"schema\":{\"type\":\"string\"}}]")'
  :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\":\"Notes and pagination for a Xiaohongshu topic.\",\"properties\":{\"list\":{\"type\":\"array\",\"description\":\"Note cards returned on this page for the selected topic and sort order.\",\"items\":{\"type\":\"object\",\"description\":\"One note card returned for the topic.\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Xiaohongshu identifier of the note.\"},\"title\":{\"type\":\"string\",\"description\":\"Title of the note.\"},\"desc\":{\"type\":\"string\",\"description\":\"Description text returned for this note.\"},\"type\":{\"type\":\"string\",\"description\":\"Note type reported by Xiaohongshu.\"},\"create_time\":{\"type\":\"integer\",\"description\":\"Note creation time as a Unix timestamp in milliseconds.\"},\"style\":{\"type\":\"integer\",\"description\":\"Note style code reported by Xiaohongshu.\"},\"style_name\":{\"type\":\"string\",\"description\":\"Style name returned for the note, when populated.\"},\"has_music\":{\"type\":\"boolean\",\"description\":\"Whether Xiaohongshu marks the note as including music.\"},\"cursor\":{\"type\":\"string\",\"description\":\"Cursor associated with this note in the topic list. Use the page cursor at data.cursor for pagination.\"},\"likes\":{\"type\":\"integer\",\"description\":\"Number of likes reported for the note.\"},\"collects\":{\"type\":\"integer\",\"description\":\"Save count reported in the collects field for this note.\"},\"collected_count\":{\"type\":\"integer\",\"description\":\"Save count reported in the collected_count field for this note.\"},\"image_count\":{\"type\":\"integer\",\"description\":\"Reported number of images associated with the note.\"},\"images_list\":{\"type\":\"array\",\"description\":\"Images or previews returned in the note card. This list can contain fewer entries than image_count.\",\"items\":{\"type\":\"object\",\"description\":\"One image or preview returned for the note.\",\"properties\":{\"fileid\":{\"type\":\"string\",\"description\":\"Identifier of the image asset reported by Xiaohongshu.\"},\"url\":{\"type\":\"string\",\"description\":\"Image URL returned for this entry, when populated.\"},\"url_size_large\":{\"type\":\"string\",\"description\":\"Large image variant URL returned for this entry.\"},\"original\":{\"type\":\"string\",\"description\":\"Original image reference, when populated.\"},\"width\":{\"type\":\"integer\",\"description\":\"Image width reported in the metadata, in pixels.\"},\"height\":{\"type\":\"integer\",\"description\":\"Image height reported in the metadata, in pixels.\"}}}},\"user\":{\"type\":\"object\",\"description\":\"Public author information returned with the note.\",\"properties\":{\"userid\":{\"type\":\"string\",\"description\":\"Xiaohongshu account ID of the note author.\"},\"nickname\":{\"type\":\"string\",\"description\":\"Nickname displayed for the note author.\"},\"images\":{\"type\":\"string\",\"description\":\"Avatar URL for the note author.\"},\"red_official_verify_type\":{\"type\":\"integer\",\"description\":\"Official verification type code reported for the author.\"},\"red_official_verified\":{\"type\":\"boolean\",\"description\":\"Whether the author is reported as officially verified, when supplied.\"},\"show_red_official_verify_icon\":{\"type\":\"boolean\",\"description\":\"Whether the official verification icon is shown with the author, when supplied.\"}}},\"video_id\":{\"type\":\"string\",\"description\":\"Identifier of the video associated with the note, when supplied.\"},\"video_info\":{\"type\":\"object\",\"description\":\"Video details when provided for a note. Video notes may also be returned with only an image preview.\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Identifier of the video in the video details.\"},\"duration\":{\"type\":\"integer\",\"description\":\"Video duration reported by Xiaohongshu.\"},\"width\":{\"type\":\"integer\",\"description\":\"Video width recorded in the metadata, in pixels.\"},\"height\":{\"type\":\"integer\",\"description\":\"Video height recorded in the metadata, in pixels.\"},\"played_count\":{\"type\":\"integer\",\"description\":\"Number of video plays reported in the video details.\"},\"avg_bitrate\":{\"type\":\"integer\",\"description\":\"Average bitrate value reported for the video.\"},\"vmaf\":{\"type\":\"number\",\"description\":\"Reported VMAF video quality score.\"},\"preload_size\":{\"type\":\"integer\",\"description\":\"Size value reported for video preloading.\"},\"first_frame\":{\"type\":\"string\",\"description\":\"First-frame image URL when provided.\"},\"thumbnail\":{\"type\":\"string\",\"description\":\"Thumbnail URL for the video.\"},\"url\":{\"type\":\"string\",\"description\":\"Playback URL returned for the video.\"},\"url_info_list\":{\"type\":\"array\",\"description\":\"Alternative playback variants provided for the video.\",\"items\":{\"type\":\"object\",\"description\":\"One alternative video playback variant.\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"Playback URL for this variant.\"},\"desc\":{\"type\":\"string\",\"description\":\"Description returned for this playback variant.\"},\"width\":{\"type\":\"integer\",\"description\":\"Width of this playback variant, in pixels.\"},\"height\":{\"type\":\"integer\",\"description\":\"Height of this playback variant, in pixels.\"},\"avg_bitrate\":{\"type\":\"integer\",\"description\":\"Average bitrate value reported for this playback variant.\"},\"vmaf\":{\"type\":\"number\",\"description\":\"Reported VMAF video quality score for this playback variant.\"}}}}}}}}},\"cursor\":{\"type\":\"string\",\"description\":\"Page-level continuation cursor. When has_more is true, pass it unchanged as cursor with the same topicId and sort.\"},\"has_more\":{\"type\":\"boolean\",\"description\":\"Whether another page is available. Stop paginating when this is false.\"}}}}},\"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/xiaohongshu/get-topic-note-list/v1\"")' />

<p>Retrieves Xiaohongshu (RedNote) notes associated with a topic ID, with hot or latest sorting and cursor pagination. Use it to support topic content discovery, trend review, and continuing through topic result pages.</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>topicId</code> | query | <code>string</code> | Yes | - | Unique topic identifier on Xiaohongshu. |
| <code>sort</code> | query | <code>string</code> | No | <code>hot</code> | Sort order for the result set.<br /><br><br>Available Values:<br /><br>- <code>time</code>: Latest<br /><br>- <code>hot</code>: Hot |
| <code>cursor</code> | query | <code>string</code> | No | - | Pagination cursor from the previous page. |

</div>

## Code Samples

::: code-group

```bash [🐚 cURL]
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/xiaohongshu/get-topic-note-list/v1?token=YOUR_API_KEY&topicId=VALUE'
```

```text [🤖 AI Prompt]
I want to use the "Topic Note List (V1)" API from JustOneAPI.
Base URL: https://api.justoneapi.com.
API Path: /api/xiaohongshu/get-topic-note-list/v1?token=YOUR_API_KEY&topicId=VALUE
API Endpoint: BASE_URL + /api/xiaohongshu/get-topic-note-list/v1?token=YOUR_API_KEY&topicId=VALUE
HTTP Method: GET
Authentication: Append the "token" query parameter to the URL.
OpenAPI Definition: https://docs.justoneapi.com/openapi/xiaohongshu-rednote/topic-note-list-v1-en.json

Parameters:
- token (query): Access token for this API service. (Required)
- topicId (query): Unique topic identifier on Xiaohongshu. (Required)
- sort (query): Sort order for the result set.

Available Values:
- `time`: Latest
- `hot`: Hot
- cursor (query): Pagination cursor from the previous page.

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/xiaohongshu/get-topic-note-list/v1?token=YOUR_API_KEY&topicId=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/xiaohongshu/get-topic-note-list/v1?token=YOUR_API_KEY&topicId=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/xiaohongshu/get-topic-note-list/v1?token=YOUR_API_KEY&topicId=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/xiaohongshu/get-topic-note-list/v1?token=YOUR_API_KEY&topicId=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/xiaohongshu/get-topic-note-list/v1?token=YOUR_API_KEY&topicId=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/xiaohongshu-rednote/topic-note-list-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> | Notes and pagination for a Xiaohongshu topic. |
| <code>data.list</code> | <code>array</code> | Note cards returned on this page for the selected topic and sort order. |
| <code>data.list[]</code> | <code>object</code> | One note card returned for the topic. |
| <code>data.list[].id</code> | <code>string</code> | Xiaohongshu identifier of the note. |
| <code>data.list[].title</code> | <code>string</code> | Title of the note. |
| <code>data.list[].desc</code> | <code>string</code> | Description text returned for this note. |
| <code>data.list[].type</code> | <code>string</code> | Note type reported by Xiaohongshu. |
| <code>data.list[].create_time</code> | <code>integer</code> | Note creation time as a Unix timestamp in milliseconds. |
| <code>data.list[].style</code> | <code>integer</code> | Note style code reported by Xiaohongshu. |
| <code>data.list[].style_name</code> | <code>string</code> | Style name returned for the note, when populated. |
| <code>data.list[].has_music</code> | <code>boolean</code> | Whether Xiaohongshu marks the note as including music. |
| <code>data.list[].cursor</code> | <code>string</code> | Cursor associated with this note in the topic list. Use the page cursor at data.cursor for pagination. |
| <code>data.list[].likes</code> | <code>integer</code> | Number of likes reported for the note. |
| <code>data.list[].collects</code> | <code>integer</code> | Save count reported in the collects field for this note. |
| <code>data.list[].collected_count</code> | <code>integer</code> | Save count reported in the collected_count field for this note. |
| <code>data.list[].image_count</code> | <code>integer</code> | Reported number of images associated with the note. |
| <code>data.list[].images_list</code> | <code>array</code> | Images or previews returned in the note card. This list can contain fewer entries than image_count. |
| <code>data.list[].images_list[]</code> | <code>object</code> | One image or preview returned for the note. |
| <code>data.list[].images_list[].fileid</code> | <code>string</code> | Identifier of the image asset reported by Xiaohongshu. |
| <code>data.list[].images_list[].url</code> | <code>string</code> | Image URL returned for this entry, when populated. |
| <code>data.list[].images_list[].url_size_large</code> | <code>string</code> | Large image variant URL returned for this entry. |
| <code>data.list[].images_list[].original</code> | <code>string</code> | Original image reference, when populated. |
| <code>data.list[].images_list[].width</code> | <code>integer</code> | Image width reported in the metadata, in pixels. |
| <code>data.list[].images_list[].height</code> | <code>integer</code> | Image height reported in the metadata, in pixels. |
| <code>data.list[].user</code> | <code>object</code> | Public author information returned with the note. |
| <code>data.list[].user.userid</code> | <code>string</code> | Xiaohongshu account ID of the note author. |
| <code>data.list[].user.nickname</code> | <code>string</code> | Nickname displayed for the note author. |
| <code>data.list[].user.images</code> | <code>string</code> | Avatar URL for the note author. |
| <code>data.list[].user.red_official_verify_type</code> | <code>integer</code> | Official verification type code reported for the author. |
| <code>data.list[].user.red_official_verified</code> | <code>boolean</code> | Whether the author is reported as officially verified, when supplied. |
| <code>data.list[].user.show_red_official_verify_icon</code> | <code>boolean</code> | Whether the official verification icon is shown with the author, when supplied. |
| <code>data.list[].video_id</code> | <code>string</code> | Identifier of the video associated with the note, when supplied. |
| <code>data.list[].video_info</code> | <code>object</code> | Video details when provided for a note. Video notes may also be returned with only an image preview. |
| <code>data.list[].video_info.id</code> | <code>string</code> | Identifier of the video in the video details. |
| <code>data.list[].video_info.duration</code> | <code>integer</code> | Video duration reported by Xiaohongshu. |
| <code>data.list[].video_info.width</code> | <code>integer</code> | Video width recorded in the metadata, in pixels. |
| <code>data.list[].video_info.height</code> | <code>integer</code> | Video height recorded in the metadata, in pixels. |
| <code>data.list[].video_info.played_count</code> | <code>integer</code> | Number of video plays reported in the video details. |
| <code>data.list[].video_info.avg_bitrate</code> | <code>integer</code> | Average bitrate value reported for the video. |
| <code>data.list[].video_info.vmaf</code> | <code>number</code> | Reported VMAF video quality score. |
| <code>data.list[].video_info.preload_size</code> | <code>integer</code> | Size value reported for video preloading. |
| <code>data.list[].video_info.first_frame</code> | <code>string</code> | First-frame image URL when provided. |
| <code>data.list[].video_info.thumbnail</code> | <code>string</code> | Thumbnail URL for the video. |
| <code>data.list[].video_info.url</code> | <code>string</code> | Playback URL returned for the video. |
| <code>data.list[].video_info.url_info_list</code> | <code>array</code> | Alternative playback variants provided for the video. |
| <code>data.list[].video_info.url_info_list[]</code> | <code>object</code> | One alternative video playback variant. |
| <code>data.list[].video_info.url_info_list[].url</code> | <code>string</code> | Playback URL for this variant. |
| <code>data.list[].video_info.url_info_list[].desc</code> | <code>string</code> | Description returned for this playback variant. |
| <code>data.list[].video_info.url_info_list[].width</code> | <code>integer</code> | Width of this playback variant, in pixels. |
| <code>data.list[].video_info.url_info_list[].height</code> | <code>integer</code> | Height of this playback variant, in pixels. |
| <code>data.list[].video_info.url_info_list[].avg_bitrate</code> | <code>integer</code> | Average bitrate value reported for this playback variant. |
| <code>data.list[].video_info.url_info_list[].vmaf</code> | <code>number</code> | Reported VMAF video quality score for this playback variant. |
| <code>data.cursor</code> | <code>string</code> | Page-level continuation cursor. When has_more is true, pass it unchanged as cursor with the same topicId and sort. |
| <code>data.has_more</code> | <code>boolean</code> | Whether another page is available. Stop paginating when this is false. |

</div>

## Response Example

<ApiExampleSection :api='JSON.parse("\"/api/xiaohongshu/get-topic-note-list/v1\"")' />

