OpenAny
Get API keyAPI Key
APIDataScrapers

xiaohongshu logo
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.

Selected price
$0.023077 / callPublished pricing
Sellers / APIs
2 / 2
Requests · 30d
—Statistics unavailable
Success rate · 30d
—Statistics unavailable
USE THIS API

Xiaohongshu (RedNote) Search Suggestions API

Prepare your request, then continue with your agent.

Selected price

$0.023077 / call

Provider
Pricing
Connect your agent
On this page

Overview

Overview
Xiaohongshu (RedNote) Search Suggestions API

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.

Quick Facts

Item Value
Implementation justoneapi · V1
Method GET
Endpoint https://api.openany.si/v1/agent-apis/justoneapi/api/xiaohongshu/search-recommend/v1
Authentication OpenAny API key as Bearer authentication
Required input keyword — string, query parameter
Output Suggestion entries in data.items
Billing model Fixed per API call

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.

Quick Start

  1. Set OPENANY_API_KEY in your environment.
  2. Run the request template with your seed keyword.
  3. Check the HTTP response, then read the available suggestion entries in data.items.
bash
curl --get \
  'https://api.openany.si/v1/agent-apis/justoneapi/api/xiaohongshu/search-recommend/v1' \
  --data-urlencode 'keyword=美食' \
  --header "Authorization: Bearer ${OPENANY_API_KEY}"

Response Example

Published response example, shortened from 16 items to two. The response envelope and every field on the two retained entries are preserved. This is a historical documentation example, separate from the request template above.

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"
      },
      {
        "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"
      }
    ],
    "result": {
      "message": "success",
      "success": true
    },
    "search_cpl_id": "d9ad1684c4ee28974978e9f56adb5a83",
    "word_request_id": "96d73a3b916fa3cf9395c789ead010f2"
  },
  "message": null,
  "recordTime": null
}

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.

Pricing and Billing

This justoneapi implementation is listed with fixed per-call pricing. Its billing unit is the API call, not the number of suggestions returned. The displayed rate follows the selected implementation; a request to justoneapi uses its current contract.

A follow-up note search or note-detail request is a separate API call with its own billing contract.

Frequently Asked Questions

View FAQ

Continue the Search Workflow

Playground

Run sends a real API request. Charges follow the published API contract.

Provider
Endpoint
Xiaohongshu (RedNote) Search Suggestions API
Request parameters
Search keyword.

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
Current
Xiaohongshu (RedNote) Search Suggestions API · GET · View API reference
$0.023077 / call—
—successP50—
Fetch search suggestions · GET · View API reference
$0.01 / call—Select to load statistics
—successP50—
Selected pricing · justoneapiUSD / call
Unit price
$0.023077

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 6. Contract updated: Dec 4, 2026, 06:27 AM (UTC).

calls

Total $2.3077

API

Method
GET
Endpoint
https://api.openany.si/v1/agent-apis/justoneapi/api/xiaohongshu/search-recommend/v1
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
keywordURL query parametersquerystringYes

Search keyword.

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • codeinteger
  • dataobject
    • itemsobject[]
      • highlight_flagsboolean[]
      • iconstring
      • icon_nightstring
      • is_intervenedboolean
      • linkstring
      • search_typestring
      • textstring
      • typestring
      • descstring
    • resultobject
      • messagestring
      • successboolean
    • search_cpl_idstring
    • word_request_idstring
  • messagenull
  • recordTimenull

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Official example · Historical response; independent request temp

Example from the provider's documentation. Field values in your results will differ.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 1

    Review these request fields before running. Keep the published provider and request method unchanged.

    keyword
    Search keyword.
    Terminal · cURL
    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'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "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
    }

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.

Use Xiaohongshu (RedNote) Search Suggestions API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.