PeumeAPI

Social media data · Xiaohongshu

Xiaohongshu Comments

Pull top-level comments on a Xiaohongshu note, 15 per page.

$0.0083 per call

Call it

curl https://api.peume.com/v1/call/xiaohongshu-comments \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "url": "your url"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: xiaohongshu-comments.

Parameters

page_tokenstring

Pagination cursor for the comments, sub_comments, search, user_posts, search_users and hashtag actions: pass back the next_page_token value from a row of the previous response to fetch the next page; omit it to start from the first page.

sortstring

Comment order: default follows the platform's own order (the same as omitting it), newest puts the latest comments first, and most_liked puts the most-liked first. Keep the same value while paging; with a different value, the previous next_page_token no longer applies. default is the platform's recommended order and is re-ranked on every request, so when rankings shift, paging skips or repeats some comments; newest orders by time and pages consistently, though for some notes the platform returns only the most recent part. A page without next_page_token only means the platform reported no next

default · most_liked · newest

urlRequiredstring

Specifies the full Xiaohongshu note URL, formatted as /explore/<note_id> or /discovery/item/<note_id>. Use recent search URLs that retain query parameters like xsec_token. The sub_comments action requires both this url and a valid comment_id.

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.