# What is xsec_token on Xiaohongshu?

xsec_token is an access token Xiaohongshu (RedNote) puts on note and profile links, usually beside xsec_source. With OneFeedAPI you do not handle it: the note endpoints take the bare note ID, and every search result's url already carries its token. 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 it is and where you see it

It is a query parameter on a note's web link and on a profile link: `https://www.xiaohongshu.com/explore/0123456789abcdef01234567?xsec_token=ABx1y2z3&xsec_source=pc_search` (a made-up example). The 24 characters in the path are the note ID; the token and `xsec_source` follow it.

Xiaohongshu has published nothing on what the token is for. As public open-source tools describe it, a note link should carry it, and it is a token that comes with search results; one such project's issue reports a note that failed to load with the message 访问链接异常 (abnormal access link).

## What OneFeedAPI does with it

`xiaohongshu.notes.search` writes each result's `url` the way the app shares a note, `/discovery/item/<id>` with its `xsec_token`, so the link opens for a person. OneFeedAPI has recorded a token on every result of a page.

The note, comment and profile endpoints take the 24-character ID as `id`, or a link pasted as it is as `url`, with or without the token: the ID is read from the link's path, and the token says nothing about which note it is.

## 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 profile](https://onefeedapi.com/apis/xiaohongshu/users/get/) ($0.0200 / a call): Get a Xiaohongshu account by user ID or profile link: name, handle, bio, follower, following and note counts, verification, and the gender and region its profile shows.

## How-to guides

- [How to search and export Xiaohongshu (RedNote) notes by keyword](https://onefeedapi.com/guides/xiaohongshu-search-export-notes/)

## Sources

What this page says of other services is from their own pages and documents, read on 2026-10-29.

- MediaCrawler (open-source project): Xiaohongshu settings
- MediaCrawler (open-source project): note detail request
- MediaCrawler (open-source project): issue 382

## More about Xiaohongshu (RedNote)

- [Xiaohongshu (RedNote) API](https://onefeedapi.com/apis/xiaohongshu/)
- [How do I export Xiaohongshu (RedNote) data?](https://onefeedapi.com/answers/export-xiaohongshu-data/)
- [Can ChatGPT read Xiaohongshu (RedNote)?](https://onefeedapi.com/answers/can-chatgpt-read-xiaohongshu/)
- [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 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/)
- [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/xiaohongshu-xsec-token/)
