Xiaohongshu (RedNote) user profile

GET https://api.api.sh/xiaohongshu/v1/user
1 credit / call social try it in the playground →

A Xiaohongshu profile: nickname, Red id, bio, avatar, banner, gender, IP location, followers, following, likes-and-collects, post count, likes and collects received, tags, and the latest posts with likes, collects and comment counts. Xiaohongshu only opens a profile with the xsec_token that comes with its link (the site adds it to every link it shows: feeds, share links, the url fields of our responses). Pass the whole link as url, or the id with xsec_token.

Every response includes credits_used: the credits this call cost.

Parameters

nametypedescription
url string A xiaohongshu.com profile link with its xsec_token (user/profile/<id>?xsec_token=...). Example: https://www.xiaohongshu.com/user/profile/55e34cd858944675eb95b706?xsec_token=AB7AqOdnHoTVkdlz_g1V63r0auJqJxW83__3LrOYDVXTw=&xsec_source=pc_feed
user_id string User id (24 hex characters), with xsec_token, instead of url.
xsec_token string The profile's xsec_token (from the link), with user_id.

Every endpoint also takes fresh, raw, fields (see lean responses and caching).

Example

curl "https://api.api.sh/xiaohongshu/v1/user?url=https%3A%2F%2Fwww.xiaohongshu.com%2Fuser%2Fprofile%2F55e34cd858944675eb95b706%3Fxsec_token%3DAB7AqOdnHoTVkdlz_g1V63r0auJqJxW83__3LrOYDVXTw%3D%26xsec_source%3Dpc_feed" \
  -H "x-api-key: $APISH_KEY"

Response

A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).

The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.