# RedNote (Xiaohongshu) Note Detail Scraper (`memo23/rednote-note-detail-scraper`) Actor

Get a RedNote / Xiaohongshu (小红书) note's full data with NO login: description, full image gallery, video URL, like/collect/comment counts, author profile, and tags. Paste the note URL — the xsec\_token is captured automatically. One clean JSON row per note.

- **URL**: https://apify.com/memo23/rednote-note-detail-scraper.md
- **Developed by:** [Muhamed Didovic](https://apify.com/memo23) (community)
- **Categories:** Social media
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 results

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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) Note Detail Scraper

**One 小红书 note in, one complete JSON row out — description, full image gallery, video URL, engagement counts, author, and tags. No login, no cookie.**

Note pages are one of the few parts of Xiaohongshu that work without an account. This actor uses that: paste any note URL (the `xsec_token` is read from the URL automatically) and get the note's full data through Xiaohongshu's own web rendering, with built-in residential routing.

### What you get per note

| Field | Description |
| --- | --- |
| `noteId`, `noteType`, `isVideo` | ID and type (`normal` image post or `video`) |
| `noteTitle`, `noteDesc` | Title and full description text |
| `imageUrls`, `imageCount`, `noteCoverUrl` | Complete image gallery, not just the cover |
| `videoUrl`, `videoDurationSec` | Direct video URL and duration for video notes |
| `likedCount`, `collectedCount`, `commentCount`, `shareCount` | Engagement — each also parsed from Chinese display format (`1.2万` → `12000`) in its `*Num` twin |
| `userId`, `userName`, `userAvatar` | Author profile |
| `tags` | Hashtags on the note |
| `postedAt`, `lastUpdatedAt`, `ipLocation` | Post/update dates and displayed IP region |
| `notePageUrl`, `xsecToken` | Canonical note URL with its access token |

### How to run it

Copy a note URL from Xiaohongshu — from your browser, or in bulk from the [RedNote Search Scraper](https://apify.com/memo23/rednote-search-scraper) — and paste it as `noteId`. That's the whole setup.

```json
{
    "noteId": "https://www.xiaohongshu.com/explore/644a3e3c00000000130085a0?xsec_token=ABw5H7OmT061JPr1RF2mmIQQ4v5auTThBae2wAf3wo17k=&xsec_source=pc_feed"
}
```

### FAQ

**Do I really not need an account?** Correct — note detail is open on Xiaohongshu's web app. Search and comments are login-gated; for those, see the related scrapers below.

**What's an `xsec_token` and where do I get one?** It's a per-note access token Xiaohongshu appends to shared note URLs. Any note URL you copy from the app or from search results already contains it, and this actor extracts it automatically.

**Can I do many notes in one run?** This actor is one-note-per-run by design, which keeps it simple to wire into automations (one URL in → one row out). For bulk discovery, run [Search](https://apify.com/memo23/rednote-search-scraper) first and fan out.

### Related scrapers

- [RedNote Search Scraper](https://apify.com/memo23/rednote-search-scraper) — find notes by keyword
- [RedNote Comments Scraper](https://apify.com/memo23/rednote-comments-scraper) — full comment threads
- [Xiaohongshu (RedNote) Scraper](https://apify.com/memo23/xiaohongshu-rednote-scraper) — the all-in-one actor: 8 operations including user profiles, channel feeds, and mall products

### 🤖 For AI Agents & LLM Apps

Compact reference for AI agents calling this actor via the [Apify MCP server](https://mcp.apify.com) or the Apify API (actor: `memo23/rednote-note-detail-scraper`).

**Purpose:** Resolves a single Xiaohongshu (RedNote / 小红书) note URL into one JSON row with the note's full description, image gallery, video URL, engagement counts, author, and tags — no login required.

**Minimal input:**

```json
{
  "noteId": "https://www.xiaohongshu.com/explore/644a3e3c00000000130085a0?xsec_token=ABw5H7OmT061JPr1RF2mmIQQ4v5auTThBae2wAf3wo17k=&xsec_source=pc_feed"
}
```

**Output:** one dataset row per note; key fields: noteId, noteType, isVideo, noteTitle, noteDesc, imageUrls, imageCount, noteCoverUrl, videoUrl, videoDurationSec, likedCount, collectedCount, commentCount, shareCount, userId, userName, userAvatar, tags, postedAt, lastUpdatedAt, ipLocation, notePageUrl, xsecToken. Each engagement count also has a numeric `*Num` twin (Chinese `1.2万` → `12000`).

**Behaviors an agent should know:**

- One note per run — one URL in, exactly one row out. There is no maxItems cap because the actor never returns more than one row.
- No login or cookie required — note detail is public on Xiaohongshu's web app. (The related Search and Comments actors are login-gated and need a `web_session` cookie.)
- Pass the full note URL as `noteId`; the `xsec_token` is extracted from it automatically. For a bare 24-hex ID, supply `xsecToken` separately.
- For bulk discovery, run the RedNote Search Scraper first, then fan out one run per note URL.
- Billing: Pay-per-event billing — see the Pricing tab on the actor page.

### ⚠️ Disclaimer

This actor collects publicly displayed data from Xiaohongshu for legitimate research, marketing, and archival purposes. You are responsible for complying with applicable laws and Xiaohongshu's terms. Do not use collected data for spam or harassment.

# Actor input Schema

## `noteId` (type: `string`):

A 24-hex note ID, or a full note URL (…/explore/<id>?xsec\_token=…). Pasting the full URL also captures the xsec\_token automatically.

## `xsecToken` (type: `string`):

The xsec\_token that pairs with the note. Skip this if you pasted the full note URL above (the token is taken from it).

## `proxy` (type: `object`):

Proxy egress. Leave default to use built-in residential routing. Override with Apify Proxy or custom proxy URLs if needed.

## Actor input object example

```json
{
  "noteId": "https://www.xiaohongshu.com/explore/644a3e3c00000000130085a0?xsec_token=ABw5H7OmT061JPr1RF2mmIQQ4v5auTThBae2wAf3wo17k=&xsec_source=pc_feed",
  "proxy": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (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 = {
    "noteId": "https://www.xiaohongshu.com/explore/644a3e3c00000000130085a0?xsec_token=ABw5H7OmT061JPr1RF2mmIQQ4v5auTThBae2wAf3wo17k=&xsec_source=pc_feed"
};

// Run the Actor and wait for it to finish
const run = await client.actor("memo23/rednote-note-detail-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 = { "noteId": "https://www.xiaohongshu.com/explore/644a3e3c00000000130085a0?xsec_token=ABw5H7OmT061JPr1RF2mmIQQ4v5auTThBae2wAf3wo17k=&xsec_source=pc_feed" }

# Run the Actor and wait for it to finish
run = client.actor("memo23/rednote-note-detail-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 '{
  "noteId": "https://www.xiaohongshu.com/explore/644a3e3c00000000130085a0?xsec_token=ABw5H7OmT061JPr1RF2mmIQQ4v5auTThBae2wAf3wo17k=&xsec_source=pc_feed"
}' |
apify call memo23/rednote-note-detail-scraper --silent --output-dataset

```

## MCP server setup

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