# Xiaohongshu (RedNote) Scraper - Notes, Comments, Profiles (`automly/xiaohongshu-rednote-scraper`) Actor

Scrape Xiaohongshu (RedNote, 小红书) without login: note details from note links (text, images, video, tags, likes, saves, comments, shares, date, location), note comments with replies, public profiles with their latest notes, and trending notes from the Explore feed.

- **URL**: https://apify.com/automly/xiaohongshu-rednote-scraper.md
- **Developed by:** [Automly](https://apify.com/automly) (community)
- **Stats:** 4 total users, 3 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 notes

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) Scraper - Notes, Comments, Profiles

### What is Xiaohongshu (RedNote) Scraper?

**Xiaohongshu (RedNote) Scraper** is a tool that lets you **scrape notes, comments and profiles from Xiaohongshu** (小红书, also called RedNote): note title and text, every image, the video file, hashtags, likes, saves, comments and shares, publish date and location, plus comment threads, public profiles and trending notes from the Explore feed. Paste note or profile links (or just pick an Explore channel), click **Start**, and download the data as Excel, CSV or JSON.

- ⚡ **Speed:** 1,000 Explore notes in about 30 seconds; 200 notes with full details in about 35 seconds
- 🔥 **Explore feed:** today's recommended notes, plus popular notes by channel (food, travel, fashion, makeup and more), with no links needed
- 🖼️ **Media:** every image link, live photos and the MP4 video link of each note
- 🔓 **No login:** no Xiaohongshu account, cookies or QR code needed

### What can Xiaohongshu (RedNote) Scraper do?

- Scrape **full note details** from note links: title, text, hashtags, images, video, likes, saves, comments, shares, date, location and author
- Scrape the **comments of notes**, with replies linked to the comment they answer
- Scrape **public profiles**: nickname, Xiaohongshu ID, bio, location, followers, likes and saves received, number of notes and the latest notes
- Collect **trending notes from the Explore feed** of 12 channels, as cards or with full details
- Accept full note links and **xhslink.com share links** from the app
- Stop at exactly the **number of results** you choose
- Export to Excel, CSV, JSON, HTML or XML, or send the data to Google Sheets, Make, Zapier and more

### What data can you extract from Xiaohongshu?

| | | |
|---|---|---|
| 📝 Note title and text | 🏷️ Hashtags and mentions | 🖼️ All image links |
| 🎬 Video link and length | ❤️ Likes | ⭐ Saves (collects) |
| 💬 Comment count | 🔁 Shares | 📅 Publish and edit date |
| 📍 Location shown on the note | 👤 Author nickname and profile link | 🔥 Explore channel |
| 💭 Comment text, likes and replies | 🆔 Xiaohongshu ID (小红书号) | 👥 Followers and following |

### How to scrape Xiaohongshu

1. [Create a free Apify account](https://console.apify.com/sign-up) (no credit card needed).
2. Open **Xiaohongshu (RedNote) Scraper**.
3. Choose **What to scrape**: Explore feed notes, note details, comments or profiles.
4. Pick Explore channels, or paste note links or profile links, and set **Max results**. Click **Start**.
5. When the run finishes, download your data as Excel, CSV, JSON, HTML or XML.

### ⬇️ Input

| Setting | What it does |
|---|---|
| What to scrape | Explore feed notes, Note details, Comments or Profiles: one kind of data per run |
| Explore channels | For Explore: recommend, fashion, food, cosmetics, movies_tv, career, relationships, home, gaming, travel, fitness, video |
| Open every Explore note for full details | For Explore: save each note's full details instead of the feed card |
| Note links | For Note details and Comments: links copied from the browser or the app's share button |
| Profiles | For Profiles: profile links or 24-character user IDs |
| Max results | The most rows the run saves in total |

**About note links:** copy the **whole link**, including the part after the question mark (`?xsec_token=...`). Xiaohongshu opens a note only with that part, so a link cut after the note ID returns nothing. Links from the browser address bar and the app's share links (xhslink.com, or the whole share text) work. Xiaohongshu keeps these links valid for a limited time, so scrape them soon after copying; if a link stops working, copy it again.

**About Explore channels:** **Recommended** gives the notes Xiaohongshu recommends right now. The topic channels (food, travel, fashion and so on) show visitors a collection of popular notes that are mostly older (many from 2023); every row has its publish date when you turn on full details.

Trending food and travel notes with full details:

```json
{
  "mode": "explore",
  "channels": ["food", "travel"],
  "exploreDetails": true,
  "maxResults": 100
}
```

Details of notes you already have links for:

```json
{
  "mode": "notes",
  "noteUrls": [
    "https://www.xiaohongshu.com/explore/6a9e4022000000002700b478?xsec_token=ABYezV4DC-LJiIVeJca_zdu8UDqraPOO50B9Ex7vhiRTk%3D&xsec_source=pc_feed"
  ]
}
```

Profiles:

```json
{
  "mode": "profiles",
  "profiles": ["614b734f0000000002020ac2", "https://www.xiaohongshu.com/user/profile/6a5d761d000000000f038400"]
}
```

### ⬆️ Output

One row per note, comment or profile. A note with full details:

```json
{
  "type": "note",
  "noteId": "6a9e4022000000002700b478",
  "url": "https://www.xiaohongshu.com/explore/6a9e4022000000002700b478?xsec_token=ABYezV4DC-LJiIVeJca_zdu8UDqraPOO50B9Ex7vhiRTk%3D&xsec_source=pc_feed",
  "title": "当年的中国落后了世界多少？",
  "text": "#世界格局正在转变# #玉山县招商#",
  "noteType": "video",
  "tags": ["世界格局正在转变", "玉山县招商"],
  "mentions": [],
  "likes": 774,
  "collects": 380,
  "comments": 10,
  "shares": 218,
  "countsAsShown": {"likes": "774", "collects": "380", "comments": "10", "shares": "218"},
  "publishedAt": "2026-09-07T04:40:02+00:00",
  "updatedAt": "2026-09-07T04:40:02+00:00",
  "ipLocation": "江西",
  "coverUrl": "http://sns-webpic-qc.xhscdn.com/202610061632/83d8dba78761f6aae1be4ef2386cf78b/1040g2sg324q7hn4un2k05q4s25rma5la6cgujpo!nd_dft_wgth_webp_3",
  "images": [{"url": "http://sns-webpic-qc.xhscdn.com/202610061632/83d8dba78761f6aae1be4ef2386cf78b/1040g2sg324q7hn4un2k05q4s25rma5la6cgujpo!nd_dft_wgth_webp_3", "width": 1440, "height": 1080, "livePhotoUrl": null}],
  "imageCount": 1,
  "videoUrl": "http://sns-video-v28.xhscdn.com/stream/79/110/258/01ea9e401774754c4f037001a07a2b6523_258.mp4?sign=b0d1e9ec857ff62766570674cfeab0bf&t=6ac94f43",
  "videoDuration": 149,
  "author": {
    "userId": "614b734f0000000002020ac2",
    "nickname": "玉山县招商",
    "avatarUrl": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo31nref2cuks6g5oabed7gk2m22lasvko",
    "profileUrl": "https://www.xiaohongshu.com/user/profile/614b734f0000000002020ac2"
  },
  "scrapedAt": "2026-10-06T08:31:34Z"
}
```

A comment:

```json
{
  "type": "comment",
  "commentId": "6abe351300000000070293e4",
  "noteId": "6a9a257400000000290175ec",
  "parentCommentId": "6abc9d5a0000000007037c09",
  "replyToCommentId": "6abc9d5a0000000007037c09",
  "text": "肯定啊，果肉不黑",
  "likes": 3,
  "replyCount": null,
  "isNoteAuthor": false,
  "publishedAt": "2026-10-01T10:25:24+00:00",
  "ipLocation": "江西",
  "author": {"userId": "62c6ad8e000000000303e13e", "nickname": "钢炮", "profileUrl": "https://www.xiaohongshu.com/user/profile/62c6ad8e000000000303e13e"}
}
```

A profile:

```json
{
  "type": "profile",
  "userId": "6a5d761d000000000f038400",
  "nickname": "珍妮佛想变美",
  "redId": "18472721906",
  "ipLocation": "江西",
  "following": 2,
  "followers": 10,
  "notesCount": 125,
  "likesReceived": 19062,
  "collectsReceived": 2112,
  "likesAndCollects": 21174,
  "recentNotes": [{"title": "小时候不懂事", "noteType": "video", "likes": 17, "isPinned": false, "publishedAt": "2026-10-06T03:30:17+00:00"}]
}
```

Dates are ISO 8601 in UTC. Counts are numbers; Xiaohongshu rounds big counts (1.2万 = 12,000, 10万+ = 100,000), and the exact text it shows is kept in `countsAsShown` / `likesAsShown`. Emails and phone numbers typed into texts are left out.

### How can I use Xiaohongshu data?

- **Trend research:** see what Xiaohongshu recommends right now and what is popular in food, travel, fashion or makeup
- **Brand and product research:** read what people say about a product in notes and comments
- **Influencer research:** compare creators by followers, likes and saves received, and how often they post
- **Content ideas:** collect top notes, hashtags and cover images by channel
- **Social listening:** follow the comments under notes about your brand
- **Data for AI and analysis:** feed note texts and comments into sentiment or topic models

### ❓FAQ

#### How much does it cost to scrape Xiaohongshu?

You pay per result: see the **Pricing** tab for the price per note, comment and profile on your plan. Apify's free plan includes monthly credit to try it.

#### Can I search Xiaohongshu by keyword?

Not at the moment. Xiaohongshu shows search results only to signed-in users, and this scraper never signs in. Use the Explore channels for trending notes, or paste note links from a search you ran yourself in the browser or app.

#### Are the Explore notes new?

The **Recommended** channel returns current notes. The topic channels return popular notes Xiaohongshu shows to visitors, many of them older; check `publishedAt` (with full details on) to filter by date.

#### How many comments can I get per note?

The comments Xiaohongshu shows to visitors who are not signed in: the first page of top comments (usually about 10), each with its first replies. More comments are shown only to signed-in users.

#### Why don't the latest notes of a profile have links?

Xiaohongshu shows visitors a profile's latest notes (title, cover, likes, date) without their links. To get full details of a creator's notes, open them in the browser or app and paste their links into Note details.

#### Do I need a Xiaohongshu account or cookies?

No. No account, cookies, QR login or phone number is needed.

#### What happens with a deleted note or a wrong link?

The run still succeeds. The note is listed as not found in the log and in the run report (`report-summary`). A link without its `xsec_token` part, an expired link, or a note Xiaohongshu shows only to signed-in users is listed as failed with a plain reason.

#### Can I download the images and videos?

Every row has the image links and the MP4 video link, ready to download. The links are signed by Xiaohongshu and stay valid for a limited time, so download the files soon after the run.

#### Can I use it with AI agents (MCP)?

Yes. Ask your agent, for example, "Get 50 trending travel notes from Xiaohongshu with full details", and it can run this scraper with:

```json
{"mode": "explore", "channels": ["travel"], "exploreDetails": true, "maxResults": 50}
```

#### Something isn't working?

Open the **Issues** tab and tell us the input you used. We fix problems quickly.

# Actor input Schema

## `mode` (type: `string`):

Choose one kind of data per run: Explore feed notes (trending notes by channel, no links needed), note details from note links, the comments of notes, or public profiles.

## `channels` (type: `array`):

For Explore feed notes: the Explore channels to read, e.g. recommend, food or travel. Recommended gives the notes recommended right now; the topic channels give popular notes, many of them older. Notes are split evenly between the channels chosen.

## `exploreDetails` (type: `boolean`):

For Explore feed notes: save each note's full details (text, all images, video link, tags, saves, comments, shares, date and location) instead of the feed card (title, cover, likes, author).

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

For Note details and Comments: note links copied from the browser address bar or the app's share button, e.g. https://www.xiaohongshu.com/explore/6a9f534d0000000012025f7b?xsec_token=AB9w...\&xsec_source=pc_feed, an xhslink.com link or the whole share text. Copy the whole link: Xiaohongshu opens a note only with the part after the question mark, and only for a limited time after you copy it.

## `profiles` (type: `array`):

For Profiles: profile links or 24-character user IDs, e.g. https://www.xiaohongshu.com/user/profile/614b734f0000000002020ac2 or 614b734f0000000002020ac2.

## `maxResults` (type: `integer`):

The most rows this run saves in total (notes, comments or profiles), e.g. 100. The run stops as soon as it has this many.

## `proxyConfiguration` (type: `object`):

The default works for most runs. If results come back empty, try a different proxy option.

## Actor input object example

```json
{
  "mode": "explore",
  "channels": [
    "recommend"
  ],
  "exploreDetails": false,
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `notes` (type: `string`):

No description

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

No description

## `profiles` (type: `string`):

No description

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

No description

## `report` (type: `string`):

No description

# 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 = {
    "mode": "explore",
    "channels": [
        "recommend"
    ],
    "maxResults": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("automly/xiaohongshu-rednote-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 = {
    "mode": "explore",
    "channels": ["recommend"],
    "maxResults": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("automly/xiaohongshu-rednote-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 '{
  "mode": "explore",
  "channels": [
    "recommend"
  ],
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call automly/xiaohongshu-rednote-scraper --silent --output-dataset

```

## MCP server setup

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