How to get a Xiaohongshu note's top comments, by likes, with IP locations (2026)
1 call a page: xiaohongshu.notes.comments.list with the note's ID or link and sort=popular puts the most liked comments first, at $0.0200 a page, each with text, commenter, likes, replies and time; the full view adds the commenter's IP location. DataXAPI reads Xiaohongshu (RedNote) with 30 endpoints, from $0.0200 a call; a failed call is not charged, and the free trial covers up to 333 calls.
id is the 24 characters after explore/ in the note's link; with a link or shared text, pass it as url, xhslink.com short links included. sort is latest by default; popular for top comments. The IP location is ext.ip_location, in the full view (view=full), with the province written in English letters (the app shows it in Chinese).
The replies under a top comment come from xiaohongshu.comments.replies.list with the comment's id and the note's post_id, at $0.0200 a page.
How many calls for 20 notes?
The first page of top comments of each (about 10, at most 20) is 20 calls at $0.0200; for every comment keep paging, each page charged on its own. A failed call is not charged.
How do I use it from an AI?
Once connected, say “for these 20 Xiaohongshu notes (links), take the 20 most liked comments of each, count the commenters by province and sum up the three things people care about most”.
To connect: paste this to your AI assistant: “Read https://dataxapi.com/agents.md and set up DataXAPI here. My API key is dx_…; use it for every DataXAPI call.” A client that takes a remote MCP server can be given https://api.dataxapi.com/mcp with the header Authorization: Bearer <key> instead.
Why DataXAPI
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 DataXAPI'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.dataxapi/mcp, usable from Claude, Cursor and ChatGPT.
Free trial of up to 333 calls, no card.
Endpoints
Each with its price; every page has the parameters, the fields and a recorded response.