支持多个搜索接口,快速找到您需要的资源
/api/search.php
Content-Type: application/x-www-form-urlencoded; charset=UTF-8,XToken: 您的令牌name(关键词),type(all/telegram/...),page(默认1),per_page(默认20)filter_invalid(0/1,默认0;开启会变慢)
cURL示例:
curl -X POST "http://your-domain.com/api/search.php" \
-H "Content-Type: application/x-www-form-urlencoded; charset=UTF-8" \
-H "XToken: your_token_here" \
-d "name=我的&type=all&page=1&per_page=20&filter_invalid=1"
成功响应示例:
{
"success": true,
"type": "all",
"keyword": "我的",
"results": { // 当前页数据(按平台分组)
"百度网盘": [ { "resource_name": "...", "resource_link": "...", "extract_code": "...", "platform": "百度网盘" } ]
},
"pagination": {
"current_page": 1,
"per_page": 20,
"total_items": 88,
"total_pages": 5,
"has_previous": false,
"has_next": true,
"previous_page": null,
"next_page": 2,
"platform_counts": { "百度网盘": 32, "迅雷网盘": 17, "夸克网盘": 35, "UC网盘": 3, "阿里云盘": 1 }
},
"all_platforms": { // 全部平台的完整数据(用于标签/统计)
"百度网盘": [ { "resource_name": "...", "resource_link": "...", "extract_code": "...", "platform": "百度网盘" } ]
},
"cache": true
}
错误响应示例:
{
"success": false,
"error": "XToken required",
"error_code": "token_required"
}
{
"error": "Missing required parameters: name"
}