跳到主要内容
小红书 全部接口
内容详情小红书话题 · 详情

小红书话题详情

按话题页面 ID 读取公开话题名称、描述、封面与计数快照。

POST/v1/xiaohongshu/topics/detail

英文名称: Xiaohongshu topic detail · Topic · Detail Read an allowlisted public topic profile and count snapshot by page ID.
xiaohongshu.topics.detail@v1

按次价格

¥0.19/ 次

完整或确认空结果收费;部分结果和失败不收费。

正在核验实时状态

在线试用

登录后用真实参数调用一次,结果和扣费会显示在这里。

安全验证

正在加载安全验证…

正在确认实时执行状态…

执行结果

// Result

请求参数

page_idstring必填

pattern: "^[A-Za-z0-9_-]+$" · minLength: 8 · maxLength: 128

示例: "5eb2e2ffbd997100014327bc"

请求 JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "page_id": {
      "type": "string",
      "minLength": 8,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_-]+$"
    }
  },
  "required": [
    "page_id"
  ],
  "additionalProperties": false
}

代码示例

安装 SDK:npm i @dataxapi/sdk 或 pip install dataxapi;把 API Key 放进环境变量 DATAXAPI_API_KEY。

curl -X POST https://api.dataxapi.com/v1/xiaohongshu/topics/detail \
  -H "Authorization: Bearer $DATAXAPI_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"page_id":"5eb2e2ffbd997100014327bc"}'

返回示例

200 · application/json
{
  "code": 200,
  "request_id": "req_example_xhs_batch_3",
  "message": "success",
  "data": {
    "item": {
      "page_id": "5eb2e2ffbd997100014327bc",
      "topic_id": "5eb2e2ff0000000001007d9f",
      "name": "露营",
      "description": "公开话题描述",
      "banner_url": "https://ci.xiaohongshu.com/topic-banner",
      "metrics": {
        "views": 8410766447,
        "discussions": 2545322,
        "discussion_comments": 32071717
      }
    }
  },
  "page": {
    "next_cursor": null
  },
  "warnings": [],
  "meta": {
    "listing_id": "xiaohongshu.topics.detail",
    "version": "v1",
    "catalog_release_id": "catalog-production-2026-09-19.b069be57",
    "price_book_version": "pricebook-production-2026-09-19.4487e352",
    "result_status": "complete",
    "charged_amount": "0.19",
    "balance_after": "49.81",
    "currency": "CNY"
  }
}
返回字段说明
codenumber
const: 200
request_idstring
messagestring
const: "success"
dataobject
pageobject
warningsarray
metaobject
返回 JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "code": {
      "type": "number",
      "const": 200
    },
    "request_id": {
      "type": "string"
    },
    "message": {
      "type": "string",
      "const": "success"
    },
    "data": {
      "type": "object",
      "properties": {
        "item": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "page_id": {
                  "type": "string"
                },
                "topic_id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "description": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "banner_url": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "metrics": {
                  "type": "object",
                  "properties": {
                    "views": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "discussions": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "discussion_comments": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "views",
                    "discussions",
                    "discussion_comments"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "page_id",
                "topic_id",
                "name",
                "description",
                "banner_url",
                "metrics"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "item"
      ],
      "additionalProperties": false
    },
    "page": {
      "type": "object",
      "properties": {
        "next_cursor": {
          "type": "null"
        }
      },
      "required": [
        "next_cursor"
      ],
      "additionalProperties": false
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "meta": {
      "type": "object",
      "properties": {
        "listing_id": {
          "type": "string",
          "const": "xiaohongshu.topics.detail"
        },
        "version": {
          "type": "string",
          "const": "v1"
        },
        "catalog_release_id": {
          "type": "string",
          "minLength": 1
        },
        "price_book_version": {
          "type": "string",
          "minLength": 1
        },
        "result_status": {
          "type": "string",
          "enum": [
            "complete",
            "empty"
          ]
        },
        "charged_amount": {
          "type": "string"
        },
        "balance_after": {
          "type": "string"
        },
        "currency": {
          "type": "string",
          "const": "CNY"
        }
      },
      "required": [
        "listing_id",
        "version",
        "catalog_release_id",
        "price_book_version",
        "result_status",
        "charged_amount",
        "balance_after",
        "currency"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "code",
    "request_id",
    "message",
    "data",
    "page",
    "warnings",
    "meta"
  ],
  "additionalProperties": false
}

使用说明

适合

  • 已知话题页面 ID,需要核对公开话题资料与规模快照。

不适合

  • 不用于搜索话题、读取话题笔记或推断推荐权重。

已知限制

  • 计数是调用时的公开快照,可能存在平台延迟和展示口径变化。
  • 必须提供话题页面 ID;本接口不负责按名称搜索话题。
  • 不返回关注状态、发布入口或任何登录态字段。

计费规则

¥0.19 / 次。完整或确认空结果收费;部分结果和失败不收费。

查看全部价格 →