# RedNote (Xiaohongshu) Notes Scraper (`xtracto/rednote-xiaohongshu-scraper`) Actor

Collect public notes from RedNote / Xiaohongshu — trending Explore feed or specific note links — with full text, hashtags, images/video, author, and engagement (likes, saves, comments, shares). No login.

- **URL**: https://apify.com/xtracto/rednote-xiaohongshu-scraper.md
- **Developed by:** [Farhan Febrian Nauval](https://apify.com/xtracto) (community)
- **Categories:** Lead generation, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $20.00 / 1,000 results

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

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## RedNote (Xiaohongshu) Notes Scraper

Collect public notes from **RedNote / Xiaohongshu (小红书)** — from the trending **Explore feed** or from **specific note links** — with full text, hashtags, images and video, author info, and engagement counts (likes, saves, comments, shares). No account or login required.

### Why use this actor

- **No login or account needed** — works on public notes.
- **Full note content** — title, full body text, and hashtags (not just the cover).
- **Engagement metrics** — likes, saves, comments, and shares per note (great for spotting what's trending).
- **Author details** — nickname, user ID, and avatar.
- **Media included** — image URLs and video link when present.
- **Two ways to collect** — crawl the Explore feed for fresh trending notes, or pass exact note links.
- **Stable JSON output** — ready for spreadsheets, dashboards, or trend/competitor research.

### How it works

1. Choose your source: turn on **Crawl the Explore feed** to gather trending notes, and/or paste **specific note links**.
2. Pick how many feed rounds to load (each round brings a fresh batch of ~25 notes, de-duplicated automatically) and whether to fetch **full details** for each note.
3. The actor collects each note and writes one row per note to your dataset — downloadable as JSON, CSV, or Excel.

You don't manage browsers, sessions, or retries — just press Run.

### Use cases

- **Trend & content research** — see which notes and topics are gaining traction right now.
- **Influencer discovery** — find creators and gauge engagement on their posts.
- **Brand & competitor monitoring** — track how products or hashtags are being talked about.
- **Market research for China-facing brands** — collect real consumer content and sentiment signals.

### Input

```json
{
  "crawlExploreFeed": true,
  "exploreRounds": 4,
  "fetchDetails": true,
  "noteUrls": [],
  "maxItems": 50,
  "proxyConfiguration": { "useApifyProxy": true }
}
````

| Field | Type | Description |
|---|---|---|
| `crawlExploreFeed` | boolean | Collect trending notes from the public Explore feed. Default `true`. |
| `exploreRounds` | integer | How many times to load the feed. Each round = a fresh ~25 notes, de-duplicated. Default `4`. |
| `fetchDetails` | boolean | Open each note for full text, hashtags, media, and engagement counts. Off = titles + cover only (faster). Default `true`. |
| `noteUrls` | array | Optional. Specific note links to collect, e.g. `https://www.xiaohongshu.com/explore/NOTE_ID?xsec_token=...`. Include the `xsec_token` from the address/share link. |
| `maxItems` | integer | Overall cap on notes collected. `0` = no limit. Default `50`. |
| `maxConcurrency` | integer | Note pages fetched in parallel. Default `4`. |
| `proxyConfiguration` | object | Proxy recommended for reliable collection. |

### Output

One record per note. Feed-only records are `FEED_CARD`; fully-opened notes are `NOTE_DETAIL`.

```json
{
  "_input": "explore:641fd40f0000000013001f44",
  "_scrapedAt": "2026-06-16T12:40:00Z",
  "recordType": "NOTE_DETAIL",
  "noteId": "641fd40f0000000013001f44",
  "noteUrl": "https://www.xiaohongshu.com/explore/641fd40f0000000013001f44",
  "type": "video",
  "title": "...",
  "desc": "... full body text with #hashtags ...",
  "tagList": ["母婴", "遛娃", "带娃日常"],
  "time": 1781000000000,
  "user": { "userId": "...", "nickname": "智爸育儿说", "avatar": "https://..." },
  "imageList": ["https://..."],
  "video": "https://...mp4",
  "likedCount": "1.3万", "likedCountNum": 13000,
  "collectedCount": "1万", "collectedCountNum": 10000,
  "commentCount": "324", "commentCountNum": 324,
  "shareCount": "4.2万", "shareCountNum": 42000
}
```

| Field | Type | Description |
|---|---|---|
| `recordType` | string | `FEED_CARD` (feed-only) or `NOTE_DETAIL` (fully opened). |
| `noteId` / `noteUrl` | string | Note ID and link. |
| `type` | string | `normal` (image post) or `video`. |
| `title` / `desc` | string | Note title and full body text. |
| `tagList` | array | Hashtags on the note. |
| `time` | number | Publish time (epoch ms). |
| `user` | object | Author: `userId`, `nickname`, `avatar`. |
| `imageList` / `video` | array / string | Image URLs and video link (when present). |
| `likedCount` / `collectedCount` / `commentCount` / `shareCount` | string | Counts as shown (e.g. `1.3万`). |
| `*Num` | number | The same counts parsed to plain integers (e.g. `13000`). |

Notes that can't be collected are returned with an `_error` field, so nothing fails silently.

### Notes

- Engagement counts are shown both as the original short form (`1.3万`) and as plain numbers (`13000`).
- The Explore feed is a recommendation stream — more rounds bring more (de-duplicated) notes.
- Note links must include their `xsec_token` for full details to load.

# Actor input Schema

## `crawlExploreFeed` (type: `boolean`):

Collect trending notes from the public Explore feed.

## `exploreRounds` (type: `integer`):

How many times to load the Explore feed. Each round returns a fresh set of ~25 notes, automatically de-duplicated. More rounds = more notes.

## `fetchDetails` (type: `boolean`):

For each note, also open it to collect the full text, hashtags, images/video, and engagement counts (likes, saves, comments, shares). Turn off for a faster, lighter run (titles + cover only).

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

Paste full note links to collect those specific notes, e.g. https://www.xiaohongshu.com/explore/NOTE\_ID?xsec\_token=... . The link should include its xsec\_token (copy it straight from the address bar or share link).

## `maxItems` (type: `integer`):

Overall cap on the number of notes collected. 0 means no limit.

## `maxConcurrency` (type: `integer`):

How many note pages to fetch in parallel.

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

Residential proxy is recommended — full note details load more reliably through it.

## Actor input object example

```json
{
  "crawlExploreFeed": true,
  "exploreRounds": 4,
  "fetchDetails": true,
  "noteUrls": [],
  "maxItems": 50,
  "maxConcurrency": 4,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("xtracto/rednote-xiaohongshu-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": [] }

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

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": []
}' |
apify call xtracto/rednote-xiaohongshu-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=xtracto/rednote-xiaohongshu-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "RedNote (Xiaohongshu) Notes Scraper",
        "description": "Collect public notes from RedNote / Xiaohongshu — trending Explore feed or specific note links — with full text, hashtags, images/video, author, and engagement (likes, saves, comments, shares). No login.",
        "version": "0.1",
        "x-build-id": "PL18evRxNg6hDt3YC"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/xtracto~rednote-xiaohongshu-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-xtracto-rednote-xiaohongshu-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/xtracto~rednote-xiaohongshu-scraper/runs": {
            "post": {
                "operationId": "runs-sync-xtracto-rednote-xiaohongshu-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/xtracto~rednote-xiaohongshu-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-xtracto-rednote-xiaohongshu-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "crawlExploreFeed": {
                        "title": "Crawl the Explore feed",
                        "type": "boolean",
                        "description": "Collect trending notes from the public Explore feed.",
                        "default": true
                    },
                    "exploreRounds": {
                        "title": "Explore rounds",
                        "minimum": 1,
                        "maximum": 100,
                        "type": "integer",
                        "description": "How many times to load the Explore feed. Each round returns a fresh set of ~25 notes, automatically de-duplicated. More rounds = more notes.",
                        "default": 4
                    },
                    "fetchDetails": {
                        "title": "Fetch full note details",
                        "type": "boolean",
                        "description": "For each note, also open it to collect the full text, hashtags, images/video, and engagement counts (likes, saves, comments, shares). Turn off for a faster, lighter run (titles + cover only).",
                        "default": true
                    },
                    "noteUrls": {
                        "title": "Specific note URLs (optional)",
                        "type": "array",
                        "description": "Paste full note links to collect those specific notes, e.g. https://www.xiaohongshu.com/explore/NOTE_ID?xsec_token=... . The link should include its xsec_token (copy it straight from the address bar or share link).",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxItems": {
                        "title": "Max notes total (0 = all)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Overall cap on the number of notes collected. 0 means no limit.",
                        "default": 50
                    },
                    "maxConcurrency": {
                        "title": "Max concurrent requests",
                        "minimum": 1,
                        "maximum": 10,
                        "type": "integer",
                        "description": "How many note pages to fetch in parallel.",
                        "default": 4
                    },
                    "proxyConfiguration": {
                        "title": "Proxy",
                        "type": "object",
                        "description": "Residential proxy is recommended — full note details load more reliably through it.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ]
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
