{"openapi": "3.0.3", "info": {"title": "XHS V2 API", "version": "2.0.0", "description": "小红书 V2 数据接口。接入新厂商，价格为旧接口的一半。\n\n## 鉴权\n\n所有接口均需通过请求头 `Authorization: Token <token>` 鉴权。\n\n## 计费\n\n| 接口 | 单价 (token/次) |\n|------|----------------|\n| 笔记详情 | 45 |\n| 全参笔记详情 | 60 |\n| 一级评论 | 45 |\n| 子评论 | 45 |\n| 笔记搜索 | 60 |\n| 用户笔记列表 | 60 |\n| 用户详细 | 45 |\n| 余额查询 | 0 (免费) |\n\n## 响应格式\n\n业务接口统一外层格式：\n```json\n{\n  \"code\": 0,\n  \"msg\": \"成功，\",\n  \"data\": \"<JSON 字符串>\"\n}\n```\n\n`data` 为兼容老接口 body 的 JSON 字符串（需二次 `JSON.parse`）。余额接口 `data` 为对象。\n\n## 错误码\n\n| code | 说明 |\n|------|------|\n| 0 | 成功 |\n| 1001 | 剩余调用 Token 不足 |\n| 100400 | 请求参数错误 |\n| 100401 | Token 认证失败 |\n| 100500 | 服务器内部错误（不计费）|\n| 100501 | 服务器繁忙（不计费）|\n| 100504 | 服务器超时（不计费）|", "contact": {"name": "DataFlow API Support"}}, "servers": [{"url": "https://dataflowserver.org", "description": "Production"}], "security": [{"TokenAuth": []}], "tags": [{"name": "笔记", "description": "笔记详情相关接口"}, {"name": "评论", "description": "评论相关接口"}, {"name": "用户", "description": "用户信息相关接口"}, {"name": "系统", "description": "系统查询接口"}, {"name": "小红书 V3(ios原生数据,更稳定,比v2便宜30%)", "description": "小红书 V3 采集服务接口，统一 45 token/次"}], "components": {"securitySchemes": {"TokenAuth": {"type": "apiKey", "in": "header", "name": "Authorization", "description": "格式：`Token <token>`，在注册/登录后获取。"}}, "schemas": {"SuccessStringResponse": {"type": "object", "description": "业务接口统一响应。`data` 为 JSON 字符串，需二次解析。", "properties": {"code": {"type": "integer", "example": 0, "description": "状态码，0 表示成功"}, "msg": {"type": "string", "example": "成功，", "description": "状态信息"}, "data": {"type": "string", "description": "兼容老接口 body 的 JSON 字符串"}}, "required": ["code", "msg", "data"]}, "BalanceResponse": {"type": "object", "description": "余额查询响应。", "properties": {"code": {"type": "integer", "example": 0}, "msg": {"type": "string", "example": "成功，"}, "data": {"type": "object", "properties": {"balance": {"type": "number", "example": 128.5, "description": "新厂商余额"}, "status": {"type": "integer", "example": 200, "description": "新厂商状态码"}}, "required": ["balance", "status"]}}, "required": ["code", "msg", "data"]}, "ErrorResponse": {"type": "object", "description": "错误响应。", "properties": {"code": {"type": "integer", "description": "错误码"}, "msg": {"type": "string", "description": "错误信息"}, "data": {"type": "object", "description": "空对象"}}, "required": ["code", "msg"]}, "NoteDetailBody": {"type": "object", "description": "`data` JSON 字符串解析后的结构（笔记详情）。", "properties": {"code": {"type": "integer", "example": 0}, "success": {"type": "boolean", "example": true}, "msg": {"type": "string", "example": "成功"}, "data": {"type": "array", "items": {"type": "object", "properties": {"model_type": {"type": "string", "example": "note"}, "user": {"$ref": "#/components/schemas/LegacyUser"}, "note_list": {"type": "array", "items": {"$ref": "#/components/schemas/NoteItem"}}}}}}}, "NoteItem": {"type": "object", "description": "笔记对象。", "properties": {"id": {"type": "string", "description": "笔记 ID"}, "title": {"type": "string", "description": "笔记标题"}, "desc": {"type": "string", "description": "笔记描述"}, "type": {"type": "string", "description": "笔记类型 (normal/video)"}, "time": {"type": "integer", "description": "发布时间戳 (秒)"}, "last_update_time": {"type": "integer", "description": "最后更新时间戳 (秒)"}, "liked_count": {"type": "integer", "description": "点赞数"}, "collected_count": {"type": "integer", "description": "收藏数"}, "comments_count": {"type": "integer", "description": "评论数"}, "shared_count": {"type": "integer", "description": "分享数"}, "liked": {"type": "boolean", "description": "是否已点赞"}, "collected": {"type": "boolean", "description": "是否已收藏"}, "images_list": {"type": "array", "items": {"$ref": "#/components/schemas/ImageItem"}}, "user": {"$ref": "#/components/schemas/LegacyUser"}, "hash_tag": {"type": "array", "items": {"$ref": "#/components/schemas/TagItem"}}, "interact_info": {"type": "object", "description": "互动信息原始对象"}}}, "LegacyUser": {"type": "object", "description": "用户对象（兼容老接口结构）。", "properties": {"userid": {"type": "string", "description": "用户 ID"}, "user_id": {"type": "string", "description": "用户 ID (同 userid)"}, "nickname": {"type": "string", "description": "用户昵称"}, "image": {"type": "string", "description": "用户头像 URL"}, "images": {"type": "string", "description": "用户头像 URL (同 image)"}, "red_id": {"type": "string", "description": "小红书号（V2 可能为空）"}}}, "ImageItem": {"type": "object", "description": "图片对象。", "properties": {"index": {"type": "integer"}, "fileid": {"type": "string"}, "url": {"type": "string", "description": "原始 URL"}, "url_size_large": {"type": "string", "description": "大图 URL"}, "original": {"type": "string", "description": "原图 URL"}, "width": {"type": "integer"}, "height": {"type": "integer"}}}, "TagItem": {"type": "object", "properties": {"id": {"type": "string"}, "name": {"type": "string"}, "type": {"type": "string", "example": "topic"}}}, "CommentBody": {"type": "object", "description": "`data` JSON 字符串解析后的结构（一级评论）。", "properties": {"code": {"type": "integer", "example": 0}, "success": {"type": "boolean", "example": true}, "data": {"type": "object", "properties": {"comments": {"type": "array", "items": {"$ref": "#/components/schemas/CommentItem"}}, "has_more": {"type": "boolean", "description": "是否有更多评论"}, "cursor": {"type": "string", "description": "下一页游标，传回 `start` 参数翻页"}, "comment_count": {"type": "integer", "description": "评论总数"}}}}}, "SubCommentBody": {"type": "object", "description": "`data` JSON 字符串解析后的结构（子评论）。", "properties": {"code": {"type": "integer", "example": 0}, "success": {"type": "boolean", "example": true}, "data": {"type": "object", "properties": {"comments": {"type": "array", "items": {"$ref": "#/components/schemas/CommentItem"}}, "has_more": {"type": "boolean", "description": "是否有更多子评论"}, "cursor": {"type": "string", "description": "下一页游标"}}}}}, "CommentItem": {"type": "object", "description": "评论对象。", "properties": {"id": {"type": "string", "description": "评论 ID"}, "content": {"type": "string", "description": "评论内容"}, "create_time": {"type": "integer", "description": "创建时间戳 (秒)"}, "like_count": {"type": "integer", "description": "点赞数"}, "sub_comment_count": {"type": "integer", "description": "子评论数"}, "user": {"$ref": "#/components/schemas/LegacyUser"}, "sub_comments": {"type": "array", "items": {"$ref": "#/components/schemas/CommentItem"}, "description": "子评论列表（一级评论时可能携带）"}}}, "UserPostedBody": {"type": "object", "description": "`data` JSON 字符串解析后的结构（用户笔记列表）。", "properties": {"code": {"type": "integer", "example": 0}, "success": {"type": "boolean", "example": true}, "data": {"type": "object", "properties": {"has_more": {"type": "boolean", "description": "是否有下一页"}, "cursor": {"type": "string", "description": "下一页游标，优先为上游游标；否则为本页最后一个笔记 ID"}, "notes": {"type": "array", "items": {"type": "object", "properties": {"id": {"type": "string"}, "note_id": {"type": "string"}, "display_title": {"type": "string"}, "type": {"type": "string"}, "create_time": {"type": "integer", "description": "发布时间戳 (秒)"}}}, "description": "笔记列表。V2 仅包含 noteId/time/title/type，互动数等字段为 0。"}}}}}}, "responses": {"AuthError": {"description": "Token 认证失败", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ErrorResponse"}, "example": {"code": 100401, "msg": "token认证失败", "data": {}}}}}, "ParamError": {"description": "请求参数错误", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ErrorResponse"}, "example": {"code": 100400, "msg": "请求参数错误", "data": {}}}}}, "InsufficientTokens": {"description": "调用 Token 余额不足", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ErrorResponse"}, "example": {"code": 1001, "msg": "剩余调用Token不足", "data": {}}}}}, "ServerError": {"description": "服务器内部错误（不计费）", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ErrorResponse"}, "example": {"code": 100500, "msg": "服务器内部错误，本次请求不计费", "data": {}}}}}}}, "paths": {"/api/xhs/v2/notedetail": {"get": {"tags": ["笔记"], "summary": "笔记详情", "description": "获取小红书笔记详情，返回兼容老接口结构。\n\n**计费：45 token/次**\n\n新厂商 `note_card` 会适配到旧结构 `data[0].note_list[0]`。`red_id`、`ip_location`、分享链接、原图链接等字段可能为空。\n\n上游失败时自动退费。", "operationId": "getNoteDetail", "parameters": [{"name": "noteId", "in": "query", "required": true, "schema": {"type": "string"}, "description": "小红书笔记 ID", "example": "6745a3e3000000001d02e498"}], "responses": {"200": {"description": "成功。`data` 为 JSON 字符串，解析后结构见 NoteDetailBody。", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SuccessStringResponse"}, "example": {"code": 0, "msg": "成功，", "data": "{\"code\":0,\"success\":true,\"msg\":\"成功\",\"data\":[{\"note_list\":[{\"id\":\"6745a3e3000000001d02e498\",\"title\":\"示例笔记标题\",\"desc\":\"笔记描述...\",\"liked_count\":1234,\"collected_count\":567,\"comments_count\":89}]}]}"}}}}, "400": {"$ref": "#/components/responses/ParamError"}, "401": {"$ref": "#/components/responses/AuthError"}, "402": {"$ref": "#/components/responses/InsufficientTokens"}, "500": {"$ref": "#/components/responses/ServerError"}}}}, "/api/xhs/v2/fullnotedetail": {"get": {"tags": ["笔记"], "summary": "全参笔记详情", "description": "获取完整的笔记详情，包含全部字段。\n\n**计费：60 token/次**\n\n上游接口为 `/xhs/note/detail/{noteId}`，返回已包含完整旧版笔记详情结构。V2 会移除上游 `balance`，并把 `data.result` 作为兼容老接口 body 的 JSON 字符串返回。\n\n上游失败时自动退费。", "operationId": "getFullNoteDetail", "parameters": [{"name": "noteId", "in": "query", "required": true, "schema": {"type": "string"}, "description": "小红书笔记 ID", "example": "6745a3e3000000001d02e498"}], "responses": {"200": {"description": "成功。`data` 为完整笔记详情的 JSON 字符串。", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SuccessStringResponse"}}}}, "400": {"$ref": "#/components/responses/ParamError"}, "401": {"$ref": "#/components/responses/AuthError"}, "402": {"$ref": "#/components/responses/InsufficientTokens"}, "500": {"$ref": "#/components/responses/ServerError"}}}}, "/api/xhs/v2/getcomment": {"get": {"tags": ["评论"], "summary": "一级评论", "description": "获取笔记的一级评论列表，支持游标翻页。\n\n**计费：45 token/次**\n\n`start` 会映射为新厂商 `cursor`。新厂商 `comments` 会适配到旧结构 `data.comments`；`user.user_id` / `user.image` 适配为 `user.userid` / `user.images`；`like_view_count` 优先适配为 `like_count`。\n\n翻页：首次请求不传 `start`，从响应的 `data.cursor` 取值作为下一次请求的 `start`。\n\n排序：传 `sort`（`最新`/`最热`）时切换到排序接口（上游 `/xhs/comment/sort/{noteId}`），不传则走默认排序接口。", "operationId": "getComments", "parameters": [{"name": "noteId", "in": "query", "required": true, "schema": {"type": "string"}, "description": "小红书笔记 ID", "example": "6745a3e3000000001d02e498"}, {"name": "start", "in": "query", "required": false, "schema": {"type": "string"}, "description": "翻页游标。首页不传，后续从上一页响应的 `cursor` 字段获取。"}, {"name": "sort", "in": "query", "required": false, "schema": {"type": "string", "enum": ["最新", "最热"]}, "description": "评论排序方式。传了该字段时切换到排序接口（上游 `/xhs/comment/sort/{noteId}`），不传则走默认排序接口。"}], "responses": {"200": {"description": "成功。`data` 为 JSON 字符串，解析后结构见 CommentBody。", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SuccessStringResponse"}, "example": {"code": 0, "msg": "成功，", "data": "{\"code\":0,\"success\":true,\"data\":{\"comments\":[{\"id\":\"comment_id\",\"content\":\"评论内容\",\"like_count\":10,\"user\":{\"userid\":\"user123\",\"nickname\":\"用户昵称\"}}],\"has_more\":true,\"cursor\":\"next_page_cursor\",\"comment_count\":100}}"}}}}, "400": {"$ref": "#/components/responses/ParamError"}, "401": {"$ref": "#/components/responses/AuthError"}, "402": {"$ref": "#/components/responses/InsufficientTokens"}, "500": {"$ref": "#/components/responses/ServerError"}}}}, "/api/xhs/v2/getsubcomments": {"get": {"tags": ["评论"], "summary": "子评论", "description": "获取某条一级评论下的子评论列表，支持游标翻页。\n\n**计费：45 token/次**\n\n`commentId` 映射为新厂商 `comment_id`，`start` 映射为 `cursor`。子评论是新旧厂商结构最接近的接口，V2 主要做外层 body 兼容、参数名映射和用户字段兜底。", "operationId": "getSubComments", "parameters": [{"name": "noteId", "in": "query", "required": true, "schema": {"type": "string"}, "description": "小红书笔记 ID", "example": "6745a3e3000000001d02e498"}, {"name": "commentId", "in": "query", "required": true, "schema": {"type": "string"}, "description": "父评论 ID（从一级评论接口获取）", "example": "683b1234000000001a0012ef"}, {"name": "start", "in": "query", "required": false, "schema": {"type": "string"}, "description": "翻页游标"}], "responses": {"200": {"description": "成功。`data` 为 JSON 字符串，解析后结构见 SubCommentBody。", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SuccessStringResponse"}}}}, "400": {"$ref": "#/components/responses/ParamError"}, "401": {"$ref": "#/components/responses/AuthError"}, "402": {"$ref": "#/components/responses/InsufficientTokens"}, "500": {"$ref": "#/components/responses/ServerError"}}}}, "/api/xhs/v2/appsearch": {"get": {"tags": ["笔记"], "summary": "笔记搜索", "description": "搜索小红书笔记列表。\n\n**计费：60 token/次**\n\n上游接口为 `/xhs/note/v1/search/`。V2 会移除上游 `balance`，并把上游响应作为 JSON 字符串返回。\n\n兼容参数：`sortType` 可作为 `sort` 的别名，`filterNoteType` 可作为 `note_type` 的别名，`filterNoteTime` 可作为 `note_time` 的别名。", "operationId": "searchNotes", "parameters": [{"name": "keyword", "in": "query", "required": true, "schema": {"type": "string"}, "description": "搜索关键词", "example": "保诚"}, {"name": "page", "in": "query", "required": false, "schema": {"type": "integer", "default": 1, "minimum": 1}, "description": "页码，从 1 开始"}, {"name": "sort", "in": "query", "required": false, "schema": {"type": "string", "default": "综合", "enum": ["综合", "最新", "最多点赞", "最多评论", "最多收藏", "英文优先"]}, "description": "排序方式"}, {"name": "note_type", "in": "query", "required": false, "schema": {"type": "string", "default": "不限", "enum": ["不限", "视频笔记", "普通笔记"]}, "description": "笔记类型"}, {"name": "note_time", "in": "query", "required": false, "schema": {"type": "string", "default": "不限", "enum": ["不限", "一天内", "一周内", "一个月内", "一年内"]}, "description": "时间范围"}], "responses": {"200": {"description": "成功。`data` 为搜索结果 JSON 字符串。", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SuccessStringResponse"}, "example": {"code": 0, "msg": "成功，", "data": "{\"success\":true,\"data\":{\"items\":[{\"model_type\":\"note\",\"note\":{\"id\":\"note_id\",\"title\":\"笔记标题\"}}]}}"}}}}, "400": {"$ref": "#/components/responses/ParamError"}, "401": {"$ref": "#/components/responses/AuthError"}, "402": {"$ref": "#/components/responses/InsufficientTokens"}, "500": {"$ref": "#/components/responses/ServerError"}}}}, "/api/xhs/v2/appuserposted": {"get": {"tags": ["用户"], "summary": "用户笔记列表", "description": "获取指定用户发布的笔记列表，按 cursor 翻页。\n\n**计费：60 token/次**\n\n上游接口为 `/xhs/user/{userId}`。首页不传 `cursor`，后续传上一页最后一个笔记的 `id` / `note_id`。响应里的 `data.cursor` 会优先返回上游游标；若上游未返回，则使用本页最后一条笔记 ID。", "operationId": "getUserPosted", "parameters": [{"name": "userId", "in": "query", "required": true, "schema": {"type": "string"}, "description": "小红书用户 ID", "example": "5a1234567890abcdef012345"}, {"name": "cursor", "in": "query", "required": false, "schema": {"type": "string"}, "description": "翻页游标。首页不传，下一页传上一页最后一个笔记的 `id` / `note_id`。"}], "responses": {"200": {"description": "成功。`data` 为 JSON 字符串，解析后结构见 UserPostedBody。", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SuccessStringResponse"}, "example": {"code": 0, "msg": "成功，", "data": "{\"code\":0,\"success\":true,\"msg\":\"success\",\"data\":{\"has_more\":true,\"notes\":[{\"id\":\"note_id_1\",\"note_id\":\"note_id_1\",\"display_title\":\"笔记标题\",\"type\":\"normal\",\"create_time\":1716000000}]}}"}}}}, "400": {"$ref": "#/components/responses/ParamError"}, "401": {"$ref": "#/components/responses/AuthError"}, "402": {"$ref": "#/components/responses/InsufficientTokens"}, "500": {"$ref": "#/components/responses/ServerError"}}}}, "/api/xhs/v2/appuserinfo": {"get": {"tags": ["用户"], "summary": "用户详细信息", "description": "获取指定用户的详细资料。\n\n**计费：45 token/次**\n\n上游接口为 `/xhs/user/info/{userId}`。V2 会移除上游 `balance`，并返回兼容老接口 body 的 JSON 字符串，用户资料位于 body 的 `data` 字段。\n\n上游失败时自动退费。", "operationId": "getUserInfo", "parameters": [{"name": "userId", "in": "query", "required": true, "schema": {"type": "string"}, "description": "小红书用户 ID", "example": "5a1234567890abcdef012345"}], "responses": {"200": {"description": "成功。`data` 为 JSON 字符串，包含用户详细资料。", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SuccessStringResponse"}}}}, "400": {"$ref": "#/components/responses/ParamError"}, "401": {"$ref": "#/components/responses/AuthError"}, "402": {"$ref": "#/components/responses/InsufficientTokens"}, "500": {"$ref": "#/components/responses/ServerError"}}}}, "/api/xhs/v2/fulluserinfo": {"get": {"tags": ["用户"], "summary": "全参用户详细信息", "description": "获取指定用户的完整资料。\n\n**计费：60 token/次**\n\n上游接口为 `/xhs/user/info/full/{userId}`，返回内容包含完整用户资料。V2 会移除上游 `balance`，并把上游 `data.result` 作为兼容老接口 body 的 JSON 字符串返回。\n\n上游失败时自动退费。", "operationId": "getFullUserInfo", "parameters": [{"name": "userId", "in": "query", "required": true, "schema": {"type": "string"}, "description": "小红书用户 ID", "example": "5a1234567890abcdef012345"}], "responses": {"200": {"description": "成功。`data` 为 JSON 字符串，包含完整用户资料。", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SuccessStringResponse"}}}}, "400": {"$ref": "#/components/responses/ParamError"}, "401": {"$ref": "#/components/responses/AuthError"}, "402": {"$ref": "#/components/responses/InsufficientTokens"}, "500": {"$ref": "#/components/responses/ServerError"}}}}, "/api/xhs/v2/balance": {"get": {"tags": ["系统"], "summary": "厂商余额查询", "description": "查询新厂商余额。此接口**不消耗**用户 Token。\n\n余额查询接口本身会返回 `balance`；移除 `balance` 只适用于 V2 业务接口。", "operationId": "getBalance", "responses": {"200": {"description": "成功", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/BalanceResponse"}, "example": {"code": 0, "msg": "成功，", "data": {"balance": 128.5, "status": 200}}}}}, "401": {"$ref": "#/components/responses/AuthError"}, "500": {"$ref": "#/components/responses/ServerError"}}}}, "/api/xhs/v3/notedetail": {"get": {"tags": ["小红书 V3(ios原生数据,更稳定,比v2便宜30%)"], "summary": "笔记详情 V3 - 45token", "operationId": "notedetailV3", "parameters": [{"name": "noteId", "in": "query", "required": true, "schema": {"type": "string"}, "description": "小红书笔记 ID"}], "responses": {"200": {"description": "成功", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SuccessStringResponse"}}}}, "400": {"$ref": "#/components/responses/ParamError"}, "401": {"$ref": "#/components/responses/AuthError"}}}}, "/api/xhs/v3/notedetailv2": {"get": {"tags": ["小红书 V3(ios原生数据,更稳定,比v2便宜30%)"], "summary": "笔记详情 V3(新版通道) - 45token", "description": "参数与返回体和「笔记详情 V3」完全一致，区别只是走上游的新版通道。", "operationId": "notedetailv2V3", "parameters": [{"name": "noteId", "in": "query", "required": true, "schema": {"type": "string"}, "description": "小红书笔记 ID"}], "responses": {"200": {"description": "成功", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SuccessStringResponse"}}}}, "400": {"$ref": "#/components/responses/ParamError"}, "401": {"$ref": "#/components/responses/AuthError"}}}}, "/api/xhs/v3/fullnotedetail": {"get": {"tags": ["小红书 V3(ios原生数据,更稳定,比v2便宜30%)"], "summary": "全参笔记详情 V3 - 45token", "operationId": "fullnotedetailV3", "parameters": [{"name": "noteId", "in": "query", "required": true, "schema": {"type": "string"}, "description": "小红书笔记 ID"}], "responses": {"200": {"description": "成功", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SuccessStringResponse"}}}}, "400": {"$ref": "#/components/responses/ParamError"}, "401": {"$ref": "#/components/responses/AuthError"}}}}, "/api/xhs/v3/videonotedetail": {"get": {"tags": ["小红书 V3(ios原生数据,更稳定,比v2便宜30%)"], "summary": "视频笔记详情 V3 - 45token", "operationId": "videonotedetailV3", "parameters": [{"name": "noteId", "in": "query", "required": true, "schema": {"type": "string"}, "description": "小红书笔记 ID"}], "responses": {"200": {"description": "成功", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SuccessStringResponse"}}}}, "400": {"$ref": "#/components/responses/ParamError"}, "401": {"$ref": "#/components/responses/AuthError"}}}}, "/api/xhs/v3/getcomment": {"get": {"tags": ["小红书 V3(ios原生数据,更稳定,比v2便宜30%)"], "summary": "一级评论 V3 - 45token", "operationId": "getcommentV3", "parameters": [{"name": "noteId", "in": "query", "required": true, "schema": {"type": "string"}, "description": "小红书笔记 ID"}, {"name": "cursor", "in": "query", "required": false, "schema": {"type": "string"}, "description": "翻页游标"}, {"name": "sort_strategy", "in": "query", "required": false, "schema": {"type": "string", "default": "default"}, "description": "排序策略"}], "responses": {"200": {"description": "成功", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SuccessStringResponse"}}}}, "400": {"$ref": "#/components/responses/ParamError"}, "401": {"$ref": "#/components/responses/AuthError"}}}}, "/api/xhs/v3/getsubcomments": {"get": {"tags": ["小红书 V3(ios原生数据,更稳定,比v2便宜30%)"], "summary": "二级评论 V3 - 45token", "operationId": "getsubcommentsV3", "parameters": [{"name": "noteId", "in": "query", "required": true, "schema": {"type": "string"}, "description": "小红书笔记 ID"}, {"name": "commentId", "in": "query", "required": true, "schema": {"type": "string"}, "description": "一级评论 ID"}, {"name": "cursor", "in": "query", "required": false, "schema": {"type": "string"}, "description": "翻页游标"}], "responses": {"200": {"description": "成功", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SuccessStringResponse"}}}}, "400": {"$ref": "#/components/responses/ParamError"}, "401": {"$ref": "#/components/responses/AuthError"}}}}, "/api/xhs/v3/appsearch": {"get": {"tags": ["小红书 V3(ios原生数据,更稳定,比v2便宜30%)"], "summary": "笔记搜索 V3 - 45token", "operationId": "appsearchV3", "parameters": [{"name": "keyword", "in": "query", "required": true, "schema": {"type": "string"}, "description": "搜索关键词"}, {"name": "page", "in": "query", "required": false, "schema": {"type": "integer", "default": 1}, "description": "页码"}, {"name": "sort_type", "in": "query", "required": false, "schema": {"type": "string", "default": "综合"}, "description": "排序方式"}, {"name": "note_type", "in": "query", "required": false, "schema": {"type": "string", "default": "不限"}, "description": "笔记类型"}, {"name": "note_time", "in": "query", "required": false, "schema": {"type": "string", "default": "不限"}, "description": "时间范围"}], "responses": {"200": {"description": "成功", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SuccessStringResponse"}}}}, "400": {"$ref": "#/components/responses/ParamError"}, "401": {"$ref": "#/components/responses/AuthError"}}}}, "/api/xhs/v3/appuserinfo": {"get": {"tags": ["小红书 V3(ios原生数据,更稳定,比v2便宜30%)"], "summary": "用户信息 V3 - 45token", "operationId": "appuserinfoV3", "parameters": [{"name": "userId", "in": "query", "required": true, "schema": {"type": "string"}, "description": "小红书用户 ID"}], "responses": {"200": {"description": "成功", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SuccessStringResponse"}}}}, "400": {"$ref": "#/components/responses/ParamError"}, "401": {"$ref": "#/components/responses/AuthError"}}}}, "/api/xhs/v3/appuserposted": {"get": {"tags": ["小红书 V3(ios原生数据,更稳定,比v2便宜30%)"], "summary": "用户作品列表 V3 - 45token", "operationId": "appuserpostedV3", "parameters": [{"name": "userId", "in": "query", "required": true, "schema": {"type": "string"}, "description": "小红书用户 ID"}, {"name": "cursor", "in": "query", "required": false, "schema": {"type": "string"}, "description": "翻页游标"}], "responses": {"200": {"description": "成功", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SuccessStringResponse"}}}}, "400": {"$ref": "#/components/responses/ParamError"}, "401": {"$ref": "#/components/responses/AuthError"}}}}, "/api/xhs/v3/topicfeed": {"get": {"tags": ["小红书 V3(ios原生数据,更稳定,比v2便宜30%)"], "summary": "话题笔记列表 V3 - 45token", "operationId": "topicfeedV3", "parameters": [{"name": "page_id", "in": "query", "required": true, "schema": {"type": "string"}, "description": "话题 page_id"}, {"name": "sort", "in": "query", "required": false, "schema": {"type": "string", "default": "trend"}, "description": "trend 为最热，time 为最新"}, {"name": "cursor", "in": "query", "required": false, "schema": {"type": "string"}, "description": "翻页游标 JSON"}], "responses": {"200": {"description": "成功", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SuccessStringResponse"}}}}, "400": {"$ref": "#/components/responses/ParamError"}, "401": {"$ref": "#/components/responses/AuthError"}}}}}}