# Xiaohongshu Note Engagement Snapshot (`automation-lab/xiaohongshu-supplied-note-content-and-engagement-snapshots`) Actor

Snapshot public Xiaohongshu (RedNote) notes from signed note URLs or share links: text, author, hashtags, images or video, preview comments and like, collect, comment and share counts. Free status rows for deleted notes.

- **URL**: https://apify.com/automation-lab/xiaohongshu-supplied-note-content-and-engagement-snapshots.md
- **Developed by:** [Automation Lab](https://apify.com/automation-lab) (community)
- **Categories:** Social media, Marketing
- **Features:** Limited permissions
- **Stats:** 4 total users, 1 monthly users, 88.9% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $8.16 / 1,000 note snapshot saveds

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 Note Engagement Snapshot

Track public **Xiaohongshu (RedNote, 小红书)** notes over time. Paste the note links you care about and get one clean snapshot row per note: title, full text, hashtags, author, publish time, images or video, and the current **like, collect, comment and share counts**. Run it daily or weekly on the same list to see how campaign posts, creator collaborations or competitor content perform.

No login, cookies or browser are needed. The Actor reads the public mobile note page directly.

### What does Xiaohongshu Note Engagement Snapshot do?

- Accepts full note URLs from the browser (`https://www.xiaohongshu.com/explore/<id>?xsec_token=...`, or the same path on `www.rednote.com`) and `xhslink.com` share links from the app.
- Opens each note anonymously and saves a normalized snapshot with content, author, media and engagement counts.
- Adds an `engagementTotal`, a `snapshotAt` timestamp and a reusable canonical `noteUrl`, so rows from different runs line up by `noteId`.
- Includes the preview comments shown on the public page (optional).
- Reports deleted, private or expired notes as free `unavailable` rows, so a recurring snapshot shows which notes dropped out instead of silently skipping them.

### Who is it for?

- **Brand and agency teams** reporting on paid KOL/KOC posts: snapshot every campaign note after 1, 7 and 30 days.
- **Influencer marketers** verifying that creators delivered and comparing engagement across collaborations.
- **Market researchers** following a fixed set of competitor or category notes for China consumer insight.
- **Social listening and BI analysts** who need a predictable JSON/CSV feed of note metrics for dashboards.
- **AI and automation builders** who want an MCP tool that turns a pasted Xiaohongshu link into structured note data.

### Why use this Actor?

- **Built for repeat snapshots.** Stable `noteId` and `snapshotAt` fields, an engagement total and a canonical signed URL you can feed into the next run.
- **Honest status rows.** Every input gets a row with status `ok`, `unavailable` or `invalid_input`, plus a reason.
- **Pay only for saved notes.** Only successful snapshots are charged; notes that could not be opened are free.
- **Handles both link types.** Browser URLs from `/explore/`, `/discovery/item/` and `/search_result/`, plus app share links.
- **Robust to random rejections.** Xiaohongshu sometimes refuses an anonymous request at random. Each note is retried with a different request signature (and a fresh proxy IP if you enable a proxy) before it is reported as unavailable.
- **Lightweight.** Plain HTTP at 256 MB memory, no browser and no proxy by default, so runs are fast and cheap.

### Data you can extract

| Field | Description |
|---|---|
| `status` | `ok`, `unavailable` or `invalid_input` |
| `noteId` | 24-character note ID |
| `noteUrl` | Canonical signed public note URL, reusable for the next snapshot |
| `inputUrl` | The value you supplied |
| `noteType` | `image` or `video` |
| `title`, `text` | Note title and full body text |
| `hashtags`, `topics` | Topic names, and topic tags with IDs |
| `mentionedUsers` | @-mentioned users |
| `publishedAt`, `lastUpdatedAt` | Publish and last edit time (ISO 8601) |
| `authorId`, `authorName`, `authorAvatarUrl`, `authorProfileUrl` | Public author identity |
| `likeCount`, `collectCount`, `commentCount`, `shareCount` | Engagement counts at snapshot time |
| `engagementTotal` | Sum of the four counts |
| `coverUrl`, `imageCount`, `imageUrls`, `livePhotoCount` | Image note media |
| `videoUrl`, `videoDurationSeconds`, `videoWidth`, `videoHeight` | Video note media |
| `contentLabel` | Platform label on the note, for example an AI-generated content notice |
| `topComments` | Preview comments: text, author, likes, reply count, IP region, time |
| `error` | Reason, on `unavailable` and `invalid_input` rows |
| `snapshotAt` | When the snapshot was taken |

### How much does it cost to snapshot Xiaohongshu notes?

This Actor uses pay-per-event pricing. You pay a small fee when a run starts and a fee for each note saved with status `ok`. Unavailable notes and invalid inputs are free.

| Event | Price |
|---|---|
| Run started (once per run) | $0.005 |
| Note snapshot saved | $0.0136 per note on the Bronze plan ($0.01564 Free, $0.010608 Silver, $0.00816 Gold and above) |

Examples on the Bronze plan:

- **1 note:** $0.005 + $0.0136 = $0.0186
- **25 campaign notes:** $0.005 + 25 × $0.0136 = $0.345
- **100 notes:** $0.005 + 100 × $0.0136 = $1.365
- **Daily snapshot of 25 notes for 30 days:** about $10.35 per month

Platform compute is included in these event prices. If you set a **maximum charge per run**, the Actor stops before going over it: every saved note is charged, no note is saved without its charge, and the run's status message says how many inputs were left unprocessed. If you enable Apify Proxy yourself, proxy traffic is billed by Apify as normal platform usage.

### Getting started

1. Open the Actor in Apify Console.
2. Paste one or more note links into **Note URLs or share links**. Copy them from the browser address bar (keep the `?xsec_token=...` part) or from the app share button (`xhslink.com/...`).
3. Leave the other options at their defaults for a first run.
4. Click **Start** and open the **Engagement snapshots** view of the dataset.
5. To track notes over time, save the input as a task and add a schedule (for example daily at 09:00).

### Input parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `noteUrls` | array of strings | two example notes | Full note URLs with `xsec_token`, or `xhslink.com` share links. Duplicates are saved once. Up to 1,000 unique inputs per run. |
| `maxTopComments` | integer | 10 | Preview comments per note (0–50). The public page usually shows about 5 to 10. Set 0 to skip. |
| `includeUnavailable` | boolean | true | Emit free status rows for unavailable notes and invalid inputs. |
| `maxAttempts` | integer | 4 | Requests per note before it is reported as unavailable (1–8). |
| `proxyConfiguration` | object | no proxy | Optional Apify Proxy. Every attempt then uses a fresh proxy session. |

Example input:

```json
{
    "noteUrls": [
        "http://xhslink.com/o/6y3HQIIiyUh",
        "https://www.xiaohongshu.com/explore/64b20366000000001503356f?xsec_token=AB8EA_m8o7Ukv4EEjAjGIoEV0598nAQTd5qLYQ-v41RLM="
    ],
    "maxTopComments": 5
}
```

### Output example

A real snapshot row (media URLs and comments shortened):

```json
{
    "status": "ok",
    "noteId": "64b20366000000001503356f",
    "noteUrl": "https://www.xiaohongshu.com/discovery/item/64b20366000000001503356f?xsec_token=AB8EA_m8o7Ukv4EEjAjGIoEV0598nAQTd5qLYQ-v41RLM%3D&xsec_source=pc_feed",
    "inputUrl": "https://www.xiaohongshu.com/explore/64b20366000000001503356f?xsec_token=AB8EA_m8o7Ukv4EEjAjGIoEV0598nAQTd5qLYQ-v41RLM=",
    "noteType": "image",
    "title": "棒约翰竟然有自助了！🤣",
    "text": "49块钱 图九披萨随便吃饮料无限喝\n超值哈哈哈 ... #碳水使我快乐[话题]# #自助餐[话题]#",
    "hashtags": ["碳水使我快乐", "自助餐"],
    "topics": [{ "id": "5dced9490000000001001c8a", "name": "碳水使我快乐" }, { "id": "5983ec307642f120a286cc6a", "name": "自助餐" }],
    "mentionedUsers": [],
    "publishedAt": "2023-07-15T02:24:38.000Z",
    "lastUpdatedAt": "2023-07-15T02:24:38.000Z",
    "ipLocation": null,
    "authorId": "58a8523550c4b433fb1d1bc6",
    "authorName": "土澳不知名饭桶",
    "authorProfileUrl": "https://www.xiaohongshu.com/user/profile/58a8523550c4b433fb1d1bc6",
    "likeCount": 1912,
    "collectCount": 706,
    "commentCount": 413,
    "shareCount": 1578,
    "engagementTotal": 4609,
    "imageCount": 9,
    "imageUrls": ["https://sns-webpic-qc.xhscdn.com/..."],
    "livePhotoCount": 7,
    "videoUrl": null,
    "contentLabel": null,
    "topComments": [
        { "commentId": "64b204b0000000002901775b", "text": "咱就是说.....桶子......我看到了盘儿里的生蒜🧄", "authorName": "云杉.M", "likeCount": 83, "replyCount": 9, "ipLocation": "北京", "postedAt": "2023-07-15T02:30:08.000Z" }
    ],
    "snapshotAt": "2026-11-01T07:14:24.388Z"
}
```

An unavailable note produces a free row like this:

```json
{
    "status": "unavailable",
    "noteId": "68fb4b0d0000000004014668",
    "noteUrl": "https://www.xiaohongshu.com/discovery/item/68fb4b0d0000000004014668?xsec_token=...&xsec_source=pc_feed",
    "inputUrl": "https://www.xiaohongshu.com/explore/68fb4b0d0000000004014668?xsec_token=...",
    "error": "Note is not publicly available after 4 attempts (deleted, private, restricted, or its xsec_token expired).",
    "snapshotAt": "2026-11-01T07:14:31.002Z"
}
```

### Tracking engagement over time

1. Save your note list as an Apify task and schedule it.
2. Send each run's dataset to the same Google Sheet, database table or data warehouse.
3. Group rows by `noteId` and order them by `snapshotAt` to chart likes, collects, comments and shares per note.
4. Watch for rows that switch to `unavailable`: the note was deleted, made private, restricted, or its link expired.

Tip: store the `noteUrl` from the first successful snapshot and reuse it in later runs. It is the canonical form of the link.

### Tips, limits and failure behavior

- **Bare note IDs are not supported.** Xiaohongshu only opens notes anonymously with the signed `xsec_token` from a shared or browsed link. Bare IDs and URLs without the token come back as free `invalid_input` rows.
- **Links can expire.** A token usually keeps working for a long time, but Xiaohongshu can revoke it. Collect fresh links if a live note starts showing as `unavailable`.
- **Counts are what the public page shows.** Large numbers can be rounded by Xiaohongshu (for example 1.2万 = 12,000).
- **Preview comments are a sample**, not a full comment export.
- **Media URLs are signed CDN links** that expire after some time. Download media soon after the run if you need it.
- **Random rejections are retried.** If a note keeps coming back `unavailable` but you know it is live, raise `maxAttempts` or enable Apify Proxy.
- A run **fails** only when no note could be loaded or classified at all (for example every input was invalid, or the site did not respond).

### Integrations

- **Google Sheets / Excel:** export the dataset as CSV or connect the Google Sheets integration to append each snapshot.
- **Make, Zapier, n8n:** start the Actor on a schedule and push `ok` rows to your CRM or campaign tracker.
- **Webhooks:** trigger a Slack or email alert when a run finishes or a tracked note becomes `unavailable`.
- **Data warehouses:** load JSON into BigQuery, Snowflake or Postgres and build engagement trend dashboards keyed by `noteId`.

### Run with the JavaScript API client

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('automation-lab/xiaohongshu-supplied-note-content-and-engagement-snapshots').call({
    noteUrls: ['http://xhslink.com/o/6y3HQIIiyUh'],
    maxTopComments: 5,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.filter((item) => item.status === 'ok'));
```

### Run with the Python API client

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("automation-lab/xiaohongshu-supplied-note-content-and-engagement-snapshots").call(
    run_input={"noteUrls": ["http://xhslink.com/o/6y3HQIIiyUh"], "maxTopComments": 5}
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["status"], item.get("noteId"), item.get("likeCount"))
```

### Run with cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/automation-lab~xiaohongshu-supplied-note-content-and-engagement-snapshots/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"noteUrls": ["http://xhslink.com/o/6y3HQIIiyUh"]}'
```

### Use with MCP and AI agents

Add the Apify MCP server in Claude Code:

```bash
claude mcp add --transport http apify \
  "https://mcp.apify.com?tools=automation-lab/xiaohongshu-supplied-note-content-and-engagement-snapshots"
```

For Claude Desktop, Cursor or VS Code, add this JSON configuration:

```json
{
    "mcpServers": {
        "apify": {
            "url": "https://mcp.apify.com?tools=automation-lab/xiaohongshu-supplied-note-content-and-engagement-snapshots"
        }
    }
}
```

Selecting this Actor also adds the `get-actor-run`, `get-dataset-items`, `get-key-value-store-record` and `abort-actor-run` helper tools, so it is not a single tool. Check the actual tool names and argument schemas with `tools/list` and use only the ones you need. A reliable agent workflow:

1. **Start once and keep the run ID.** `call-actor` waits at most 45 seconds (default 30), so the run may still be going when it returns. Keep the returned run ID, status and `defaultDatasetId`. These are metadata, not result rows.
2. **Follow the same run with a deadline.** If the run is not finished, call `get-actor-run` for that same run with bounded backoff (for example 2, 4, 8 seconds, capped at 10) and a total deadline (for example 120 seconds). Set the client request timeout above the server wait plus a transport margin. If the client times out, check the known run again instead of starting a new one. If the run ID is unknown, report the uncertainty instead of rerunning blindly. At the deadline, report the run as pending with its run ID and stop polling. Report `FAILED`, `ABORTED` or `TIMED-OUT` honestly: any rows already saved are partial, not a full result.
3. **Read bounded pages.** After `SUCCEEDED`, call `get-dataset-items` with the dataset ID, an explicit `limit` and `offset`, and only the `fields` you need, for example `noteId,status,title,likeCount,collectCount,commentCount,shareCount,engagementTotal,error`. Pick a total budget for the model context, for example pages of 20 rows from offset 0, at most 100 rows **and** 64 KiB of UTF-8 JSON across all pages, whichever comes first. Advance `offset` by the source rows returned (use untransformed JSON). Stop when results run out or the budget is reached.
4. **Disclose truncation.** If the budget stops reading early, report how many rows were returned, the next `offset` and that the result is partial. Long `text` or `topComments` fields can make a single row large, so leave them out of `fields` unless needed. If a row or page would exceed the byte budget, process it host-side and omit or summarize it with a note. If your client cannot inspect responses before they reach the model, it cannot guarantee a byte ceiling, so keep `limit` and `fields` small. Keep full exports (CSV, JSON, Excel) in the dataset or downstream tools, outside the model context.

These limits protect your agent's context window. They do not limit what the Actor collects. Savings from tool discovery or caching depend on your MCP client and model, so measure them before making any token-savings claim.

Example prompts:

> Snapshot these three Xiaohongshu note links and give me a table of likes, collects, comments and shares.

> Which of these campaign notes are no longer available, and which one has the highest engagement total?

### Legal and responsible use

This Actor reads only public note pages that anyone can open with the link, without logging in. Collect only data you have a lawful reason to process, follow Xiaohongshu's terms and applicable privacy laws (including China's PIPL and GDPR where relevant), and do not use author or commenter data to make sensitive inferences about individuals. Set retention limits for exported data. This tool is independent and is not affiliated with or endorsed by Xiaohongshu or RedNote. This is not legal advice.

### Error reporting

Failed runs report sanitized diagnostic input, Actor/build/run IDs and exceptions to our private GlitchTip error tracker so we can fix problems quickly. Secret fields and URL query strings (including `xsec_token`) are removed. Reports are kept for 30 days.

### Troubleshooting

**Every note is `invalid_input`.** Make sure each link contains `xsec_token=` or is an `xhslink.com` share link. Links copied from search results in some third-party tools drop the token.

**A live note comes back `unavailable`.** The token may have been revoked or the note may be restricted in some regions. Copy a fresh link from the app or browser, raise `maxAttempts`, or enable Apify Proxy.

**The share link is reported as invalid.** Old `xhslink.com` links can expire or point to a removed note. Open the link in a browser to check. Share links are only followed to xiaohongshu.com, rednote.com and xhslink.com, so a link that redirects anywhere else is reported as invalid.

**The run stopped before all notes were processed.** The run reached your maximum charge per run. Raise the limit or split the list across runs.

**I pasted the same note twice with different tokens.** The Actor tries each distinct token until one opens the note, then saves and charges that note once. You get a free status row for that note only when none of the supplied links work.

### Related Automation Lab Actors

- [Xiaohongshu Profiles Scraper](https://apify.com/automation-lab/rednote-xiaohongshu-profile-scraper): enrich creator profiles (followers, likes, tags, recent notes) for the authors you track here.
- [Weibo Posts and Profiles Scraper](https://apify.com/automation-lab/weibo-posts-profiles-scraper): the same kind of public social monitoring for Weibo.
- [Cross-platform Influencer Discovery](https://apify.com/automation-lab/cross-platform-influencer-discovery): find creators by keyword across supported platforms before tracking their posts.

### FAQ

**Do I need a Xiaohongshu account or cookies?**
No. The Actor reads public note pages anonymously.

**Can I paste just the note ID?**
No. Xiaohongshu requires the signed `xsec_token` that comes with a shared or browsed link. Bare IDs are reported as free `invalid_input` rows.

**Does it download images and videos?**
No. It returns direct image and video URLs. Download them soon after the run, because the CDN links expire.

**Does it export all comments?**
No. It includes the preview comments shown on the public page (up to `maxTopComments`). It is not a full comment scraper.

**Am I charged for deleted notes?**
No. Only successful snapshots are charged. Unavailable notes and invalid inputs are free.

**How often can I run it?**
As often as you like. Daily or weekly schedules are typical for campaign tracking.

# Changelog

This Actor's version history is a separate document: https://apify.com/automation-lab/xiaohongshu-supplied-note-content-and-engagement-snapshots/changelog.md

# Actor input Schema

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

Full Xiaohongshu or RedNote note URLs that include xsec_token (from the browser address bar, for example https://www.xiaohongshu.com/explore/<note-id>?xsec_token=... or the same path on www.rednote.com), or xhslink.com share links from the app share button. /explore/, /discovery/item/ and /search_result/ URLs are accepted. Bare 24-character note IDs and URLs without xsec_token cannot be opened without login, so they are reported as invalid_input rows and not charged. Duplicate notes are saved once. Up to 1,000 unique inputs are processed per run.

## `maxTopComments` (type: `integer`):

How many of the top-level comments shown on the public note page to include in topComments (text, author, likes, reply count, IP location). The public page shows only a short preview, usually about 5 to 10. Set 0 to skip comments. This is not a full comment export.

## `includeUnavailable` (type: `boolean`):

When enabled, notes that could not be opened (deleted, private, restricted, expired token) and invalid inputs get a free status row with the reason, so recurring snapshots show which notes dropped out. Only rows with status ok are charged.

## `maxAttempts` (type: `integer`):

How many times to request each note before reporting it as unavailable. Xiaohongshu sometimes rejects an anonymous request at random; each retry uses a different request signature and, with a proxy, a fresh IP.

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

Optional. Direct requests work for public notes, so no proxy is used by default. If you enable Apify Proxy, every attempt uses a fresh proxy session.

## Actor input object example

```json
{
  "noteUrls": [
    "http://xhslink.com/o/6y3HQIIiyUh",
    "https://www.xiaohongshu.com/explore/64b20366000000001503356f?xsec_token=AB8EA_m8o7Ukv4EEjAjGIoEV0598nAQTd5qLYQ-v41RLM="
  ],
  "maxTopComments": 10,
  "includeUnavailable": true,
  "maxAttempts": 4,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Dataset items in the Engagement snapshots view: note ID, title, author, type, like/collect/comment/share counts, engagement total, publish time, canonical note URL, snapshot time and any error.

# 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": [
        "http://xhslink.com/o/6y3HQIIiyUh",
        "https://www.xiaohongshu.com/explore/64b20366000000001503356f?xsec_token=AB8EA_m8o7Ukv4EEjAjGIoEV0598nAQTd5qLYQ-v41RLM="
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("automation-lab/xiaohongshu-supplied-note-content-and-engagement-snapshots").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": [
        "http://xhslink.com/o/6y3HQIIiyUh",
        "https://www.xiaohongshu.com/explore/64b20366000000001503356f?xsec_token=AB8EA_m8o7Ukv4EEjAjGIoEV0598nAQTd5qLYQ-v41RLM=",
    ],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("automation-lab/xiaohongshu-supplied-note-content-and-engagement-snapshots").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": [
    "http://xhslink.com/o/6y3HQIIiyUh",
    "https://www.xiaohongshu.com/explore/64b20366000000001503356f?xsec_token=AB8EA_m8o7Ukv4EEjAjGIoEV0598nAQTd5qLYQ-v41RLM="
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call automation-lab/xiaohongshu-supplied-note-content-and-engagement-snapshots --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,automation-lab/xiaohongshu-supplied-note-content-and-engagement-snapshots"
        }
    }
}
```

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/nKmXsyr7femUldzb1/builds/qzhYBfLb9jlMfCPCU/openapi.json
