---
title: "Profile"
description: "샤오홍슈 계정을 가져옵니다. 닉네임, 샤오홍슈 번호, 소개, IP 지역, 태그, 게시물 수와 최근 게시물."
---

> 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
```

파라미터는 `GET`의 쿼리 문자열로도, `POST`의 JSON 본문으로도 보낼 수 있습니다. 둘은 같습니다.

## 요청

```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()
```

## 넘길 값

| 넘기는 값 | 읽는 것 | 비고 |
|---|---|---|
| `username` | 계정 | 사용자 id(프로필 링크의 16진수 24자), 또는 프로필 링크 |

## 파라미터

| 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

## 응답

`data`에 [`Account`](/docs/api-reference/sns/response-schema#account)를 돌려줍니다. 실제 응답을 줄인 것입니다. 배열은 앞쪽 항목만 남기고 긴 텍스트는 잘랐습니다.

```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="
        }
      ]
    }
  }
}
```

## 에러

| 상태 | 코드 | 의미 |
|---|---|---|
| 400 | `INVALID_PARAMS` | 파라미터가 없거나, 알 수 없거나, 범위를 벗어났습니다. 메시지에 이름이 나옵니다. |
| 401 | `UNAUTHORIZED` | `x-api-key` 헤더가 없거나, 폐기되었거나 알 수 없는 키입니다. |
| 402 | `INSUFFICIENT_CREDITS` | 크레딧이 이 호출 비용에 모자랍니다. 대시보드에서 플랜을 고르거나 충전하세요. |
| 404 | `NOT_FOUND` | 계정·게시물·그룹이 없거나, 비공개·삭제·연령 제한 상태입니다. |
| 429 | `MARKETPLACE_SATURATED` | 동시 호출이 너무 많습니다. `Retry-After` 초만큼 기다린 뒤 다시 시도하세요. |
| 502 | `UPSTREAM_ERROR` | 플랫폼이 쓸 수 없는 응답을 보냈습니다. 간격을 두고 다시 시도하세요. |

모든 코드는 [Errors](/docs/errors)에 있습니다. 실패한 호출은 과금되지 않습니다.

## 가격

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

## 참고

- 샤오홍슈는 팔로워, 팔로잉, 좋아요·수집 수를 반올림해서("1万+") 보여주므로, 페이지에 적힌 그대로 `ext`에 담습니다(`followersText`, `followingText`, `likesAndSavesText`). `counts.posts`와 `ext.likes`/`ext.saves`는 정확한 값입니다.
- `ext.posts`는 프로필에 나오는 계정의 최근 게시물입니다. 제목, 유형, 좋아요, 표지, 고정 여부가 있습니다. 샤오홍슈가 여기서는 게시물 id를 밝히지 않아 게시물이 아닌 미리보기이며, `posts`는 `username`을 받지 않습니다.
- 샤오홍슈 번호(`redId`)가 계정의 `handle`입니다. 샤오홍슈에는 링크로 쓰는 사용자 이름이 없어서 `username`에는 사용자 id를 넘깁니다.
