OpenAny
Get API keyAPI Key
APIDataScrapers

xiaohongshu logo
Xiaohongshu (RedNote) Search API

Search Xiaohongshu (RedNote / 小红书) notes by keyword via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Compare 4 implementations (anyapi, JustOneAPI and TikHub), pass parameters such as query, sort, and retrieve structured data including note identifier, note title, author display name, cover image URL, and like count to track brand mentions, compare competing products, and build a content brief.

Selected price
$0.01 / callPublished pricing
Sellers / APIs
3 / 4
Requests · 30d
0Selected implementation · last 30 days
Success rate · 30d
—No requests in this period
USE THIS API

Xiaohongshu (RedNote) Search API

Prepare your request, then continue with your agent.

Selected price

$0.01 / call

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
Xiaohongshu (RedNote) Search API

Xiaohongshu (RedNote) Search API

Send keyword with sorting, note-type, time and page options, retaining search_id and search_session_id for later pages. The documented response template contains null data, so map note fields from the returned payload.

Quick Facts

Fact Value
Platform xiaohongshu
Access Methods REST / OpenAny MCP
Pricing Model Pay per call; see Selected price
Authentication OpenAny API key
Core Inputs keyword; optional paging, sorting and filters
Selected Implementation TikHub
Available Providers anyapi, JustOneAPI, TikHub
Returned Data Result payload; the documented template contains null

What You Can Build with the Xiaohongshu (RedNote) Search API

  • Track brand mentions: Repeat the same keyword search, timestamp collection and deduplicate by note ID.
  • Compare competing products: Collect comparable keywords and inspect engagement without treating ranking as market share.
  • Build a content brief: Use titles and available descriptions to shortlist posts, then retrieve deeper data separately.

Pass returned records to a downstream Agent for organization, comparison or reporting; additional data retrieval is a separate operation.

Xiaohongshu (RedNote) Search API Returned Data Fields & Response Coverage

Returned text and filters differ by implementation. anyapi uses description and JustOneAPI uses desc; these fields do not include a complete comment thread. TikHub's documented schema has data: null, so check its returned payload before mapping note fields.

Field Meaning
data Result payload; the documented template contains null

For deeper retrieval, inspect the Xiaohongshu Note Details API and its current input contract.

Compare Xiaohongshu (RedNote) Search API Providers

Provider Method & Input Pagination Sorting & Filters Best For
TikHub GET query: keyword page + search_id + search_session_id sort_type / note_type / time_filter Search-session paging
anyapi POST JSON: query cursor ← nextCursor sort: general / hot / time JSON body and cursor paging
JustOneAPI V4 GET query: keyword page sortType / noteType / timeFilter Version-specific filters
JustOneAPI V2 GET query: keyword page sort / noteType / noteTime Existing V2 integrations; verify dates

Use the example for your selected implementation; parameter names and paging methods differ.

Quick Start: Call the Xiaohongshu (RedNote) Search API via REST

  1. Configure OPENANY_API_KEY securely in your local environment and select TikHub.
  2. The example requests the first page for 美食推荐; adjust sorting, type and time filters for your search.
  3. Check Selected price before running the command; execution sends a real request under the current contract.
bash
curl --request GET \
  "https://api.openany.si/v1/agent-apis/tikhub/api/v1/xiaohongshu/app_v2/search_notes" \
  --header "Authorization: Bearer ${OPENANY_API_KEY}" \
  --get \
  --data-urlencode 'ai_mode=0' \
  --data-urlencode 'keyword=美食推荐' \
  --data-urlencode 'note_type=不限' \
  --data-urlencode 'page=1' \
  --data-urlencode 'search_id=' \
  --data-urlencode 'search_session_id=' \
  --data-urlencode 'sort_type=general' \
  --data-urlencode 'source=explore_feed' \
  --data-urlencode 'time_filter=不限'

Values such as 不限 are literal upstream enums meaning “no restriction”; keep them unchanged when sending the URL-encoded query parameters.

Understanding Response Examples

Example Provenance and scope
Schema template (HTTP assumed) HTTP status is assumed and data is null; this does not verify business output fields or a successful execution.

Use the documented request as a calling template; consult the public API contract and the actual response for fields and status.

Connect AI Agents via OpenAny MCP

Connect to https://mcp.openany.si, discover with search_apis, then read the current contract and api_version with get_api. Use run_api only after approval of inputs, price and call count; keep the key in secure client configuration.

Agent prompt: Find Xiaohongshu notes about matcha latte. Compare the current anyapi, JustOneAPI and TikHub contracts, choose the needed filters, and show the proposed calls and current cost before requesting execution approval; return only actual note IDs, titles, sources and available engagement fields.

Pricing & Billing Rules

  • No subscription; check the selected implementation’s contract and Selected price for the current amount and unit.
  • Browsing, preparing inputs and viewing examples do not execute the API; curl and run_api do.
  • Extra pages, retries and chained requests are separate executions; review their billing and spending limit first.

Frequently Asked Questions

View FAQ

Playground

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

Request parameters
搜索关键词/Search keyword
Optional parameters (8)
页码,从1开始/Page number, start from 1
排序方式/Sort type
笔记类型/Note type: 不限, 视频笔记, 普通笔记, 直播笔记
发布时间筛选/Time filter: 不限, 一天内, 一周内, 半年内
搜索ID,翻页时传入首次搜索返回的值/Search ID for pagination
搜索会话ID,翻页时传入首次搜索返回的值/Search session ID for pagination
来源/Source
AI模式:0=关闭, 1=开启/AI mode: 0=off, 1=on

Response template · not a real response

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

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
RedNote (Xiaohongshu) Search · POST · View API reference
$0.012 / call—Select to load statistics
—successP50—
Xiaohongshu (RedNote) Note Search API (V4) · GET · View API reference
$0.030769 / call—Select to load statistics
—successP50—
Xiaohongshu (RedNote) Keyword Note Search API (V2) · GET · View API reference
$0.023077 / call—Select to load statistics
—successP50—
Current
Search notes · GET · View API reference
$0.01 / call0
—successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · tikhubUSD / call
Unit price
$0.01

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: 4. Price update time: not supplied.

calls

Total $1

API

Method
GET
Endpoint
https://api.openany.si/v1/agent-apis/tikhub/api/v1/xiaohongshu/app_v2/search_notes
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

pageURL query parametersqueryintegerNo

页码,从1开始/Page number, start from 1

sort_typeURL query parametersquerystringNo

排序方式/Sort type

note_typeURL query parametersquerystringNo

笔记类型/Note type: 不限, 视频笔记, 普通笔记, 直播笔记

time_filterURL query parametersquerystringNo

发布时间筛选/Time filter: 不限, 一天内, 一周内, 半年内

search_idURL query parametersquerystringNo

搜索ID,翻页时传入首次搜索返回的值/Search ID for pagination

search_session_idURL query parametersquerystringNo

搜索会话ID,翻页时传入首次搜索返回的值/Search session ID for pagination

sourceURL query parametersquerystringNo

来源/Source

ai_modeURL query parametersqueryintegerNo

AI模式:0=关闭, 1=开启/AI mode: 0=off, 1=on

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

Response structure

Inferred from examples
  • cache_messagestring
  • cache_message_zhstring
  • cache_urlstring
  • codeinteger
  • datanull
  • docsstring
  • messagestring
  • message_zhstring
  • paramsobject
  • request_idstring
  • routerstring
  • supportstring
  • timestring
  • time_stampinteger
  • time_zonestring

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

Schema template (HTTP assumed)

Response illustration only. Placeholder values and unknown business fields are not recorded API results. Replace request placeholders before use.

  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 9

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

    keyword
    搜索关键词/Search keyword
    page
    页码,从1开始/Page number, start from 1
    sort_type
    排序方式/Sort type
    note_type
    笔记类型/Note type: 不限, 视频笔记, 普通笔记, 直播笔记
    time_filter
    发布时间筛选/Time filter: 不限, 一天内, 一周内, 半年内
    search_id
    搜索ID,翻页时传入首次搜索返回的值/Search ID for pagination
    search_session_id
    搜索会话ID,翻页时传入首次搜索返回的值/Search session ID for pagination
    source
    来源/Source
    ai_mode
    AI模式:0=关闭, 1=开启/AI mode: 0=off, 1=on
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/tikhub/api/v1/xiaohongshu/app_v2/search_notes?ai_mode=0&keyword=%E7%BE%8E%E9%A3%9F%E6%8E%A8%E8%8D%90&note_type=%E4%B8%8D%E9%99%90&page=1&search_id=&search_session_id=&sort_type=general&source=explore_feed&time_filter=%E4%B8%8D%E9%99%90' \
      -X GET \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json'
  3. Check the response

    Response template · not a real response · Configured HTTP 200; actual status is unverified.

    Response template · not a real response
    {
      "cache_message": "This response is cached and accessible via the URL below for 24 hours at no extra cost. The cache is for request tracing only — it doesn't affect the API's data freshness and won't be returned through the API again.",
      "cache_message_zh": "本次响应已缓存,可通过下方 URL 直接查看,有效期 24 小时,访问缓存链接无额外费用。缓存仅用于请求溯源,不影响接口数据的时效性,也不会再次通过接口返回。",
      "cache_url": "<cache_url>",
      "code": 200,
      "data": null,
      "docs": "<docs>",
      "message": "Request successful. This request will incur a charge.",
      "message_zh": "请求成功,本次请求将被计费。",
      "params": {},
      "request_id": "<request_id>",
      "router": "",
      "support": "Discord: https://discord.gg/aMEAS8Xsvz",
      "time": "<time>",
      "time_stamp": 0,
      "time_zone": "America/Los_Angeles"
    }

Common questions

Do I need a Xiaohongshu account or subscription?

No platform cookie or account input is required by these published request contracts, and OpenAny does not require a subscription for these per-call routes. An OpenAny API key is still required.

Can I switch providers without changing inputs?

No. anyapi uses a JSON query and cursor; JustOneAPI and TikHub use keyword and their own page/filter parameters. Remap inputs when switching.

How do I request the next page?

For anyapi, pass the returned nextCursor as cursor. JustOneAPI uses page. TikHub documents page plus search_id and search_session_id from the initial response; preserve the keyword and filters.

Are note bodies and comments included?

Coverage varies. anyapi includes description and JustOneAPI samples include desc, but complete bodies and comment threads are not guaranteed. The TikHub schema template does not verify its business fields.

Is a time filter a strict publication-date guarantee?

No such guarantee applies across implementations. JustOneAPI V2 explicitly warns that noteTime may include notes outside the requested range; validate returned timestamps where present.

Does the API report official search volume or market-wide trends?

No such metric is established by these contracts. Keyword-matched posts and engagement sorting support content research, but are not official search-volume or platform-wide trend measurements.

Use Xiaohongshu (RedNote) Search API with your agent

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