# Xiaohongshu (RED) Image Search API

> Returns image notes and matching post metadata for a specified search keyword. Results include image URLs, engagement metrics, note identifiers, and author information.

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

## Facts

- Provider: Xiaohongshu
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/search-images`
- 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-images` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `keyword` | string | yes |  |
| `page` | integer | no |  |
| `search_id` | string | no |  |
| `search_session_id` | string | no |  |
| `source` | string | no |  |
| `word_request_id` | string | no |  |

## FAQ

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

Send a POST request to https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/search-images 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) Image 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) Image Search API accept?

Required: keyword (string). Optional: page (integer), search_id (string), search_session_id (string), source (string) and word_request_id (string). The Parameters table and the Playground on this page list every field.

### What does the Xiaohongshu (RED) Image 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) Image 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) Image Search API

Search for image notes on Xiaohongshu (RED) by supplying a query in `keyword`. Supports pagination across result sets using `page`, `search_id`, `word_request_id`, and `search_session_id`.

#### Use cases

- Discover image-based notes matching targeted topic keywords.
- Extract visual content URLs alongside post engagement statistics.
- Analyze trending community imagery and creator profiles.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/search-images" \
  -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" |
| `search_id` | string | No | Search ID, pass value from first search response for pagination |
| `word_request_id` | string | No | Word request ID, pass value from first search response for pagination |
| `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
{
  "data": {
    "items": [
      {
        "image_info": {
          "trace_id": "spectrum/1040g0k030ua64rtp56005o5h6s4080o1j0fbkl8",
          "url": "https://sns-na-i11.xhscdn.com/spectrum/1040g0k030ua64rtp56005o5h6s4080o1j0fbkl8?…"
        },
        "note_info": {
          "collected_count": 228,
          "comments_count": 49,
          "desc": "关键词[微笑R] lino cut of large crowd of people energetically moves towards a giant squere, ea…",
          "liked_count": 397,
          "model_type": "image_card",
          "note_id": "65b0a37a000000002c014b93"
        },
        "share_info": {
          "content": "关键词[微笑R] lino cut of large crowd of people energetically mov",
          "link": "https://www.xiaohongshu.com/discovery/item/65b0a37a000000002c014b93?app_platform…",
          "title": "Midjourney绘图 | 人潮汹涌"
        },
        "user_info": {
          "nickname": "<user>",
          "red_id": "9549661040",
          "red_official_verified": false,
          "red_official_verify_type": 0,
          "user_id": "<user>"
        }
      }
    ]
  }
}
```

#### Notes

- Pagination starts at 1 using `page`.
- Pass `search_id`, `word_request_id`, and `search_session_id` from the initial search response to retrieve subsequent pages.
- The `source` parameter defaults to "explore_feed".

#### Related APIs

- [Xiaohongshu (RED) Creator Hot Inspiration Feed](/model/xiaohongshu/app-v2/creator-hot-inspiration-feed): Retrieves creator center hot inspiration feed items with topic titles, popularity scores, and deeplinks.
- [Xiaohongshu (RED) Inspiration Feed](/model/xiaohongshu/app-v2/creator-inspiration-feed): Returns recommended inspiration feed items and trending topics from Xiaohongshu (RED).
- [Xiaohongshu (RED) Image Note Details](/model/xiaohongshu/app-v2/image-note-detail): Returns detailed information for a Xiaohongshu image note.
