# Search notes

Search Xiaohongshu (RedNote / 小红书) notes with TikHub through REST or OpenAny MCP, with per-call billing, no subscription and no buyer-supplied platform cookies. Combine keyword, sorting, note-type and time options to build brand-monitoring searches, competitor research queues and content discovery workflows, keeping search_id and search_session_id from the first response for subsequent pages.

Documentation: https://openany.si/xiaohongshu/xiaohongshu-search-notes/48deb226-ee4f-430b-87f5-a753ea06c5c7/
API ID: 48deb226-ee4f-430b-87f5-a753ea06c5c7
Provider: tikhub
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/tikhub/api/v1/xiaohongshu/app_v2/search_notes
Page update time: 2026-12-04T06:27:46.681Z
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.01 / 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-03T01:54:34.335Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "10000",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## 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.

## 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](https://openany.si/market/apis/xiaohongshu/xiaohongshu-fetch-note-detail/) 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.

```
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](https://openany.si/api/v1/agent-apis/48deb226-ee4f-430b-87f5-a753ea06c5c7) 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.

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Search notes 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"
        },
        "page": {
          "type": "integer",
          "description": "页码，从1开始/Page number, start from 1"
        },
        "sort_type": {
          "type": "string",
          "description": "排序方式/Sort type"
        },
        "note_type": {
          "type": "string",
          "description": "笔记类型/Note type: 不限, 视频笔记, 普通笔记, 直播笔记"
        },
        "time_filter": {
          "type": "string",
          "description": "发布时间筛选/Time filter: 不限, 一天内, 一周内, 半年内"
        },
        "search_id": {
          "type": "string",
          "description": "搜索ID，翻页时传入首次搜索返回的值/Search ID for pagination"
        },
        "search_session_id": {
          "type": "string",
          "description": "搜索会话ID，翻页时传入首次搜索返回的值/Search session ID for pagination"
        },
        "source": {
          "type": "string",
          "description": "来源/Source"
        },
        "ai_mode": {
          "type": "integer",
          "description": "AI模式：0=关闭, 1=开启/AI mode: 0=off, 1=on"
        }
      },
      "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": {
    "cache_message": {
      "type": "string"
    },
    "cache_message_zh": {
      "type": "string"
    },
    "cache_url": {
      "type": "string"
    },
    "code": {
      "type": "integer"
    },
    "data": {
      "type": "null"
    },
    "docs": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "message_zh": {
      "type": "string"
    },
    "params": {
      "type": "object",
      "properties": {}
    },
    "request_id": {
      "type": "string"
    },
    "router": {
      "type": "string"
    },
    "support": {
      "type": "string"
    },
    "time": {
      "type": "string"
    },
    "time_stamp": {
      "type": "integer"
    },
    "time_zone": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Schema template (HTTP assumed)
```bash
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'
```

## Response example
Response illustration only. Placeholder values and unknown business fields are not recorded API results. Replace request placeholders before use.
Response template · not a real response · Configured HTTP 200; actual status is unverified.
```json
{
  "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"
}
```

## 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
### 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.

## Available implementations
- anyapi: https://openany.si/xiaohongshu/xiaohongshu-search-notes/38d5e499-b06b-4646-ad13-ef5537929a0a/
- justoneapi: https://openany.si/xiaohongshu/xiaohongshu-search-notes/b026ec85-b5c8-41e4-984d-0f3f1bf84c3b/
- justoneapi: https://openany.si/xiaohongshu/xiaohongshu-search-notes/d7ad0ded-2c39-449d-9c13-de41f4ec73bf/
- tikhub: https://openany.si/xiaohongshu/xiaohongshu-search-notes/48deb226-ee4f-430b-87f5-a753ea06c5c7/

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