# RedNote (Xiaohongshu) Comments Scraper 小红书评论 — No Login (`zinin/rednote-comments-scraper`) Actor

Get every top-level comment of a RedNote (Xiaohongshu, 小红书) note by link or id, with the replies shown under it: text, likes, time, IP region, author, pictures. No login or cookies. $0.99 per 1,000 comments, replies free, no start fee.

- **URL**: https://apify.com/zinin/rednote-comments-scraper.md
- **Developed by:** [Tim Zinin](https://apify.com/zinin) (community)
- **Categories:** Social media, AI, Automation
- **Features:** Limited permissions
- **Stats:** 4 total users, 3 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.69 / 1,000 result delivereds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## RedNote (Xiaohongshu) Comments Scraper 小红书评论 — no login

Get the comments of any public note on [RedNote](https://www.xiaohongshu.com) (Xiaohongshu, 小红书): every top-level comment with its text, likes, posting time, IP region (IP属地), author and attached pictures, plus the replies RedNote shows under each comment. Paste note links or ids and run. No login, no cookies, no QR code, no `xsec_token`. Apify proxy is built in and included in the price.

- **$0.99 per 1,000 comments. Replies are free.** No start fee. Wrong links, empty notes and filtered-out comments are free.
- **Every top-level comment, not a preview.** A note with 490 comments came back complete in 9 seconds in our test run on 21 November 2026.
- **One comment = one flat row.** Replies are their own rows linked by `parentCommentId`. Ready for a spreadsheet, a BI tool or a sentiment model.
- **Sort and filter before you pay.** Latest, oldest or most liked first; minimum likes, keywords, date. You are charged only for the comments that are delivered.
- **Honest status rows.** Every input line gets an answer: comments, or a free row that says what is wrong with it. One free summary row per note with its true comment totals.

Typical uses: what buyers say under a product or brand note (种草 research), sentiment and complaint mining for China market entry, checking the audience of a KOL before a campaign, tracking comments under competitor launches, feeding Chinese consumer voice to an AI agent.

### What you get

| Field | Meaning |
|---|---|
| `type` | `comment`, `reply`, or a free `note` / `input` row |
| `text` | Comment text as written (emoji codes like `[笑哭R]` are kept) |
| `likes` | Likes on the comment, as a number |
| `replyCount` | True number of replies under a top-level comment |
| `repliesShown` | How many of them RedNote shows publicly (up to 3) |
| `createdAt`, `timestamp` | Posting time, ISO 8601 (UTC) and epoch milliseconds |
| `ipLocation` | IP region RedNote shows next to the comment (IP属地), e.g. `上海` |
| `authorId`, `authorName`, `authorUrl`, `authorAvatar` | The commenter and a link to the profile |
| `authorIsAiAgent` | RedNote's own flag for AI-agent accounts |
| `pictures` | Full-size links of pictures attached to the comment |
| `mentions` | Users @-mentioned in the comment |
| `commentId`, `parentCommentId`, `replyToCommentId` | Thread links: a reply points to its top-level comment and to the comment it answers |
| `noteId`, `noteUrl` | The note the comment belongs to |
| `position` | Place of the thread in RedNote's own order, starting at 1 |
| `status` | RedNote's own status code of the comment (4 was seen on comments pinned by the author) |
| `scrapedAt` | When the row was read |

The free `note` row (one per note) carries `commentCount` (all comments and replies on the note), `topLevelCommentCount`, `commentsDelivered`, `repliesDelivered` and a `status`.

### Input

| Field | What to put |
|---|---|
| `noteUrls` | Note links from xiaohongshu.com or rednote.com (`/explore/<id>` or `/discovery/item/<id>`, the `xsec_token` part is not needed), bare 24-character note ids, or `xhslink.com` share links (you can paste the whole share text). Up to 1,000 per run. |
| `maxCommentsPerNote` | Top-level comments per note. `0` = all. |
| `includeReplies` | Add the replies shown under each comment as free rows. On by default. |
| `sortBy` | `default` (RedNote's own order, fastest), `latest`, `oldest`, `most_liked`. |
| `minLikes`, `keywords`, `postedAfter` | Optional filters. `postedAfter` takes a date (`2026-09-01`) or a span (`7 days`, `2 weeks`, `3 months`). |

Example — the 50 most liked comments of two notes:

```json
{
  "noteUrls": [
    "https://www.xiaohongshu.com/explore/69dbe42b000000002302474d",
    "6a40dd42000000000f02a91b"
  ],
  "sortBy": "most_liked",
  "maxCommentsPerNote": 50
}
```

A wrong option value (for example an unknown `sortBy`) is replaced by its default and reported in a free `input` row; the run goes on.

### Output

A comment row:

```json
{
  "type": "comment",
  "noteId": "6a40dd42000000000f02a91b",
  "noteUrl": "https://www.xiaohongshu.com/explore/6a40dd42000000000f02a91b",
  "commentId": "6a40e8e9000000002b02bd00",
  "parentCommentId": null,
  "replyToCommentId": null,
  "text": "",
  "likes": 352,
  "replyCount": 87,
  "repliesShown": 3,
  "createdAt": "2026-06-28T09:27:06.000Z",
  "timestamp": 1782638826000,
  "ipLocation": "上海",
  "authorId": "602bc730000000000101e7cb",
  "authorName": "睡睡睡",
  "authorUrl": "https://www.xiaohongshu.com/user/profile/602bc730000000000101e7cb",
  "authorAvatar": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo31lbsliua5m6g5o1boso0bpub23djkvg?imageView2/2/w/120/format/jpg",
  "authorIsAiAgent": false,
  "pictures": ["https://sns-img-qc.xhscdn.com/comment/1040g4b8321v2ll4k7udg5o1boso0bpub5nch2k8"],
  "mentions": [],
  "status": 3,
  "position": 1,
  "scrapedAt": "2026-11-21T07:58:06.430Z"
}
```

A reply row (free) has `"type": "reply"`, the same fields, `parentCommentId` set to its top-level comment and `replyCount: null`.

The free summary row of a note:

```json
{
  "type": "note",
  "noteId": "6a40dd42000000000f02a91b",
  "noteUrl": "https://www.xiaohongshu.com/explore/6a40dd42000000000f02a91b",
  "input": "https://www.xiaohongshu.com/explore/6a40dd42000000000f02a91b",
  "status": "ok",
  "commentCount": 480,
  "topLevelCommentCount": 129,
  "commentsDelivered": 129,
  "repliesDelivered": 94,
  "message": null,
  "scrapedAt": "2026-11-21T07:58:09.272Z"
}
```

Status values of a `note` row: `ok`; `no-comments` (the note has no comments, or it is deleted, private or the id is mistyped: RedNote answers the same way in all these cases); `invalid-input` (the line is not a note link or id, or a share link that no longer leads to a note); `refused` (RedNote did not answer after three attempts through different addresses; run the line again later); `partial` (the run hit its time or cost limit in the middle of the note; delivered rows are kept).

### What this Actor does not do

- **Full reply threads.** RedNote shows a signed-out visitor at most 3 replies under each comment; the rest opens only after login. This Actor never logs in, so it returns those shown replies and the true `replyCount` of every comment, and you can see how much of a thread you have. If you need every reply of long threads, use an Actor that works through logged-in accounts.
- **The note itself.** Title, text, pictures and video of the note are not in the output; the note row carries only the comment totals.
- **Server-side order.** RedNote's public feed has one order; `latest`, `oldest` and `most_liked` are sorted by the Actor after it has read the whole note.
- The commenter's RedNote ID (小红书号), gender and follower count are not shown to signed-out visitors and are not in the row.

For a report built from an export you already have, see [Douyin, Xiaohongshu & Weibo Analytics](https://apify.com/zinin/douyin-xiaohongshu-weibo-analytics-report-builder).

### Price and limits

| Event | Price |
|---|---|
| `result-found` — one top-level comment row | $0.00099 ($0.99 per 1,000) |
| Reply rows | free |
| Start of a run | free |
| Note summary rows, status rows, filtered-out comments | free |

A comment is delivered and charged once per run, also when the same note is given twice. If the platform restarts the run, or you resurrect it, comments that are already in the dataset are not delivered or charged again. Set a maximum cost per run in the Apify run options and the Actor stops before exceeding it. The Actor stops reading one minute before the run's time limit and keeps every row; resurrect the run to continue from the same place.

Speed in our tests: about 40 to 55 comments per second on one note; a note with 490 comments took 9 seconds. Notes are read one after another.

### For AI agents and workflow tools

Actor id: `zinin/rednote-comments-scraper`. Input: `{"noteUrls": ["<note link or 24-character id>"], "maxCommentsPerNote": 100}`. Read rows from the default dataset: `type: "comment"` and `type: "reply"` rows are the data, `type: "note"` rows are per-note summaries with `status` and totals, `type: "input"` rows are warnings about the input. Key fields: `text`, `likes`, `replyCount`, `createdAt`, `ipLocation`, `authorName`, `parentCommentId`. Only `comment` rows are charged ($0.00099 each). Works with the Apify API, MCP server, n8n, Make and Zapier.

### FAQ

**Do I need a RedNote account, cookies or a Chinese phone number?** No. The Actor reads only the comments RedNote serves to signed-out visitors of its mobile web page.

**Do I need the `xsec_token` from the share link?** No. A bare note id is enough; the token is ignored.

**Does it get every comment?** Every top-level comment, and up to 3 replies under each (the ones RedNote shows publicly). `replyCount` is the true total of each thread.

**Why is `text` empty in some rows?** The comment is a picture or a sticker without text; see `pictures`.

**Why does a deleted note give `no-comments` and not an error?** RedNote's comment feed answers "0 comments" for a deleted, private or mistyped note exactly as for a note without comments. The row is free.

**Is it legal?** The Actor collects publicly visible comments only. Comments include personal data such as nicknames and a coarse IP region; make sure your use complies with RedNote's terms and the laws that apply to you (PIPL, GDPR, CCPA).

**Something is wrong or a field is missing?** Open an issue on the Actor page with the run id.

### What's new — 21 November 2026

First release (0.1): every top-level comment of a note with the replies shown under it, sorting, filters, free note summaries, built-in Apify proxy.

# Changelog

This Actor's version history is a separate document: https://apify.com/zinin/rednote-comments-scraper/changelog.md

# Actor input Schema

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

One note per line, up to 1,000 per run. Accepted: a note link from xiaohongshu.com or rednote.com (<code>/explore/…</code> or <code>/discovery/item/…</code>, with or without <code>xsec_token</code>), a bare 24-character note id, or an <code>xhslink.com</code> share link (the whole share text can be pasted). A line that is not a note becomes a free status row and the rest of the run goes on. Duplicates are read once.

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

Stop each note after this many top-level comments (their replies come along for free). 0 = every comment of the note. Only delivered comments are charged.

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

Add the replies RedNote shows under each comment (up to 3 per comment, the ones it puts first) as their own rows linked by <code>parentCommentId</code>. Reply rows are free. Every comment row carries the true <code>replyCount</code>.

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

RedNote's own order streams rows page by page. The other orders read the whole note first and then sort, so with a per-note limit you get the true latest or most liked comments.

## `minLikes` (type: `integer`):

Keep only comments and replies with at least this many likes. Filtered-out comments are not charged.

## `keywords` (type: `array`):

Keep only comments and replies whose text contains at least one of these words (case-insensitive, Chinese works). Others are skipped and not charged.

## `postedAfter` (type: `string`):

Keep only comments posted on or after this date: <code>2026-09-01</code>, or a span back from now: <code>7 days</code>, <code>2 weeks</code>, <code>3 months</code>.

## Actor input object example

```json
{
  "noteUrls": [
    "https://www.xiaohongshu.com/explore/69dbe42b000000002302474d"
  ],
  "maxCommentsPerNote": 100,
  "includeReplies": true,
  "sortBy": "default",
  "minLikes": 0
}
```

# Actor output Schema

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

API URL of the run's default dataset items.

# 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/69dbe42b000000002302474d"
    ],
    "maxCommentsPerNote": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("zinin/rednote-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/69dbe42b000000002302474d"],
    "maxCommentsPerNote": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("zinin/rednote-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/69dbe42b000000002302474d"
  ],
  "maxCommentsPerNote": 100
}' |
apify call zinin/rednote-comments-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zinin/rednote-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/Hia1Etyri6Yqp1SqO/builds/Zp1zxU0aQtGFZ49xc/openapi.json
