SocialToAIStart freeConsole

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.

6 of 6actions available
From 12 creditsper call
Same formatas every other call

Last tested: Last updated:

POST/v1/search200 OK12 credits
platform: "xiaohongshu" · query: "咖啡"
@…·
likes 48comments 21shares 5collects 10views null
Always null here:author.followersmetrics.viewsmetrics.repostshashtags+1
pageNext pagecursor
billingThis call12 credits
Sample data1 of the 15 items recorded

6 actions.
Plus 12 only Xiaohongshu has.

Open a row to see its request. Its full parameters and response fields are on its own page.

ActionsCredits per call
SearchFind notes by keyword: text, author, likes, comment count and publish time./v1/search12 credits≈ $0.04
You send
platformquery+1 optional
type=useraccounts instead of posts12 credits
type=imageimage results12 credits
Xiaohongshu (RedNote) Search API: All parameters and response fields
Sign in to run12 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl 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 header
TrendingWhat is trending now: title, rank and heat./v1/trending12 credits≈ $0.04
You send
platform+1 optional
Xiaohongshu (RedNote) Trending API: All parameters and response fields
Sign in to run12 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl 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 header
DetailOne note by ID or link: text, author, likes, comment count and publish time./v1/detail12 credits≈ $0.04
You send
platformid or url
Xiaohongshu (RedNote) Detail API: All parameters and response fields
Sign in to run12 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl 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 header
CommentsThe comments under one note: text, likes, reply count and time./v1/comments12 credits≈ $0.04
You send
platformid or url
reply_ofthe replies under one comment12 credits
Xiaohongshu (RedNote) Comments API: All parameters and response fields
Sign in to run12 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl 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 header
User ProfileOne account: name, bio, followers, following and post count./v1/user_profile12 credits≈ $0.04
You send
platformid or url
Xiaohongshu (RedNote) User Profile API: All parameters and response fields
Sign in to run12 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl 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 header
User PostsThe recent notes of one account./v1/user_posts12 credits≈ $0.04
You send
platformid or url
Xiaohongshu (RedNote) User Posts API: All parameters and response fields
Sign in to run12 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl 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 header

Compared with Douyin: Xiaohongshu notes do not give author followers or views.

Only on Xiaohongshu · CreatorsCredits per call
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.

query
Xiaohongshu (RedNote) KOL search API (Pugongying): All parameters and response fields
Sign in to run24 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl 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 header
PGY 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.

id
Xiaohongshu (RedNote) KOL detail API (Pugongying): All parameters and response fields
Sign in to run24 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl 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 header
PGY 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.

id
Xiaohongshu (RedNote) KOL audience profile API (Pugongying): All parameters and response fields
Sign in to run24 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl 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 header
PGY 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 optional
Xiaohongshu (RedNote) KOL metrics API (Pugongying): All parameters and response fields
Sign in to run24 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl 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 header
PGY 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.

id
Xiaohongshu (RedNote) KOL notes API (Pugongying): All parameters and response fields
Sign in to run24 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl 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 header
Only on Xiaohongshu · Keywords and indexesCredits per call
PGY 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).

keyword
Xiaohongshu (RedNote) Pugongying keyword search index API: All parameters and response fields
Sign in to run24 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl 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 header
PGY 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.

keyword
Xiaohongshu (RedNote) Pugongying related keywords API: All parameters and response fields
Sign in to run24 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl 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 header
Only on Xiaohongshu · CommerceCredits per call
Product 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.

query
Xiaohongshu (RedNote) product search API: All parameters and response fields
Sign in to run12 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl 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 header
Product 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.

id
Xiaohongshu (RedNote) product detail API: All parameters and response fields
Sign in to run12 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl 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 header
Product 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.

id
Xiaohongshu (RedNote) product reviews API: All parameters and response fields
Sign in to run12 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl 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 header
Only on Xiaohongshu · Content and accountsCredits per call
Topic 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.

id
Xiaohongshu (RedNote) topic notes API: All parameters and response fields
Sign in to run12 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl 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 header
Topic 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.

id
Xiaohongshu (RedNote) topic detail API: All parameters and response fields
Sign in to run12 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl 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 header

What a whole job costs.

The jobHow it adds upCreditsAbout
Search 1,000 results on RedNoteusually 20 a page, 50 pages600 creditsabout $2.00
Read 1,000 RedNote commentsusually 10 a page, 100 pages1,200 creditsabout $4.00
Backfill one RedNote account: a list of 200 notes and 20 in full10 list pages + 20 full reads360 creditsabout $1.20
Watch 1 RedNote account daily, at most a month30 credits × 31 days930 creditsabout $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.

You ask01

Which is bigger on Xiaohongshu this week: home coffee or matcha?

Your AI calls
  • search“home coffee”12 credits
  • search“matcha”12 credits
Total24 credits
You ask02

Read the comments on this Xiaohongshu note and tell me what people complain about.

Your AI calls
  • detailthe note you pasted12 credits
  • commentsfirst 3 pages36 credits
Total48 credits
You ask03

Find five Xiaohongshu accounts that post about camping coffee and show me what they posted lately.

Your AI calls
  • searchaccounts · “camping coffee”12 credits
  • user_posts5 accounts60 credits
Total72 credits

Xiaohongshu (RedNote) MCP Server

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.

Xiaohongshudetail · 12 credits
{  "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}
Null on Xiaohongshu:author.verifiedauthor.followersmetrics.viewsmetrics.reposts
TikTokdetail · 2 credits
{  "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}
Null on TikTok:titleauthor.verifiedmetrics.repostsimagesis_pinned
Sample dataThe fields are always there; only the values differ.

7 tools read Xiaohongshu.

All tools

Does 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 itCostLimitsSource
Xiaohongshu open platform loginApps 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
SocialToAIAnyone 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

Xiaohongshu official API: access, prices and limits

The same calls work on 17 more.

All platforms and prices

Your AI is one URL away
from all of social media.

100 credits on sign-up, no card needed