Xiaohongshu Details API

POST

API health

24h health
100%
24h average time
2.65 s
  • Healthy / normal
  • Available
  • Limited
  • Mostly down
Healthy

Look up a Xiaohongshu account's nickname, Xiaohongshu ID, bio, IP location, verification and exact follower, following, post, like and save counts. Pass the ID from a /user/profile/ link, the link itself or a commenter's author_id; counts that are not shown come back null, not zero.

Xiaohongshu Details reads one account's profile, given its user_id: nickname, Xiaohongshu ID, bio, avatar, gender, IP location, verification, follower and following counts, post count, and the likes and saves its notes have received. It tells brand teams, agencies and researchers how large and how engaged an account is before they shortlist a creator, sign a partnership or add the account to a tracking list.

Pass the ID that follows /user/profile/ in a profile link, the link itself, or a commenter's author ID from Xiaohongshu Comments results. follower_count is exact here, unlike the rounded figures in User search, and counts come back null rather than zero when they are not public. ip_location is the province or country the platform attaches to the account, not something the owner fills in, and real_name_info appears only when the profile shows real-name details.

Price $5.56 per 1,000 requests ($0.005556 per call). Failed calls and empty results are not charged. Synchronous. For slow jobs add "mode": "async" to the body, take the job_id and poll.

AI prompt

Paste this into your AI assistant. It already holds this endpoint's parameters, response fields and an example request, so the assistant can ask what you need and then write the scraper.

Please help me write a data collection script with the EveryInfra Xiaohongshu Details endpoint (xiaohongshu/profile).

Endpoint contract:
- Request: POST https://api.everyinfra.com/api/v1/social with the header Authorization: Bearer <API key>. Read the key from the EVERYINFRA_API_KEY environment variable and never hard-code it.
- In the request body, set platform to xiaohongshu and action to profile, and put the parameters inside params.
- Required parameters:
  - user_id: Specifies the Xiaohongshu user ID (the identifier following /user/profile/ in the URL) or full profile URL for the profile and user_posts actions. The author_id returned by the comment actions also works.
- Returns one object. Main fields: user_id, nickname (Display name of the account), red_id (Xiaohongshu ID: the searchable ID the a…), url (The record's link on Xiaohongshu), bio, follower_count (Follower count), following_count, like_collect_count (The profile's likes-and-saves total: li…), post_count, gender (Gender as shown on the profile), ip_location (IP location (province or country) that…), avatar_url; 20 fields in total, full list at https://api.everyinfra.com/api/v1/social/catalog?platform=xiaohongshu.
- Example request body:
{
  "platform": "xiaohongshu",
  "action": "profile",
  "params": {
    "user_id": "5bec178863f51f0001859bd9"
  }
}
- Price: $5.56 per 1,000 requests; failed and empty results are not charged.
- For dozens or hundreds of targets, add "mode": "async" to the body: you get a job_id at once and poll GET https://api.everyinfra.com/api/v1/jobs/{job_id} for the result.
- On 422, fix the request using the suggested parameter names and allowed values in the error; on 429 or 503, wait for Retry-After and try again.

Before writing code, ask me which targets I need, how many, which fields, and what output format I want; then confirm the plan and the rough cost with me.

Request parameters

NameInTypeRequiredDefaultDescription
AuthorizationheaderstringYes-Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository.
platformbodystringYesxiaohongshuPlatform identifier, fixed value.
actionbodystringYesprofileCapability identifier, fixed value.
user_idbody.paramsNot declaredYes-Specifies the Xiaohongshu user ID (the identifier following /user/profile/ in the URL) or full profile URL for the profile and user_posts actions. The author_id returned by the comment actions also works. Used to fetch profile details or published notes; does not accept username display names.

Code samples

bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "xiaohongshu",
  "action": "profile",
  "params": {
    "user_id": "5bec178863f51f0001859bd9"
  }
}'

[OpenAPI definition (JSON)]Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.

Response example

Field preview

There is no real sample for these example parameters yet: this shows the response shape and fields from the contract, with … as placeholders. It is not the result of a real call.

json
{
  "id": "req_…",
  "platform": "xiaohongshu",
  "action": "profile",
  "results": {
    "user_id": …,
    "nickname": …,
    "red_id": …,
    "url": …,
    "bio": …,
    "follower_count": …,
    "following_count": …,
    "like_collect_count": …,
    "post_count": …,
    "gender": …,
    "ip_location": …,
    "avatar_url": …,
    "is_verified": …,
    "tags": …,
    "like_count": …,
    "collect_count": …,
    "real_name_info": …,
    "verification_type": …,
    "verification_text": …,
    "location": …,
    "platform": …
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}

Response fields

Business data is in results. The table lists the fields a record can contain; values the platform does not show are never made up.

FieldMeaning
user_idUser's unique ID on the platform.
nicknameDisplay name of the account.
red_idXiaohongshu ID: the searchable ID the account holder chooses, different from the internal user_id.
urlThe record's link on Xiaohongshu. Links from search, note, profile and hashtag usually carry an access token, so they open in a signed-out browser (the token expires; call again for a fresh link). Note links from user_posts carry no token and need one to open in a browser: call note with the note ID to get a link that opens. Profile links from search_users carry no token either; call profile with the user_id for one that opens.
bioProfile bio written by the account; may contain line breaks and emoji.
follower_countFollower count. Exact on profile. Approximate on search_users: the list shows a rounded figure (12,000 appears as 1.2 × 10,000), converted to a whole number. null means not public or not recognized, not zero.
following_countAccounts followed. null means not disclosed, not 0.
like_collect_countThe profile's likes-and-saves total: likes received plus saves across the account's notes. like_count and collect_count give the two parts.
post_countTotal posts. null means not disclosed, not 0.
genderGender as shown on the profile; may be empty.
ip_locationIP location (province or country) that Xiaohongshu displays; not entered by the user. Only some user_posts rows carry it.
avatar_urlAvatar image link. Some platforms return sized CDN links that can expire.
is_verifiedWhether the platform verified the account. null means it cannot be determined.
tagsTag list: on note, the note's topic tags; on profile, the personal tags shown on the profile page (such as star sign or region), as written.
like_countLike count. On note and comment results, the likes on that item; on profile, the total likes the account's notes have received. null means not public or not returned this time, not zero.
collect_countSave count. On note results, how many times that note was saved; on profile, the total saves across the account's notes. null means not public or not returned this time, not zero.
real_name_infoReal-name details exactly as the profile shows them; the field is absent when there are none.
verification_typeVerification type on search_users and profile: individual (verified person), business (verified business) or other. Unverified accounts leave this field out.
verification_textVerification description as written on the profile (profile).
locationLocation description passed through as is; the format varies by platform.
platformSource platform identifier, the same as platform in the request (for example xiaohongshu, tiktok).

FAQ

What does like_collect_count measure?

The likes-and-saves total shown on the profile: every like plus every save the account's notes have received. like_count and collect_count give the two parts separately, so you can see whether an audience mostly likes an account's notes or saves them to come back to.

Should I store user_id or red_id?

Store both, but key your records on user_id, which is what you pass back to this capability and to Posts by user. red_id is chosen by the account holder and is what people type into the app's search, so it is handy for display and for matching an ID someone sends you.

Does the profile link open in a browser?

Usually, yes. Links from this capability normally carry an access token, so they open without signing in until the token expires; calling again returns a fresh one. Profile links from User search and note links from Posts by user lack the token, which is why those capabilities point you here or to Note details.

Errors and billing

401
Missing or invalid key. Authentication runs before parameter checks, so unauthenticated requests never see the parameter schema.
422
Wrong parameter name or value. The error lists the parameters and allowed values this capability accepts and the closest match; it happens before any charge.
402
Insufficient balance. Top up first.
429
The account's per-minute request limit was reached (all of its API keys count together; a key's own lower limit applies first). Wait for Retry-After and try again; a rate package in the console raises the limit.
503
Could not complete right now. Any charge for the call goes back to your balance automatically, and the billing receipt in the response states the actual outcome, including when it is not yet known. Do not resend blindly.
200 empty
The request completed without data and is not charged (billing.reason = empty_result_refunded).