Xiaohongshu (RED) Topic Feed

https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/topic-feed

Returns a list of notes listed under a specified topic page on Xiaohongshu (RED). Supports sorting options and cursor pagination using previous response indicators.

Price
$0.01USD / callFirst 100 calls per day free (shared per organization)
Method
POST
Response
JSON
Parameters
1 required · 7 optional
Production route

Try the model

Playground

Open playground
Input
Pagination cursor score, pass last item's cursor_score from previous response
First load timestamp, keep consistent for pagination
Last note create time from previous page
Last note ID from previous page
Topic page ID (required), e.g. "5c1cc866febed9000184b7c1"
Session ID, keep consistent for pagination
Sort type
Source, default "normal"
OutputExample
Responseoutputs · 736 B · 19 lines
[
  {
    "data": {
      "code": 0,
      "data": {
        "has_more": false,
        "items": []
      },
      "debug_id": "42d6d1f6",
      "debug_info": "gAAAAABqhswnE1ptbKPVaQx8m0Dll5e4fXCDn6qBzBmQwfdbicYCgF7JCyq6jQARxoQZGhOM0J4npIL8wb0-98L4bIk_BtZ69yUKQyy196dBRU_NOJrGM-Z4W_bxq3XB4H0TvPxF2rukjZc2oheal81LCk5M2gNc80_B8Py7fM4FJFdViUrD6IC669wLmtFn6nuwGgDsrZteqWLkSKHJDbuw7LR0-5M7zrASrlutHJk5_xzLlP5jWrVfzRqk7p8C87qdkcMPZnftfLdXGg5-hoJf8L3MFl-dyQ5EaMOBhUIH8Tl2762jFMloHaY4LN3jWKXoGesOnrOvtvl_beRmGqMpJAH6bm7ANBFY1PNvli1KFt9-dIQXcW3n7LdKXdqtm8lGwt7jBhP_H1pztmXiiSg8VpQd-gulwAPgnh8RAS6cYEUCJ0XVTg4=",
      "extra": {
        "force_message": "",
        "force_update": 0
      },
      "msg": "成功",
      "success": true
    }
  }
]

Examples

Select an example to load its inputs and result into the playground.

Model card

Specifications

Pricing

Base price
$0.01 / run
Daily free calls
First 100 calls per day free (shared per organization)

Request & response

Method
POST
Request body
application/json
Response
application/json
Execution
sync

Parameters

page_id
string · required
cursor_score
string · optional
first_load_time
string · optional
last_note_ct
string · optional
last_note_id
string · optional
session_id
string · optional
sort
string · optional
source
string · optional

Access

Provider
Xiaohongshu
API
Platform API
Base URL
https://api.sandbase.ai
Endpoint
/v1/api/xiaohongshu/app-v2/topic-feed
Authentication
Bearer API key

API README

Xiaohongshu (RED) Topic Feed API

Query notes under a specific Xiaohongshu (RED) topic by providing page_id. Supports cursor pagination and custom sort options.

Use cases

  • Track posts and community discussions around a specific campaign topic.
  • Monitor engagement trends and top-performing notes within a niche hashtag.
  • Retrieve recent user content associated with targeted topic feeds.

Request

curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/topic-feed" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page_id": "5c1cc866febed9000184b7c1"}'

Parameters

NameTypeRequiredDescription
page_idstringYesTopic page ID (required), e.g. "5c1cc866febed9000184b7c1"
sortstringNoSort type
sourcestringNoSource, default "normal"
session_idstringNoSession ID, keep consistent for pagination
cursor_scorestringNoPagination cursor score, pass last item's cursor_score from previous response
last_note_ctstringNoLast note create time from previous page
last_note_idstringNoLast note ID from previous page
first_load_timestringNoFirst load timestamp, keep consistent for pagination

Example response

Real response for the request above, trimmed to the main fields. User names and long IDs are masked.

{
  "data": {
    "items": [
      {
        "create_time": 1770546832000,
        "desc": "宝子们!被这盏像素花灯狠狠戳中中式审美了✨ 靛蓝的亭式灯笼带着飞檐,像把江南古亭缩成掌心小物,镂空窗格透着暖黄灯火,周围粉蓝海棠开得像云絮,仿佛能闻到花香里的夜露气~ 使用104…",
        "id": "69886690000000000b010dec",
        "title": "拼豆图纸ℓ像素风“春灯海棠”ℓ国风宫灯",
        "type": "normal",
        "interaction_info": {
          "collect_count": 17331,
          "comment_count": 646,
          "like_count": 15179,
          "share_count": 3032
        },
        "note_time": {
          "create_time": 1770546832,
          "update_time": 1770546833
        },
        "share_info": {
          "content": "宝子们!被这盏像素花灯狠狠戳中中式审美了✨ 靛蓝的亭式灯笼带着飞檐,像把江南古亭缩成掌心小物,镂空窗格透着暖黄灯火,周围",
          "link": "https://www.xiaohongshu.com/discovery/item/69886690000000000b010dec?app_platform…",
          "title": "拼豆图纸ℓ像素风“春灯海棠”ℓ国风宫灯"
        },
        "topic_note_translate_info": {
          "translate_type": 2
        },
        "user": {
          "nickname": "<user>",
          "user_id": "<user>"
        }
      }
    ]
  }
}

Notes

  • page_id is required to identify the target topic page.
  • Cursor pagination uses cursor_score, last_note_id, and last_note_ct from the previous response.
  • Maintain consistent values for session_id and first_load_time across subsequent page calls.

Related APIs

Start building

Send your first request

Platform API endpoint with unified authentication and usage tracking.

Production API
Platform API endpoint
https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/topic-feed
Authorization header
Authorization: Bearer $SANDBASE_API_KEY
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
  -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/topic-feed" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'SANDBASE_JSON'
{
  "page_id": "example"
}
SANDBASE_JSON
)
printf '%s\n' "$result"

Explore more

Related APIs

All APIs
APIPriceResponseReleased
Xiaohongshu$0.01 per callJSONJul 31, 2026
Xiaohongshu$0.01 per callJSONJul 31, 2026
Xiaohongshu$0.01 per callJSONJul 31, 2026
Xiaohongshu$0.01 per callJSONJul 31, 2026
Xiaohongshu$0.01 per callJSONJul 31, 2026
Xiaohongshu$0.01 per callJSONJul 31, 2026

Questions

FAQ

How do I use the Xiaohongshu (RED) Topic Feed API?

Send a POST request to https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/topic-feed with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

How much does the Xiaohongshu (RED) Topic Feed API cost?

$0.01 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

What parameters does the Xiaohongshu (RED) Topic Feed API accept?

Required: page_id (string). Optional: cursor_score (string), first_load_time (string), last_note_ct (string), last_note_id (string), session_id (string) and sort (string) and 1 more. The Parameters table and the Playground on this page list every field.

What does the Xiaohongshu (RED) Topic Feed API return?

A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.

Do I need a Xiaohongshu developer account or API key?

No. Xiaohongshu (RED) Topic Feed runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Xiaohongshu API access separately.