---
title: "Profile"
description: "Get a Xiaohongshu account: nickname, Xiaohongshu number, bio, IP location, tags and post count, with its latest posts."
---

> Every apinoa docs page as markdown: https://apinoa.com/llms.txt (all in one file: https://apinoa.com/llms-full.txt; this API family in one file: https://apinoa.com/docs/social/llms.txt)

```http
GET | POST /v1/xiaohongshu/profile
```

Send parameters as a query string with `GET`, or as a JSON body with `POST`. Both are equivalent.

## Request

```bash tab="cURL"
curl "https://gateway.apinoa.com/v1/xiaohongshu/profile?username=59edb804e8ac2b09b85fad67" \
  -H "x-api-key: $APINOA_API_KEY"
```

```js tab="JavaScript"
const params = new URLSearchParams({"username":  "59edb804e8ac2b09b85fad67"});
const res = await fetch(`https://gateway.apinoa.com/v1/xiaohongshu/profile?${params}`, {
  headers: { "x-api-key": process.env.APINOA_API_KEY },
});
const { success, data, error } = await res.json();
```

```python tab="Python"
import os

import requests

res = requests.get(
    "https://gateway.apinoa.com/v1/xiaohongshu/profile",
    params={"username": "59edb804e8ac2b09b85fad67"},
    headers={"x-api-key": os.environ["APINOA_API_KEY"]},
)
body = res.json()
```

## What to Pass

| Pass | Reads | Notes |
|---|---|---|
| `username` | The account | Its user id (24 hex characters, from its profile link), or the profile link |

## Parameters

| Parameter | Type | Required | Notes |
|---|---|---|---|
| `username` | string |  | The account's user id (24 hex characters, from its profile link), or the profile link. |

The same parameters, and every response type, are in the OpenAPI document: https://apinoa.com/openapi.json

## Response

Returns [`Account`](/docs/api-reference/sns/response-schema#account) in `data`. A real response, shortened: arrays keep their first entries and long text is cut.

```json
{
  "success": true,
  "data": {
    "platform": "xiaohongshu",
    "id": "59edb804e8ac2b09b85fad67",
    "handle": "496969443",
    "displayName": "尖叫番茄",
    "bio": "什么都发₍ᐢ..ᐢ₎ᐝ\n美甲｜购物分享｜日常 | INFJ",
    "url": "https://www.xiaohongshu.com/user/profile/59edb804e8ac2b09b85fad67",
    "avatarUrl": "https://sns-avatar-qc.rednotecdn.com/avatar/1040g2jo30n6beaha5a0049uqt2s09bb7…",
    "counts": {
      "posts": 114
    },
    "ext": {
      "redId": "496969443",
      "gender": "female",
      "ipLocation": "广东",
      "followersText": "10+",
      "followingText": "10+",
      "likesAndSavesText": "1万+",
      "likes": 76067,
      "saves": 17669,
      "bioTranslation": "Just sharing a bit of everything ₍ᐢ..ᐢ₎ᐝ\nNails | Shopping | Daily | INFJ",
      "posts": [
        {
          "title": "这次，我一定要发挥好",
          "type": "normal",
          "createdAt": "2026-11-16T14:40:34.000Z",
          "likes": 247,
          "cover": {
            "type": "image",
            "url": "http://sns-web-i10.rednotecdn.com/202611270748/daa177cb011e0c5e3f1c56ee5699ce…",
            "width": 1200,
            "height": 1600,
            "thumbnailUrl": "http://sns-web-i10.rednotecdn.com/202611270748/b06466faedff5559e3d47c364ce7b3…",
            "variants": [
              {
                "url": "http://sns-web-i10.rednotecdn.com/202611270748/b06466faedff5559e3d47c364ce7b3…",
                "quality": "WB_PRV"
              },
              {
                "url": "http://sns-web-i10.rednotecdn.com/202611270748/daa177cb011e0c5e3f1c56ee5699ce…",
                "quality": "WB_DFT"
              }
            ]
          },
          "xsecToken": "ABhu_Cqz8_LewlXka4tu0shenQuM4eqkIOCDItFOJ7ktk="
        },
        {
          "title": "马上要去日本了 我的购物欲已经按耐不住了，",
          "type": "normal",
          "createdAt": "2026-11-12T10:53:52.000Z",
          "likes": 2607,
          "cover": {
            "type": "image",
            "url": "http://sns-web-i10.rednotecdn.com/202611270748/ee46987a07ff5cc04bd10acc5f2684…",
            "width": 1200,
            "height": 1600,
            "thumbnailUrl": "http://sns-web-i10.rednotecdn.com/202611270748/6bcbbc4b72b2fcf0d0cc981f0f351f…",
            "variants": [
              {
                "url": "http://sns-web-i10.rednotecdn.com/202611270748/6bcbbc4b72b2fcf0d0cc981f0f351f…",
                "quality": "WB_PRV"
              },
              {
                "url": "http://sns-web-i10.rednotecdn.com/202611270748/ee46987a07ff5cc04bd10acc5f2684…",
                "quality": "WB_DFT"
              }
            ]
          },
          "xsecToken": "ABhu_Cqz8_LewlXka4tu0shenQuM4eqkIOCDItFOJ7ktk="
        }
      ]
    }
  }
}
```

## Errors

| Status | Code | Meaning |
|---|---|---|
| 400 | `INVALID_PARAMS` | A parameter is missing, unknown or out of range. The message names it. |
| 401 | `UNAUTHORIZED` | The `x-api-key` header is missing, or the key is revoked or unknown. |
| 402 | `INSUFFICIENT_CREDITS` | Your credits do not cover this call. Choose a plan or top up in the dashboard. |
| 404 | `NOT_FOUND` | The account, post or group does not exist, or is private, deleted or age-restricted. |
| 429 | `MARKETPLACE_SATURATED` | Too many concurrent calls. Retry after the `Retry-After` seconds. |
| 502 | `UPSTREAM_ERROR` | The platform answered with something unusable. Retry with backoff. |

Every code is listed in [Errors](/docs/errors). Failed calls are not billed.

## Pricing

**Price** 1 credit per call. [Plans and credits](https://apinoa.com/en/pricing).

## Notes

- Xiaohongshu shows followers, following and likes-and-saves rounded ("1万+"), so they are in `ext` as the page states them (`followersText`, `followingText`, `likesAndSavesText`); `counts.posts` and `ext.likes`/`ext.saves` are exact.
- `ext.posts` is the account's latest posts as its profile lists them: title, type, likes, cover and whether it is pinned. Xiaohongshu does not state their ids there, so they are previews rather than posts, and `posts` does not take `username`.
- The Xiaohongshu number (`redId`) is the account's `handle`; Xiaohongshu has no username a link can name, so `username` takes the user id.
