---
title: "Posts"
description: "샤오홍슈의 탐색 피드를 가져옵니다. 지금 추천하는 노트와 작성자, 표지, 좋아요 수."
---

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

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

## 요청

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

```js tab="JavaScript"
const res = await fetch("https://gateway.apinoa.com/v1/xiaohongshu/posts", {
  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/posts",
    headers={"x-api-key": os.environ["APINOA_API_KEY"]},
)
body = res.json()
```

## 넘길 값

| 넘기는 값 | 읽는 것 | 비고 |
|---|---|---|
| 없음 | 탐색 피드 | 샤오홍슈가 지금 방문자에게 추천하는 노트, 약 30개 |

## 파라미터

| Parameter | Type | Required | Notes |
|---|---|---|---|
| `username` | string |  | Not served: the profile page lists a creator's posts without their ids. Ask `profile`, whose `ext.posts` lists them. |

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

## 응답

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

```json
{
  "success": true,
  "data": {
    "platform": "xiaohongshu",
    "items": [
      {
        "platform": "xiaohongshu",
        "id": "6a730db50000000033011c29",
        "url": "https://www.xiaohongshu.com/explore/6a730db50000000033011c29",
        "author": {
          "platform": "xiaohongshu",
          "id": "641305180000000012012c22",
          "displayName": "干完这票就碎觉",
          "url": "https://www.xiaohongshu.com/user/profile/641305180000000012012c22",
          "avatarUrl": "https://sns-avatar-qc.rednotecdn.com/avatar/1040g2jo31pnjhj14kk005p0j0kc4ib12…",
          "ext": {
            "xsecToken": "AByHSjvm2GViDK9ORqlP8Vshbv1Tg0fd5xEEEy03JJo2k="
          }
        },
        "title": "share🫧两位数get的波点草莓刘海梳！ꈍᗜꈍ",
        "ext": {
          "type": "video",
          "cover": {
            "type": "image",
            "url": "http://sns-web-i10.rednotecdn.com/202611270748/e56035417575c2c5e7743851c3a996…",
            "width": 1290,
            "height": 1720,
            "thumbnailUrl": "http://sns-web-i10.rednotecdn.com/202611270748/ce04d5acb7f45ca2386e7ff4064f3a…",
            "variants": [
              {
                "url": "http://sns-web-i10.rednotecdn.com/202611270748/ce04d5acb7f45ca2386e7ff4064f3a…",
                "quality": "WB_PRV"
              },
              {
                "url": "http://sns-web-i10.rednotecdn.com/202611270748/e56035417575c2c5e7743851c3a996…",
                "quality": "WB_DFT"
              }
            ]
          },
          "videoDurationSec": 32,
          "metricsText": {
            "likes": "28.9K"
          },
          "translation": {
            "title": "share🫧Got this polka dot strawberry com"
          },
          "xsecToken": "ABnB-G86g96Km7WPUmitMAA99VGEbK1DDT-jTUeQI2msg="
        },
        "media": []
      },
      {
        "platform": "xiaohongshu",
        "id": "6ae89201000000002c01a61f",
        "url": "https://www.xiaohongshu.com/explore/6ae89201000000002c01a61f",
        "author": {
          "platform": "xiaohongshu",
          "id": "5746e9ea84edcd0e83e3f956",
          "displayName": "琛宝的精致小厨房",
          "url": "https://www.xiaohongshu.com/user/profile/5746e9ea84edcd0e83e3f956",
          "avatarUrl": "https://sns-avatar-qc.rednotecdn.com/avatar/1040g2jo322ipun667u0048cmtvkuluam…",
          "ext": {
            "xsecToken": "ABN3EoBxnINmkfELcjl2HIomAPJUHpWRzUgxLNhst-huo="
          }
        },
        "title": "在家自制宝宝火腿肠！巨香！巨好吃！",
        "metrics": {
          "likes": 320
        },
        "ext": {
          "type": "video",
          "cover": {
            "type": "image",
            "url": "http://sns-web-i10.rednotecdn.com/202611270748/13e65727db9498a360f057f3f6247a…",
            "width": 2880,
            "height": 3840,
            "thumbnailUrl": "http://sns-web-i10.rednotecdn.com/202611270748/14240279651d9e5f8292df0b6e6c8c…",
            "variants": [
              {
                "url": "http://sns-web-i10.rednotecdn.com/202611270748/14240279651d9e5f8292df0b6e6c8c…",
                "quality": "WB_PRV"
              },
              {
                "url": "http://sns-web-i10.rednotecdn.com/202611270748/13e65727db9498a360f057f3f6247a…",
                "quality": "WB_DFT"
              }
            ]
          },
          "videoDurationSec": 49,
          "translation": {
            "title": "DIY Baby Ham Sausages at Home! So fragra"
          },
          "xsecToken": "ABlGmzOS3GInWUNbvuM4MkcN__A92ZATOkBP30l-4SxhA="
        },
        "media": []
      }
    ]
  }
}
```

## 에러

| 상태 | 코드 | 의미 |
|---|---|---|
| 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).

## 참고

- 각 노트는 피드에 나오는 그대로입니다. 제목, 작성자, 표지(`ext.cover`), 좋아요 수가 있습니다. 본문과 미디어는 [`post`](/docs/api-reference/xiaohongshu/post)로 가져오세요.
- 피드는 한 페이지이며 `cursor`가 없습니다.
- 계정별 게시물은 제공하지 않습니다. 샤오홍슈가 id 없이 보여주기 때문입니다. [`profile`](/docs/api-reference/xiaohongshu/profile)이 `ext.posts`에 미리보기로 돌려줍니다.
