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
Xiaohongshu (RedNote) Search API
Prepare your request, then continue with your agent.
Selected price
$0.01 / call
- Provider
- API
- Pricing
On this page
Overview
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
- Configure OPENANY_API_KEY securely in your local environment and select TikHub.
- The example requests the first page for 美食推荐; adjust sorting, type and time filters for your search.
- Check Selected price before running the command; execution sends a real request under the current contract.
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
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
| 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 / call | 0 | —successP50— |
- 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.
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
Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
keyword | URL query parametersquery | string | Yes | 搜索关键词/Search keyword |
page | URL query parametersquery | integer | No | 页码,从1开始/Page number, start from 1 |
sort_type | URL query parametersquery | string | No | 排序方式/Sort type |
note_type | URL query parametersquery | string | No | 笔记类型/Note type: 不限, 视频笔记, 普通笔记, 直播笔记 |
time_filter | URL query parametersquery | string | No | 发布时间筛选/Time filter: 不限, 一天内, 一周内, 半年内 |
search_id | URL query parametersquery | string | No | 搜索ID,翻页时传入首次搜索返回的值/Search ID for pagination |
search_session_id | URL query parametersquery | string | No | 搜索会话ID,翻页时传入首次搜索返回的值/Search session ID for pagination |
source | URL query parametersquery | string | No | 来源/Source |
ai_mode | URL query parametersquery | integer | No | 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
cache_messagestringcache_message_zhstringcache_urlstringcodeintegerdatanulldocsstringmessagestringmessage_zhstringparamsobjectrequest_idstringrouterstringsupportstringtimestringtime_stampintegertime_zonestring
Agent integration
Copy the resource contract without sharing an API key.
Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect 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.
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 / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'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 · cURLcurl \ '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¬e_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'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" }