RedNote (Xiaohongshu) Note Detail Scraper · 小红书笔记详情采集 avatar

RedNote (Xiaohongshu) Note Detail Scraper · 小红书笔记详情采集

Pricing

from $40.00 / 1,000 note detail extracteds

Go to Apify Store
RedNote (Xiaohongshu) Note Detail Scraper · 小红书笔记详情采集

RedNote (Xiaohongshu) Note Detail Scraper · 小红书笔记详情采集

Pricing

from $40.00 / 1,000 note detail extracteds

Rating

0.0

(0)

Developer

NexGenData

NexGenData

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

13 hours ago

Last modified

Share

Turn any RedNote / Xiaohongshu (小红书) note URL or ID into a clean, structured data record — title, body, media, hashtags, author and full engagement metrics — in one call.

⚡ What you get

CapabilityDetail
Full note detailTitle, body text, note type (normal / video), media URLs
Engagement metricsLikes, collects, comments and shares counts
Author dataHandle, user ID and profile URL
Media extractionAll image URLs and the video URL (for video notes)
Discovery & hashtagsHashtag list, IP location and posted-at timestamp
Flexible inputPaste full note URLs, bare IDs, or sample the live feed

🎯 Use cases

  • China social listening — pull full post detail for any RedNote note your monitoring surfaces.
  • KOL / influencer research — capture author handle, profile URL and per-post engagement for outreach lists.
  • Consumer & trend insight — extract body text, hashtags and media to analyse what resonates with Chinese consumers.
  • Competitor content audits — archive a competitor's notes with metrics to benchmark performance over time.
  • Dataset building for ML/NLP — assemble structured Chinese-language post datasets with text, media and engagement signals.

🚀 How to use

Apify Console — open the actor, paste one or more note URLs into Note URLs or IDs (or set Sample latest feed notes to a number), then click Start. Results land in the run's dataset.

Python (apify-client)

from apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
run_input = {
"noteUrls": [
"https://www.xiaohongshu.com/explore/<NOTE_ID>?xsec_token=<TOKEN>"
],
"proxyConfiguration": {"useApifyProxy": True, "apifyProxyGroups": ["RESIDENTIAL"]},
}
run = client.actor("nexgendata/rednote-note-detail").call(run_input=run_input)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)

cURL

curl -X POST "https://api.apify.com/v2/acts/nexgendata~rednote-note-detail/runs?token=<YOUR_APIFY_TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"noteUrls": ["https://www.xiaohongshu.com/explore/<NOTE_ID>?xsec_token=<TOKEN>"],
"proxyConfiguration": {"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"]}
}'

📊 Output fields

FieldDescription
note_idUnique RedNote note ID
titleNote title
bodyFull note body text
typeNote type: normal or video
image_urls[]Array of image URLs
video_urlVideo URL (video notes only)
hashtags[]Array of hashtags on the note
author_handleAuthor display handle
author_idAuthor user ID
author_urlAuthor profile URL
likes_countNumber of likes
collects_countNumber of collects / saves
comments_countNumber of comments
shares_countNumber of shares
posted_atOriginal posted-at timestamp
ip_locationIP location shown on the note
urlCanonical note URL
data_sourceSource of the record
as_of_timestampWhen the data was captured

This actor collects public content only — notes that are publicly visible on RedNote / Xiaohongshu without login. No private, login-gated or personal data is accessed. You are responsible for using the output in compliance with RedNote's terms, applicable laws and any data-protection regulations (e.g. GDPR / PIPL) that apply to you.

❓ FAQ

Q: How do I supply note URLs or IDs? Put one or more values in the Note URLs or IDs input. You can paste full note URLs, bare note IDs, or mix both. Leave it empty and use Sample latest feed notes to pull from the live feed instead.

Q: Why do I need an xsec_token? RedNote note-detail pages require a short-lived xsec_token. The reliable way to supply it is to paste the full note URL from your browser — it already carries the token (...?xsec_token=...). Bare IDs work only when the note is currently present in the live feed, where the token is harvested automatically; otherwise prefer the full URL.

Q: What does the feedSample input do? Set Sample latest feed notes (feedSample) to a number N > 0 and the actor scrapes full details for the latest N notes from the live RedNote explore feed — each fetched with its own fresh xsec_token. Use it when you have no specific URLs and just want recent notes.

Q: Which proxy should I use? RESIDENTIAL Apify Proxy is strongly recommended (and prefilled) for reliable access to RedNote.

Part of the NexGenData RedNote matrix:

🏢 About NexGenData

NexGenData builds reliable, production-grade scrapers for hard-to-reach platforms. Explore the full catalogue at NexGenData on Apify.


小红书笔记详情采集器 · RedNote (Xiaohongshu) Note Detail Scraper

只需一次调用,即可把任意小红书(RedNote / Xiaohongshu)笔记的链接或 ID 转换为结构化数据:标题、正文、媒体、话题标签、作者以及完整的互动指标。

⚡ 功能

能力说明
完整笔记详情标题、正文、笔记类型(图文 / 视频)、媒体链接
互动指标点赞、收藏、评论、分享数
作者数据昵称、用户 ID 与主页链接
媒体提取全部图片链接及视频链接(视频笔记)
话题与发现话题标签列表、IP 属地、发布时间
灵活输入粘贴完整笔记链接、纯 ID,或采样实时信息流

🎯 适用场景

  • 中国社媒舆情监测 — 为监测到的任意小红书笔记拉取完整详情。
  • KOL / 达人研究 — 获取作者昵称、主页链接及单篇互动数据,用于建立合作名单。
  • 消费者与趋势洞察 — 提取正文、话题标签与媒体,分析中国消费者关注的内容。
  • 竞品内容审计 — 归档竞争对手的笔记及其指标,长期对比表现。
  • 机器学习 / NLP 数据集构建 — 汇总包含文本、媒体与互动信号的结构化中文笔记数据集。

🚀 使用方法

Apify 控制台 — 打开该 Actor,在 Note URLs or IDs 中粘贴一个或多个笔记链接(或将 Sample latest feed notes 设为一个数字),然后点击 Start。结果会保存到运行的数据集中。

Python(apify-client)

from apify_client import ApifyClient
client = ApifyClient("<你的_APIFY_TOKEN>")
run_input = {
"noteUrls": [
"https://www.xiaohongshu.com/explore/<NOTE_ID>?xsec_token=<TOKEN>"
],
"proxyConfiguration": {"useApifyProxy": True, "apifyProxyGroups": ["RESIDENTIAL"]},
}
run = client.actor("nexgendata/rednote-note-detail").call(run_input=run_input)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)

cURL

curl -X POST "https://api.apify.com/v2/acts/nexgendata~rednote-note-detail/runs?token=<你的_APIFY_TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"noteUrls": ["https://www.xiaohongshu.com/explore/<NOTE_ID>?xsec_token=<TOKEN>"],
"proxyConfiguration": {"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"]}
}'

📊 输出字段

字段说明
note_id笔记唯一 ID
title笔记标题
body笔记正文全文
type笔记类型:normal(图文)或 video(视频)
image_urls[]图片链接数组
video_url视频链接(仅视频笔记)
hashtags[]笔记话题标签数组
author_handle作者昵称
author_id作者用户 ID
author_url作者主页链接
likes_count点赞数
collects_count收藏数
comments_count评论数
shares_count分享数
posted_at原始发布时间
ip_location笔记显示的 IP 属地
url笔记规范链接
data_source数据来源
as_of_timestamp数据采集时间

⚖️ 合规与数据

本 Actor 仅采集公开内容 —— 无需登录即可在小红书 / Xiaohongshu 上公开查看的笔记。不会访问任何私密、需登录或个人隐私数据。请您自行确保对输出数据的使用符合小红书的服务条款、适用法律以及对您适用的数据保护法规(如 GDPR / 个人信息保护法 PIPL)。

❓ 常见问题

问:如何提供笔记链接或 ID?Note URLs or IDs 输入框中填入一个或多个值。可以粘贴完整笔记链接、纯笔记 ID,或两者混合。留空并使用 Sample latest feed notes 即可改为从实时信息流拉取。

问:为什么需要 xsec_token 小红书笔记详情页需要一个时效较短的 xsec_token。最可靠的方式是直接粘贴浏览器中的完整笔记链接 —— 它已携带该 token(...?xsec_token=...)。纯 ID 仅在该笔记当前出现在实时信息流时有效(此时 token 会被自动采集);否则请优先使用完整链接。

问:feedSample 输入有什么用?Sample latest feed notesfeedSample)设为大于 0 的数字 N,Actor 就会从小红书发现页实时信息流抓取最新 N 篇笔记的完整详情,每篇都带有自己全新的 xsec_token。当你没有具体链接、只想获取最新笔记时使用。

问:应使用哪种代理? 强烈建议使用 RESIDENTIAL(住宅)Apify 代理(已默认预填),以稳定访问小红书。

🔗 相关 Actor

NexGenData 小红书矩阵的一部分:

🏢 关于 NexGenData

NexGenData 专注为难以采集的平台打造可靠、生产级的爬虫。在 Apify 上的 NexGenData 浏览完整产品目录。