稳定、快速、免费的 API 接口服务
查询小红薯笔记详情
接口地址: https://api.itfaba.com/xhs/noteDetail
返回格式: JSON
请求方式: POST
请求示例: https://api.itfaba.com/xhs/noteDetail?apiKey=testkey
直连路由服务地址1: https://api-1.itfaba.com/xhs/noteDetail?apiKey=xxx
直连路由服务地址2: https://api-2.itfaba.com/xhs/noteDetail?apiKey=xxx
注意:{apiKey}参数接口密钥登陆用户平台获取
请求参数说明:
| 名称 | 必填 | 类型 | 说明 |
|---|---|---|---|
| note_id | 是 | string | 笔记ID例如:66b814840000000025031d96 |
| cookie | 否 | string | 登录COOKIE, 默认游客COOKIE数据只是预估数字 |
| xsec_token | 是 | string | 小红书详情token,例如:AB2d02CDt_xeO6l809qwzt07G6-Z3FJi4el3gipOX5C3Q= |
返回参数说明:
| 名称 | 类型 | 说明 |
|---|
返回示例:
{
result:1,
info:"成功",
data:{
"id": "665dd5330000000006005fc8",
"model_type": "note",
"note_card": {
"user": {
"user_id": "664dfbe3000000000303254a",
"nickname": "海底两百斤",
"avatar": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo3133rs1t5he005pidvfhgu9aa6nfop4g"
},
"tag_list": [
{
"id": "611b5e9b000000000100587d",
"name": "比基尼拍照",
"type": "topic"
},
{
"id": "5e4d7bc60000000001007e73",
"name": "微胖身材",
"type": "topic"
},
{
"id": "5be06d7674881c00015c34ec",
"name": "微胖",
"type": "topic"
},
{
"id": "5bf09c3626435c0001eda234",
"name": "海边拍照",
"type": "topic"
},
{
"id": "5e4814d300000000010061cd",
"name": "快乐减脂",
"type": "topic"
},
{
"type": "topic",
"id": "5bee9b4e26346900019cb5b9",
"name": "微胖女孩"
}
],
"at_user_list": [],
"ip_location": "广东",
"time": 1717425459000,
"last_update_time": 1717761536000,
"note_id": "665dd5330000000006005fc8",
"type": "normal",
"title": "132斤的海边比基尼",
"desc": "#比基尼拍照[话题]# #微胖身材[话题]# #微胖[话题]# #海边拍照[话题]# #快乐减脂[话题]# #微胖女孩[话题]#",
"interact_info": {
"relation": "none",
"liked": false,
"liked_count": "34895",
"collected": false,
"collected_count": "5496",
"comment_count": "6282",
"share_count": "4596",
"followed": false
},
"image_list": [
{
"url_pre": "http://sns-webpic-qc.xhscdn.com/202406151507/9b80d1baad8856cd4597e74ac0039fb9/1040g2sg313jagigkg8005pidvfhgu9aarnpi0k8!nd_prv_wlteh_webp_3",
"url_default": "http://sns-webpic-qc.xhscdn.com/202406151507/d18f245a2e56b6f9de6d5d8ca198ec0c/1040g2sg313jagigkg8005pidvfhgu9aarnpi0k8!nd_dft_wlteh_webp_3",
"stream": {},
"live_photo": false,
"url": "",
"info_list": [
{
"image_scene": "WB_PRV",
"url": "http://sns-webpic-qc.xhscdn.com/202406151507/9b80d1baad8856cd4597e74ac0039fb9/1040g2sg313jagigkg8005pidvfhgu9aarnpi0k8!nd_prv_wlteh_webp_3"
},
{
"image_scene": "WB_DFT",
"url": "http://sns-webpic-qc.xhscdn.com/202406151507/d18f245a2e56b6f9de6d5d8ca198ec0c/1040g2sg313jagigkg8005pidvfhgu9aarnpi0k8!nd_dft_wlteh_webp_3"
}
],
"width": 1920,
"trace_id": "",
"file_id": "",
"height": 2560
},
{
"live_photo": false,
"trace_id": "",
"url_pre": "http://sns-webpic-qc.xhscdn.com/202406151507/1fc3bb97c4b6cf731b9abef39a24cffb/1040g2sg313jagigkg80g5pidvfhgu9aae2fjcog!nd_prv_wlteh_webp_3",
"url_default": "http://sns-webpic-qc.xhscdn.com/202406151507/411c1bb452c73cf31005a1f2592a367e/1040g2sg313jagigkg80g5pidvfhgu9aae2fjcog!nd_dft_wlteh_webp_3",
"url": "",
"info_list": [
{
"image_scene": "WB_PRV",
"url": "http://sns-webpic-qc.xhscdn.com/202406151507/1fc3bb97c4b6cf731b9abef39a24cffb/1040g2sg313jagigkg80g5pidvfhgu9aae2fjcog!nd_prv_wlteh_webp_3"
},
{
"image_scene": "WB_DFT",
"url": "http://sns-webpic-qc.xhscdn.com/202406151507/411c1bb452c73cf31005a1f2592a367e/1040g2sg313jagigkg80g5pidvfhgu9aae2fjcog!nd_dft_wlteh_webp_3"
}
],
"stream": {},
"file_id": "",
"height": 2560,
"width": 1920
},
{
"url": "",
"stream": {},
"width": 1678,
"height": 2560,
"trace_id": "",
"info_list": [
{
"image_scene": "WB_PRV",
"url": "http://sns-webpic-qc.xhscdn.com/202406151507/05c2d853263ad5ac169beb85900c7f2a/1040g2sg313jagigkg8105pidvfhgu9aa5ptf59o!nd_prv_wlteh_webp_3"
},
{
"image_scene": "WB_DFT",
"url": "http://sns-webpic-qc.xhscdn.com/202406151507/a938250e1743837193f9909ce1b36b86/1040g2sg313jagigkg8105pidvfhgu9aa5ptf59o!nd_dft_wlteh_webp_3"
}
],
"url_pre": "http://sns-webpic-qc.xhscdn.com/202406151507/05c2d853263ad5ac169beb85900c7f2a/1040g2sg313jagigkg8105pidvfhgu9aa5ptf59o!nd_prv_wlteh_webp_3",
"url_default": "http://sns-webpic-qc.xhscdn.com/202406151507/a938250e1743837193f9909ce1b36b86/1040g2sg313jagigkg8105pidvfhgu9aa5ptf59o!nd_dft_wlteh_webp_3",
"live_photo": false,
"file_id": ""
}
],
"share_info": {
"un_share": false
}
}
}
}
请求参数设置:
| 参数名称 | 参数值 |
|---|---|
{
result:1,
info:"成功",
data:{
"id": "665dd5330000000006005fc8",
"model_type": "note",
"note_card": {
"user": {
"user_id": "664dfbe3000000000303254a",
"nickname": "海底两百斤",
"avatar": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo3133rs1t5he005pidvfhgu9aa6nfop4g"
},
"tag_list": [
{
"id": "611b5e9b000000000100587d",
"name": "比基尼拍照",
"type": "topic"
},
{
"id": "5e4d7bc60000000001007e73",
"name": "微胖身材",
"type": "topic"
},
{
"id": "5be06d7674881c00015c34ec",
"name": "微胖",
"type": "topic"
},
{
"id": "5bf09c3626435c0001eda234",
"name": "海边拍照",
"type": "topic"
},
{
"id": "5e4814d300000000010061cd",
"name": "快乐减脂",
"type": "topic"
},
{
"type": "topic",
"id": "5bee9b4e26346900019cb5b9",
"name": "微胖女孩"
}
],
"at_user_list": [],
"ip_location": "广东",
"time": 1717425459000,
"last_update_time": 1717761536000,
"note_id": "665dd5330000000006005fc8",
"type": "normal",
"title": "132斤的海边比基尼",
"desc": "#比基尼拍照[话题]# #微胖身材[话题]# #微胖[话题]# #海边拍照[话题]# #快乐减脂[话题]# #微胖女孩[话题]#",
"interact_info": {
"relation": "none",
"liked": false,
"liked_count": "34895",
"collected": false,
"collected_count": "5496",
"comment_count": "6282",
"share_count": "4596",
"followed": false
},
"image_list": [
{
"url_pre": "http://sns-webpic-qc.xhscdn.com/202406151507/9b80d1baad8856cd4597e74ac0039fb9/1040g2sg313jagigkg8005pidvfhgu9aarnpi0k8!nd_prv_wlteh_webp_3",
"url_default": "http://sns-webpic-qc.xhscdn.com/202406151507/d18f245a2e56b6f9de6d5d8ca198ec0c/1040g2sg313jagigkg8005pidvfhgu9aarnpi0k8!nd_dft_wlteh_webp_3",
"stream": {},
"live_photo": false,
"url": "",
"info_list": [
{
"image_scene": "WB_PRV",
"url": "http://sns-webpic-qc.xhscdn.com/202406151507/9b80d1baad8856cd4597e74ac0039fb9/1040g2sg313jagigkg8005pidvfhgu9aarnpi0k8!nd_prv_wlteh_webp_3"
},
{
"image_scene": "WB_DFT",
"url": "http://sns-webpic-qc.xhscdn.com/202406151507/d18f245a2e56b6f9de6d5d8ca198ec0c/1040g2sg313jagigkg8005pidvfhgu9aarnpi0k8!nd_dft_wlteh_webp_3"
}
],
"width": 1920,
"trace_id": "",
"file_id": "",
"height": 2560
},
{
"live_photo": false,
"trace_id": "",
"url_pre": "http://sns-webpic-qc.xhscdn.com/202406151507/1fc3bb97c4b6cf731b9abef39a24cffb/1040g2sg313jagigkg80g5pidvfhgu9aae2fjcog!nd_prv_wlteh_webp_3",
"url_default": "http://sns-webpic-qc.xhscdn.com/202406151507/411c1bb452c73cf31005a1f2592a367e/1040g2sg313jagigkg80g5pidvfhgu9aae2fjcog!nd_dft_wlteh_webp_3",
"url": "",
"info_list": [
{
"image_scene": "WB_PRV",
"url": "http://sns-webpic-qc.xhscdn.com/202406151507/1fc3bb97c4b6cf731b9abef39a24cffb/1040g2sg313jagigkg80g5pidvfhgu9aae2fjcog!nd_prv_wlteh_webp_3"
},
{
"image_scene": "WB_DFT",
"url": "http://sns-webpic-qc.xhscdn.com/202406151507/411c1bb452c73cf31005a1f2592a367e/1040g2sg313jagigkg80g5pidvfhgu9aae2fjcog!nd_dft_wlteh_webp_3"
}
],
"stream": {},
"file_id": "",
"height": 2560,
"width": 1920
},
{
"url": "",
"stream": {},
"width": 1678,
"height": 2560,
"trace_id": "",
"info_list": [
{
"image_scene": "WB_PRV",
"url": "http://sns-webpic-qc.xhscdn.com/202406151507/05c2d853263ad5ac169beb85900c7f2a/1040g2sg313jagigkg8105pidvfhgu9aa5ptf59o!nd_prv_wlteh_webp_3"
},
{
"image_scene": "WB_DFT",
"url": "http://sns-webpic-qc.xhscdn.com/202406151507/a938250e1743837193f9909ce1b36b86/1040g2sg313jagigkg8105pidvfhgu9aa5ptf59o!nd_dft_wlteh_webp_3"
}
],
"url_pre": "http://sns-webpic-qc.xhscdn.com/202406151507/05c2d853263ad5ac169beb85900c7f2a/1040g2sg313jagigkg8105pidvfhgu9aa5ptf59o!nd_prv_wlteh_webp_3",
"url_default": "http://sns-webpic-qc.xhscdn.com/202406151507/a938250e1743837193f9909ce1b36b86/1040g2sg313jagigkg8105pidvfhgu9aa5ptf59o!nd_dft_wlteh_webp_3",
"live_photo": false,
"file_id": ""
}
],
"share_info": {
"un_share": false
}
}
}
}
错误码格式说明:
| 名称 | 类型 | 说明 |
|---|---|---|
| code | int | 0:异常消息,1:正常,2:警告 |
| result | int | 0:异常消息,1:正常 |
代码示例:
apiKey登录用户平台获取