Does Xiaohongshu (RedNote) have an API?
Not for public content: Xiaohongshu's open platform offers login only, and documents no API for reading public notes or comments. SocialToAI reads its publicly visible notes, comments, accounts and trends without a Xiaohongshu developer account: 14 interfaces from 12 credits a call (≈ $0.024–$0.04), and failed calls are free. Official facts checked 2026-10-17.
The short answer
Not for public content: Xiaohongshu's open platform offers login only, and documents no API for reading public notes or comments.
What the official API allows
Xiaohongshu's open platform currently offers login only: after the app passes review, it can read the basic profile (nickname, avatar) of users who authorise it. No API for reading public notes or comments is documented.
Source: Xiaohongshu's own developer documentation, checked 2026-10-17. What a platform allows changes; its own pages are the authority.
Reading Xiaohongshu's public data with SocialToAI
SocialToAI is an API and MCP server for publicly visible content and account information. You need no Xiaohongshu account and no app review: one SocialToAI key, or signing in from Claude, ChatGPT, Claude Code, Cursor and Codex. Each call costs a fixed number of credits, and a failed call costs nothing.
| Interface | What it returns | Price key | Credits |
|---|---|---|---|
| Search | Find notes by keyword: text, author, likes, comment count and publish time. | xiaohongshu.search | 12 |
| Search · type=user | Find accounts by keyword: name. | xiaohongshu.search:user | 12 |
| Search · type=image | Find notes by keyword: text, author, likes and comment count. | xiaohongshu.search:image | 12 |
| Trending | What is trending now: title, rank and heat. | xiaohongshu.trending | 12 |
| Detail | One note by ID or link: text, author, likes, comment count and publish time. | xiaohongshu.detail | 12 |
| Comments | The comments under one note: text, likes, reply count and time. | xiaohongshu.comments | 12 |
| Comments · reply_of | The comments under one note: text, likes and time. | xiaohongshu.comments:replies | 12 |
| User Profile | One account: name, bio, followers, following and post count. | xiaohongshu.user_profile | 12 |
| User Posts | The recent notes of one account. | xiaohongshu.user_posts | 12 |
| Product search | Search the products of Xiaohongshu's shop by terms. | xiaohongshu.product_search | 12 |
| Product detail | Get a product of Xiaohongshu's shop by its ID. | xiaohongshu.product_detail | 12 |
| Product reviews | Get the first page of buyers' reviews of a product of Xiaohongshu's shop by the product's ID. | xiaohongshu.product_reviews | 12 |
2 more on the Xiaohongshu (RedNote) API page.
curl https://api.socialtoai.com/v1/search \ -H "Authorization: Bearer $SOCIALTOAI_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "platform": "xiaohongshu", "query": "咖啡" }'- No Xiaohongshu account, cookie or developer approval on your side.
- What comes back is what the platform shows publicly; commenters are anonymised.
- Every platform answers in the same response format, so the same code reads Xiaohongshu and the others.
- Prepaid credits from 12 credits a call; 100 free credits on sign-up, no card.
Sources
- Xiaohongshu: openaccount.xiaohongshu.com, checked 2026-10-17
- Xiaohongshu (RedNote) API on SocialToAI: every call and its credits, last tested 2026-10-17
- The live catalog: what is offered now and its credits, readable without a key
Last updated: