# 小红书话题笔记 | Xiaohongshu topic notes

**Use case:** 

通过话题链接获取小红书话题下的笔记。

## Input

```json
{
  "operation": "list_topic_notes",
  "keyword": "露营",
  "sort_type": "hot",
  "note_type": "all",
  "publish_time_range": "all",
  "has_image": false,
  "topic_url": "https://www.xiaohongshu.com/topic/normal/60e27aef15d4f70001dd8d7b",
  "max_items": 3,
  "auto_paginate": false
}
```

## Output

```json
{
  "operation": {
    "label": "Operation",
    "format": "string"
  },
  "item_index": {
    "label": "Item index",
    "format": "integer"
  },
  "empty_page": {
    "label": "Empty page",
    "format": "boolean"
  },
  "query_page_id": {
    "label": "Query topic page ID",
    "format": "string"
  },
  "query_topic_url": {
    "label": "Query topic URL",
    "format": "string"
  },
  "query_sort_type": {
    "label": "Query sort type",
    "format": "string"
  },
  "note_id": {
    "label": "Note ID",
    "format": "string"
  },
  "note_type": {
    "label": "Note type",
    "format": "string"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "cover_image_url": {
    "label": "Cover image URL",
    "format": "string"
  },
  "image_items": {
    "label": "Images",
    "format": "array"
  },
  "video_video_url": {
    "label": "Video URL",
    "format": "string"
  },
  "video_duration_ms": {
    "label": "Video duration",
    "format": "integer"
  },
  "video_width": {
    "label": "Video width",
    "format": "integer"
  },
  "video_height": {
    "label": "Video height",
    "format": "integer"
  },
  "author_user_id": {
    "label": "Author user ID",
    "format": "string"
  },
  "author_name": {
    "label": "Author name",
    "format": "string"
  },
  "like_count": {
    "label": "Like count",
    "format": "integer"
  },
  "publish_time": {
    "label": "Publish time",
    "format": "integer"
  },
  "page_total_note_count": {
    "label": "Topic total note count",
    "format": "integer"
  },
  "page_total_user_count": {
    "label": "Topic total user count",
    "format": "integer"
  },
  "page_request_index": {
    "label": "Page request index",
    "format": "integer"
  },
  "page_item_count": {
    "label": "Page item count",
    "format": "integer"
  },
  "page_next_page_token": {
    "label": "Next page token",
    "format": "string"
  },
  "page_has_more": {
    "label": "Has more",
    "format": "boolean"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The 小红书数据 API：笔记搜索与评论 | SocialDataX Xiaohongshu XHS RedNote Actor is ready to run with the inputs already set for "小红书话题笔记 | Xiaohongshu topic notes". [Sign up or log in](https://console.apify.com/create-task-from-example/mMWJeK27OoCh8ztgr) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "小红书话题笔记 | Xiaohongshu topic notes" task

The 小红书数据 API：笔记搜索与评论 | SocialDataX Xiaohongshu XHS RedNote Actor will start running based on the input automatically. You can also change all the input fields, like 操作 / operation, 关键词 / keyword, and more, to match your specific use case.

### 3. Receive the "小红书话题笔记 | Xiaohongshu topic notes" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as operation, item index, empty page, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "小红书话题笔记 | Xiaohongshu topic notes" task via API](https://apify.com/socialdatax/socialdatax-xhs-data-api.md).

## About this Actor

This example demonstrates how to use [小红书数据 API：笔记搜索与评论 | SocialDataX Xiaohongshu XHS RedNote](https://apify.com/socialdatax/socialdatax-xhs-data-api.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/socialdatax/socialdatax-xhs-data-api.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/socialdatax/socialdatax-xhs-data-api.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
