# How do I export Xiaohongshu (RedNote) data?

Take it page by page with OneFeedAPI's Xiaohongshu endpoints: note search and details, a creator's notes, comments and replies, and PGY creator data all come back in one JSON shape. Without code, the command line writes results to a file, and Skills turn comments and keyword searches straight into a CSV table. OneFeedAPI reads Xiaohongshu (RedNote) with 33 endpoints, from $0.0200 a call; a failed call is not charged, and the free trial covers up to 333 calls.

## What you can export

Notes found by keyword, a note's whole text, hashtags and images, a creator's notes, the comments and replies under a note, Xiaohongshu's trending list, PGY creators' rates, performance and audiences, and products with their reviews. All of it is publicly visible data; you never sign in to Xiaohongshu.

## Three ways to export

**In code**: each call returns one page, with the list in `data.items`; pass `page.next_cursor` back as `cursor` for the next page, within the hour the cursor is good for. Every page is a call charged on its own.

**On the command line**: `onefeedapi call` with `--pages` walks several pages, `--max-spend` caps the cost, and `--out` writes the result to a JSON file. **With a Skill**: `onefeedapi run comments` takes a note's comments and `onefeedapi run mentions` searches a page of notes by keyword; `--out` writes either as a CSV.

## Before you export

The text in search results is the excerpt on the card, not the whole note: get the whole text from the note endpoint by ID. A note ID is 24 hexadecimal characters; the note endpoint also takes a long web link, but not short links or share texts.

Search results come with each note's text, author and counts.

## Why OneFeedAPI

- Steady: endpoints were available 100% of the last 30 days, on a public status page you can check.
- Fast: a paid call took 1.3 seconds at the median over the last 7 days (counted 2026-11-06).
- Fewer tokens: across 21 endpoints on Xiaohongshu (RedNote), one recorded real response each, the platform's own JSON comes to 480k tokens and what an AI reads through OneFeedAPI's MCP server to 36k, 92% fewer; the JSON of a direct API call is 85% fewer too (counted 2026-11-06). Every platform answers in one shape: the author in `author`, counts in `metrics`, the next page in `page.next_cursor`, so another platform needs no new parser.
- See before you pay: every endpoint's page shows a recorded real response, field by field.
- Spending you control: a failed call is not charged; each key can have a limit, `X-Max-Price` caps one call, and the same `Idempotency-Key` within 24 hours is never charged twice.
- Ready for AI: a remote MCP server listed in the official MCP registry as `com.onefeedapi/mcp`, usable from Claude, Cursor and ChatGPT.
- Free trial of up to 333 calls, no card.

## Endpoints

- [Xiaohongshu note search](https://onefeedapi.com/apis/xiaohongshu/notes/search/) ($0.0200 / a call): Search Xiaohongshu notes by terms: title, text, author, engagement counts, images, and a link that opens. Each says whether it is a brand partnership note on record. By relevance, newest, most liked, most commented or most saved; video or image notes only; published in the last day, week or half year.
- [Xiaohongshu note detail](https://onefeedapi.com/apis/xiaohongshu/notes/get/) ($0.0200 / a call): Get one Xiaohongshu note by ID or link: title, text, author, engagement counts, images. It also says whether it is a brand partnership note on record.
- [Xiaohongshu note comments](https://onefeedapi.com/apis/xiaohongshu/notes/comments/list/) ($0.0200 / a call): Get a page of top-level comments on a Xiaohongshu note by ID or link, newest first or hottest first: text, commenter, likes, reply count, time posted.
- [Xiaohongshu user notes](https://onefeedapi.com/apis/xiaohongshu/users/notes/list/) ($0.0200 / a call): Get a page of the notes a Xiaohongshu account posted, by user ID or profile link: title, text, engagement counts, images, whether pinned.
- [Xiaohongshu PGY creator search](https://onefeedapi.com/apis/xiaohongshu/pgy/creators/search/) ($0.0400 / a call): Find Xiaohongshu creators on PGY by search terms, by the filters of PGY's creator square, or both: followers, the price of a sponsored note, estimated CPM, median reads and interactions of everyday and sponsored notes, image or video creators, content category, content feature, persona, where they are, gender, followers' gender and age, industry worked with lately; leaving out the inactive and those losing followers; ordered by followers, price, reads, interactions, shop visits, cost per read, invitations answered, growth, completion and more. Each with creator ID, name, handle, location, content categories and followers, and in the full view prices and medians. A search goes as far as its first 5,000 creators. The creator ID the other PGY endpoints take comes from here.

## How-to guides

- [How to search and export Xiaohongshu (RedNote) notes by keyword](https://onefeedapi.com/guides/xiaohongshu-search-export-notes/)
- [How to get Xiaohongshu (RedNote) note comments in bulk](https://onefeedapi.com/guides/xiaohongshu-note-comments/)
- [How to look up Xiaohongshu (RedNote) PGY creator rates and audience](https://onefeedapi.com/guides/xiaohongshu-pgy-creator-rates/)

## More about Xiaohongshu (RedNote)

- [Xiaohongshu (RedNote) API](https://onefeedapi.com/apis/xiaohongshu/)
- [Xiaohongshu PGY API](https://onefeedapi.com/apis/xiaohongshu/pgy/)
- [Can ChatGPT read Xiaohongshu (RedNote)?](https://onefeedapi.com/answers/can-chatgpt-read-xiaohongshu/)
- [What is xsec_token on Xiaohongshu?](https://onefeedapi.com/answers/xiaohongshu-xsec-token/)
- [What is a Xiaohongshu note ID, and what is an xhslink link?](https://onefeedapi.com/answers/xiaohongshu-note-id-and-xhslink/)
- [What is CPE on Xiaohongshu PGY and on Douyin Xingtu?](https://onefeedapi.com/answers/xiaohongshu-pgy-cpe-vs-xingtu-cpe/)
- [What is Xiaohongshu PGY?](https://onefeedapi.com/answers/what-is-xiaohongshu-pgy/)
- [Xiaohongshu video API: the video file and its subtitles (2026)](https://onefeedapi.com/answers/xiaohongshu-video-url-subtitles-api/)
- [How do I collect hit topic ideas on Xiaohongshu in bulk? (2026)](https://onefeedapi.com/answers/xiaohongshu-hit-topic-ideas/)
- [Which Xiaohongshu data API? The official platform, third-party APIs or your own scraper (2026)](https://onefeedapi.com/answers/best-xiaohongshu-data-api/)
- [How to get a keyword's search index and related keywords on Xiaohongshu PGY](https://onefeedapi.com/guides/xiaohongshu-pgy-keywords/)
- [Does Xiaohongshu (RedNote) have an API? Get notes and comments with Python (2026)](https://onefeedapi.com/guides/xiaohongshu-api-python/)
- [Social media data MCP servers: reading data, not posting](https://onefeedapi.com/compare/social-media-data-mcp-servers/)
- [Your own scraper or a data API? Cost, upkeep and account risk (2026)](https://onefeedapi.com/compare/scraper-vs-data-api/)

---

Catalog revision dc959672dd18e2d0. [HTML version](https://onefeedapi.com/answers/export-xiaohongshu-data/)
