Xiaohongshu (RedNote) API
Notes, comments, accounts, trends.
The Xiaohongshu (RedNote) API lets you search notes and read note details, comments, account profiles, an account's notes and the trending list, with no Xiaohongshu account or login. Each call costs 12 credits ($0.024 to $0.04); failed calls are free. Xiaohongshu does not give view counts, so that field is returned as null. Use it over HTTP with an API key, or through MCP from your AI client. Last tested 2026-11-05.
Last tested: Last updated:
/v1/search200 OK12 creditsplatform: "xiaohongshu" · query: "咖啡"nullauthor.followersmetrics.viewsmetrics.repostshashtags+16 actions.
Plus 12 only Xiaohongshu has.
Open a row to see its request. Its full parameters and response fields are on its own page.
SearchFind notes by keyword: text, author, likes, comment count and publish time./v1/search12 credits≈ $0.04
platformquery+1 optionaltype=useraccounts instead of posts12 creditstype=imageimage results12 creditscurl https://api.socialtoai.com/v1/search \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "platform": "xiaohongshu", "query": "咖啡" }'POST /v1/searchYour key goes in the Authorization headerTrendingWhat is trending now: title, rank and heat./v1/trending12 credits≈ $0.04
platform+1 optionalcurl https://api.socialtoai.com/v1/trending \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "platform": "xiaohongshu" }'POST /v1/trendingYour key goes in the Authorization headerDetailOne note by ID or link: text, author, likes, comment count and publish time./v1/detail12 credits≈ $0.04
platformid or urlcurl https://api.socialtoai.com/v1/detail \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "platform": "xiaohongshu", "id": "6ac76250000000000a021233" }'POST /v1/detailYour key goes in the Authorization headerCommentsThe comments under one note: text, likes, reply count and time./v1/comments12 credits≈ $0.04
platformid or urlreply_ofthe replies under one comment12 creditscurl https://api.socialtoai.com/v1/comments \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "platform": "xiaohongshu", "id": "6a9c5884000000002b002d95" }'POST /v1/commentsYour key goes in the Authorization headerUser ProfileOne account: name, bio, followers, following and post count./v1/user_profile12 credits≈ $0.04
platformid or urlcurl https://api.socialtoai.com/v1/user_profile \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "platform": "xiaohongshu", "id": "63bed214000000002702b862" }'POST /v1/user_profileYour key goes in the Authorization headerUser PostsThe recent notes of one account./v1/user_posts12 credits≈ $0.04
platformid or urlcurl https://api.socialtoai.com/v1/user_posts \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "platform": "xiaohongshu", "id": "63bed214000000002702b862" }'POST /v1/user_postsYour key goes in the Authorization headerCompared with Douyin: Xiaohongshu notes do not give author followers or views.
PGY creator searchSearch Xiaohongshu creators on PGY by terms, matched against what they write about.xiaohongshu.kol_search24 credits≈ $0.08
Search Xiaohongshu creators on PGY by terms, matched against what they write about: creator ID, name, handle, location, content categories, followers. The creator ID the other PGY endpoints take comes from here.
querycurl https://api.socialtoai.com/v1/call/xiaohongshu.kol_search \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "query": "咖啡" }'POST /v1/call/xiaohongshu.kol_searchYour key goes in the Authorization headerPGY creator detailGet a Xiaohongshu creator's profile on PGY by creator ID.xiaohongshu.kol_profile24 credits≈ $0.08
Get a Xiaohongshu creator's profile on PGY by creator ID: name, handle, location, content categories, followers.
idcurl https://api.socialtoai.com/v1/call/xiaohongshu.kol_profile \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "id": "5c0017ef6b58b740c92463fb" }'POST /v1/call/xiaohongshu.kol_profileYour key goes in the Authorization headerPGY creator audience profileGet who follows a Xiaohongshu creator, by PGY creator ID.xiaohongshu.kol_audience24 credits≈ $0.08
Get who follows a Xiaohongshu creator, by PGY creator ID: the share of each segment by gender, age, province, city, interest and device, and the day the figures are of.
idcurl https://api.socialtoai.com/v1/call/xiaohongshu.kol_audience \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "id": "5c0017ef6b58b740c92463fb" }'POST /v1/call/xiaohongshu.kol_audienceYour key goes in the Authorization headerPGY creator metricsGet how a Xiaohongshu creator's everyday notes did over the last 30 or 90 days, by PGY creator ID.xiaohongshu.kol_performance24 credits≈ $0.08
Get how a Xiaohongshu creator's everyday notes did over the last 30 or 90 days, by PGY creator ID: notes, median impressions, reads and interactions, engagement and completion ratios, the share of notes past 100 and 1,000 likes, and the standing among comparable creators.
id+1 optionalcurl https://api.socialtoai.com/v1/call/xiaohongshu.kol_performance \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "id": "5c0017ef6b58b740c92463fb" }'POST /v1/call/xiaohongshu.kol_performanceYour key goes in the Authorization headerPGY creator notesGet a page of a Xiaohongshu creator's notes by PGY creator ID, newest first, with the figures PGY gives for each.xiaohongshu.kol_notes24 credits≈ $0.08
Get a page of a Xiaohongshu creator's notes by PGY creator ID, newest first, with the figures PGY gives for each: reads, likes, saves, whether it was sponsored and for which brand.
idcurl https://api.socialtoai.com/v1/call/xiaohongshu.kol_notes \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "id": "5c0017ef6b58b740c92463fb" }'POST /v1/call/xiaohongshu.kol_notesYour key goes in the Authorization headerPGY keyword search indexGet a keyword's day-by-day search index on Xiaohongshu over about the last three months, from the platform's creator marketplace, with each day's notes about the keyword and how often they were shown, read and engaged with.xiaohongshu.keyword_history24 credits≈ $0.08
Get a keyword's day-by-day search index on Xiaohongshu over about the last three months, from the platform's creator marketplace, with each day's notes about the keyword and how often they were shown, read and engaged with. The platform sets the period; it cannot be chosen. The search index is the platform's index, not a count of searches; days are calendar days in China time (UTC+8).
keywordcurl https://api.socialtoai.com/v1/call/xiaohongshu.keyword_history \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "keyword": "面膜" }'POST /v1/call/xiaohongshu.keyword_historyYour key goes in the Authorization headerPGY related keywordsGet what people search on Xiaohongshu before and after a keyword, from the platform's creator marketplace, each with its place by relevance, its search index, the notes about it and their reads.xiaohongshu.keyword_related24 credits≈ $0.08
Get what people search on Xiaohongshu before and after a keyword, from the platform's creator marketplace, each with its place by relevance, its search index, the notes about it and their reads: for expanding a seed keyword. The search index is the platform's index, not a count of searches; for a word the platform gives no figures for, these are null.
keywordcurl https://api.socialtoai.com/v1/call/xiaohongshu.keyword_related \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "keyword": "面膜" }'POST /v1/call/xiaohongshu.keyword_relatedYour key goes in the Authorization headerProduct searchSearch the products of Xiaohongshu's shop by terms.xiaohongshu.product_search12 credits≈ $0.04
Search the products of Xiaohongshu's shop by terms: title, current and original price in yuan, units sold, picture, shop.
querycurl https://api.socialtoai.com/v1/call/xiaohongshu.product_search \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "query": "防晒霜" }'POST /v1/call/xiaohongshu.product_searchYour key goes in the Authorization headerProduct detailGet a product of Xiaohongshu's shop by its ID.xiaohongshu.product_detail12 credits≈ $0.04
Get a product of Xiaohongshu's shop by its ID: title, current and original price in yuan, pictures, rating, reviews, shop.
idcurl https://api.socialtoai.com/v1/call/xiaohongshu.product_detail \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "id": "67bc0378a2e72600153d3ed1" }'POST /v1/call/xiaohongshu.product_detailYour key goes in the Authorization headerProduct reviewsGet the first page of buyers' reviews of a product of Xiaohongshu's shop by the product's ID.xiaohongshu.product_reviews12 credits≈ $0.04
Get the first page of buyers' reviews of a product of Xiaohongshu's shop by the product's ID: text, rating, variant bought, pictures, likes.
idcurl https://api.socialtoai.com/v1/call/xiaohongshu.product_reviews \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "id": "67bc0378a2e72600153d3ed1" }'POST /v1/call/xiaohongshu.product_reviewsYour key goes in the Authorization headerTopic notesGet the trending notes under a Xiaohongshu topic by its page ID.xiaohongshu.topic_notes12 credits≈ $0.04
Get the trending notes under a Xiaohongshu topic by its page ID: title, text, author, engagement counts, images, hashtags.
idcurl https://api.socialtoai.com/v1/call/xiaohongshu.topic_notes \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "id": "5eb2e2ffbd997100014327bc" }'POST /v1/call/xiaohongshu.topic_notesYour key goes in the Authorization headerTopic detailGet one Xiaohongshu topic by its page ID.xiaohongshu.topic12 credits≈ $0.04
Get one Xiaohongshu topic by its page ID: name, description, views, the discussion count the page shows, share link.
idcurl https://api.socialtoai.com/v1/call/xiaohongshu.topic \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "id": "5eb2e2ffbd997100014327bc" }'POST /v1/call/xiaohongshu.topicYour key goes in the Authorization headerWhat a whole job costs.
| The job | How it adds up | Credits | About |
|---|---|---|---|
| Search 1,000 results on RedNote | usually 20 a page, 50 pages | 600 credits | about $2.00 |
| Read 1,000 RedNote comments | usually 10 a page, 100 pages | 1,200 credits | about $4.00 |
| Backfill one RedNote account: a list of 200 notes and 20 in full | 10 list pages + 20 full reads | 360 credits | about $1.20 |
| Watch 1 RedNote account daily, at most a month | 30 credits × 31 days | 930 credits | about $3.10 |
Priced at the $10 pack; larger purchases bring it down. A watch runs only while it is on, and you can pause it at any time. There is no subscription.
Or skip the parameters.
Just ask.
Connect SocialToAI once over MCP. Your AI picks the calls, and you see what each one cost.
Which is bigger on Xiaohongshu this week: home coffee or matcha?
- search“home coffee”12 credits
- search“matcha”12 credits
Read the comments on this Xiaohongshu note and tell me what people complain about.
- detailthe note you pasted12 credits
- commentsfirst 3 pages36 credits
Find five Xiaohongshu accounts that post about camping coffee and show me what they posted lately.
- searchaccounts · “camping coffee”12 credits
- user_posts5 accounts60 credits
Same shape on every platform.
Learn it once.
A Xiaohongshu note and a TikTok video come back with the same field names. What a platform cannot give comes back as null.
{ "platform": "xiaohongshu", "id": "…", "ref": "…", "approx": [], "type": "content", "url": "https://example.com/…", "format": "image", "title": "…", "text": "…", "published_at": "2026-10-09T01:00:34.000Z", "author": { "id": "…", "username": "…", "name": "…", "verified": null, "followers": null }, "metrics": { "likes": 927, "comments": 122, "shares": 256, "collects": 59, "views": null, "reposts": null }, "images": ["https://example.com/…", "https://example.com/…"], "hashtags": ["…", "…"], "is_pinned": false}author.verifiedauthor.followersmetrics.viewsmetrics.reposts{ "platform": "tiktok", "id": "…", "ref": "…", "approx": [], "type": "content", "url": "https://example.com/…", "format": "video", "title": null, "text": "…", "published_at": "2026-10-08T13:12:22.000Z", "author": { "id": "…", "username": "…", "name": "…", "verified": null, "followers": 2060936 }, "metrics": { "likes": 67877, "comments": 524, "shares": 2472, "collects": 5331, "views": 449259, "reposts": null }, "images": null, "hashtags": [], "is_pinned": null}titleauthor.verifiedmetrics.repostsimagesis_pinned7 tools read Xiaohongshu.
All toolsDoes Xiaohongshu have an official API?
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 developer documentation, checked 2026-10-17.
| Who can use it | Cost | Limits | Source | |
|---|---|---|---|---|
| Xiaohongshu open platform login | Apps that pass Xiaohongshu's review. | The page states no price. | Reads the basic profile (nickname, avatar) of users who authorise the app; no API for public notes or comments is documented. | openaccount.xiaohongshu.com, checked 2026-10-17 |
| SocialToAI | Anyone with a key; no Xiaohongshu account of yours and no review. | From 12 credits a call (≈$0.04); failed calls are free. | Publicly visible content only; up to 30 items a call. | Pricing |
1,000 notes here: about 50 xiaohongshu.search calls (typically 20 a page), 600 credits, $2.00 at the first pack. Estimate your cost
- Comments API, every platformWhich platforms give comments, how many a page, at what price.
- Creator data API, every platformFinding creators and reading their data, platform by platform.
- How to let ChatGPT read Xiaohongshu (RedNote)connect ChatGPT to Xiaohongshu notes and comments
- Let Claude Code and Cursor read Xiaohongshu and Douyin, with no QR code or cookieconnect Claude Code and Cursor to Xiaohongshu and Douyin with no QR code or cookie, and what a self-run server costs you
- How brands outside China monitor Xiaohongshu (RedNote), Douyin and Weibo with AImonitor Xiaohongshu, Douyin and Weibo from outside China with AI, in English, with original links
- How to analyze video comments with AI, and keep the original wordswhat comments say, with original words: the tool or your AI, price per platform, a recorded answer
- How to get the numbers for hundreds of post links at oncethe numbers of hundreds of links in one job: prices per platform, what the free credits run, and what it stops for
- How to find creators on Xiaohongshu PGY and Douyin XingtuPGY and Xingtu by interface: how each search matches, the IDs they take, what a shortlist costs
- Can collecting Xiaohongshu data get your account banned?whose account is at stake, what Xiaohongshu's own files say, and a way that uses no account of yours
- Monitor Xiaohongshu (RedNote) accounts every daya Xiaohongshu account or keyword, daily, 12 credits a run; why notes link to the profile
- Monitor competitors' accounts every daycompetitors' accounts, daily: what is new and what beat their usual, from 9 credits an account
- Monitor brand mentions every day, with the posts behind thema brand, daily, across platforms: attitudes and the posts behind them, from 16 credits a run
- Can Claude read Xiaohongshu (RedNote)?what Claude can and cannot read on Xiaohongshu (RedNote), with sources and a real request
- Can ChatGPT read Xiaohongshu (RedNote)?what ChatGPT can and cannot read on Xiaohongshu (RedNote), with sources and a real request
- Can Doubao read Xiaohongshu, Douyin and WeChat articles?the Doubao app and Doubao's models on Volcano Ark: what can reach these platforms, with sources
- What is a Xiaohongshu note ID, and where do I find it?where the ID is in a link, what its first 8 characters mean, why it needs a token, tested
- Xiaohongshu (RedNote) trending todayToday's board in one list, refreshed daily.
- Xiaohongshu (RedNote) MCP serverLet your AI read Xiaohongshu.