资源搜索系统

支持多个搜索接口,快速找到您需要的资源

API接口信息 POST 仅支持

入口: /api/search.php
- 请求头: Content-Type: application/x-www-form-urlencoded; charset=UTF-8XToken: 您的令牌
- 必填参数: name(关键词),typeall/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"
}
💡 提示:本站内容由网络爬虫自动抓取。本站不储存、复制、传播任何文件,仅作个人公益学习,请在获取后24小内删除!!!