# Xiaohongshu (RedNote) Search Suggestions API

Get Xiaohongshu (RedNote) search suggestions from a seed keyword for autocomplete, long-tail keyword research and AI agent query expansion. Send keyword as a GET query parameter through the justoneapi implementation and read suggestion text, category labels and optional display fields, then run a separate note search when you need matching posts rather than candidate search phrases.

Documentation: https://openany.si/xiaohongshu/xiaohongshu-fetch-search-suggestions/7d5f85d8-611d-44c0-8f78-de2ec8cf2f71/
API ID: 7d5f85d8-611d-44c0-8f78-de2ec8cf2f71
Provider: justoneapi
Contract revision: 6
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/justoneapi/api/xiaohongshu/search-recommend/v1
Page update time: 2026-12-04T06:27:46.694Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.023077 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-04T06:27:46.261Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "23077",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Xiaohongshu (RedNote) Search Suggestions API

This justoneapi V1 implementation accepts a `keyword` query parameter and returns suggestion entries under `data.items`. The published example includes note-search and goods-search suggestions, with text, category labels and optional display fields. Use these entries to prepare search terms or populate a suggestion list; retrieve note content through a separate search or detail API.

## What You Can Build

- **Search-box autocomplete:** Submit a seed term and display the returned `text` values as selectable search candidates.
- **Long-tail keyword research:** Collect suggestion phrases for content planning. Keep category labels with the phrases; these results do not provide keyword search volume.
- **AI agent query expansion:** Give an agent the candidate terms, let it choose a relevant phrase, then make a separate Xiaohongshu note-search request. The suggestion request and subsequent search are separate API calls.

## Input and Encoding

| Parameter | Location | Type | Required | Usage |
| --- | --- | --- | --- | --- |
| `keyword` | Query | String | Yes | Seed keyword used to request suggestions |

The published schema does not specify a length range or a guaranteed list of supported languages. The saved response example contains Chinese suggestions. Use normal URL query encoding; the cURL command below handles encoding automatically. This GET route does not take a JSON request body.

## Fields for Keyword Workflows

| Field | Meaning and use |
| --- | --- |
| `data.items` | Suggestion entries. Optional fields can differ between entries and categories. |
| `data.items[].text` | Suggestion text to display or use as a candidate for a later query. |
| `data.items[].search_type` | Search-category label. The saved example contains `notes` and `goods`; these observed values are not a published exhaustive enum. |
| `data.items[].type` | Upstream item-type label. The retained entries contain `top_note` and `query_goods`; keep these labels when mapping results. |
| `data.items[].desc` | Optional secondary display text. The goods entry contains `10万+件商品`; this is not a keyword search-volume field. |
| `data.items[].link` | Link value supplied by the entry. It is an empty string on the retained note suggestion, so do not construct a destination from that value. |

## Additional Display Fields

| Field | Documented or observed behavior |
| --- | --- |
| `data.items[].icon` | Image URL included in the saved entries. |
| `data.items[].icon_night` | A separate image URL. The available contract does not define its theme-selection behavior. |
| `data.items[].highlight_flags` | Boolean array on the retained note suggestion. The contract does not define how its positions map to text characters. |
| `data.items[].is_intervened` | Boolean on the retained note suggestion. The available contract does not define its business criteria; do not use it alone to classify an item as advertising or promotion. |
| `code` | Response-level code; the saved example contains `0`. |
| `message`, `recordTime` | Both are `null` in the saved example. Handle them without assuming populated text or a timestamp. |

The goods entry omits several fields present on the note entry. Check whether each optional field exists instead of treating a missing field as `false`, zero or an empty value.

## Provider Options

| Implementation | Keyword parameter | Saved response reference |
| --- | --- | --- |
| justoneapi · V1 — shown in this guide | Required string in query | Historical documentation example with suggestion entries |
| TikHub | Optional string in query | Schema template with `data: null`; no suggestion entries are illustrated |

Use each provider’s own contract when switching implementations. The justoneapi response above is not the response reference for TikHub.

## Continue the Search Workflow

- [Search Xiaohongshu notes](https://openany.si/markets/apis/xiaohongshu/xiaohongshu-search-notes/): Use a chosen suggestion as a query for a separate search request.
- [Retrieve note details](https://openany.si/markets/apis/xiaohongshu/xiaohongshu-fetch-note-detail): Use a note identifier from a later search result to request its details.
- [justoneapi V1 request contract](https://openany.si/api/v1/agent-apis/7d5f85d8-611d-44c0-8f78-de2ec8cf2f71)
- [TikHub request contract](https://openany.si/api/v1/agent-apis/559c0cb0-3494-43a8-8fd8-92205b58490f)

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Xiaohongshu (RedNote) Search Suggestions API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "keyword": {
          "type": "string",
          "description": "Search keyword."
        }
      },
      "required": [
        "keyword"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "code": {
      "type": "integer"
    },
    "data": {
      "type": "object",
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "highlight_flags": {
                "type": "array",
                "items": {
                  "type": "boolean"
                }
              },
              "icon": {
                "type": "string"
              },
              "icon_night": {
                "type": "string"
              },
              "is_intervened": {
                "type": "boolean"
              },
              "link": {
                "type": "string"
              },
              "search_type": {
                "type": "string"
              },
              "text": {
                "type": "string"
              },
              "type": {
                "type": "string"
              },
              "desc": {
                "type": "string"
              }
            }
          }
        },
        "result": {
          "type": "object",
          "properties": {
            "message": {
              "type": "string"
            },
            "success": {
              "type": "boolean"
            }
          }
        },
        "search_cpl_id": {
          "type": "string"
        },
        "word_request_id": {
          "type": "string"
        }
      }
    },
    "message": {
      "type": "null"
    },
    "recordTime": {
      "type": "null"
    }
  }
}
```

## Request example
Scenario: Official example · Historical response; independent request temp
```bash
curl \
  'https://api.openany.si/v1/agent-apis/justoneapi/api/xiaohongshu/search-recommend/v1?keyword=%3CREPLACE_KEYWORD%3E' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "code": 0,
  "data": {
    "items": [
      {
        "highlight_flags": [
          true,
          true,
          false,
          false
        ],
        "icon": "http://picasso-static.xiaohongshu.com/fe-platform/ada4a11451816f9500d7a3bfd561edfd23a48a21.png",
        "icon_night": "http://picasso-static.xiaohongshu.com/fe-platform/20107487de37f8896d23383e41f43df5058f9f62.png",
        "is_intervened": false,
        "link": "",
        "search_type": "notes",
        "text": "美食推荐",
        "type": "top_note"
      },
      {
        "highlight_flags": [
          true,
          true,
          false,
          false,
          false,
          false,
          false,
          false,
          false
        ],
        "icon": "http://picasso-static.xiaohongshu.com/fe-platform/ada4a11451816f9500d7a3bfd561edfd23a48a21.png",
        "icon_night": "http://picasso-static.xiaohongshu.com/fe-platform/20107487de37f8896d23383e41f43df5058f9f62.png",
        "is_intervened": false,
        "link": "",
        "search_type": "notes",
        "text": "美食家常菜做法大全",
        "type": "top_note"
      },
      {
        "highlight_flags": [
          true,
          true,
          false,
          false,
          false,
          false
        ],
        "icon": "http://picasso-static.xiaohongshu.com/fe-platform/ada4a11451816f9500d7a3bfd561edfd23a48a21.png",
        "icon_night": "http://picasso-static.xiaohongshu.com/fe-platform/20107487de37f8896d23383e41f43df5058f9f62.png",
        "is_intervened": false,
        "link": "",
        "search_type": "notes",
        "text": "美食图片真实",
        "type": "top_note"
      },
      {
        "desc": "10万+件商品",
        "icon": "http://picasso-static.xiaohongshu.com/fe-platform/d7fc3daa411fabb5be4abd716818ca1ed9d3dbcc.png",
        "icon_night": "http://picasso-static.xiaohongshu.com/fe-platform/91c95dd77e74b00c33f2035265a249cf35ca89a1.png",
        "search_type": "goods",
        "text": "美食",
        "type": "query_goods"
      },
      {
        "highlight_flags": [
          true,
          true,
          false,
          false
        ],
        "icon": "http://picasso-static.xiaohongshu.com/fe-platform/ada4a11451816f9500d7a3bfd561edfd23a48a21.png",
        "icon_night": "http://picasso-static.xiaohongshu.com/fe-platform/20107487de37f8896d23383e41f43df5058f9f62.png",
        "is_intervened": false,
        "link": "",
        "search_type": "notes",
        "text": "美食做法",
        "type": "top_note"
      },
      {
        "highlight_flags": [
          true,
          true,
          false,
          false,
          false,
          false
        ],
        "icon": "http://picasso-static.xiaohongshu.com/fe-platform/ada4a11451816f9500d7a3bfd561edfd23a48a21.png",
        "icon_night": "http://picasso-static.xiaohongshu.com/fe-platform/20107487de37f8896d23383e41f43df5058f9f62.png",
        "is_intervened": false,
        "link": "",
        "search_type": "notes",
        "text": "美食吃货视频",
        "type": "top_note"
      },
      {
        "highlight_flags": [
          true,
          true,
          false,
          false
        ],
        "icon": "http://picasso-static.xiaohongshu.com/fe-platform/ada4a11451816f9500d7a3bfd561edfd23a48a21.png",
        "icon_night": "http://picasso-static.xiaohongshu.com/fe-platform/20107487de37f8896d23383e41f43df5058f9f62.png",
        "is_intervened": false,
        "link": "",
        "search_type": "notes",
        "text": "美食图片",
        "type": "top_note"
      },
      {
        "highlight_flags": [
          true,
          true,
          false,
          false,
          false,
          false,
          false
        ],
        "icon": "http://picasso-static.xiaohongshu.com/fe-platform/ada4a11451816f9500d7a3bfd561edfd23a48a21.png",
        "icon_night": "http://picasso-static.xiaohongshu.com/fe-platform/20107487de37f8896d23383e41f43df5058f9f62.png",
        "is_intervened": false,
        "link": "",
        "search_type": "notes",
        "text": "美食文案朋友圈",
        "type": "top_note"
      },
      {
        "highlight_flags": [
          true,
          true,
          false,
          false,
          false,
          false
        ],
        "icon": "http://picasso-static.xiaohongshu.com/fe-platform/ada4a11451816f9500d7a3bfd561edfd23a48a21.png",
        "icon_night": "http://picasso-static.xiaohongshu.com/fe-platform/20107487de37f8896d23383e41f43df5058f9f62.png",
        "is_intervened": false,
        "link": "",
        "search_type": "notes",
        "text": "美食文案高级",
        "type": "top_note"
      },
      {
        "highlight_flags": [
          false,
          false,
          true,
          true
        ],
        "icon": "http://picasso-static.xiaohongshu.com/fe-platform/ada4a11451816f9500d7a3bfd561edfd23a48a21.png",
        "icon_night": "http://picasso-static.xiaohongshu.com/fe-platform/20107487de37f8896d23383e41f43df5058f9f62.png",
        "is_intervened": false,
        "link": "",
        "search_type": "notes",
        "text": "附近美食",
        "type": "top_note"
      },
      {
        "highlight_flags": [
          true,
          true,
          false,
          false
        ],
        "icon": "http://picasso-static.xiaohongshu.com/fe-platform/ada4a11451816f9500d7a3bfd561edfd23a48a21.png",
        "icon_night": "http://picasso-static.xiaohongshu.com/fe-platform/20107487de37f8896d23383e41f43df5058f9f62.png",
        "is_intervened": false,
        "link": "",
        "search_type": "notes",
        "text": "美食博主",
        "type": "top_note"
      },
      {
        "highlight_flags": [
          true,
          true,
          false,
          false,
          false,
          false
        ],
        "icon": "http://picasso-static.xiaohongshu.com/fe-platform/ada4a11451816f9500d7a3bfd561edfd23a48a21.png",
        "icon_night": "http://picasso-static.xiaohongshu.com/fe-platform/20107487de37f8896d23383e41f43df5058f9f62.png",
        "is_intervened": false,
        "link": "",
        "search_type": "notes",
        "text": "美食滤镜调色",
        "type": "top_note"
      },
      {
        "highlight_flags": [
          true,
          true,
          false,
          false,
          false,
          false,
          false,
          false
        ],
        "icon": "http://picasso-static.xiaohongshu.com/fe-platform/ada4a11451816f9500d7a3bfd561edfd23a48a21.png",
        "icon_night": "http://picasso-static.xiaohongshu.com/fe-platform/20107487de37f8896d23383e41f43df5058f9f62.png",
        "is_intervened": false,
        "link": "",
        "search_type": "notes",
        "text": "美食奇遇记兑换码",
        "type": "top_note"
      },
      {
        "highlight_flags": [
          true,
          true,
          false,
          false,
          false
        ],
        "icon": "http://picasso-static.xiaohongshu.com/fe-platform/ada4a11451816f9500d7a3bfd561edfd23a48a21.png",
        "icon_night": "http://picasso-static.xiaohongshu.com/fe-platform/20107487de37f8896d23383e41f43df5058f9f62.png",
        "is_intervened": false,
        "link": "",
        "search_type": "notes",
        "text": "美食的文案",
        "type": "top_note"
      },
      {
        "highlight_flags": [
          true,
          true,
          false,
          false,
          false,
          false
        ],
        "icon": "http://picasso-static.xiaohongshu.com/fe-platform/ada4a11451816f9500d7a3bfd561edfd23a48a21.png",
        "icon_night": "http://picasso-static.xiaohongshu.com/fe-platform/20107487de37f8896d23383e41f43df5058f9f62.png",
        "is_intervened": false,
        "link": "",
        "search_type": "notes",
        "text": "美食调色参数",
        "type": "top_note"
      },
      {
        "highlight_flags": [
          true,
          true,
          false,
          false,
          false,
          false,
          false,
          false
        ],
        "icon": "http://picasso-static.xiaohongshu.com/fe-platform/ada4a11451816f9500d7a3bfd561edfd23a48a21.png",
        "icon_night": "http://picasso-static.xiaohongshu.com/fe-platform/20107487de37f8896d23383e41f43df5058f9f62.png",
        "is_intervened": false,
        "link": "",
        "search_type": "notes",
        "text": "美食吃货视频大全",
        "type": "top_note"
      }
    ],
    "result": {
      "message": "success",
      "success": true
    },
    "search_cpl_id": "d9ad1684c4ee28974978e9f56adb5a83",
    "word_request_id": "96d73a3b916fa3cf9395c789ead010f2"
  },
  "message": null,
  "recordTime": null
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### What should I pass as keyword?
Pass a seed keyword in the keyword query parameter. The justoneapi V1 contract marks this string parameter as required. The cURL example uses --data-urlencode so cURL handles query encoding, including Chinese characters.

### Does this API return full Xiaohongshu notes?
It returns search suggestions with text, category labels and optional display fields. The documented response is not a collection of full note contents. Use a separate note-search or note-detail endpoint to retrieve content.

### Can I use these results as keyword search-volume or trend metrics?
No search-volume or trend-score fields are documented for this implementation. The sample goods description is product-related display text, not keyword search volume. To compare suggestion lists over time, your application must save and compare its own snapshots.

### What credentials does this endpoint use?
Use an OpenAny API key as a Bearer token in the Authorization header. The published input schema does not list a Xiaohongshu app ID, app secret or end-user access token.

### How is this API billed on OpenAny?
This implementation is listed with fixed per-call pricing. Its billing unit is the API call, not each suggestion in data.items. Estimate costs using the selected implementation’s rate; a different implementation can have a different rate.

### Can I reuse the same request when switching to TikHub?
Both listed implementations expose keyword as a query string, but justoneapi V1 requires it while the TikHub schema marks it optional. Their routes and saved response examples differ. Use the selected provider’s own request contract and response reference.

## Available implementations
- justoneapi: https://openany.si/xiaohongshu/xiaohongshu-fetch-search-suggestions/7d5f85d8-611d-44c0-8f78-de2ec8cf2f71/
- tikhub: https://openany.si/xiaohongshu/xiaohongshu-fetch-search-suggestions/559c0cb0-3494-43a8-8fd8-92205b58490f/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
