当前位置: 首页 > backend >正文

小红书文章内容提取免费API接口教程

接口简介:
提取指定小红书文章内容。本接口仅做内容提取,未经作者授权请勿转载。

请求地址:
https://cn.apihz.cn/api/caiji/xiaohongshu.php

请求方式:
POST或GET。

请求参数:
【名称】【参数】【必填】【说明】
【用户ID】【id】【是】【用户中心的数字ID,例:id=10000000】
【用户KEY】【key】【是】【用户中心通讯秘钥,例:key=15he5h15ty854j5sr152hs2】
【文章URL】【url】【是】【文章地址,例:url=http://xhslink.com/a/AFsYwhoawxYcb】

返回参数:
【名称】【参数】【说明】
【状态码】【code】【200成功,400错误】
【信息提示】【msg】【信息提示。】
【文章ID】【noteId】【文章ID。】
【文章标题】【title】【文章标题。】
【文章内容】【desc】【文章内容。】
【作者昵称】【nickname】【作者昵称。】
【作者ID】【userId】【作者ID。】
【作者头像】【avatar】【作者头像。】
【数据集】【data】【资源数据集,图片,视频等。包含不同分辨率图片等。】

GET请求示例:
https://cn.apihz.cn/api/caiji/xiaohongshu.php?id=88888888&key=88888888&url=http://xhslink.com/a/AFsYwhoawxYcb
注意:示例里的ID与KEY为公共ID与KEY,共享每分钟调用频次限制,接口本身免费,请使用自己的ID与KEY,独享每分钟调用频次。每日调用无上限。

POST请求示例:
请根据开发语言自行POST。

返回数据示例:
示例:{"code":400,"msg":"通讯秘钥错误。"}
示例:
{
    "code": 200,
    "noteId": "682b5760000000001200047d",
    "title": "正宗苏州东山白玉枇杷rg元祖2.0",
    "desc": "趁苏州东山白玉枇杷大量上市,自己改了个枇杷配色的rg元祖2.0,顺便买了点黄色水贴点缀[派对R][派对R][派对R]#万代发烧友[话题]# #玩具模型[话题]# #东山白玉枇杷[话题]# #白玉枇杷[话题]# #枇杷[话题]# #元祖[话题]# #rg元祖[话题]# #手办模型[话题]# #高达模型制作[话题]# #枇杷季当然要吃枇杷啦[话题]#",
    "nickname": "€灰色的能猫??",
    "userId": "5d216456000000001003b38b",
    "avatar": "https://sns-avatar-qc.xhscdn.com/avatar/60e519a811cd9bc0abf06129.jpg",
    "data": [{
        "fileId": "",
        "height": 2560,
        "url": "",
        "infoList": [{
            "imageScene": "WB_PRV",
            "url": "http://sns-webpic-qc.xhscdn.com/202505261953/e3fc85206776ff91de64e7840751e25c/1040g00831hm0ips5ju605n91chb47csbmdukscg!nd_prv_wlteh_jpg_3"
        }, {
            "imageScene": "WB_DFT",
            "url": "http://sns-webpic-qc.xhscdn.com/202505261953/d19c5157626355cbf777af4b7d819c69/1040g00831hm0ips5ju605n91chb47csbmdukscg!nd_dft_wlteh_jpg_3"
        }],
        "urlPre": "http://sns-webpic-qc.xhscdn.com/202505261953/e3fc85206776ff91de64e7840751e25c/1040g00831hm0ips5ju605n91chb47csbmdukscg!nd_prv_wlteh_jpg_3",
        "stream": [],
        "width": 1724,
        "traceId": "",
        "urlDefault": "http://sns-webpic-qc.xhscdn.com/202505261953/d19c5157626355cbf777af4b7d819c69/1040g00831hm0ips5ju605n91chb47csbmdukscg!nd_dft_wlteh_jpg_3",
        "livePhoto": false
    }, {
        "urlDefault": "http://sns-webpic-qc.xhscdn.com/202505261953/f373f337b92232f6cc1f01e84d172596/1040g00831hm0ips5ju105n91chb47csbfe4kolg!nd_dft_wlteh_jpg_3",
        "stream": [],
        "fileId": "",
        "height": 2560,
        "urlPre": "http://sns-webpic-qc.xhscdn.com/202505261953/71f8d0548b1011416084db3390fccd06/1040g00831hm0ips5ju105n91chb47csbfe4kolg!nd_prv_wlteh_jpg_3",
        "infoList": [{
            "imageScene": "WB_PRV",
            "url": "http://sns-webpic-qc.xhscdn.com/202505261953/71f8d0548b1011416084db3390fccd06/1040g00831hm0ips5ju105n91chb47csbfe4kolg!nd_prv_wlteh_jpg_3"
        }, {
            "imageScene": "WB_DFT",
            "url": "http://sns-webpic-qc.xhscdn.com/202505261953/f373f337b92232f6cc1f01e84d172596/1040g00831hm0ips5ju105n91chb47csbfe4kolg!nd_dft_wlteh_jpg_3"
        }],
        "livePhoto": false,
        "width": 1920,
        "url": "",
        "traceId": ""
    }, {
        "fileId": "",
        "height": 1920,
        "width": 2560,
        "url": "",
        "traceId": "",
        "livePhoto": false,
        "infoList": [{
            "imageScene": "WB_PRV",
            "url": "http://sns-webpic-qc.xhscdn.com/202505261953/c2da6df5ea5e7580959a1517e304ab6d/1040g00831hm0ips5ju405n91chb47csb6oippbg!nd_prv_wgth_jpg_3"
        }, {
            "imageScene": "WB_DFT",
            "url": "http://sns-webpic-qc.xhscdn.com/202505261953/118e9afc1dfa1a2f10c56ab8faac19d9/1040g00831hm0ips5ju405n91chb47csb6oippbg!nd_dft_wgth_jpg_3"
        }],
        "urlPre": "http://sns-webpic-qc.xhscdn.com/202505261953/c2da6df5ea5e7580959a1517e304ab6d/1040g00831hm0ips5ju405n91chb47csb6oippbg!nd_prv_wgth_jpg_3",
        "urlDefault": "http://sns-webpic-qc.xhscdn.com/202505261953/118e9afc1dfa1a2f10c56ab8faac19d9/1040g00831hm0ips5ju405n91chb47csb6oippbg!nd_dft_wgth_jpg_3",
        "stream": []
    }, {
        "stream": [],
        "livePhoto": false,
        "fileId": "",
        "url": "",
        "traceId": "",
        "urlPre": "http://sns-webpic-qc.xhscdn.com/202505261953/180f96c790a311569bcc5da27cb2efe7/1040g00831hm0ips5ju005n91chb47csbpal1s8g!nd_prv_wlteh_jpg_3",
        "height": 2560,
        "width": 1920,
        "infoList": [{
            "imageScene": "WB_PRV",
            "url": "http://sns-webpic-qc.xhscdn.com/202505261953/180f96c790a311569bcc5da27cb2efe7/1040g00831hm0ips5ju005n91chb47csbpal1s8g!nd_prv_wlteh_jpg_3"
        }, {
            "imageScene": "WB_DFT",
            "url": "http://sns-webpic-qc.xhscdn.com/202505261953/57dded3a21b34127ddc63d95d114cca4/1040g00831hm0ips5ju005n91chb47csbpal1s8g!nd_dft_wlteh_jpg_3"
        }],
        "urlDefault": "http://sns-webpic-qc.xhscdn.com/202505261953/57dded3a21b34127ddc63d95d114cca4/1040g00831hm0ips5ju005n91chb47csbpal1s8g!nd_dft_wlteh_jpg_3"
    }, {
        "url": "",
        "infoList": [{
            "imageScene": "WB_PRV",
            "url": "http://sns-webpic-qc.xhscdn.com/202505261953/a27af773c5c27fb3f693bb1ca716f9ba/1040g00831hm0ips5ju5g5n91chb47csbqail4o8!nd_prv_wlteh_jpg_3"
        }, {
            "imageScene": "WB_DFT",
            "url": "http://sns-webpic-qc.xhscdn.com/202505261953/985f19ac33054b66098cced26bcfcfc0/1040g00831hm0ips5ju5g5n91chb47csbqail4o8!nd_dft_wlteh_jpg_3"
        }],
        "urlDefault": "http://sns-webpic-qc.xhscdn.com/202505261953/985f19ac33054b66098cced26bcfcfc0/1040g00831hm0ips5ju5g5n91chb47csbqail4o8!nd_dft_wlteh_jpg_3",
        "stream": [],
        "fileId": "",
        "height": 2560,
        "width": 1920,
        "traceId": "",
        "urlPre": "http://sns-webpic-qc.xhscdn.com/202505261953/a27af773c5c27fb3f693bb1ca716f9ba/1040g00831hm0ips5ju5g5n91chb47csbqail4o8!nd_prv_wlteh_jpg_3",
        "livePhoto": false
    }, {
        "livePhoto": false,
        "fileId": "",
        "height": 2560,
        "url": "",
        "traceId": "",
        "urlDefault": "http://sns-webpic-qc.xhscdn.com/202505261953/91340351c060a3966192606d848361fa/1040g00831hm0ips5ju1g5n91chb47csb1d8lbr8!nd_dft_wlteh_jpg_3",
        "width": 1920,
        "infoList": [{
            "imageScene": "WB_PRV",
            "url": "http://sns-webpic-qc.xhscdn.com/202505261953/99584f66760e9f5c2d48b494294827f4/1040g00831hm0ips5ju1g5n91chb47csb1d8lbr8!nd_prv_wlteh_jpg_3"
        }, {
            "imageScene": "WB_DFT",
            "url": "http://sns-webpic-qc.xhscdn.com/202505261953/91340351c060a3966192606d848361fa/1040g00831hm0ips5ju1g5n91chb47csb1d8lbr8!nd_dft_wlteh_jpg_3"
        }],
        "urlPre": "http://sns-webpic-qc.xhscdn.com/202505261953/99584f66760e9f5c2d48b494294827f4/1040g00831hm0ips5ju1g5n91chb47csb1d8lbr8!nd_prv_wlteh_jpg_3",
        "stream": []
    }, {
        "width": 2560,
        "traceId": "",
        "infoList": [{
            "url": "http://sns-webpic-qc.xhscdn.com/202505261953/40d6e6f2972f5a059a0facf4d4b49e43/1040g00831hm0ips5ju2g5n91chb47csbq3ekkn8!nd_prv_wgth_jpg_3",
            "imageScene": "WB_PRV"
        }, {
            "imageScene": "WB_DFT",
            "url": "http://sns-webpic-qc.xhscdn.com/202505261953/7fe7ce5e95eaf5789a0de0f8fd1e8d47/1040g00831hm0ips5ju2g5n91chb47csbq3ekkn8!nd_dft_wgth_jpg_3"
        }],
        "urlDefault": "http://sns-webpic-qc.xhscdn.com/202505261953/7fe7ce5e95eaf5789a0de0f8fd1e8d47/1040g00831hm0ips5ju2g5n91chb47csbq3ekkn8!nd_dft_wgth_jpg_3",
        "fileId": "",
        "url": "",
        "urlPre": "http://sns-webpic-qc.xhscdn.com/202505261953/40d6e6f2972f5a059a0facf4d4b49e43/1040g00831hm0ips5ju2g5n91chb47csbq3ekkn8!nd_prv_wgth_jpg_3",
        "stream": [],
        "livePhoto": false,
        "height": 1920
    }, {
        "height": 2560,
        "infoList": [{
            "imageScene": "WB_PRV",
            "url": "http://sns-webpic-qc.xhscdn.com/202505261953/44968128d9e741ad01cbe39dda3c983a/1040g00831hm0ips5ju205n91chb47csb09ciiog!nd_prv_wlteh_jpg_3"
        }, {
            "imageScene": "WB_DFT",
            "url": "http://sns-webpic-qc.xhscdn.com/202505261953/6701b4465c0a221e1589a715c1bc2929/1040g00831hm0ips5ju205n91chb47csb09ciiog!nd_dft_wlteh_jpg_3"
        }],
        "urlPre": "http://sns-webpic-qc.xhscdn.com/202505261953/44968128d9e741ad01cbe39dda3c983a/1040g00831hm0ips5ju205n91chb47csb09ciiog!nd_prv_wlteh_jpg_3",
        "urlDefault": "http://sns-webpic-qc.xhscdn.com/202505261953/6701b4465c0a221e1589a715c1bc2929/1040g00831hm0ips5ju205n91chb47csb09ciiog!nd_dft_wlteh_jpg_3",
        "stream": [],
        "fileId": "",
        "width": 1920,
        "url": "",
        "traceId": "",
        "livePhoto": false
    }, {
        "height": 2560,
        "width": 1920,
        "infoList": [{
            "imageScene": "WB_PRV",
            "url": "http://sns-webpic-qc.xhscdn.com/202505261953/9ac9997e44a5c5238cd53bbaf11e3368/1040g00831hm0ips5ju6g5n91chb47csbavba0i0!nd_prv_wlteh_jpg_3"
        }, {
            "imageScene": "WB_DFT",
            "url": "http://sns-webpic-qc.xhscdn.com/202505261953/1a5de016c38cbd39a29e9b7be776a463/1040g00831hm0ips5ju6g5n91chb47csbavba0i0!nd_dft_wlteh_jpg_3"
        }],
        "urlDefault": "http://sns-webpic-qc.xhscdn.com/202505261953/1a5de016c38cbd39a29e9b7be776a463/1040g00831hm0ips5ju6g5n91chb47csbavba0i0!nd_dft_wlteh_jpg_3",
        "livePhoto": false,
        "fileId": "",
        "url": "",
        "traceId": "",
        "urlPre": "http://sns-webpic-qc.xhscdn.com/202505261953/9ac9997e44a5c5238cd53bbaf11e3368/1040g00831hm0ips5ju6g5n91chb47csbavba0i0!nd_prv_wlteh_jpg_3",
        "stream": []
    }, {
        "height": 2560,
        "url": "",
        "urlDefault": "http://sns-webpic-qc.xhscdn.com/202505261953/808b02767d5c5055224892c4fc55b8a2/1040g00831hm0ips5ju305n91chb47csb9gmmkp0!nd_dft_wlteh_jpg_3",
        "stream": [],
        "urlPre": "http://sns-webpic-qc.xhscdn.com/202505261953/e29d25f20a7a165560415a08a2d7f07b/1040g00831hm0ips5ju305n91chb47csb9gmmkp0!nd_prv_wlteh_jpg_3",
        "livePhoto": false,
        "fileId": "",
        "width": 1920,
        "traceId": "",
        "infoList": [{
            "imageScene": "WB_PRV",
            "url": "http://sns-webpic-qc.xhscdn.com/202505261953/e29d25f20a7a165560415a08a2d7f07b/1040g00831hm0ips5ju305n91chb47csb9gmmkp0!nd_prv_wlteh_jpg_3"
        }, {
            "imageScene": "WB_DFT",
            "url": "http://sns-webpic-qc.xhscdn.com/202505261953/808b02767d5c5055224892c4fc55b8a2/1040g00831hm0ips5ju305n91chb47csb9gmmkp0!nd_dft_wlteh_jpg_3"
        }]
    }, {
        "url": "",
        "traceId": "",
        "infoList": [{
            "imageScene": "WB_PRV",
            "url": "http://sns-webpic-qc.xhscdn.com/202505261953/1a6a0bd71d093a7fb8c117eab95bd58c/1040g00831hm0ips5ju3g5n91chb47csbcep87qg!nd_prv_wlteh_jpg_3"
        }, {
            "imageScene": "WB_DFT",
            "url": "http://sns-webpic-qc.xhscdn.com/202505261953/00f884123fed6736b196923a5e21163f/1040g00831hm0ips5ju3g5n91chb47csbcep87qg!nd_dft_wlteh_jpg_3"
        }],
        "urlPre": "http://sns-webpic-qc.xhscdn.com/202505261953/1a6a0bd71d093a7fb8c117eab95bd58c/1040g00831hm0ips5ju3g5n91chb47csbcep87qg!nd_prv_wlteh_jpg_3",
        "stream": [],
        "livePhoto": false,
        "fileId": "",
        "width": 1758,
        "height": 2560,
        "urlDefault": "http://sns-webpic-qc.xhscdn.com/202505261953/00f884123fed6736b196923a5e21163f/1040g00831hm0ips5ju3g5n91chb47csbcep87qg!nd_dft_wlteh_jpg_3"
    }, {
        "width": 2560,
        "infoList": [{
            "imageScene": "WB_PRV",
            "url": "http://sns-webpic-qc.xhscdn.com/202505261953/28c2008d6244729a2ac616909b4b9de5/1040g00831hm0ips5ju4g5n91chb47csb3kckv28!nd_prv_wgth_jpg_3"
        }, {
            "url": "http://sns-webpic-qc.xhscdn.com/202505261953/787917ae6f08a1b627246f7bf1c44460/1040g00831hm0ips5ju4g5n91chb47csb3kckv28!nd_dft_wgth_jpg_3",
            "imageScene": "WB_DFT"
        }],
        "urlPre": "http://sns-webpic-qc.xhscdn.com/202505261953/28c2008d6244729a2ac616909b4b9de5/1040g00831hm0ips5ju4g5n91chb47csb3kckv28!nd_prv_wgth_jpg_3",
        "livePhoto": false,
        "fileId": "",
        "height": 1920,
        "url": "",
        "traceId": "",
        "urlDefault": "http://sns-webpic-qc.xhscdn.com/202505261953/787917ae6f08a1b627246f7bf1c44460/1040g00831hm0ips5ju4g5n91chb47csb3kckv28!nd_dft_wgth_jpg_3",
        "stream": []
    }, {
        "infoList": [{
            "url": "http://sns-webpic-qc.xhscdn.com/202505261953/7623b7a491bfe985a4f64155c397c01b/1040g00831hm0ips5ju505n91chb47csba4ejaeg!nd_prv_wgth_jpg_3",
            "imageScene": "WB_PRV"
        }, {
            "imageScene": "WB_DFT",
            "url": "http://sns-webpic-qc.xhscdn.com/202505261953/46c0d0b3ff024c68242807d27058ff1d/1040g00831hm0ips5ju505n91chb47csba4ejaeg!nd_dft_wgth_jpg_3"
        }],
        "urlPre": "http://sns-webpic-qc.xhscdn.com/202505261953/7623b7a491bfe985a4f64155c397c01b/1040g00831hm0ips5ju505n91chb47csba4ejaeg!nd_prv_wgth_jpg_3",
        "urlDefault": "http://sns-webpic-qc.xhscdn.com/202505261953/46c0d0b3ff024c68242807d27058ff1d/1040g00831hm0ips5ju505n91chb47csba4ejaeg!nd_dft_wgth_jpg_3",
        "stream": [],
        "livePhoto": false,
        "fileId": "",
        "height": 1920,
        "width": 2560,
        "url": "",
        "traceId": ""
    }]
}

参考资料(版权):
https://www.apihz.cn/api/caijixiaohongshu.html

http://www.xdnf.cn/news/9088.html

相关文章:

  • java基础(面向对象进阶高级)内部类
  • leetcode hot100刷题日记——17.搜索插入位置
  • Linux中logger命令的使用方法详解
  • 嵌入式开发STM32 -- 江协科技笔记
  • window 显示驱动开发-呈现开销改进(二)
  • c++进阶——智能指针
  • maven中的grpc编译插件protobuf-maven-plugin详解
  • SQL进阶之旅 Day 4:子查询与临时表优化
  • C/C++语言中成双成对出现的都有哪些?
  • STM32程序运行不了,仿真功能也异常,连断点和复位都异常了
  • 网络流学习笔记(基础)
  • Beckhoff PLC 功能块 FB_CTRL_ACTUAL_VALUE_FILTER (模拟量滤波)
  • vSphere 7.0 client 提示HTTP状态 500- 内部服务器错误
  • GROUP BY SQL
  • 【动态规划】子数组系列(一)
  • 【备战秋招】C++音视频开发经典面试题整理
  • 学校住宿管理系统——仙盟创梦IDE
  • OpenGL Chan视频学习-7 How I Deal with Shaders in OpenGL
  • 0基础学习Linux之揭开朦胧一面:环境基础开发工具
  • java8函数式接口(函数式接口的匿名实现类作为某些方法的入参)
  • 2025年5月系统架构设计师考试真题回忆版
  • 7.安卓逆向2-frida hook技术-介绍
  • 重学计算机网络之命令整理
  • 数据加密技术:守护网络通信安全的基石
  • ceph 报错 full ratio(s) out of order
  • Elasticsearch数据同步方案
  • VS Code设置Dev Containers: Reopen in Container
  • MongoDB基础知识(浅显)
  • docker compose yml 启动的容器中,如何使用linux环境变量赋值
  • Python 进阶学习