cURL
curl "https://api.ruseo.cn/api/urlthunder?url=https%3A%2F%2Fexample.com%2Ffile.zip&action=encrypt"
迅雷/快车/旋风下载链接加密与解密,支持三种格式互转。
https://api.ruseo.cn/api/urlthunder
接口调用前需要确认的核心配置。
/api/urlthunderurlthunder必填参数必须传入,示例值可直接用于联调。
免费API不强制要求API Key,但如果您希望统计个人调用次数,请在请求时附加参数 key=您的API_KEY。
注册账号后即可获得API Key。
| 参数名 | 必填 | 类型 | 说明 | 示例值 |
|---|---|---|---|---|
key |
否 | string | 可选参数:携带此参数可统计您的个人调用次数。请注册账号获取API Key。 | YOUR_API_KEY |
url |
是 | string | 原始URL或加密后的链接 | https://example.com/file.zip |
action |
否 | string | 操作类型encrypt加密或decrypt解密默认自动检测 | encrypt |
优先使用示例地址测试请求参数是否正确。
https://api.ruseo.cn/api/urlthunder?url=https%3A%2F%2Fexample.com%2Ffile.zip&action=encrypt
curl "https://api.ruseo.cn/api/urlthunder?url=https%3A%2F%2Fexample.com%2Ffile.zip&action=encrypt"
$url = 'https://api.ruseo.cn/api/urlthunder?url=https%3A%2F%2Fexample.com%2Ffile.zip&action=encrypt';
$response = file_get_contents($url);
$data = json_decode($response, true);
fetch('https://api.ruseo.cn/api/urlthunder?url=https%3A%2F%2Fexample.com%2Ffile.zip&action=encrypt')
.then(res => res.json())
.then(data => console.log(data));
实际返回内容以接口脚本处理结果为准。
{
"code": 0,
"msg": "success",
"data": {
"route": "urlthunder",
"example": true
}
}
| 参数名 | 类型 | 说明 | 示例值 |
|---|---|---|---|
success |
boolean | 是否成功 | true |
action |
string | 实际执行的操作 | encrypt |
original_url |
string | 原始URL | https://example.com/file.zip |
results |
object | 加密结果或解密结果 | |
点击左侧“发送请求”查看结果...