HTTP 端点参考小红书
笔记详细信息
取笔记正文与互动数据。要评论区用 `noteComments`。
Authorization
bearerAuth AuthorizationBearer <token>
仅在 startServer 传了 token 时生效
In: header
Query Parameters
note_id*string
笔记 ID;从笔记分享链接里取
Length
1 <= lengthxsec_token*string
反爬令牌,随笔记分享链接下发;与发放它的会话绑定 —— 游客下换会话即 461,须同会话现取或带上原游客 CK
Length
1 <= lengthResponse Body
application/json
application/json
curl -X GET "https://example.com/api/xiaohongshu/fetch_one_note?note_id=string&xsec_token=string"{ "success": true, "data": { "code": 0, "data": { "current_time": 0, "cursor_score": "string", "items": [ { "id": "string", "ignore": true, "model_type": "string", "note_card": { "at_user_list": [ null ], "desc": "string", "image_list": [ { "file_id": "string", "height": 0, "info_list": [ { "image_scene": "string", "url": "string" } ], "live_photo": true, "stream": {}, "trace_id": "string", "url": "string", "url_default": "string", "url_pre": "string", "width": 0 } ], "interact_info": { "collected": true, "collected_count": "string", "comment_count": "string", "followed": true, "liked": true, "liked_count": "string", "nice_count": "string", "relation": "string", "share_count": "string" }, "ip_location": "string", "last_update_time": 0, "note_id": "string", "share_info": { "un_share": true }, "tag_list": [ { "id": "string", "name": "string", "type": "string" } ], "time": 0, "title": "string", "type": "string", "user": { "avatar": "string", "nickname": "string", "user_id": "string", "xsec_token": "string" } } } ] }, "msg": "string", "success": true }, "error": { "kind": "validation", "code": "string", "message": "string", "retryable": true, "platform": { "code": "string", "message": "string" }, "http": { "status": 0, "statusText": "string" }, "issues": [ { "path": "string", "message": "string", "received": null } ] }, "message": "string", "meta": { "requestId": "string", "clientId": "string", "platform": "douyin", "endpoint": "string", "durationMs": 0, "attempts": 0, "trace": [ { "url": "string", "method": "string", "status": 0, "durationMs": 0, "reason": "initial", "retryOf": "string" } ] }, "requestPath": "/api/bilibili/fetch_one_video?bvid=BV1xx"}