GET /v1/xiaohongshu/user_profile

Xiaohongshu profile API: RED creator followers and bio by user ID

Returns a creator's page: name, bio, avatar, follower and following counts, and under extra the red id, IP location, gender, professions, likes and collects, and the note cards on the grid. Send user_id as the bare 24-character hex user id, never a Xiaohongshu URL. Rounded counts are named in extra.approximate_metrics.

Price
$0.0005 per call
Batch
Yes, through /v1/batch
Failed calls
Not charged

Example request

curl
curl 'https://api.virev.ai/v1/xiaohongshu/user_profile?user_id=616426120000000002022987' \
  -H "Authorization: Bearer $VIREV_API_KEY"
python
import os
import requests

response = requests.request(
    "GET",
    "https://api.virev.ai/v1/xiaohongshu/user_profile",
    params={
        "user_id": "616426120000000002022987",
    },
    headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
    timeout=60,
)
response.raise_for_status()
print(response.json())

Parameters

NameInTypeDescription
user_id requiredquerystringA creator's bare lowercase 24-hex user id. Never submit a Xiaohongshu URL: a copied URL can carry a private xsec_token. Example 616426120000000002022987.
cached queryauto | cache_only | liveauto (default) serves a read saved within the last 24 hours for these exact arguments, otherwise fetches. cache_only never contacts Xiaohongshu (404 not_cached when nothing is saved, whatever its age). live always fetches. Anything else is a 400. Default auto.
get_raw querybooleanNot available on this operation: the upstream document is an HTML page, and true answers 400. The default false returns the normalized type. Default false.

Example response

The example response of the API reference, with lists cut to their first 3 items and long text shortened.

json
{
  "data": {
    "id": "616426120000000002022987",
    "username": "4233446044",
    "full_name": "华子爆笑社",
    "biography": "开心万岁!",
    "followers": 10000,
    "following": 7,
    "posts": null,
    "is_verified": null,
    "is_private": null,
    "avatar_url": "https://sns-avatar-qc.rednotecdn.com/avatar/1040g2jo3216akv1rna005ob44o90kac77ch4keo?imageView2/2/w/540/format/webp",
    "external_url": null,
    "links": [],
    "category": null,
    "business_category": null,
    "is_business": null,
    "is_professional": null,
    "business_email": null,
    "business_phone": null,
    "business_address": null,
    "pronouns": [],
    "highlight_reel_count": null,
    "has_clips": null,
    "is_recently_joined": null,
    "fbid": null,
    "extra": {
      "red_id": "4233446044",
      "ip_location": "浙江",
      "gender": null,
      "professions": [],
      "tags": {},
      "likes_and_collects": 10000,
      "approximate_metrics": [
        "followers",
        "likes_and_collects"
      ],
      "notes": [
        {
          "title": "误拧油门的瞬间,停车记得拔掉钥匙,不然一不小心就飞出去了!骑行 电瓶车 倒霉瞬间",
          "likes": 183,
          "likes_approximate": false,
          "note_type": "video",
          "cover_url": "https://sns-web-i10.rednotecdn.com/202611082000/7677bcd37018005ded53b86e080aac23/1040g2sg32790gjdon8e05ob44o90kac75548rno!nc_n_nwebp_mw_1",
          "cover_width": 1080,
          "cover_height": 1440,
          "note_id": null
        },
        {
          "title": "让男人崩溃的双十一来了,看看女人的购买力到底有多强!双十一 购物 快递",
          "likes": 66,
          "likes_approximate": false,
          "note_type": "video",
          "cover_url": "https://sns-web-i10.rednotecdn.com/202611082000/f174d4e7676b3491728ed87a21046e3f/1040g2sg3277n8k6l76e05ob44o90kac702nsnp8!nc_n_nwebp_mw_1",
          "cover_width": 1080,
          "cover_height": 1080,
          "note_id": null
        },
        {
          "title": "那些女生骑车的失误倒霉瞬间,这车咱要不还是不骑了吧搞笑 骑行 倒霉蛋",
          "likes": 584,
          "likes_approximate": false,
          "note_type": "video",
          "cover_url": "https://sns-web-i10.rednotecdn.com/202611082000/6e1a4a2440c906d3f73e1bb7a0cf5595/1040g00832750c9pb7g005ob44o90kac7uq7rl40!nc_n_nwebp_mw_1",
          "cover_width": 1080,
          "cover_height": 1440,
          "note_id": null
        }
      ]
    }
  },
  "meta": {
    "source": "db",
    "fetched_at": "2026-11-08T12:00:29.194916+00:00",
    "cost": "$0.0005",
    "balance": "$423.7939",
    "request_id": "req_cf5174aa65155910716ffe53774ee2ef"
  }
}

How it works

A creator's page: name, bio, avatar, follower and following counts. extra carries red_id, ip_location, gender, professions, likes_and_collects and the grid's note cards, which Xiaohongshu serves without note ids. Rounded counts are named in extra.approximate_metrics. Returns Profile under data.

A field Xiaohongshu does not carry is null, a list it does not carry is [], and Xiaohongshu-only facts sit under extra. Unknown, unsupported, and repeated query parameters return 400 before acquisition or billing.

Errors

StatusWhen
400The request parameters are invalid.
401Missing, malformed, or revoked API key.
402Balance is too low for this request.
404cached=cache_only found nothing saved for these arguments (not_cached; call again with cached=auto to fetch it), or the Xiaohongshu account or item does not exist (not_found). You are not charged.
429Over the per-minute limit. The limit belongs to your organization and all its API keys share it: 100 requests per minute unless an increase was granted. Wait for the Retry-After seconds, then retry. On a live read, code rate_limited means the platform itself rate-limited this read; retry after the Retry-After seconds. You are not charged.
502The upstream fetch failed. You are not charged.
503Billing could not be confirmed, so no upstream data was returned.
504The upstream request timed out. You are not charged.