Xiaohongshu Note Engagement Snapshot avatar

Xiaohongshu Note Engagement Snapshot

Pricing

from $8.16 / 1,000 note snapshot saveds

Go to Apify Store
Xiaohongshu Note Engagement Snapshot

Xiaohongshu Note Engagement Snapshot

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.

Pricing

from $8.16 / 1,000 note snapshot saveds

Rating

0.0

(0)

Developer

Automation Lab

Automation Lab

Maintained by Community

Actor stats

0

Bookmarked

4

Total users

1

Monthly active users

18 days ago

Last modified

Features

Limited permissions

Share

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

FieldDescription
statusok, unavailable or invalid_input
noteId24-character note ID
noteUrlCanonical signed public note URL, reusable for the next snapshot
inputUrlThe value you supplied
noteTypeimage or video
title, textNote title and full body text
hashtags, topicsTopic names, and topic tags with IDs
mentionedUsers@-mentioned users
publishedAt, lastUpdatedAtPublish and last edit time (ISO 8601)
authorId, authorName, authorAvatarUrl, authorProfileUrlPublic author identity
likeCount, collectCount, commentCount, shareCountEngagement counts at snapshot time
engagementTotalSum of the four counts
coverUrl, imageCount, imageUrls, livePhotoCountImage note media
videoUrl, videoDurationSeconds, videoWidth, videoHeightVideo note media
contentLabelPlatform label on the note, for example an AI-generated content notice
topCommentsPreview comments: text, author, likes, reply count, IP region, time
errorReason, on unavailable and invalid_input rows
snapshotAtWhen 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.

EventPrice
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

ParameterTypeDefaultDescription
noteUrlsarray of stringstwo example notesFull note URLs with xsec_token, or xhslink.com share links. Duplicates are saved once. Up to 1,000 unique inputs per run.
maxTopCommentsinteger10Preview comments per note (0–50). The public page usually shows about 5 to 10. Set 0 to skip.
includeUnavailablebooleantrueEmit free status rows for unavailable notes and invalid inputs.
maxAttemptsinteger4Requests per note before it is reported as unavailable (1–8).
proxyConfigurationobjectno proxyOptional Apify Proxy. Every attempt then uses a fresh proxy session.

Example input:

{
"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):

{
"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:

{
"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

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

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

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:

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:

{
"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?

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.

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.