Xiaohongshu note comments
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.
Price: $0.02 per call.
Give exactly one of id, url.
Links taken by url: long (https://www.xiaohongshu.com/explore/6a9c5884000000002b002d95?xsec_token=ABx1y2z3); share_text (周末咖啡探店合集 https://www.xiaohongshu.com/discovery/item/6a9c5884000000002b002d95?xsec_token=ABx1y2z3 复制这段文字,打开小红书查看).
10 items on a usual page, 20 at most. A cursor is valid for 3600 seconds.
With id, sort=latest: may lack ext.ip_location.
With id, sort=popular: may lack ext.ip_location.
With url, sort=latest: may lack ext.ip_location.
With url, sort=popular: may lack ext.ip_location.
Request
- Base URLhttps://api.dataxapi.com
- AuthHTTP bearer
Query parameters
Note ID, 24 hexadecimal characters. With only a link or a share text, give it as url
Link to the note, pasted as it is: the https://www.xiaohongshu.com/explore/… address from the browser, the https://www.xiaohongshu.com/discovery/item/… link the website shares (query parameters such as xsec_token are fine), a whole share text with such a link in it, or the xhslink.com short link the app copies (alone or in its share text). A short link is opened once to see which note it leads to; where it cannot be, paste the note's full link or its ID
Newest first (the default), or hottest first (most liked first)
The next_cursor of the previous page. A new page is a new call.
How much of each item: compact (the most used fields, long text cut short), standard, or full (adds ext).
Return only these fields of each item, by path (author.name).
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.