# Xiaohongshu (RedNote) Comments Scraper – No Login (`feedpull/xiaohongshu-comments-scraper`) Actor

Scrape comments from Xiaohongshu (RedNote, 小红书) notes: text, likes, reply counts, commenter location, attached images and author. Latest or most liked first. No login or cookies.

- **URL**: https://apify.com/feedpull/xiaohongshu-comments-scraper.md
- **Developed by:** [FeedPull](https://apify.com/feedpull) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 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.
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

## Xiaohongshu (RedNote) Comments Scraper – No Login

Scrape comments from Xiaohongshu (RedNote, 小红书) notes: text, likes, reply counts, commenter location, attached images and author. Latest or most liked first. No login or cookies.

**Why this scraper**

- 💸 **From $2.50 / 1,000 comments** — priced per result, not per page.
- 🎯 **Pay only for what you get**: unavailable notes cost a small flat fee; set a maximum cost per run and the scraper stops right there.
- 🧾 **Clean, consistent fields** across runs, ready for spreadsheets and pipelines.
- ⚡ **No browser, no login**: lightweight requests, starts in seconds, runs on 256 MB.

### What data you get

| Field | Example / meaning |
|---|---|
| `id`, `noteId`, `text` | comment id, note id, comment text |
| `likesCount`, `replyCount` | likes and number of replies |
| `ipLocation` | province or country shown in the app |
| `createdAt` | comment time |
| `pictures` | images or stickers attached to the comment |
| `author` | nickname, user id, Red ID, avatar |

### How to use

1. Add note links or ids.
2. Set **Max comments per note** (default 50, minimum 10).
3. Optional: sort by most liked.
4. Run and export as JSON, CSV, Excel, or pull via API.

#### Input example

```json
{
    "notes": [
        "https://www.xiaohongshu.com/explore/6a16992e000000003601c28c"
    ],
    "resultsLimit": 50,
    "sortBy": "latest"
}
```

#### Output example

```json
{
    "inputUrl": "https://www.xiaohongshu.com/explore/6a16992e000000003601c28c",
    "id": "6a2aae54000000002803898d",
    "noteId": "6a16992e000000003601c28c",
    "text": "非常感谢大家的关注[皱眉R]本人会在美食的道路上继续努力挖掘（之前真的厨房杀手来的[抽泣R]），目前是致力于做出简单又低卡的食物，因为我在减肥，已经瘦了很多啦，为了健康也希望尝试学习更多的营养知识，吃的健康吃的快乐！后续主包可能还会出一些美食探店内容，目前主要是在江浙沪吧[…",
    "likesCount": 0,
    "replyCount": 0,
    "createdAt": "2026-06-11T12:47:17.000Z",
    "ipLocation": null,
    "pictures": [
        "https://sns-i11.rednotecdn.com/comment/1040g4b83219c05b77kcg5ps0r2d23n7lgdtv47o?imageView2/2/w/1280/format/webp&ap=4&sc=CMT_DTL&sign=4912…"
    ],
    "author": {
        "id": "ad5d1e722cc8554de9bf3e9d88962",
        "nickname": "暴风雨",
        "avatarUrl": "https://sns-avatar-qc.rednotecdn.com/avatar/1040g2jo31nvbqnn06m6g5ps0r2d23n7lvscef4o?imageView2/2/w/120/format/jpg",
        "redId": "42974286042"
    }
}
```

A run summary (per-note status, counts) is saved to the `OUTPUT` record of the run's key-value store.

### Pricing

Pay per event — you are charged only for results delivered:

| Event | Free plan | Starter | Scale | Business+ |
|---|---|---|---|---|
| Comment | $4.00 / 1,000 | $3.00 / 1,000 | $2.70 / 1,000 | **$2.50 / 1,000** |
| Unavailable or empty target | $0.0120 each | | | |
| Actor start | $0.0005 per run | | | |

Set **Maximum cost per run** in the run options to cap spend — the scraper stops before exceeding it.

### FAQ

**Are replies included?** Top-level comments are; each carries its `replyCount`.

**What if a note was removed?** It is listed in `OUTPUT` and billed the flat unavailable-note fee.

**Do I need an account or cookies?** No. Only publicly visible Xiaohongshu data is collected, without logging in.

### Data & privacy

Only publicly visible data is collected. To bill correctly and keep the scraper healthy, each run reports its input (the notes and options you entered), result counts, charges and upstream request counts to FeedPull's own monitoring, tied to a pseudonymous id of your Apify account. Scraped results go only to your dataset. Inputs and per-target details are deleted after 90 days; only aggregate counts are kept.

### More scrapers by FeedPull

| Actor | What you get | Price |
|---|---|---|
| [Instagram Posts Scraper](https://apify.com/feedpull/instagram-posts-scraper) | One Instagram post or reel saved to the dataset | from $0.30 / 1,000 posts |
| [Instagram Reels Scraper](https://apify.com/feedpull/instagram-reels-scraper) | One Instagram Reel saved to the dataset | from $0.45 / 1,000 reels |
| [Instagram Profile Scraper](https://apify.com/feedpull/instagram-profile-scraper) | One Instagram profile saved to the dataset | from $1.50 / 1,000 profiles |
| [Douyin Profile Videos Scraper](https://apify.com/feedpull/douyin-profile-videos-scraper) | One Douyin video or image post saved to the dataset | from $1.50 / 1,000 videos |
| [Douyin Comments Scraper](https://apify.com/feedpull/douyin-comments-scraper) | One Douyin comment saved to the dataset | from $0.60 / 1,000 comments |
| [Xiaohongshu (RedNote) Search Scraper](https://apify.com/feedpull/xiaohongshu-search-scraper) | One Xiaohongshu note from the search results saved to the dataset | from $2.50 / 1,000 notes |
| [Xiaohongshu (RedNote) Profile Notes Scraper](https://apify.com/feedpull/xiaohongshu-user-notes-scraper) | One Xiaohongshu note saved to the dataset | from $2.50 / 1,000 notes |
| [Xiaohongshu (RedNote) Comments Scraper](https://apify.com/feedpull/xiaohongshu-comments-scraper) | One Xiaohongshu comment saved to the dataset | from $2.50 / 1,000 comments |
| [TikTok Comments Scraper](https://apify.com/feedpull/tiktok-comments-scraper) | One TikTok comment saved to the dataset | from $0.40 / 1,000 comments |
| [TikTok Search Scraper](https://apify.com/feedpull/tiktok-search-scraper) | One TikTok video from the search results saved to the dataset | from $0.80 / 1,000 videos |
| [YouTube Search Scraper](https://apify.com/feedpull/youtube-search-scraper) | One YouTube video from the search results saved to the dataset | from $1.20 / 1,000 videos |
| [Reddit Search Scraper](https://apify.com/feedpull/reddit-search-scraper) | One Reddit post from the search results saved to the dataset | from $0.80 / 1,000 posts |
| [Reddit Comments Scraper](https://apify.com/feedpull/reddit-comments-scraper) | One Reddit comment (or reply) saved to the dataset | from $0.60 / 1,000 comments |

### Support

Open an issue on the Actor's **Issues** tab — feature requests are welcome.

# Actor input Schema

## `notes` (type: `array`):

Note links (<code>https://www.xiaohongshu.com/explore/…</code>), share links (<code>http://xhslink.com/…</code>) or 24-character note ids.

## `resultsLimit` (type: `integer`):

How many comments to return for each note (minimum 10). A note with fewer comments is billed only for the comments returned.

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

Which comments come first.

## Actor input object example

```json
{
  "notes": [
    "https://www.xiaohongshu.com/explore/6a16992e000000003601c28c"
  ],
  "resultsLimit": 50,
  "sortBy": "latest"
}
```

# Actor output Schema

## `comments` (type: `string`):

One item per scraped comment.

## `summary` (type: `string`):

Per-note status and counts.

# 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 = {
    "notes": [
        "https://www.xiaohongshu.com/explore/6a16992e000000003601c28c"
    ],
    "resultsLimit": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("feedpull/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 = {
    "notes": ["https://www.xiaohongshu.com/explore/6a16992e000000003601c28c"],
    "resultsLimit": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("feedpull/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 '{
  "notes": [
    "https://www.xiaohongshu.com/explore/6a16992e000000003601c28c"
  ],
  "resultsLimit": 50
}' |
apify call feedpull/xiaohongshu-comments-scraper --silent --output-dataset

```

## MCP server setup

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