# Xiaohongshu (RED) Note Search API

> Search Xiaohongshu (RED / Little Red Book) notes by keyword and get titles, authors, cover images and like, collect, comment and share counts, with sort, note-type and time filters.

Source: https://www.sandbase.ai/apis/xiaohongshu/app-v2/search-notes
API reference: https://www.sandbase.ai/apis/xiaohongshu/app-v2/search-notes/docs

## Facts

- Provider: Xiaohongshu
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/search-notes`
- Price: $0.01 per call
- Free allowance: 100 calls per organization per UTC day, shared across eligible APIs
- Capabilities: api, xiaohongshu
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/search-notes` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `keyword` | string | yes |  |
| `ai_mode` | integer | no |  |
| `note_type` | string | no |  |
| `page` | integer | no |  |
| `search_id` | string | no |  |
| `search_session_id` | string | no |  |
| `sort_type` | string | no |  |
| `source` | string | no |  |
| `time_filter` | string | no |  |

## FAQ

### How do I use the Xiaohongshu (RED) Note Search API?

Send a POST request to https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/search-notes with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the Xiaohongshu (RED) Note Search API cost?

$0.01 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

### What parameters does the Xiaohongshu (RED) Note Search API accept?

Required: keyword (string). Optional: ai_mode (integer), note_type (string), page (integer), search_id (string), search_session_id (string) and sort_type (string) and 2 more. The Parameters table and the Playground on this page list every field.

### What does the Xiaohongshu (RED) Note Search API return?

A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.

### Do I need a Xiaohongshu developer account or API key?

No. Xiaohongshu (RED) Note Search runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Xiaohongshu API access separately.

## README

### Xiaohongshu (RED) Note Search API

Search Xiaohongshu for a keyword and get matching notes with title, author, images and engagement counts. Sort by relevance, popularity or time and filter by note type.

#### Use cases

- Research consumer opinions and trends on Xiaohongshu.
- Find KOLs and popular notes for a product category.
- Monitor brand mentions on RED.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/search-notes" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword": "OpenAI"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `keyword` | string | Yes | Search keyword |
| `page` | integer | No | Page number, start from 1 |
| `source` | string | No | Source, default "explore_feed" |
| `ai_mode` | integer | No | AI mode, 0=off, 1=on |
| `note_type` | string | No | Note type filter |
| `search_id` | string | No | Search ID, pass value from first search response for pagination |
| `sort_type` | string | No | Sort type |
| `time_filter` | string | No | Time filter |
| `search_session_id` | string | No | Search session ID, pass value from first search response for pagination |

#### Example response

Real response for the request above, trimmed to the main fields. User names and long IDs are masked.

```json
{
  "code": 0,
  "page": 1,
  "next_page": 2,
  "search_id": "<search_id>",
  "data": {
    "items": [
      {
        "model_type": "note",
        "note": {
          "id": "6a6c688000000000060041d4",
          "type": "normal",
          "liked_count": 98,
          "collected_count": 78,
          "comments_count": 56,
          "shared_count": 25,
          "timestamp": 1785489536,
          "title": "我发现我真的很会面OpenAI的MLE（已上岸",
          "user": {
            "nickname": "<user>"
          }
        }
      }
    ]
  }
}
```

#### Notes

- For the next page, pass `page`, plus `search_id` and `search_session_id` from the first response.

#### Related APIs

- [Get creator hot inspiration feed](/model/xiaohongshu/app-v2/creator-hot-inspiration-feed): Get creator center hot inspiration feed, using cursor pagination.
- [Get creator inspiration feed](/model/xiaohongshu/app-v2/creator-inspiration-feed): Get creator center recommended inspiration feed, using cursor pagination.
- [Get image note detail](/model/xiaohongshu/app-v2/image-note-detail): App V2 Image Note Detail provides a focused capability for applications, automation, and data workflows.
