# How to export every note from a Xiaohongshu account

Pass the user ID and page with `data.next`, 20 notes a page. Five pages list 100 notes for 5 calls and $0.10; each note comes back with its title, cover, likes and link in the same shape as every other platform.

Updated 2026-11-22

## List the account's notes

`id` is the user ID: the 24-character string after `/user/profile/` in a profile link, or pass the profile share link as `url`. The next page's cursor is the last note's own cursor; it arrives in `data.next`.

[Xiaohongshu note list API](https://xtikapi.com/apis/xiaohongshu/notes/list): `GET /v1/xiaohongshu/notes/list`, $0.02 a call

```bash
curl "https://xtikapi.com/v1/xiaohongshu/notes/list?id=5c2ed1530000000005009c81" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

```python
import requests

URL = "https://xtikapi.com/v1/xiaohongshu/notes/list"
HEADERS = {"Authorization": "Bearer YOUR_API_KEY"}

params = {"id": "5c2ed1530000000005009c81"}
items = []
for _ in range(5):  # one call per page
    for attempt in range(3):  # 5xx errors are not charged: retry
        response = requests.get(URL, params=params, headers=HEADERS, timeout=60)
        if response.status_code < 500:
            break
    response.raise_for_status()
    data = response.json()["data"]
    items += data["items"]
    if not data.get("next"):  # null on the last page
        break
    params.update(data["next"])

print(len(items), "items")
```

```javascript
const URL = "https://xtikapi.com/v1/xiaohongshu/notes/list";
const HEADERS = { Authorization: "Bearer YOUR_API_KEY" };

let params = {"id":"5c2ed1530000000005009c81"};
const items = [];
for (let page = 0; page < 5; page++) {
  let response;
  for (let attempt = 0; attempt < 3; attempt++) {
    // 5xx errors are not charged: retry
    response = await fetch(`${URL}?${new URLSearchParams(params)}`, { headers: HEADERS });
    if (response.status < 500) break;
  }
  if (!response.ok) throw new Error(`HTTP ${response.status}`);
  const { data } = await response.json();
  items.push(...data.items);
  if (!data.next) break; // null on the last page
  params = { ...params, ...data.next };
}
console.log(items.length, "items");
```

Recorded response (lists keep the first two items):

```json
{
  "data": {
    "items": [
      {
        "id": "9xxx68x6963074187x992x85",
        "text": "Example text",
        "author": {
          "id": "8x9xx9059630741857962x55",
          "name": "Example name",
          "avatar": "https://example.com/image.jpg"
        },
        "createdAt": "2026-11-16T00:40:20.000Z",
        "likeCount": 124,
        "commentCount": 75,
        "shareCount": 268,
        "cover": "https://example.com/image.jpg",
        "url": "https://example.com/link"
      },
      {
        "id": "9xx95183963074187x994509",
        "text": "Example text",
        "author": {
          "id": "8x9xx9059630741857962x55",
          "name": "Example name",
          "avatar": "https://example.com/image.jpg"
        },
        "createdAt": "2026-11-12T04:40:17.000Z",
        "likeCount": 82,
        "commentCount": 28,
        "shareCount": 52,
        "cover": "https://example.com/image.jpg",
        "url": "https://example.com/link"
      }
    ],
    "has_more": true,
    "next": {
      "cursor": "6acc2f76000000001c02c4e7"
    }
  },
  "meta": {
    "request_id": "example",
    "endpoint": "xiaohongshu.notes.list",
    "normalized": true,
    "unavailable": [
      "viewCount"
    ],
    "billing": {
      "charged": true,
      "amount": 0.02,
      "balance": 4.98
    }
  }
}
```

## What the example costs

| Step | Calls | Price | Subtotal |
| --- | --- | --- | --- |
| Notes, 5 pages of 20 | 5 | $0.02 | $0.1 |
| Total | 5 | | $0.10 |

## Good to know

- A page held 20 notes in our test on 2026-11-22, and page two had no overlap with page one.
- Each note carries likes, comments and shares; Xiaohongshu does not publish views, so `viewCount` is listed in `meta.unavailable`.
- Private and deleted notes are not listed.
- Write the items to CSV with Python's csv module or pandas; every item has the same keys.

## Endpoints

- [Xiaohongshu note list API](https://xtikapi.com/apis/xiaohongshu/notes/list): $0.02 a call

## More about Xiaohongshu

- [How to get comments on a Xiaohongshu (RedNote) note](https://xtikapi.com/guides/xiaohongshu-note-comments)
- [Xiaohongshu warns my account about AI or automated operation: how can I still collect data?](https://xtikapi.com/answers/xiaohongshu-ai-operation-detected)
- [Can I resume crawling a Xiaohongshu creator's notes where it stopped?](https://xtikapi.com/answers/xiaohongshu-creator-notes-resume)

## Questions

### How much does this cost with XTikAPI?

The example here is 5 calls, $0.10 in total. Failed calls and timeouts are free, and a new account with a verified email gets $0.50 of trial balance.

### Can I export to Excel?

Yes. Collect data.items from every page and save them with pandas (DataFrame(items).to_excel) or the csv module; Excel opens either.

---

XTikAPI: one API key for public social media data, prepaid per call. [HTML version](https://xtikapi.com/guides/xiaohongshu-user-notes) · [llms.txt](https://xtikapi.com/llms.txt) · [OpenAPI](https://xtikapi.com/openapi.json)
