Note Search

Searches Xiaohongshu (RedNote) notes through the mobile-app search flow with pagination, sorting, note-type, and time filters. Use it to support iterative topic research and filtered content discovery.

Endpoint ID
GET /v1/xiaohongshu/search_note_v4
Endpoint ID
xiaohongshu.search_note_v4
Price
$0.04 per successful call · failed calls are free

Parameters

Name Required Type Description Example Allowed values
keyword Required string Search keyword. 咖啡 —
page Optional integer Page number for pagination. 1 —
sort_type Optional string Sort order for the result set. Available Values: - `general`: General - `popularity_descending`: Popularity Descending - `time_descending`: Time Descending - `comment_descending`: Comment Descending - `collect_descending`: Collect Descending general generalpopularity_descendingtime_descendingcomment_descendingcollect_descending
note_type Optional string Note type filter. Available Values: - `ALL`: No Limit - `VIDEO_NOTE`: Video Note - `NORMAL_NOTE`: Normal Note ALL ALLVIDEO_NOTENORMAL_NOTE
time_filter Optional string Publish time filter. Available Values: - `ALL`: No Limit - `ONE_DAY`: Within one day - `ONE_WEEK`: Within one week - `HALF_YEAR`: Within half a year ALL ALLONE_DAYONE_WEEKHALF_YEAR

Code samples

curl -G "https://api.mofa-ai.com/v1/xiaohongshu/search_note_v4" \
  -H "Authorization: Bearer $MOFA_API_KEY" \
  --data-urlencode 'keyword=咖啡' \
  --data-urlencode 'page=1' \
  --data-urlencode 'sort_type=general' \
  --data-urlencode 'note_type=ALL' \
  --data-urlencode 'time_filter=ALL'

Try it

Sign in to call this endpoint from this page. Successful calls are billed to your balance, failed calls are free, and new accounts get $0.50 of trial credit.

Sign in to try

Example response

Captured 2026-11-07, took 4971 ms · Request parameters {"page": "1", "keyword": "咖啡", "note_type": "ALL", "sort_type": "general", "time_filter": "ALL"}

JSON
{
  "success": true,
  "code": 0,
  "message": "success",
  "request_id": "req_5f1c2a9be04d7c3a81f6e2d0",
  "endpoint": "xiaohongshu.search_note_v4",
  "cost_usd": 0.04,
  "data": {
    "code": 0,
    "data": {
      "ads": [],
      "notes": [
        {
          "id": "6adb22a60000000033019f07",
          "desc": "宝子们!最近跑了好几家同行的咖啡店,挖到他们留住客人的秘诀,居然就是这几款简单又好喝的饮品配方!今天分享出来,照着调试",
          "tags": [],
          "type": "normal",
          "user": {
            "images": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo325ribgpcke6g5qloqlpkoc00kfiivf8?imageView2/2/w/80/format/jpg",
            "red_id": "18450743865",
            "userid": "6ab8d5730000000013003000",
            "followed": false,
            "nickname": "☕☕☕Callie",
            "red_official_verified": false
          },
          "liked": false,
          "niced": false,
          "title": "月入2w咖啡店老板私藏配方大公开",
          "geo_info": {
            "distance": ""
          },
          "collected": false,
          "has_music": false,
          "timestamp": 1792746150,
          "images_list": [
            {
              "url": "https://sns-na-i2.xhscdn.com/notes_pre_post/1040g3k0326lm68v7566g5qloqlpkoc001mdeqmg?imageView2/2/w/608/format/heif/q/56…",
              "width": 1279,
              "fileid": "notes_pre_post/1040g3k0326lm68v7566g5qloqlpkoc001mdeqmg",
              "height": 1706,
              "original": "",
              "trace_id": "notes_pre_post/1040g3k0326lm68v7566g5qloqlpkoc001mdeqmg",
              "url_size_large": "https://sns-na-i2.xhscdn.com/notes_pre_post/1040g3k0326lm68v7566g5qloqlpkoc001mdeqmg?imageView2/2/w/1440/format/heif/q/4…",
              "need_load_original_image": false
            },
            "… +4"
          ],
          "liked_count": 483,
          "shared_count": 104,
          "comments_count": 8,
          "collected_count": 539,
          "last_update_time": 0
        },
        "… +19"
      ],
      "total": 20,
      "api_info": {
        "code": 10200,
        "message": "成功",
        "search_id": "2h4mval1ivyjnrg2z1s74",
        "session_id": "2h4mval1j96gmrdpkoxkw"
      },
      "has_more": true,
      "statistics": {
        "ads_count": 0,
        "note_count": 20,
        "total_items": 20,
        "video_count": 0,
        "recommend_count": 0
      },
      "search_meta": {
        "can_cut": false,
        "query_type": null,
        "strategy_info": {
          "query_can_guide_to_feed": true,
          "query_average_impression_count": 19
        },
        "is_broad_query": true,
        "show_single_col": false
      },
      "recommend_queries": []
    },
    "message": null,
    "requestId": "0e37ae8b4f23451aa955e9aa042383fa",
    "recordTime": "2026-11-08T07:57:38.953932996",
    "requestParams": {
      "body": null,
      "query": {
        "page": "1",
        "keyword": "咖啡",
        "noteType": "ALL",
        "sortType": "general",
        "timeFilter": "ALL"
      }
    }
  }
}