分析图集与视频在线无水印解析
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| key | string | 是 | 接口调用密钥 | |
| url | string | 是 | 分享链或者文章链 | https://xhslink.cn/o/3VW23QbDtvK |
[
{
"name": "key",
"type": "string",
"required": true,
"description": "接口调用密钥",
"example": ""
},
{
"name": "url",
"type": "string",
"required": true,
"description": "分享链或者文章链",
"example": "https://xhslink.cn/o/3VW23QbDtvK"
}
]
{
"openapi": "3.1.1",
"info": {
"title": "小红书-解析",
"description": "分析图集与视频在线无水印解析",
"version": "1.0.0"
},
"paths": {
"\/api\/parser\/xiaohongshu\/index.php": {
"get": {
"summary": "小红书-解析",
"description": "分析图集与视频在线无水印解析",
"parameters": [
{
"name": "key",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "接口调用密钥"
},
{
"name": "url",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "https:\/\/xhslink.cn\/o\/3VW23QbDtvK"
},
"description": "分享链或者文章链"
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application\/json": {
"schema": {
"type": "object"
}
}
}
}
}
},
"post": {
"summary": "小红书-解析",
"description": "分析图集与视频在线无水印解析",
"parameters": [
{
"name": "key",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "接口调用密钥"
},
{
"name": "url",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "https:\/\/xhslink.cn\/o\/3VW23QbDtvK"
},
"description": "分享链或者文章链"
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application\/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
}
},
"servers": [
{
"url": "https:\/\/api.vsaa.cn",
"description": "当前访问入口(https)"
}
]
}
{
"code": 200,
"message": "success",
"data": {
"id": "69b8e8c6000000001a0253b5",
"type": "images",
"time": 1773725894000,
"user": {
"nickname": "何玲律师在上海~",
"avatar": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo31tf5gu9sls005n3kog14g01fgcb7vj0",
"xsecToken": "ABrairCMzPonr2BispwwMUdCV_LZkv3P8xcer5hHUHS8M=",
"userId": "5c74c402000000001200002f"
},
"title": "",
"location": null,
"info": {
"shareCount": 3,
"followed": false,
"niceCount": "",
"liked": false,
"likedCount": 5,
"relation": "none",
"collected": false,
"collectedCount": 1,
"commentCount": 8
},
"desc": "【上海市第二中级人民法院开庭】\n合议庭:有审判长审判员人民陪审员书记员。阵仗大不愧是到中院的案子排面就是大\n人多热闹一毛钱没花这么多人盛装出席听我发言#上海律师[话题]##庭审[话题]# #上海二中院[话题]# #诉讼[话题]# #律师[话题]#",
"cover": {
"width": 4284,
"height": 5712,
"url": "http://sns-webpic-qc.xhscdn.com/202610242053/3e53b1cfa2112812f81212394d5c1f85/note_pre_post_uhdr/1040g3r031tq8k3b7n8005n3kog14g01f0gp4lr8!nd_dft_wlteh_webp_3"
},
"images": [
{
"width": 4284,
"height": 5712,
"url": "http://sns-webpic-qc.xhscdn.com/202610242053/3e53b1cfa2112812f81212394d5c1f85/note_pre_post_uhdr/1040g3r031tq8k3b7n8005n3kog14g01f0gp4lr8!nd_dft_wlteh_webp_3"
},
{
"width": 4284,
"height": 5712,
"url": "http://sns-webpic-qc.xhscdn.com/202610242053/171d252afd1a01faedc790c332ea24c2/note_pre_post_uhdr/1040g3r031tq8k3b7n80g5n3kog14g01fenp4ad8!nd_dft_wlteh_webp_3"
},
{
"width": 4284,
"height": 5712,
"url": "http://sns-webpic-qc.xhscdn.com/202610242053/229bb17bc9f6c1f28906a26b1d8d085f/note_pre_post_uhdr/1040g3r031tq8k3b7n8105n3kog14g01fi0fug70!nd_dft_wlteh_webp_3"
},
{
"width": 4284,
"height": 5712,
"url": "http://sns-webpic-qc.xhscdn.com/202610242053/9c122763607671dcdd8edfed1fa4b031/note_pre_post_uhdr/1040g3r031tq8k3b7n81g5n3kog14g01fo77jaf8!nd_dft_wlteh_webp_3"
},
{
"width": 3024,
"height": 4032,
"url": "http://sns-webpic-qc.xhscdn.com/202610242053/e69c10c43b7c3cbcc9b63111578d9a53/note_pre_post_uhdr/1040g3r031tq8k3b7n8205n3kog14g01fgcl20lo!nd_dft_wlteh_webp_3"
}
]
}
}
该接口用于解析小红书平台上的图集与视频内容,提供无水印的在线资源获取能力。它面向需要集成小红书内容解析功能的应用或开发者,支持通过分享链接或文章链接直接获取结构化数据,包括图片、视频及元信息。
请始终将 https://api.vsaa.cn/api/parser/xiaohongshu/index.php 作为本接口的请求目标地址。该地址已包含站点域名与完整路径,可直接用于 HTTP 客户端配置、前端 SDK 初始化及 API 网关路由,无需追加域名前缀或修改路径结构。
本接口支持 GET 与 POST 两种请求方法,可根据客户端实现习惯任选其一:
两种方法在功能、鉴权逻辑、响应结果上完全一致,不存在方法级的能力差异。
本接口调用必须携带密钥,未携带或密钥无效将拒绝处理请求。
本站对外提供且首选的鉴权方式为 Query 参数传递:在请求 URL 的查询串中追加参数 key=…,其中 … 为分配给调用方的接口密钥。具体示例如下:
GET https://api.vsaa.cn/api/parser/xiaohongshu/index.php?key=您的密钥&url=https://xhslink.cn/o/3VW23QbDtvK
密钥由平台分配,请妥善保存,避免泄露或硬编码进公开代码库。
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| key | string | 是 | 接口调用密钥,通过 Query 参数传递 |
| url | string | 是 | 小红书分享链接或文章链接,支持解析图集及视频内容 |
{
"code": 200,
"message": "success",
"data": {
"id": "69b8e8c6000000001a0253b5",
"type": "images",
"time": 1773725894000,
"user": {
"nickname": "何玲律师在上海~",
"avatar": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo31tf5gu9sls005n3kog14g01fgcb7vj0",
"xsecToken": "ABrairCMzPonr2BispwwMUdCV_LZkv3P8xcer5hHUHS8M=",
"userId": "5c74c402000000001200002f"
},
"title": "",
"location": null,
"info": {
"shareCount": 3,
"followed": false,
"niceCount": "",
"liked": false,
"likedCount": 5,
"relation": "none",
"collected": false,
"collectedCount": 1,
"commentCount": 8
},
"desc": "【上海市第二中级人民法院开庭】\n合议庭:有审判长审判员人民陪审员书记员。阵仗大不愧是到中院的案子排面就是大\n人多热闹一毛钱没花这么多人盛装出席听我发言#上海律师[话题]##庭审[话题]# #上海二中院[话题]# #诉讼[话题]# #律师[话题]#",
"cover": {
"width": 4284,
"height": 5712,
"url": "http://sns-webpic-qc.xhscdn.com/202610242053/3e53b1cfa2112812f81212394d5c1f85/note_pre_post_uhdr/1040g3r031tq8k3b7n8005n3kog14g01f0gp4lr8!nd_dft_wlteh_webp_3"
},
"images": [
{
"width": 4284,
"height": 5712,
"url": "http://sns-webpic-qc.xhscdn.com/202610242053/3e53b1cfa2112812f81212394d5c1f85/note_pre_post_uhdr/1040g3r031tq8k3b7n8005n3kog14g01f0gp4lr8!nd_dft_wlteh_webp_3"
},
{
"width": 4284,
"height": 5712,
"url": "http://sns-webpic-qc.xhscdn.com/202610242053/171d252afd1a01faedc790c332ea24c2/note_pre_post_uhdr/1040g3r031tq8k3b7n80g5n3kog14g01fenp4ad8!nd_dft_wlteh_webp_3"
},
{
"width": 4284,
"height": 5712,
"url": "http://sns-webpic-qc.xhscdn.com/202610242053/229bb17bc9f6c1f28906a26b1d8d085f/note_pre_post_uhdr/1040g3r031tq8k3b7n8105n3kog14g01fi0fug70!nd_dft_wlteh_webp_3"
},
{
"width": 4284,
"height": 5712,
"url": "http://sns-webpic-qc.xhscdn.com/202610242053/9c122763607671dcdd8edfed1fa4b031/note_pre_post_uhdr/1040g3r031tq8k3b7n81g5n3kog14g01fo77jaf8!nd_dft_wlteh_webp_3"
},
{
"width": 3024,
"height": 4032,
"url": "http://sns-webpic-qc.xhscdn.com/202610242053/e69c10c43b7c3cbcc9b63111578d9a53/note_pre_post_uhdr/1040g3r031tq8k3b7n8205n3kog14g01fgcl20lo!nd_dft_wlteh_webp_3"
}
]
}
}
| 字段路径 | 类型 | 说明 |
|---|---|---|
code |
integer | 状态码,200 表示解析成功。 |
message |
string | 状态描述信息,成功时为 "success"。 |
data |
object | 解析成功时返回的详细内容对象。 |
data.id |
string | 笔记的唯一标识符。 |
| `data.type |
当接口调用失败或业务校验不通过时,将返回如下结构的 JSON 数据:
{
"code": 0,
"msg": "未提供调用密钥",
"errcode": 11001
}
其中:
code:固定为 0,表示业务响应状态。msg:人类可读的错误提示信息。errcode:具体的业务错误码,用于程序化处理异常。以下表格列出了本站接口可能返回的全部业务错误码及其含义:
| errcode | 含义 |
|---|---|
| 11001 | 未提供调用密钥 |
| 11002 | 密钥错误 |
| 11003 | 密钥已禁用 |
| 11004 | 积分余额不足 |
| 11005 | 请求过于频繁(QPM 限制) |
| 11006 | 接口维护中 |
| 11007 | 接口已禁用 |
| 11008 | 接口不可用 |
| 11009 | 密钥校验暂不可用 |
| 11010 | 积分系统暂不可用 |
| 11011 | 收费接口须提供有效密钥 |
| 11012 | 鉴权方式错误 |
| 11013 | 接口不存在 |
| 11014 | ***地址无效 |
| 11015 | ***地址不允许 |
| 11016 | ***请求失败 |
| 11017 | 服务暂不可用 |
| 11018 | 请求方式不允许 |
| 11019 | 当前IP不在白名单内 |
| 11020 | 启用出口代理须提供有效密钥 |
| 11021 | 未配置可用出口代理 |
| 11022 | 出口代理不可用 |
| 11023 | 密钥已过期 |
| 11024 | 令牌分配积分不足 |
| 11025 | 该密钥无权调用此接口 |
curl -G "https://api.vsaa.cn/api/parser/xiaohongshu/index.php" \
--data-urlencode "key=YOUR_API_KEY" \
--data-urlencode "url=https://xhslink.cn/o/3VW23QbDtvK"
// PHP 示例
$apiKey = "YOUR_API_KEY";
$urlToParse = "https://xhslink.cn/o/3VW23QbDtvK";
$endpoint = "https://api.vsaa.cn/api/parser/xiaohongshu/index.php";
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => $endpoint,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPGET => true,
CURLOPT_TIMEOUT => 30,
]);
$paramString = http_build_query([
'key' => $apiKey,
'url' => $urlToParse
]);
curl_setopt($ch, CURLOPT_URL, $endpoint . '?' . $paramString);
$response = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
$result = json_decode($response, true);
if ($result && $result['code'] === 200) {
echo "解析成功。\n";
echo "类型: " . $result['data']['type'] . "\n";
if (!empty($result['data']['images'])) {
echo "图片数量: " . count($result['data']['images']) . "\n";
foreach ($result['data']['images'] as $img) {
echo "- " . $img['url'] . "\n";
}
}
} else {
echo "解析失败或无数据。\n";
}
url 参数需传入有效的小红书分享短链或文章链接。链接过期、失效或格式错误时将无法获取解析结果,建议在调用前校验链接合法性。暂无代码示例。管理员可在后台用 AI 生成或手动编写。
欢迎使用 万象数据API(以下简称“本平台”,域名为 api.vsaa.cn)。在使用本平台提供的任何接口、数据及相关服务之前,请您务必仔细阅读并充分理解本免责声明的全部内容。您对本平台任何服务的使用,均视为您已阅读、理解并同意本声明的全部条款。
最后更新日期:2026年10月6日