笔记搜索

通过移动应用搜索流程搜索小红书(RedNote)笔记,支持分页、排序、笔记类型和时间筛选。用于支持迭代式主题研究和筛选内容发现。

接口 ID
GET /v1/xiaohongshu/search_note_v4
接口 ID
xiaohongshu.search_note_v4
价格
$0.04 / 次成功调用 · 失败不收费

参数

参数 必填 类型 说明 示例 可选值
keyword 必填 string 搜索关键词。 咖啡 —
page 可选 integer 用于分页的页码。 1 —
sort_type 可选 string 结果集的排序方式。 可选值: - `general`:综合排序 - `popularity_descending`:热度降序 - `time_descending`:时间降序 - `comment_descending`:评论数降序 - `collect_descending`:收藏数降序 general generalpopularity_descendingtime_descendingcomment_descendingcollect_descending
note_type 可选 string 笔记类型筛选。 可选值: - `ALL`: 不限 - `VIDEO_NOTE`: 视频笔记 - `NORMAL_NOTE`: 图文笔记 ALL ALLVIDEO_NOTENORMAL_NOTE
time_filter 可选 string 发布时间筛选。 可选值: - `ALL`: 不限 - `ONE_DAY`: 一天内 - `ONE_WEEK`: 一周内 - `HALF_YEAR`: 半年内 ALL ALLONE_DAYONE_WEEKHALF_YEAR

代码示例

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'

在线试用

登录后可以在这里直接调用此接口,按价格从余额扣费,失败不收费。新账户赠送 $0.50 试用额度。

登录后试用

响应示例

采集于 2026-11-07,耗时 4971 ms · 请求参数 {"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"
      }
    }
  }
}