---
title: "Posts"
description: "Get Xiaohongshu's explore feed: the notes it recommends now, with their authors, covers and likes."
---

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

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

## What to Pass

| Pass | Reads | Notes |
|---|---|---|
| nothing | The explore feed | What Xiaohongshu recommends to a visitor now, about 30 notes |

## Parameters

| 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

## Response

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

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

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

- Each note is as the feed shows it: title, author, cover (`ext.cover`) and likes. Ask [`post`](/docs/api-reference/xiaohongshu/post) for its text and media.
- The feed is one page; it has no `cursor`.
- An account's posts are not served: Xiaohongshu lists them without their ids. [`profile`](/docs/api-reference/xiaohongshu/profile) returns them as previews in `ext.posts`.
