Xiaohongshu (RED) Topic Details

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

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.

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

Try the model

Playground

Open playground
Input
Source note ID, pass when jumping from note to topic (optional)
Topic page ID (required), e.g. "5c1cc866febed9000184b7c1"
Source, default "normal"
OutputExample
Responseoutputs · 7.0 KB · 93 lines
[
  {
    "data": {
      "code": 0,
      "data": {
        "business_type": 0,
        "custom_tabs": [],
        "feedShowType": "2",
        "followed": false,
        "inside_deeplink": "xhsdiscover://topic/v2/5c1cc866febed9000184b7c1",
        "middle_lane_list": [],
        "moduleId": "0",
        "page_id": "5c1cc866febed9000184b7c1",
        "page_info": {
          "banner": "",
          "desc": "",
          "discussNum": 2340087,
          "discuss_comment_num": 36261346,
          "discuss_comment_num_text": "999万+",
          "name": "新年",
          "topic_translate_info": {
            "translate_type": 2
          },
          "viewNum": 7668920519,
          "view_num_text": "999万+"
        },
        "page_type": "topic",
        "post_deeplink": "xhsdiscover://post_new_note?page=%7B%22page_type%22%3A%22albums%22%7D&source=%7B%22type%22%3A%22pages%22%2C%22ids%22%3A%225c1cc866febed9000184b7c1%22%2C%22extraInfo%22%3A%7B%22popup_name%22%3A1%2C%22subType%22%3A%22page_topic%22%2C%22topic_id%22%3A%225c1cc866febed9000184b7c1%22%2C%22entrance_type%22%3A%22bottom%22%7D%7D&attach=%7B%22topics%22%3A%5B%7B%22page_id%22%3A%225c1cc866febed9000184b7c1%22%7D%5D%2C%22stickers_custom%22%3A%5B%5D%2C%22stickers_neptune%22%3A%5B%5D%2C%22stickers_emoji%22%3A%5B%5D%2C%22texts%22%3A%5B%5D%7D&config=%7B%22is_post_jump%22%3A0%2C%22progress_config%22%3A%7B%22progress_source%22%3A%5B1%5D%7D%7D",
        "post_option": {
          "default_link": "xhsdiscover://post_new_note?source=%7B%22type%22%3A%22pages%22%2C%22ids%22%3A%225c1cc866febed9000184b7c1%22%2C%22extraInfo%22%3A%7B%22popup_name%22%3A1%2C%22subType%22%3A%22page_topic%22%2C%22topic_id%22%3A%225c1cc866febed9000184b7c1%22%2C%22entrance_type%22%3A%22bottom%22%7D%7D&attach=%7B%22topics%22%3A%5B%7B%22page_id%22%3A%225c1cc866febed9000184b7c1%22%7D%5D%2C%22stickers_custom%22%3A%5B%5D%2C%22stickers_neptune%22%3A%5B%5D%2C%22stickers_emoji%22%3A%5B%5D%2C%22texts%22%3A%5B%5D%7D&page=%7B%22page_type%22%3A%22albums%22%7D&config=%7B%22is_post_jump%22%3A0%2C%22progress_config%22%3A%7B%22progress_source%22%3A%5B1%5D%7D%2C%22post_success_show_share%22%3A1%2C%22tti_resource_group%22%3A0%2C%22video_publish_delay%22%3A0%2C%22image_publish_delay%22%3A0%7D",
          "func_items": [
            {
              "link": "xhsdiscover://post_new_note?source=%7B%22type%22%3A%22pages%22%2C%22ids%22%3A%225c1cc866febed9000184b7c1%22%2C%22extraInfo%22%3A%7B%22popup_name%22%3A1%2C%22subType%22%3A%22page_topic%22%2C%22topic_id%22%3A%225c1cc866febed9000184b7c1%22%2C%22entrance_type%22%3A%22bottom%22%7D%7D&attach=%7B%22topics%22%3A%5B%7B%22page_id%22%3A%225c1cc866febed9000184b7c1%22%7D%5D%2C%22stickers_custom%22%3A%5B%5D%2C%22stickers_neptune%22%3A%5B%5D%2C%22stickers_emoji%22%3A%5B%5D%2C%22texts%22%3A%5B%5D%7D&page=%7B%22page_type%22%3A%22albums%22%7D&config=%7B%22is_post_jump%22%3A0%2C%22progress_config%22%3A%7B%22progress_source%22%3A%5B1%5D%7D%2C%22post_success_show_share%22%3A1%2C%22tti_resource_group%22%3A0%2C%22video_publish_delay%22%3A0%2C%22image_publish_delay%22%3A0%7D",
              "title": "Choose from Album"
            },
            {
              "link": "xhsdiscover://post_new_note?source=%7B%22type%22%3A%22pages%22%2C%22ids%22%3A%225c1cc866febed9000184b7c1%22%2C%22extraInfo%22%3A%7B%22popup_name%22%3A1%2C%22subType%22%3A%22page_topic%22%2C%22topic_id%22%3A%225c1cc866febed9000184b7c1%22%2C%22entrance_type%22%3A%22bottom%22%7D%7D&attach=%7B%22topics%22%3A%5B%7B%22page_id%22%3A%225c1cc866febed9000184b7c1%22%7D%5D%2C%22stickers_custom%22%3A%5B%5D%2C%22stickers_neptune%22%3A%5B%5D%2C%22stickers_emoji%22%3A%5B%5D%2C%22texts%22%3A%5B%5D%7D&page=%7B%22page_type%22%3A%22camera_hub%22%7D&config=%7B%22is_post_jump%22%3A0%2C%22progress_config%22%3A%7B%22progress_source%22%3A%5B1%5D%7D%2C%22post_success_show_share%22%3A1%2C%22camera_home_tabs%22%3A%5B%7B%22type%22%3A%22take%22%7D%5D%2C%22tti_resource_group%22%3A0%2C%22video_publish_delay%22%3A0%2C%22image_publish_delay%22%3A0%7D",
              "title": "Capture"
            },
            {
              "link": "xhsdiscover://post_new_note?source=%7B%22type%22%3A%22pages%22%2C%22ids%22%3A%225c1cc866febed9000184b7c1%22%2C%22extraInfo%22%3A%7B%22popup_name%22%3A1%2C%22subType%22%3A%22page_topic%22%2C%22topic_id%22%3A%225c1cc866febed9000184b7c1%22%2C%22entrance_type%22%3A%22bottom%22%7D%7D&attach=%7B%22topics%22%3A%5B%7B%22page_id%22%3A%225c1cc866febed9000184b7c1%22%7D%5D%2C%22stickers_custom%22%3A%5B%5D%2C%22stickers_neptune%22%3A%5B%5D%2C%22stickers_emoji%22%3A%5B%5D%2C%22texts%22%3A%5B%5D%2C%22now_edit_info%22%3A%7B%22tti_open_keyboard%22%3Afalse%7D%7D&page=%7B%22page_type%22%3A%22now_portal_home_page%22%7D&config=%7B%22is_post_jump%22%3A0%2C%22progress_config%22%3A%7B%22progress_source%22%3A%5B1%5D%7D%2C%22post_success_show_share%22%3A1%2C%22is_request_template_popups%22%3Atrue%2C%22tti_resource_group%22%3A0%2C%22video_publish_delay%22%3A0%2C%22image_publish_delay%22%3A0%7D",
              "title": "Text"
            }
          ]
        },
        "post_text": "Post now",
        "share_info": {
          "desc": "3626万人在讨论,一起看看吧。",
          "image": "http://ci.xiaohongshu.com/1040g00832435j1a40a305paoiqigmj2vrv1a660?imageView2/2/w/1080/format/jpg",
          "link": "https://www.xiaohongshu.com/topic/ugc/5c1cc866febed9000184b7c1?fullscreen=true&naviHidden=yes",
          "outside_desc": "小红书话题|3626万人在讨论,一起看看吧。",
          "outside_image": "https://picasso-static.xiaohongshu.com/fe-platform/140668e9c80b4341d7a3585e95a7ce7845433edc.png",
          "title": "# 新年"
        },
        "tabs": [
          {
            "is_focus": false,
            "name": "Hottest",
            "value": "trend"
          },
          {
            "name": "Latest",
            "value": "time"
          }
        ],
        "topic_id": "5497b494b4c4d654c0d78c99",
        "topic_long_id": "2233796500294765721",
        "user_followed": false,
        "users": [
          {
            "id": "655896a50000000002034c5f",
            "image": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo31k5p1b0i32605paoiqigmj2ve0l5jrg?imageView2/2/w/80/format/jpg",
            "nickname": "九月二十七日"
          },
          {
            "id": "64197bbe000000001102019d",
            "image": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo323g05vog0ak05p0pfev4c0cta90iogg?imageView2/2/w/80/format/jpg",
            "nickname": "我来了"
          },
          {
            "id": "66e3de46000000001d0225a7",
            "image": "https://sns-avatar-qc.xhscdn.com/avatar/e9cc66d1-86e2-3534-a99f-dabd1dc3bae1?imageView2/2/w/80/format/jpg",
            "nickname": "小亦玩玩玩"
          }
        ]
      },
      "debug_id": "e5e68dcf",
      "debug_info": "gAAAAABqhswlD_7ILpeAZbQIFEGZHU2w1YEeHDUNQIlT5lmeuEGcyc5p-H0M4vVDkLEJb36m7HcfnIc5xB-ue60qpsLxB-BS3H2msxZkGZvgMxZaDiar4GOTx_0FTyCcqE9y3LQzayzypv0FPugyXJk1KHezjbkXRV44UpRl477pWfXn5cFtGKbGLpe0ysINn9SWPCygRJ1Kvzfc0tv5FPxkzI2AO1XLyJW9o4Za1_3ya1ZU5DokZo9CBzFt-gKE3bTCbKl6a0gIwISnKimz6HwgiFRUogRASvxdrC08hD5glnrJViCXjuXlMMSb9Dcp6AJ1jdf5U3K4361Mrl6ejDLJvEZc9eNLIDM56_JDicZCyqYoEJIdKrc6Z4qcy9PZvrPM-OaSBDNKK8nNbyIG-rGnnWXKDWyjAjTYUoJWQArYX7ftvIjoA7g=",
      "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
note_id
string · optional
source
string · optional

Access

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

API 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

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

NameTypeRequiredDescription
page_idstringYesTopic page ID (required), e.g. "5c1cc866febed9000184b7c1"
sourcestringNoSource, default "normal"
note_idstringNoSource 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.

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

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-info
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-info" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'SANDBASE_JSON'
{
  "source": "normal",
  "note_id": "",
  "page_id": "5c1cc866febed9000184b7c1"
}
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 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.