cURL
curl "https://api.ruseo.cn/api/lanzou_parse?url=https%3A%2F%2Fblog.lanzout.com%2Fis2AI3ltykmf&pwd=demo"
解析蓝奏云网盘文件分享链接,支持有密码和无密码两种场景,返回文件名称、大小、描述、发布时间及直链下载地址
https://api.ruseo.cn/api/lanzou_parse
接口调用前需要确认的核心配置。
/api/lanzou_parselanzou_parse必填参数必须传入,示例值可直接用于联调。
免费API不强制要求API Key,但如果您希望统计个人调用次数,请在请求时附加参数 key=您的API_KEY。
注册账号后即可获得API Key。
| 参数名 | 必填 | 类型 | 说明 | 示例值 |
|---|---|---|---|---|
key |
否 | string | 可选参数:携带此参数可统计您的个人调用次数。请注册账号获取API Key。 | YOUR_API_KEY |
url |
是 | string | 待解析的蓝奏云分享链接 | https://blog.lanzout.com/is2AI3ltykmf |
pwd |
否 | string | 文件提取密码,无密码时可不传 | |
优先使用示例地址测试请求参数是否正确。
https://api.ruseo.cn/api/lanzou_parse?url=https%3A%2F%2Fblog.lanzout.com%2Fis2AI3ltykmf&pwd=demo
curl "https://api.ruseo.cn/api/lanzou_parse?url=https%3A%2F%2Fblog.lanzout.com%2Fis2AI3ltykmf&pwd=demo"
$url = 'https://api.ruseo.cn/api/lanzou_parse?url=https%3A%2F%2Fblog.lanzout.com%2Fis2AI3ltykmf&pwd=demo';
$response = file_get_contents($url);
$data = json_decode($response, true);
fetch('https://api.ruseo.cn/api/lanzou_parse?url=https%3A%2F%2Fblog.lanzout.com%2Fis2AI3ltykmf&pwd=demo')
.then(res => res.json())
.then(data => console.log(data));
实际返回内容以接口脚本处理结果为准。
{
"code": 0,
"msg": "success",
"data": {
"route": "lanzou_parse",
"example": true
}
}
| 参数名 | 类型 | 说明 | 示例值 |
|---|---|---|---|
code |
integer | 状态码,200表示成功 | 200 |
msg |
string | 状态信息 | success |
data |
string | 返回内容 | 解析成功 |
time |
string | 文件发布时间 | 2024-01-01 10:00:00 |
filename |
string | 文件名 | example.zip |
filesize |
string | 文件大小 | 10.5 MB |
desc |
string | 文件描述 | 这是一个示例文件 |
downloadurl |
string | 文件直链下载地址 | https://example.com/direct/download/link |
点击左侧“发送请求”查看结果...