Top-level comments of a RedNote (Xiaohongshu) note with author, likes, reply counts and timestamps, cursor paged.
13 credits/ call
Never more than 126 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/rednote.note_comments" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"noteId":"69e71b110000000022029e5e"}'{
"output": {
"found": true,
"data": {
"total": "<integer | null>",
"hasMore": "<boolean>",
"nextCursor": "<string | null>",
"comments": [
{
"nickname": "<string | null>",
"likeCount": "<integer | null>",
"replyCount": "<integer | null>",
"text": "<string | null>", …
}
]
}
},
"credits": 13
}Input and output
3 fields
69e71b110000000022029e5e.4 fields
cursor for the next page; null at the endGood to know
Unknown note ID? It comes back as not found, not as an error.
Terms of use. Scraped from RedNote (Xiaohongshu), whose terms forbid scraping; payloads contain personal data of PRC users (PIPL) and can change without notice. Public, logged-out data only; use for lawful purposes and honour deletion requests.
More from RedNote. Same key, same credits.
The same key and credits work for every API.