{
  "openapi": "3.0.0",
  "info": {
    "title": "小红书笔记搜索 API (V4)",
    "version": "1.0.0",
    "description": "获取小红书（RedNote）笔记搜索数据，包括摘要、作者和媒体，用于话题发现。"
  },
  "servers": [
    {
      "url": "https://api.justoneapi.com",
      "description": "prod-global（默认）"
    },
    {
      "url": "http://47.117.133.51:30015",
      "description": "prod-cn（中国大陆地区可选）"
    }
  ],
  "paths": {
    "/api/xiaohongshu/search-note/v4": {
      "get": {
        "tags": [
          "小红书"
        ],
        "summary": "笔记搜索",
        "description": "获取小红书（RedNote）笔记搜索数据，包括摘要、作者和媒体，用于话题发现。",
        "operationId": "getApiXiaohongshuSearchNoteV4",
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "description": "此 API 服务的访问令牌。",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "keyword",
            "in": "query",
            "description": "搜索关键词。",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "用于分页的页码。",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "searchId",
            "in": "query",
            "description": "来自上一个响应数据 api_info.search_id 的搜索会话 ID。",
            "required": false,
            "schema": {
              "type": "string",
              "default": ""
            }
          },
          {
            "name": "sessionId",
            "in": "query",
            "description": "来自上一个响应数据 api_info.session_id 的会话 ID。",
            "required": false,
            "schema": {
              "type": "string",
              "default": ""
            }
          },
          {
            "name": "sortType",
            "in": "query",
            "description": "结果集的排序方式。\n\n可选值：\n- `general`：综合排序\n- `popularity_descending`：热度降序\n- `time_descending`：时间降序\n- `comment_descending`：评论数降序\n- `collect_descending`：收藏数降序",
            "required": false,
            "schema": {
              "type": "string",
              "default": "general",
              "description": "Xiaohongshu Search Note Sort",
              "enum": [
                "general",
                "popularity_descending",
                "time_descending",
                "comment_descending",
                "collect_descending"
              ]
            }
          },
          {
            "name": "noteType",
            "in": "query",
            "description": "笔记类型筛选。\n\n可选值：\n- `不限`: 不限\n- `视频笔记`: 视频笔记\n- `普通笔记`: 普通笔记",
            "required": false,
            "schema": {
              "type": "string",
              "default": "不限",
              "description": "Xiaohongshu KANG Search Note Type",
              "enum": [
                "不限",
                "视频笔记",
                "普通笔记"
              ]
            }
          },
          {
            "name": "timeFilter",
            "in": "query",
            "description": "发布时间筛选。\n\n可选值：\n- `不限`: 不限\n- `一天内`: 一天内\n- `一周内`: 一周内\n- `半年内`: 半年内",
            "required": false,
            "schema": {
              "type": "string",
              "default": "不限",
              "description": "Xiaohongshu KANG Search Note Time Filter",
              "enum": [
                "不限",
                "一天内",
                "一周内",
                "半年内"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "好的",
            "content": {
              "*/*": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string",
                      "enum": [
                        "0",
                        "100",
                        "101",
                        "202",
                        "300",
                        "301",
                        "302",
                        "303",
                        "400",
                        "500",
                        "600",
                        "601"
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "type": "object"
                    },
                    "recordTime": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          }
        },
        "x-order": "12001120",
        "x-recommended": true,
        "x-api-version": "v4",
        "x-highlights": [
          {
            "type": "tip",
            "content": "这是一个移动应用版本的接口。搜索结果更准确。"
          }
        ]
      }
    }
  },
  "components": {}
}