获取笔记详情
POST
/api/xhs/note_detail:::highlight red 📌
小红书接口在原有的字段基础上外套response_status
、response_body
、response_headers
,分别对应小红书返回的响应码
,响应体
,响应头
,其中response_body
内容字段与原有的保持一致。
:::
请求参数
Header 参数
Cookie
string
可选
如接口返回失败请携带你自己的cookie
Body 参数application/json
note_id
string | null
必需
笔记ID(与分享链接必填一项)
xsec_token
string | null
已废弃
xsec_token
share_text
string | null
必需
分享链接(与笔记ID必填一项)
示例
{
"note_id": "66b497d4000000001e01a0a9",
"share_text": ""
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
MoreAPI相应码
msg
string
必需
path
string
必需
data
object
MoreAPI相应数据
response_status
integer
小红书响应码
response_body
object
小红书响应体
response_headers
object
小红书响应头
示例
成功示例
{
"code": 200,
"msg": "success",
"path": "/api/xhs/note_detail",
"data": {
"response_status": 200,
"response_body": {
"success": true,
"msg": "成功",
"data": {
"cursor_score": "",
"items": [
{
"id": "66b497d4000000001e01a0a9",
"model_type": "note",
"note_card": {
"note_id": "66b497d4000000001e01a0a9",
"tag_list": [
{
"name": "留学",
"type": "topic",
"id": "5bea5e2186535d0001bf235d"
},
{
"id": "610a3a1a000000000100b69d",
"name": "出國留學",
"type": "topic"
},
{
"id": "5c0f75a1e093d10001c19932",
"name": "研究生申请",
"type": "topic"
},
{
"id": "5bed6a8b426cbb0001f9afad",
"name": "留学美国",
"type": "topic"
},
{
"id": "5bff4087e41c8000018a8c20",
"name": "美国研究生申请",
"type": "topic"
},
{
"id": "613ff2a20000000001003e0b",
"name": "留美申请",
"type": "topic"
},
{
"id": "5c2bdc560000000009020616",
"name": "美国名校",
"type": "topic"
},
{
"id": "5bf5c4645fb4e60001b98b3a",
"name": "明尼苏达大学",
"type": "topic"
},
{
"type": "topic",
"id": "5940fb8acd30d826ede3c9ce",
"name": "留学申请指南"
},
{
"id": "5c01dd5923cdb5000162e4d5",
"name": "留学中介",
"type": "topic"
},
{
"id": "6276535a00000000010017b1",
"name": "微思教育",
"type": "topic"
}
],
"type": "video",
"title": "光看排名,你可能会错过的明尼苏达大学!",
"ip_location": "北京",
"desc": "微思名校课堂开课啦[自拍R]\n\t\n明尼苏达大学–双城分校,全美排名第53,位于美国明尼苏达州双城区,一所研究型大学,美国高新十大联盟,属于明尼苏达系统。\n\t\n🔺 优势专业:发展心理学,经济学,物理学,信息系统管理学,数学,化学工程学,计算机科学,药剂学。\n\t\n🔺 申请要求:正规大学学历并获得学士学位,GPA3.0以上,TOEFL需达到79以上,写作不低于21,阅读不低于19;IELTS需达到6.5以上,写作和阅读单项均不低于6.5.\n\t\n🔺 学费:约56000美元每年。\n\t\n关于明尼苏达大学–双城分校和申请,你有哪些疑问?可以留言哦❤\n\t\n#留学[话题]# #出國留學[话题]# #研究生申请[话题]# #留学美国[话题]# #美国研究生申请[话题]# #留美申请[话题]# #美国名校[话题]# #明尼苏达大学[话题]# #留学申请指南[话题]# #留学中介[话题]# #微思教育[话题]#",
"user": {
"user_id": "6274ef60000000001501ea9d",
"nickname": "微思留学",
"avatar": "https://sns-avatar-qc.xhscdn.com/avatar/62763cc75351f00001325292.jpg"
},
"time": 1723111380000,
"last_update_time": 1723111380000,
"interact_info": {
"relation": "none",
"liked": false,
"liked_count": "7",
"collected": false,
"collected_count": "3",
"comment_count": "4",
"share_count": "1",
"followed": false
},
"image_list": [
{
"file_id": "",
"width": 1181,
"info_list": [
{
"image_scene": "WB_PRV",
"url": "http://sns-webpic-qc.xhscdn.com/202409061958/33242b40d05fd587ad281e59041c6a23/spectrum/1040g0k031681ebg10s005ojkttg5bqkt5lof7po!nd_prv_wlteh_webp_3"
},
{
"image_scene": "WB_DFT",
"url": "http://sns-webpic-qc.xhscdn.com/202409061958/ba91a706b342397b76255c399e9ff986/spectrum/1040g0k031681ebg10s005ojkttg5bqkt5lof7po!nd_dft_wlteh_webp_3"
}
],
"url_pre": "http://sns-webpic-qc.xhscdn.com/202409061958/33242b40d05fd587ad281e59041c6a23/spectrum/1040g0k031681ebg10s005ojkttg5bqkt5lof7po!nd_prv_wlteh_webp_3",
"stream": {},
"live_photo": false,
"height": 1575,
"url": "",
"trace_id": "",
"url_default": "http://sns-webpic-qc.xhscdn.com/202409061958/ba91a706b342397b76255c399e9ff986/spectrum/1040g0k031681ebg10s005ojkttg5bqkt5lof7po!nd_dft_wlteh_webp_3"
}
],
"video": {
"capa": {
"duration": 40
},
"consumer": {
"origin_video_key": "spectrum/1040g0jg31681dnbs0o005ojkttg5bqktv2ol5o0"
},
"media": {
"video_id": 136995390650874270,
"video": {
"drm_type": 0,
"stream_types": [
259
],
"biz_name": 110,
"biz_id": "281110590955036841",
"duration": 41,
"md5": "7ea96349fd955aac9ed55a54b5df5ae8",
"hdr_type": 0
},
"stream": {
"av1": [],
"h264": [
{
"format": "mp4",
"volume": 0,
"video_codec": "h264",
"weight": 62,
"stream_type": 259,
"default_stream": 0,
"ssim": 0,
"quality_type": "HD",
"audio_codec": "aac",
"audio_channels": 2,
"backup_urls": [
"http://sns-video-bd.xhscdn.com/stream/110/259/01e6b494fb9c79a701037603913171bd66_259.mp4",
"http://sns-video-hw.xhscdn.com/stream/110/259/01e6b494fb9c79a701037603913171bd66_259.mp4",
"http://sns-video-al.xhscdn.com/stream/110/259/01e6b494fb9c79a701037603913171bd66_259.mp4",
"http://sns-video-hw.xhscdn.net/stream/110/259/01e6b494fb9c79a701037603913171bd66_259.mp4"
],
"size": 2425366,
"psnr": 0,
"audio_bitrate": 56087,
"vmaf": -1,
"video_bitrate": 420404,
"video_duration": 40291,
"master_url": "http://sns-video-qc.xhscdn.com/stream/110/259/01e6b494fb9c79a701037603913171bd66_259.mp4?sign=3efa3c1b8b396d8c947fdddbaf2a8ed0&t=66df8b9f",
"height": 1324,
"stream_desc": "WM_X264_MP4",
"avg_bitrate": 481557,
"fps": 24,
"audio_duration": 40288,
"rotate": 0,
"width": 720,
"duration": 40292,
"hdr_type": 0
}
],
"h265": []
}
},
"image": {
"thumbnail_fileid": "110/0/01e6b494fb9c79a70010000000019131712fcf_0.webp"
}
},
"at_user_list": [],
"share_info": {
"un_share": false
}
}
}
],
"current_time": 1725623903276,
"unwatermarked_images_list": [
"https://sns-img-qc.xhscdn.com/spectrum/1040g0k031681ebg10s005ojkttg5bqkt5lof7po?imageView2/format/png"
],
"unwatermarked_video": "https://sns-video-bd.xhscdn.com/spectrum/1040g0jg31681dnbs0o005ojkttg5bqktv2ol5o0"
},
"code": 0
},
"response_headers": {
"date": "Fri, 06 Sep 2024 11:58:23 GMT",
"content-type": "application/json; charset=utf-8",
"alt-svc": "h3=\":443\"; ma=2592000, h3-29=\":443\"; ma=2592000, h3-27=\":443\"; ma=2592000, h3-Q050=\":443\"; ma=2592000, h3-Q046=\":443\"; ma=2592000, h3-Q043=\":443\"; ma=2592000, h3-Q039=\":443\"; ma=2592000, quic=\":443\"; ma=2592000; v=\"39,43,46\"",
"transfer-encoding": "chunked",
"connection": "keep-alive",
"server": "nginx",
"access-control-allow-credentials": "true",
"access-control-allow-origin": "https://www.xiaohongshu.com",
"cat-msg-id": "karen-gateway-snsdefault-0ad4cbb8.25238-479339-80009",
"request-id": "5a4000b84a6c4d23b31a51e591b9dac8",
"x-kong-sign": "0",
"xhs-request-time": "0.120",
"content-encoding": "gzip",
"xhs-real-ip": "220.178.184.255"
}
}
}
修改于 17 天前