# Xiaohongshu (RedNote) Comments Scraper - 小红书 Comments (`seemuapps/xiaohongshu-comments-scraper`) Actor

Scrape comments and replies from any Xiaohongshu (RedNote, 小红书) note: text, likes, reply counts, dates, IP location, images and commenter profiles. No login.

- **URL**: https://apify.com/seemuapps/xiaohongshu-comments-scraper.md
- **Developed by:** [Seemu Scraping](https://apify.com/seemuapps) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 0 monthly users, 90.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 comments

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

## Xiaohongshu (RedNote) Comments Scraper - 小红书 Comments

Export the comments and replies from any Xiaohongshu (小红书, also called RedNote or Little Red Book) note: comment text, likes, reply counts, post dates, the commenter's IP location (province or country), images and profile details. No login and no Xiaohongshu account needed.

### What you get

One row per comment (and per reply, if enabled):

- **Comment**: comment ID, text, likes, number of replies, post date, image URLs for picture comments, @-mentioned nicknames
- **Context**: note ID and URL, whether it's a reply, the parent comment ID and the nickname being replied to
- **Signals**: IP location shown by Xiaohongshu, whether the comment is pinned, whether the note's author wrote it
- **Commenter**: Red ID (小红书号), nickname and avatar

### Use cases

- **Sentiment analysis and consumer research**: read what Chinese consumers say about a product, brand or topic
- **Product feedback**: collect questions, complaints and praise from comments on product reviews and haul notes
- **Brand and campaign monitoring**: measure reactions to your own or competitors' notes
- **Regional insight**: use the IP location field to see where commenters are based
- **Training data**: collect real Mandarin social-media text with engagement labels

### How to use

1. Paste **Xiaohongshu notes**: note URLs (`https://www.xiaohongshu.com/explore/…`), `xhslink.com` share links or note IDs
2. Set **Max comments per note** (0 = all) and choose **Sort by**
3. Turn on **Include replies** to also collect replies, and set **Max replies per comment**
4. Run the actor and export from the **Dataset** tab

### Output example

```json
{
  "noteId": "6acd71d2000000000202a2de",
  "noteUrl": "https://www.xiaohongshu.com/explore/6acd71d2000000000202a2de",
  "commentId": "6acd7e6b0000000008003e79",
  "text": "准备去喝开心果的，开心果脑袋[喝奶茶R]",
  "likes": 178,
  "replyCount": 83,
  "createdAt": "2026-10-13T00:42:19.000Z",
  "isReply": false,
  "parentCommentId": null,
  "replyToNickname": null,
  "isPinned": false,
  "isFromAuthor": false,
  "ipLocation": "Hebei",
  "imageUrls": [],
  "mentionedNicknames": [],
  "authorRedId": "18779433581",
  "authorNickname": "🎹福福🦋",
  "authorAvatar": "https://sns-avatar-qc.rednotecdn.com/avatar/1040g2jo326mjql2c5q0042d9bjvce22bunr839o?image…",
  "scrapedAt": "2026-10-26T21:41:35.371Z"
}
{
  "noteId": "6acd71d2000000000202a2de",
  "noteUrl": "https://www.xiaohongshu.com/explore/6acd71d2000000000202a2de",
  "commentId": "6acd7f970000000008034ffa",
  "text": "收到🫡",
  "likes": 1,
  "replyCount": null,
  "createdAt": "2026-10-13T00:47:19.000Z",
  "isReply": true,
  "parentCommentId": "6acd7e6b0000000008003e79",
  "replyToNickname": "悲伤特码头",
  "isPinned": false,
  "isFromAuthor": false,
  "ipLocation": "Hebei",
  "imageUrls": [],
  "mentionedNicknames": [],
  "authorRedId": "18779433581",
  "authorNickname": "🎹福福🦋",
  "authorAvatar": "https://sns-avatar-qc.rednotecdn.com/avatar/1040g2jo326mjql2c5q0042d9bjvce22bunr839o?image…",
  "scrapedAt": "2026-10-26T21:41:36.616Z"
}
```

### FAQ

**Do I need a Xiaohongshu account or cookies?** No.

**Why is the comment count lower than the number shown on the note?** Xiaohongshu's total includes replies, plus comments it has hidden or removed. Turn on **Include replies** to collect replies too.

**Why is there no commenter user ID or profile link?** Xiaohongshu hides commenters' real user IDs in comment data. The Red ID (小红书号) is included instead, which you can search for in the app.

**How are replies priced?** Replies are a separate, slightly more expensive event because Xiaohongshu serves them in much smaller batches than top-level comments. Leave **Include replies** off if you only need top-level comments.

# Actor input Schema

## `noteUrls` (type: `array`):

Note URLs (https://www.xiaohongshu.com/explore/…), xhslink.com share links, or 24-character note IDs. One per line.

## `maxCommentsPerNote` (type: `integer`):

How many top-level comments to collect per note. 0 = all available.

## `sortBy` (type: `string`):

Order of top-level comments.

## `includeReplies` (type: `boolean`):

Also collect replies to each comment. Replies are separate rows with isReply = true and the parent comment's ID.

## `maxRepliesPerComment` (type: `integer`):

Only used when Include replies is on.

## Actor input object example

```json
{
  "noteUrls": [
    "https://www.xiaohongshu.com/explore/6acd71d2000000000202a2de"
  ],
  "maxCommentsPerNote": 100,
  "sortBy": "latest",
  "includeReplies": false,
  "maxRepliesPerComment": 20
}
```

# Actor output Schema

## `results` (type: `string`):

One row per comment or reply: text, likes, reply count, date, IP location, flags, images, parent comment ID and commenter details.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "noteUrls": [
        "https://www.xiaohongshu.com/explore/6acd71d2000000000202a2de"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("seemuapps/xiaohongshu-comments-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "noteUrls": ["https://www.xiaohongshu.com/explore/6acd71d2000000000202a2de"] }

# Run the Actor and wait for it to finish
run = client.actor("seemuapps/xiaohongshu-comments-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "noteUrls": [
    "https://www.xiaohongshu.com/explore/6acd71d2000000000202a2de"
  ]
}' |
apify call seemuapps/xiaohongshu-comments-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,seemuapps/xiaohongshu-comments-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/3y0TdLgKfafRuCH3a/builds/VHYWDRIRiSBuaBeVv/openapi.json
