Xiaohongshu API - RedNote XHS Scraper, Notes & Comments
Pricing
from $2.99 / 1,000 item (your own login or no login)s
Xiaohongshu API - RedNote XHS Scraper, Notes & Comments
Xiaohongshu API / RedNote scraper (小红书, XHS, Little Red Book): keyword search with sort and filters, full note text, images and video URLs, comments, user notes and profiles. Uses your own RedNote login cookie. Monitor mode returns only new notes. $2.99 per 1,000 items.
Pricing
from $2.99 / 1,000 item (your own login or no login)s
Rating
0.0
(0)
Developer
Quiet Harvest
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
a day ago
Last modified
Categories
Share
RedNote (Xiaohongshu) Scraper
A RedNote / Xiaohongshu scraper (小红书, XHS): keyword search, full notes, comments, and creators' notes and profiles. Plain HTTP, the request signing is done inside the actor. No browser, no third-party API.
$2.99 per 1,000 items. You need your own RedNote cookie.
What does RedNote Scraper do?
- Search. Sort by relevance, latest, most liked, most commented or most saved. Filter image or video notes. I've tested 15 pages (300 notes) on one keyword.
- Full notes. Search only returns a title and counts, so by default each note is opened to get the text, publish time, tags, all images and the video URL.
- Comments for search results, a creator's notes, or note URLs you paste.
- Creators. A user's notes (newest first) and their profile.
What can I use it for?
- See what people post and say about a product, a brand or a place.
- Find the most-saved or most-liked notes in a niche.
- Read the comments under a note, or under every note a search found.
- Check a creator's recent notes and follower count before working with them.
- Run it on a schedule to collect new notes for a keyword as they come in.
How do I use it?
- Open the actor on Apify and click Try for free. A free Apify account is enough to start.
- Get your RedNote cookie (steps below) and paste it into
cookie. - Add keywords, note URLs or profile URLs. You can mix them in one run.
- Click Start.
- When it finishes, open the Output tab and download JSON, CSV or Excel. Or read the dataset through the API.
Getting your cookie
RedNote requires a login for search, comments and user notes, so this part is required.
- In Chrome, open https://www.rednote.com and log in.
- Press F12, open the Network tab, type
webapiin the filter box, press F5. - Click any request. Under Request Headers, right-click the Cookie value and choose Copy value.
- Paste it into
cookie. It must containa1andweb_session.
Apify stores it encrypted, and it's only sent to RedNote. Use a secondary account if you can. Heavy scraping can get any account rate limited.
Examples
Search, newest first, with some comments:
{"cookie": "a1=...; web_session=...; webId=...","searchKeywords": ["露营装备", "coffee shop tokyo"],"maxNotesPerKeyword": 100,"sort": "latest","maxCommentsPerNote": 20}
A creator's notes and profile:
{ "cookie": "...", "users": ["https://www.rednote.com/user/profile/55767c58c2bdeb795e73735d?xsec_token=..."], "maxNotesPerUser": 100 }
All comments on one note (use the full URL with xsec_token):
{ "cookie": "...", "noteUrls": ["https://www.rednote.com/explore/6a902c00000000000400a8fb?xsec_token=..."], "maxCommentsPerNoteUrl": 500 }
Input
| Field | Default | |
|---|---|---|
accountMode | own | Only option right now: your own cookie |
cookie | Required, see above | |
searchKeywords | Chinese, English or hashtags | |
maxNotesPerKeyword | 40 | 20 per page, max 1,000 |
sort | general | general, latest, popular, comments, collects |
noteType | all | all, image, video |
fetchDetails | true | Full text, time, tags, images, video URL (one extra request per note) |
maxCommentsPerNote | 0 | Comments for search and user notes. 0 = off |
noteUrls | [] | Full note URLs with xsec_token |
maxCommentsPerNoteUrl | 50 | |
users | [] | Profile URLs with xsec_token (rednote.com or xiaohongshu.com) |
includeProfile | true | Add a profile row per user |
maxNotesPerUser | 30 | Newest first |
onlyNew | false | Skip items returned in earlier runs |
requestGapSecs | 1.5 | Seconds between requests |
proxyConfiguration | residential, SG | Keep residential. RedNote blocks datacenter IPs |
What data do I get?
Every row has a type: note, comment or user.
{"type": "note","url": "https://www.rednote.com/explore/6a902c00000000000400a8fb","title": "...","text": "...","noteType": "image","createdAt": "2026-09-18T07:38:24+00:00","likes": 2310, "collects": 845, "comments": 96, "shares": 40,"region": "上海","tags": ["露营"],"images": ["https://..."],"user": { "userId": "55767c58c2bdeb795e73735d", "name": "...", "url": "https://..." },"keyword": "露营装备"}
Notes also have id, updatedAt, cover, videoUrl, sourceUserId. Comments have noteId, replies, topReplies (up to 3). User rows have redId, followers, following, likesAndCollects, notes, description.
Text comes back as posted, mostly Simplified Chinese. Nothing is translated.
Limits
- Note and profile URLs need their
xsec_token. It's in the address bar when you open them in a browser. Notes found by search already carry it. - One residential IP is kept for the run, with 1.5 s between requests. If RedNote rate-limits, it switches IP once and slows down. A second time and the run stops, so it doesn't keep hitting your account. You only pay for what was delivered.
- RedNote sometimes hides a comment's IP location, so
regioncan be empty. - RedNote changes its request signing now and then. If runs suddenly start failing, open an issue and I'll update it.
How much does it cost?
$2.99 per 1,000 items. Notes, comments and profiles each count as one. Residential proxy traffic is included, and there's no separate compute charge. With onlyNew on you only pay for new items.
Some real numbers:
- 100 notes for a keyword, with full details: 100 × $0.00299 = $0.30.
- The same 100 notes with 20 comments each: 100 + 2,000 = 2,100 items = $6.28.
- A creator's profile and 100 notes: 101 items = $0.30.
Apify's free plan gives you $5 of credit a month. That's about 1,670 items here.
FAQ
Why do I need a cookie? RedNote doesn't show search, comments or a user's notes to logged-out visitors. The actor uses your login to see what you'd see in the browser.
Is my account safe? The run keeps one IP, waits 1.5 s between requests, and stops if RedNote rate-limits it twice. That keeps it close to normal browsing, but I can't promise RedNote will never restrict an account. Use a secondary account if you can.
Why did I get so few results?
Check that the cookie still works (log in again and copy a fresh one if not), and that note and profile URLs include xsec_token. With onlyNew on, notes from earlier runs are skipped on purpose.
Why does my note URL fail?
It's probably missing ?xsec_token=.... Copy the whole address from the browser bar, not just the part up to the note ID.
Can I schedule it?
Yes. Save your input as a Task, add a Schedule, and turn on onlyNew so each run only returns new notes and comments.
Other scrapers I made
Found a bug or need a field? Open an issue on the Issues tab.
中文说明
抓小红书关键词搜索(可按最新、最多赞、最多评论、最多收藏排序)、笔记全文和图片视频链接、评论、博主笔记和资料。需要填自己的小红书 cookie(步骤见上),链接要带 xsec_token。每 1,000 条 $2.99,住宅代理已含在内。
Only collects publicly available data. You're responsible for how you use it.