# Xiaohongshu (RED) Topic Feed API

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

Source: https://www.sandbase.ai/apis/xiaohongshu/app-v2/topic-feed
API reference: https://www.sandbase.ai/apis/xiaohongshu/app-v2/topic-feed/docs

## Facts

- Provider: Xiaohongshu
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/topic-feed`
- Price: $0.01 per call
- Free allowance: 100 calls per organization per UTC day, shared across eligible APIs
- Capabilities: api, xiaohongshu
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/topic-feed` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `page_id` | string | yes |  |
| `cursor_score` | string | no |  |
| `first_load_time` | string | no |  |
| `last_note_ct` | string | no |  |
| `last_note_id` | string | no |  |
| `session_id` | string | no |  |
| `sort` | string | no |  |
| `source` | string | no |  |

## 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.

## 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

```bash
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

| Name | Type | Required | Description |
|---|---|---|---|
| `page_id` | string | Yes | Topic page ID (required), e.g. "5c1cc866febed9000184b7c1" |
| `sort` | string | No | Sort type |
| `source` | string | No | Source, default "normal" |
| `session_id` | string | No | Session ID, keep consistent for pagination |
| `cursor_score` | string | No | Pagination cursor score, pass last item's cursor_score from previous response |
| `last_note_ct` | string | No | Last note create time from previous page |
| `last_note_id` | string | No | Last note ID from previous page |
| `first_load_time` | string | No | First 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.

```json
{
  "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

- [Xiaohongshu (RED) Creator Hot Inspiration Feed](/model/xiaohongshu/app-v2/creator-hot-inspiration-feed): Retrieves creator center hot inspiration feed items with topic titles, popularity scores, and deeplinks.
- [Xiaohongshu (RED) Inspiration Feed](/model/xiaohongshu/app-v2/creator-inspiration-feed): Returns recommended inspiration feed items and trending topics from Xiaohongshu (RED).
- [Xiaohongshu (RED) Image Note Details](/model/xiaohongshu/app-v2/image-note-detail): Returns detailed information for a Xiaohongshu image note.
