# Xiaohongshu (RedNote) topic notes API

The Xiaohongshu (RedNote) topic notes API returns the trending notes under a Xiaohongshu topic by its page ID: title, text, author, engagement counts, images, hashtags. One call costs 12 credits ($0.024 to $0.04 depending on the pack); failed calls are free. Call it over HTTP or from your AI client over MCP. Last tested 2026-10-17.

- Page: https://socialtoai.com/xiaohongshu-topic-notes-api/
- Last updated: 2026-10-17
- Last tested: 2026-10-17

| Request | Price key | Credits |
| --- | --- | --- |
| `POST /v1/call/xiaohongshu.topic_notes` | `xiaohongshu.topic_notes` | 12 |

## Request

```bash
curl https://api.socialtoai.com/v1/call/xiaohongshu.topic_notes \
  -H "Authorization: Bearer $SOCIALTOAI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "id": "5eb2e2ffbd997100014327bc"
  }'
```

```python
import os
import requests

response = requests.post(
    "https://api.socialtoai.com/v1/call/xiaohongshu.topic_notes",
    headers={"Authorization": f"Bearer {os.environ['SOCIALTOAI_KEY']}"},
    json={
        "id": "5eb2e2ffbd997100014327bc",
    },
)
print(response.json())
```

## Parameters

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `id` | string | Required | — | Topic page ID, 24 hexadecimal characters |

First page only: up to 10 items, with no cursor parameter and no next page.

## Where the values come from

- `id`: Topic page ID, 24 hexadecimal characters (e.g. `5eb2e2ffbd997100014327bc`)
  No other interface of the platform returns it.

## Response fields

| Field | Type | Meaning | Given |
| --- | --- | --- | --- |
| `items[].url` | string | A link that opens the item. | yes |
| `items[].format` | string | video, image, text or article. | yes |
| `items[].title` | string | The title. | yes |
| `items[].text` | string | The body text or caption. | yes |
| `items[].published_at` | string | When it was published, ISO 8601 in UTC. | yes |
| `items[].author.id` | string | The author's account ID. | yes |
| `items[].author.username` | string | The author's handle. | always null: Xiaohongshu does not give it |
| `items[].author.name` | string | The author's display name. | yes |
| `items[].author.verified` | boolean | Whether the author is verified. | always null: Xiaohongshu does not give it |
| `items[].author.followers` | integer | The author's follower count. | always null: Xiaohongshu does not give it |
| `items[].metrics.likes` | integer | Likes. | yes |
| `items[].metrics.comments` | integer | Comments. | yes |
| `items[].metrics.shares` | integer | Shares. | yes |
| `items[].metrics.collects` | integer | Saves. | yes |
| `items[].metrics.views` | integer | Views or plays. | always null: Xiaohongshu does not give it |
| `items[].metrics.reposts` | integer | Reposts. | always null: Xiaohongshu does not give it |
| `items[].images` | string[] | Image addresses. | yes |
| `items[].hashtags` | string[] | Hashtags, without the #. | yes |
| `items[].is_pinned` | boolean | Whether the author pinned it. | always null: Xiaohongshu does not give it |

Every item also has platform, id, ref, approx and type; the response around the items is the same on every call. [Response format](https://socialtoai.com/docs/api/response.md)

## Sample response

Sample data: names, links and text are replaced by placeholders; the numbers are as recorded.

```json
{
  "request_id": "req_00000000-0000-4000-8000-000000000001",
  "schema_version": "v1",
  "fetched_at": "2026-10-12T18:43:56.000Z",
  "action": "call",
  "op": "xiaohongshu.topic_notes",
  "platform": "xiaohongshu",
  "status": "ok",
  "items": [
    {
      "platform": "xiaohongshu",
      "id": "…",
      "ref": "…",
      "approx": [],
      "type": "content",
      "url": "https://example.com/…",
      "format": "image",
      "title": "…",
      "text": "…",
      "published_at": "2024-12-10T02:42:21.000Z",
      "author": {
        "id": "…",
        "username": null,
        "name": "…",
        "verified": null,
        "followers": null
      },
      "metrics": {
        "likes": 274,
        "comments": 13,
        "shares": 21,
        "collects": 36,
        "views": null,
        "reposts": null
      },
      "images": ["https://example.com/…", "https://example.com/…"],
      "hashtags": ["…", "…"],
      "is_pinned": null
    }
  ],
  "unavailable": ["author.username", "author.verified", "author.followers", "metrics.views", "metrics.reposts", "is_pinned"],
  "page": {
    "has_more": false
  },
  "warnings": [],
  "applied_params": {
    "id": "5eb2e2ffbd997100014327bc"
  },
  "cost_credits": 12,
  "billing": {
    "cost_credits": 12,
    "balance_credits": 88,
    "today_spend_credits": 12,
    "daily_limit_credits": null,
    "daily_remaining_credits": null,
    "display": "This call: 12 credits. Balance: 88 credits."
  },
  "replayed": false
}
```

## Paging and failures

- One call returns the first page only, up to 10 items, with no cursor, for 12 credits.
- A call that runs and finds nothing is a successful call: status is "empty", items is empty, and it costs 12 credits.
- On this call Xiaohongshu cannot tell a note that does not exist from one with no data: both come back as empty, and both are charged.
- 1 call per second per key, 5 after a purchase; going over is not charged. [Rate limits](https://socialtoai.com/docs/credits-and-billing.md#rate-limits)
- A failed call costs 0 credits and is never retried on its own. [Error codes](https://socialtoai.com/docs/api/errors.md)

## Ask your AI

- Get the trending notes under a Xiaohongshu topic by its page ID: 5eb2e2ffbd997100014327bc. → `call {"op":"xiaohongshu.topic_notes","id":"5eb2e2ffbd997100014327bc"}`, 12 credits

## More on Xiaohongshu

| Interface | What it does | Price key | Credits | Page |
| --- | --- | --- | --- | --- |
| `topic` | Get one Xiaohongshu topic by its page ID. | `xiaohongshu.topic` | 12 | https://socialtoai.com/xiaohongshu-topic-api.md |
| `search` | Find notes by keyword: text, author, likes, comment count and publish time. | `xiaohongshu.search` | 12 | https://socialtoai.com/xiaohongshu-search-api.md |
| `trending` | What is trending now: title, rank and heat. | `xiaohongshu.trending` | 12 | https://socialtoai.com/xiaohongshu-trending-api.md |
| `detail` | One note by ID or link: text, author, likes, comment count and publish time. | `xiaohongshu.detail` | 12 | https://socialtoai.com/xiaohongshu-detail-api.md |
| `comments` | The comments under one note: text, likes, reply count and time. | `xiaohongshu.comments` | 12 | https://socialtoai.com/xiaohongshu-comments-api.md |
| `user_profile` | One account: name, bio, followers, following and post count. | `xiaohongshu.user_profile` | 12 | https://socialtoai.com/xiaohongshu-user-profile-api.md |
| `user_posts` | The recent notes of one account. | `xiaohongshu.user_posts` | 12 | https://socialtoai.com/xiaohongshu-user-posts-api.md |
| `product_search` | Search the products of Xiaohongshu's shop by terms. | `xiaohongshu.product_search` | 12 | https://socialtoai.com/xiaohongshu-product-search-api.md |
| `product_detail` | Get a product of Xiaohongshu's shop by its ID. | `xiaohongshu.product_detail` | 12 | https://socialtoai.com/xiaohongshu-product-detail-api.md |
| `product_reviews` | Get the first page of buyers' reviews of a product of Xiaohongshu's shop by the product's ID. | `xiaohongshu.product_reviews` | 12 | https://socialtoai.com/xiaohongshu-product-reviews-api.md |

## FAQ

**Do I need a Xiaohongshu account or Xiaohongshu's own API access?**

No. You only need a SocialToAI key. The call returns content and account information publicly visible on Xiaohongshu; you never sign in to Xiaohongshu or apply for anything there.

**Can I get the next page?**

No. On Xiaohongshu this interface gives its first page only (up to 10 items): the response carries no cursor, and page.has_more is always false.
