# Xiaohongshu (RED) Topic Details API

> Returns topic page details such as topic name, view count, discussion count, and share info by topic page ID. Supports passing optional context like source note ID.

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

## Facts

- Provider: Xiaohongshu
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/topic-info`
- 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-info` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `page_id` | string | yes |  |
| `note_id` | string | no |  |
| `source` | string | no |  |

## FAQ

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

Send a POST request to https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/topic-info 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 Details 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 Details API accept?

Required: page_id (string). Optional: note_id (string) and source (string). The Parameters table and the Playground on this page list every field.

### What does the Xiaohongshu (RED) Topic Details 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 Details 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 Details API

Retrieve topic overview metadata by specifying a required `page_id`. You can also supply an optional `note_id` and `source` context.

#### Use cases

- Inspect engagement metrics such as view and discussion counts for a topic.
- Extract topic names and share configurations for content tracking.
- Track topic metadata when navigating from a specific source note.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/topic-info" \
  -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" |
| `source` | string | No | Source, default "normal" |
| `note_id` | string | No | Source note ID, pass when jumping from note to topic (optional) |

#### Example response

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

```json
{
  "data": {
    "post_option": {
      "func_items": [
        {
          "link": "xhsdiscover://post_new_note?source=%7B%22type%22%3A%22pages%22%2C%22ids%22%3A%225c1cc866f…",
          "title": "Choose from Album"
        }
      ]
    }
  }
}
```

#### Notes

- `page_id` is required to identify the topic page.
- `note_id` can be supplied when navigating from a note to the topic.
- `source` defaults to "normal" if not specified.

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