# Xiaohongshu (RedNote) Scraper (`neuro-scraper/xiaohongshu-scraper`) Actor

Xiaohongshu (RedNote) Scraper SD - Xiaohongshu (RedNote) Scraper is a social media data tool that extracts public RedNote notes (title, text, likes, saves, comments, shares, hashtags, images, video URLs), creator profiles and explore feeds by category, with no login.

- **URL**: https://apify.com/neuro-scraper/xiaohongshu-scraper.md
- **Developed by:** [Neuro Scraper](https://apify.com/neuro-scraper) (community)
- **Categories:** Social media, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.19 / 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/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

The Xiaohongshu (RedNote) Scraper collects public Xiaohongshu data and returns it as a clean dataset you can download as JSON, CSV or Excel, or read through the Apify API. No login, no cookies and no code: give the Xiaohongshu (RedNote) Scraper your input, start it and get structured Xiaohongshu data for research, monitoring, analytics or lead generation. You pay only for the results you receive.

> ⭐ **Featured by Neuro Scraper: [Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper)** - scrape Facebook Reels from any page, profile or reel link with exact views and plays, every reaction type (Like, Love, Care, Haha, Wow, Sad, Angry), comments, shares, captions, music and video links. No login and no cookies. [Try the Facebook Reels Scraper →](https://apify.com/neuro-scraper/facebook-reels-scraper)

./README.md

### Input

Every option of the Xiaohongshu (RedNote) Scraper, as it appears in the input form and the API:

| Field | Type | Default | What it does |
|---|---|---|---|
| `noteUrls` | array | `[]` | One per line: a note link copied from the browser (https://www.xiaohongshu.com/explore/<id>?xsec_token=...), an app share link (http://xhslink.com/o/...; the whole share text also works) or a 24-character note id. Keep t |
| `userUrls` | array | `[]` | Creator profile links with their xsec_token (https://www.xiaohongshu.com/user/profile/<id>?xsec_token=..., as the address bar shows after you open a profile) or profile share links (http://xhslink.com/m/...). Gives one p |
| `exploreFeeds` | array | `["recommend"]` | Notes from the logged-out explore page. 'recommend' = the home feed; a category by its name or id, e.g. 穿搭 / fashion, 美食 / food, 彩妆 / cosmetics, 旅行 / travel, 健身 / fitness, 视频 / video (the Actor reads the category list fr |
| `sitemapNotes` | integer | `0` | Also read this many notes from Xiaohongshu's public note sitemap (about 150,000 notes, December 2023 - September 2026 when measured on 2026-10-09). 0 = off. Notes that were deleted since are skipped. |
| `sitemapOrder` | string | `"newest"` | Which end of the sitemap to start from. |
| `maxItems` | integer | `20` | Stops after this many rows in total (notes, profile rows and profile post rows). Explore feeds keep reloading until this number is reached or a feed stops returning new notes. |
| `maxPostsPerProfile` | integer | `50` | Post cards per profile (title, type, cover, likes, date, pinned). Logged out, a profile page shows only its first page of posts (30-31 measured); later pages need a signed request the Actor does not make. 0 = profile row |
| `fetchDetails` | boolean | `true` | On: one request per note for the full text, likes, saves, comments, shares, hashtags, mentions, every image and the video stream. Off (lite mode): explore-feed notes keep only what the feed card shows (title, type, cover |
| `includeAuthorProfile` | boolean | `false` | Adds the author's likes and saves received (exact), note count, bio, gender, IP location, red id and followers / following to every note row (one extra request per new author). Logged out, Xiaohongshu shows followers onl |
| `noteType` | string | `"all"` | Keep only image or only video notes (applied by the Actor to the notes it collects). |
| `publishTimeRange` | string | `"all"` | Keep only notes published in this window (applied by the Actor; the note id carries its creation time, so old notes are skipped without a request). |
| `minLikes` | integer | `0` | Keep only notes with at least this many likes. 0 = no minimum. |
| `keywords` | array | `[]` | Keep only notes whose title, text or hashtags contain one of these words (e.g. 咖啡). This filters the notes the Actor collects from the sources above - Xiaohongshu's own keyword search needs a login and is not used. |
| `videoQuality` | string | `"highest"` | Which of the note's video streams goes into videoUrl (and the download). |
| `downloadVideos` | boolean | `false` | Saves each note's video to the run's key-value store; the row gets videoFile with the file link. Video links are signed and expire, the stored copy does not. |
| `downloadImages` | boolean | `false` | Saves every image of an image note (full-size JPEG) to the key-value store; the row gets imageFiles. |
| `downloadCovers` | boolean | `false` | Saves each note's cover image (full-size JPEG) to the key-value store; the row gets coverFile. |
| `maxMediaSizeMb` | integer | `300` | Bigger files are not stored (the row says why). |
| `deltaMode` | boolean | `false` | Skips notes that earlier runs with the same state key already returned (kept in the named key-value store 'xiaohongshu-scraper-delta'). Good for scheduled runs. |
| `deltaStateKey` | string | `"default"` | Name of the remembered set of note ids, e.g. one per schedule ('food-daily'). |
| `maxConcurrency` | integer | `3` | How many browser-like sessions open notes at the same time, each with its own proxy IP and about one request per second. |
| `proxyConfiguration` | object | `{"useApifyProxy": true, "apifyProxyGroup` | Residential proxies (the default) are recommended. Xiaohongshu answered from residential IPs in China and Hong Kong and from a home connection in Bangladesh (measured 2026-10-09). |

### Output fields

Each Xiaohongshu (RedNote) Scraper row is one JSON object with these fields (CSV and Excel exports use the same columns):

- `recordType`
- `noteId`
- `url`
- `title`
- `desc`
- `noteType`
- `isVideo`
- `publishedAt`
- `lastUpdatedAt`
- `likes`
- `likesText`
- `collects`
- `collectsText`
- `comments`
- `commentsText`
- `shares`
- `sharesText`
- `tags`
- `topicTags`
- `mentionedUsers`
- `coverUrl`
- `imageUrls`
- `originalImageUrls`
- `imageCount`
- `images`
- `videoUrl`
- `videoDurationSec`
- `videoWidth`
- `videoHeight`
- `videoCodec`
- `videoSizeBytes`
- `videoFile`
- `imageFiles`
- `coverFile`
- `isPinned`
- `xsecToken`
- `userId`
- `authorName`
- `authorAvatar`
- `authorProfileUrl`
- `authorRedId`
- `authorBio`
- `authorGender`
- `authorIpLocation`
- `authorFollowers`
- `authorFollowersText`
- `authorFollowing`
- `authorLikesAndCollects`
- `authorLikesAndCollectsText`
- `authorLikesReceived`
- `authorCollectsReceived`
- `authorNoteCount`
- `authorTags`
- `source`
- `inputUrl`
- `scrapedAt`

### Why use the Xiaohongshu (RedNote) Scraper

The Xiaohongshu (RedNote) Scraper is a Xiaohongshu scraper and Xiaohongshu data extractor for anyone who needs public Xiaohongshu data as clean data. The Xiaohongshu (RedNote) Scraper handles web scraping, proxy rotation and retries for you, so you get a ready dataset instead of raw pages. Use the Xiaohongshu (RedNote) Scraper for market research, competitor analysis, lead generation, analytics or monitoring, and export the results to JSON, CSV, Excel or Google Sheets.

- No login and no code: the Xiaohongshu (RedNote) Scraper runs on Apify with one click or one API call.
- Pay per result: the Xiaohongshu (RedNote) Scraper charges only for rows delivered - no monthly Xiaohongshu API fee.
- Complete fields: the Xiaohongshu (RedNote) Scraper returns every public field, with a stable schema for automation.
- Integrations: connect the Xiaohongshu (RedNote) Scraper to Zapier, Make, n8n, Google Sheets, a webhook or your CRM.

### Xiaohongshu (RedNote) Scraper use cases

- Market research: the Xiaohongshu (RedNote) Scraper collects Xiaohongshu data at scale, so you can compare trends across weeks and niches.
- Competitor analysis: run the Xiaohongshu (RedNote) Scraper on a schedule and export the dataset to Google Sheets or Excel to watch what competitors publish.
- Lead generation and B2B prospecting: the Xiaohongshu (RedNote) Scraper gives a sales or agency team a clean list to load into a CRM.
- Content and social media monitoring: the Xiaohongshu (RedNote) Scraper keeps a fresh copy of Xiaohongshu data through an Apify schedule and a webhook.
- Analytics and dashboards: send the Xiaohongshu (RedNote) Scraper output as JSON through the Apify API into Python, Node.js or a BI tool.
- Academic and data science projects: the Xiaohongshu (RedNote) Scraper returns a consistent schema, ready for pandas, R or a notebook.
- Price, product and brand tracking: the Xiaohongshu (RedNote) Scraper turns public Xiaohongshu data into a dataset you can diff run by run.
- Automation workflows: connect the Xiaohongshu (RedNote) Scraper to Zapier, Make or n8n so every new row starts your next step.

### How to run it with the API, Python and Node.js

Start the Xiaohongshu (RedNote) Scraper from the Apify Console, or call it from code. The Xiaohongshu (RedNote) Scraper returns its dataset as JSON, CSV or Excel. With the Apify API you can run the Xiaohongshu (RedNote) Scraper from Python or Node.js, wait for it to finish and read the rows, which makes the Xiaohongshu (RedNote) Scraper easy to plug into an automation, a data pipeline or a scheduled export.

1. Open the Xiaohongshu (RedNote) Scraper on Apify and fill in the input (or send the same input as JSON to the API).
2. Start the Xiaohongshu (RedNote) Scraper. Follow the run log while the Xiaohongshu (RedNote) Scraper collects public Xiaohongshu data.
3. Download the dataset as CSV, JSON, Excel or XLSX, or let a webhook send it on.
4. Schedule the Xiaohongshu (RedNote) Scraper to keep your Xiaohongshu data fresh for monitoring and analytics.

### Tips for better results

- Start small: run the Xiaohongshu (RedNote) Scraper with a low maximum first, check the fields, then scale up the same input.
- Split big jobs: several smaller Xiaohongshu (RedNote) Scraper runs (by keyword, URL list or date) finish faster and are easier to resume.
- Keep a history: name a dataset or use a schedule so each Xiaohongshu (RedNote) Scraper run adds to your Xiaohongshu data over time.
- Filter early: use the input filters of the Xiaohongshu (RedNote) Scraper so you only pay for the Xiaohongshu data you really need.
- Automate the hand-off: a webhook or the Zapier and Make integrations can move every Xiaohongshu (RedNote) Scraper result straight to Google Sheets, a CRM or a database.
- Watch the run log: the Xiaohongshu (RedNote) Scraper writes what it is doing and why an item was skipped, so a surprising result is easy to explain.

### Xiaohongshu (RedNote) Scraper FAQ

#### Can it replace the official Xiaohongshu API?

For public data, yes. The Xiaohongshu (RedNote) Scraper gives you Xiaohongshu data through the Apify API without an official Xiaohongshu API key, quota approval or developer account.

#### Can I send the data to my CRM?

Yes. Push Xiaohongshu (RedNote) Scraper rows to HubSpot, Salesforce, Pipedrive or any CRM through Zapier, Make or a webhook - a common setup for an agency or B2B sales team.

#### How much does it cost?

The Xiaohongshu (RedNote) Scraper is pay per result: you pay only for the rows you receive, with lower prices on higher Apify plans. You can cap the cost of every run with the maximum cost setting.

#### Which formats can I download?

The Xiaohongshu (RedNote) Scraper dataset downloads as JSON, CSV, Excel (XLSX), XML, RSS or an HTML table, and the Apify API returns the same Xiaohongshu (RedNote) Scraper data page by page.

#### Why is a field empty in my results?

The Xiaohongshu (RedNote) Scraper fills every field Xiaohongshu publishes for that item. When Xiaohongshu does not show a value - for example a figure the owner hid - the field stays empty rather than being guessed.

#### Do you offer custom scrapers?

Yes. If you need a field or a filter the Xiaohongshu (RedNote) Scraper does not have yet, contact Neuro Scraper through the Apify Store page and we can extend the Xiaohongshu (RedNote) Scraper for you.

#### Can I schedule it?

Yes. Apify schedules run the Xiaohongshu (RedNote) Scraper hourly, daily or weekly, and a webhook can notify your system when new Xiaohongshu data is ready.

#### What does this Xiaohongshu scraper do?

The Xiaohongshu (RedNote) Scraper collects public Xiaohongshu data and returns it as a structured dataset. It is web scraping without code: you set the input, start the Xiaohongshu (RedNote) Scraper and download JSON, CSV, Excel or XLSX.

#### Can I export the results to Excel, CSV or Google Sheets?

Yes. Every Xiaohongshu (RedNote) Scraper run stores a dataset you can export as CSV, JSON, Excel (XLSX), XML or HTML, or send to Google Sheets with the Apify integration.

#### Does it work with proxies?

Yes. The Xiaohongshu (RedNote) Scraper uses Apify Proxy by default and you can pick the proxy group or country in the input.

#### How is this different from other Xiaohongshu scrapers?

The Xiaohongshu (RedNote) Scraper combines complete public fields, no login, pay-per-result pricing and a stable output schema, so the Xiaohongshu (RedNote) Scraper fits both quick one-off exports and long-running automation.

#### What happens if a run is interrupted?

The Xiaohongshu (RedNote) Scraper saves its progress, so a resurrected or restarted run continues where it stopped instead of paying for the same rows again.

#### What is the best Xiaohongshu scraper for data?

The Xiaohongshu (RedNote) Scraper is built for exactly this job: public Xiaohongshu data, complete fields, no login, pay per result and a clean export to JSON, CSV or Excel.

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

No. The Xiaohongshu (RedNote) Scraper works with no login and no cookies. It reads only public data, the same data any visitor can see.

#### Can I use it through the API?

Yes. Start the Xiaohongshu (RedNote) Scraper and read its dataset through the Apify API from Python, Node.js or any HTTP client, or call it from Zapier, Make and n8n.

#### How fast is it?

The Xiaohongshu (RedNote) Scraper runs requests in parallel and rotates proxy sessions automatically, so a typical run of a few hundred items finishes in minutes.

#### Is it legal to scrape Xiaohongshu?

The Xiaohongshu (RedNote) Scraper collects only publicly available data. If results contain personal data, process it under GDPR or the rules that apply to you, and only for a legitimate purpose.

### More scrapers from Neuro Scraper

| Actor | What it extracts |
|---|---|
| ⭐ **[Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper)** | Facebook Reels with exact views, plays, every reaction type, comments and shares |
| [Snapchat Profile Scraper](https://apify.com/neuro-scraper/snapchat-profile-scraper) | Snapchat profile data with all public fields, exported to JSON, CSV or Excel |
| [Amazon Scraper](https://apify.com/neuro-scraper/amazon-scraper) | Amazon data with all public fields, exported to JSON, CSV or Excel |
| [Instagram Reels Scraper](https://apify.com/neuro-scraper/instagram-reels-scraper) | Instagram reels with all public fields, exported to JSON, CSV or Excel |
| [Facebook Video Details Scraper](https://apify.com/neuro-scraper/facebook-video-details-scraper) | Facebook video details with all public fields, exported to JSON, CSV or Excel |
| [Facebook Reels Scraper Advanced](https://apify.com/neuro-scraper/facebook-reels-scraper-advanced) | Facebook reels  advanced data with all public fields, exported to JSON, CSV or Excel |
| [Facebook Reels Downloader](https://apify.com/neuro-scraper/facebook-reels-downloader) | Facebook reels with all public fields, exported to JSON, CSV or Excel |
| [Instagram Search Scraper](https://apify.com/neuro-scraper/instagram-search-scraper) | Instagram search data with all public fields, exported to JSON, CSV or Excel |
| [TikTok Video Details Scraper](https://apify.com/neuro-scraper/tiktok-video-details-scraper) | TikTok video details with all public fields, exported to JSON, CSV or Excel |
| [Instagram Hashtag Scraper](https://apify.com/neuro-scraper/instagram-hashtag-scraper) | Instagram hashtag data with all public fields, exported to JSON, CSV or Excel |
| [TikTok Profile Scraper](https://apify.com/neuro-scraper/tiktok-profile-scraper) | TikTok profile data with all public fields, exported to JSON, CSV or Excel |
| [Amazon Best Sellers Scraper](https://apify.com/neuro-scraper/amazon-best-sellers-scraper) | Amazon best sellers with all public fields, exported to JSON, CSV or Excel |
| [Facebook Photos Scraper](https://apify.com/neuro-scraper/facebook-photos-scraper) | Facebook photos with all public fields, exported to JSON, CSV or Excel |

# Actor input Schema

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

One per line: a note link copied from the browser (https://www.xiaohongshu.com/explore/<id>?xsec_token=...), an app share link (http://xhslink.com/o/...; the whole share text also works) or a 24-character note id. Keep the xsec_token in the link: notes from the feed open only with it (notes in the site's public sitemap open without one).

## `userUrls` (type: `array`):

Creator profile links with their xsec_token (https://www.xiaohongshu.com/user/profile/<id>?xsec_token=..., as the address bar shows after you open a profile) or profile share links (http://xhslink.com/m/...). Gives one profile row (followers, likes and saves received, bio, IP location, red id) plus the post cards of the first page.

## `exploreFeeds` (type: `array`):

Notes from the logged-out explore page. 'recommend' = the home feed; a category by its name or id, e.g. 穿搭 / fashion, 美食 / food, 彩妆 / cosmetics, 旅行 / travel, 健身 / fitness, 视频 / video (the Actor reads the category list from the page on every run); 'all' = recommend + every category. Each reload of a feed returns new notes, so the Actor keeps loading until Max items.

## `sitemapNotes` (type: `integer`):

Also read this many notes from Xiaohongshu's public note sitemap (about 150,000 notes, December 2023 - September 2026 when measured on 2026-10-09). 0 = off. Notes that were deleted since are skipped.

## `sitemapOrder` (type: `string`):

Which end of the sitemap to start from.

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

Stops after this many rows in total (notes, profile rows and profile post rows). Explore feeds keep reloading until this number is reached or a feed stops returning new notes.

## `maxPostsPerProfile` (type: `integer`):

Post cards per profile (title, type, cover, likes, date, pinned). Logged out, a profile page shows only its first page of posts (30-31 measured); later pages need a signed request the Actor does not make. 0 = profile row only.

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

On: one request per note for the full text, likes, saves, comments, shares, hashtags, mentions, every image and the video stream. Off (lite mode): explore-feed notes keep only what the feed card shows (title, type, cover, likes, author) - much faster.

## `includeAuthorProfile` (type: `boolean`):

Adds the author's likes and saves received (exact), note count, bio, gender, IP location, red id and followers / following to every note row (one extra request per new author). Logged out, Xiaohongshu shows followers only as a range such as 10+ or 1万+; the row keeps that text and its lower bound.

## `noteType` (type: `string`):

Keep only image or only video notes (applied by the Actor to the notes it collects).

## `publishTimeRange` (type: `string`):

Keep only notes published in this window (applied by the Actor; the note id carries its creation time, so old notes are skipped without a request).

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

Keep only notes with at least this many likes. 0 = no minimum.

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

Keep only notes whose title, text or hashtags contain one of these words (e.g. 咖啡). This filters the notes the Actor collects from the sources above - Xiaohongshu's own keyword search needs a login and is not used.

## `videoQuality` (type: `string`):

Which of the note's video streams goes into videoUrl (and the download).

## `downloadVideos` (type: `boolean`):

Saves each note's video to the run's key-value store; the row gets videoFile with the file link. Video links are signed and expire, the stored copy does not.

## `downloadImages` (type: `boolean`):

Saves every image of an image note (full-size JPEG) to the key-value store; the row gets imageFiles.

## `downloadCovers` (type: `boolean`):

Saves each note's cover image (full-size JPEG) to the key-value store; the row gets coverFile.

## `maxMediaSizeMb` (type: `integer`):

Bigger files are not stored (the row says why).

## `deltaMode` (type: `boolean`):

Skips notes that earlier runs with the same state key already returned (kept in the named key-value store 'xiaohongshu-scraper-delta'). Good for scheduled runs.

## `deltaStateKey` (type: `string`):

Name of the remembered set of note ids, e.g. one per schedule ('food-daily').

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

How many browser-like sessions open notes at the same time, each with its own proxy IP and about one request per second.

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

Residential proxies (the default) are recommended. Xiaohongshu answered from residential IPs in China and Hong Kong and from a home connection in Bangladesh (measured 2026-10-09).

## Actor input object example

```json
{
  "noteUrls": [],
  "userUrls": [],
  "exploreFeeds": [
    "recommend"
  ],
  "sitemapNotes": 0,
  "sitemapOrder": "newest",
  "maxItems": 20,
  "maxPostsPerProfile": 50,
  "fetchDetails": true,
  "includeAuthorProfile": false,
  "noteType": "all",
  "publishTimeRange": "all",
  "minLikes": 0,
  "keywords": [],
  "videoQuality": "highest",
  "downloadVideos": false,
  "downloadImages": false,
  "downloadCovers": false,
  "maxMediaSizeMb": 300,
  "deltaMode": false,
  "deltaStateKey": "default",
  "maxConcurrency": 3,
  "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": [],
    "userUrls": [],
    "exploreFeeds": [
        "recommend"
    ],
    "keywords": [],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("neuro-scraper/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": [],
    "userUrls": [],
    "exploreFeeds": ["recommend"],
    "keywords": [],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("neuro-scraper/xiaohongshu-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": [],
  "userUrls": [],
  "exploreFeeds": [
    "recommend"
  ],
  "keywords": [],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call neuro-scraper/xiaohongshu-scraper --silent --output-dataset

```

## MCP server setup

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