Search notes

Browse registered social-data routes across platforms, then dive into detailed reference docs

API DocsxiaohongshuSearchSearch notes

Search notes

What this API is for

  • Search Xiaohongshu notes by keyword, supports multiple sort types, note type filters, and time filters
GET/openapi/api/v1/xiaohongshu/app_v2/search_notes

Price:Price unavailable · Actual charges depend on free quota and account discounts

Authentication

All API requests require a Bearer project token in the Authorization header

Authorization headerAuthorization: Bearer YOUR_API_TOKEN

Request parameters

  • keyword: Search keyword (required), e.g. "美食推荐"
  • page: Page number, start from 1
  • sort_type: Sort type
    • "general": General sort (default)
    • "time_descending": Sort by time descending (latest)
    • "popularity_descending": Sort by like count (most liked)
    • "comment_descending": Sort by comment count (most commented)
    • "collect_descending": Sort by collect count (most collected)
    • "english_preferred": English preferred
  • note_type: Note type filter
    • "不限": All types (default)
    • "视频笔记": Video notes only
    • "普通笔记": Image notes only
    • "直播笔记": Live notes only
  • time_filter: Time filter
    • "不限": All time (default)
    • "一天内": Within 24 hours
    • "一周内": Within 7 days
    • "半年内": Within 6 months
  • search_id: Search ID, pass value from first search response for pagination
  • search_session_id: Search session ID, pass value from first search response for pagination
  • source: Source, default "explore_feed"
  • ai_mode: AI mode, 0=off, 1=on
NameLocation / typeRequiredNotesExample
keywordquery / stringYes
  • Search keyword
美食推荐
pagequery / integerNo
  • Page number, start from 1
1
sort_typequery / stringNo
  • Sort type
general
note_typequery / stringNo
  • Note type: 不限, 视频笔记, 普通笔记, 直播笔记
不限
time_filterquery / stringNo
  • Time filter: 不限, 一天内, 一周内, 半年内
不限
search_idquery / stringNo
  • Search ID for pagination
search_session_idquery / stringNo
  • Search session ID for pagination
sourcequery / stringNo
  • Source
explore_feed
ai_modequery / integerNo
  • AI mode: 0=off, 1=on
0

Request examples

curl -X GET "https://api.trmesh.com/openapi/api/v1/xiaohongshu/app_v2/search_notes" \
  -H "Authorization: Bearer sdc_your_project_token" \
  -H "Accept: application/json"

Response fields

  • Search result data, including note list and pagination info

Common response envelope

Common fields for response status, request identifiers and data

FieldTypeNotesExample
codeinteger
  • HTTP status code | HTTP状态码
request_idstring | null
  • Unique request identifier | 唯一请求标识符
messagestring
  • Response message (EN-US) | 响应消息 (English)
message_zhstring
  • Response message (ZH-CN) | 响应消息 (中文)
supportstring
  • Support message | 支持消息
timestring
  • The time the response was generated | 生成响应的时间
time_stampinteger
  • The timestamp the response was generated | 生成响应的时间戳
time_zonestring
  • The timezone of the response time | 响应时间的时区
docsstring | null
  • Link to the API Swagger documentation for this endpoint | 此端点的 API Swagger 文档链接
cache_messagestring | null
  • Cache message (EN-US) | 缓存消息 (English)
cache_message_zhstring | null
  • Cache message (ZH-CN) | 缓存消息 (中文)
cache_urlstring | null
  • The URL to access the cached result | 访问缓存结果的 URL
routerstring
  • The endpoint that generated this response | 生成此响应的端点
paramsunknown
  • The parameters used in the request | 请求中使用的参数
dataunknown | null
  • The response data | 响应数据

Errors and limits

The docs cover not only success responses, but also auth failures, rate limits, and data-service errors

CodeMeaningNotes
200SuccessThe request completed and returned the standard response envelope.
401UnauthorizedThe token is missing, invalid, or no longer active.
429Rate limitedThe request exceeded token, user, or plan-level throughput limits.
502Service unavailableThe gateway could not obtain a healthy result. Retry in a moment.
Next steps

New to the API? Read the guide or explore examples