# Xiaohongshu Keyword Note Search API

> Search Xiaohongshu (RedNote) notes by keyword with page-based pagination, sorting and note-type filters. The V2 noteTime filter may return notes outside the selected time range.

Source: https://www.sandbase.ai/model/xiaohongshu/search-note
API reference: https://www.sandbase.ai/model/xiaohongshu/search-note/docs

## Facts

- Provider: Xiaohongshu
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/xiaohongshu/search-note`
- Price: $0.03 per call
- Capabilities: api, xiaohongshu, social media
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

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

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `keyword` | string | yes |  |
| `page` | integer | no |  |
| `sort` | string | no | general, popularity_descending, time_descending, comment_descending, collect_descending |
| `noteType` | string | no | _0, _1, _2 |
| `noteTime` | string | no | ONE_DAY, ONE_WEEK, HALF_YEAR |

## FAQ

### How do I use the Xiaohongshu Keyword Note Search API?

Send a POST request to https://api.sandbase.ai/v1/api/xiaohongshu/search-note 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 Keyword Note Search API cost?

$0.03 per call, billed from your SandBase balance. You are only charged for calls you make; there is no subscription.

### What parameters does the Xiaohongshu Keyword Note Search API accept?

Required: keyword (string). Optional: page (integer), sort (one of general, popularity_descending, time_descending, comment_descending, collect_descending), noteType (one of _0, _1, _2) and noteTime (one of ONE_DAY, ONE_WEEK, HALF_YEAR). The Parameters table and the Playground on this page list every field.

### What does the Xiaohongshu Keyword Note Search API return?

A JSON response returned in the same HTTP request (synchronous).

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

No. Xiaohongshu Keyword 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 Keyword Note Search API

Search Xiaohongshu (RedNote) notes by keyword with page-based pagination, sorting and note-type filters. The V2 noteTime filter may return notes outside the selected time range.

The response is the platform's original data structure.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "xiaohongshu/search-note", "keyword": "美食"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `keyword` | string | Yes | Search keyword. |
| `page` | integer | No | Page number for pagination. Start at 1, then increment page while keeping the keyword and filters unchanged. |
| `sort` | string | No | Sort order for the result set. |
| `noteType` | string | No | Note type filter. |
| `noteTime` | string | No | Note publish time filter. Results may include notes published outside the selected time range. |

#### Pricing

Flat price per call. Failed calls and empty results are not charged.
