v2.0 · RESTful API · JSON响应
所有审计接口需要在请求头中携带 X-Auth-Token。通过注册接口获取Token。
/api/register
注册新用户或登录已有用户
| 参数 | 类型 | 说明 |
|---|---|---|
| name | string 必填 | 姓名 |
| phone | string 必填 | 手机号 |
| string 必填 | 邮箱 | |
| company | string 选填 | 公司名称 |
// 响应
{ "token": "abc123...", "user": { "name": "张三", ... }, "message": "注册成功!" }
/api/me
需认证
获取当前用户信息
/api/audit
需认证
发起SEO审计
| 参数 | 类型 | 说明 |
|---|---|---|
| url | string 必填 | 要审计的网站URL |
| coverage | string 选填 | 扫描范围: quick(25页) / surface(100页,默认) / full(500页) |
// 响应
{ "jobId": "a1b2c3d4", "status": "started", "url": "https://example.com/" }
/api/audit/:jobId
获取审计结果
/api/audit/:jobId/stream
SSE实时进度流
// 事件类型
{ "type": "progress", "message": "Crawling page 5/100..." }
{ "type": "done", "job": { "id": "...", "score": 85, ... } }
{ "type": "error", "error": "..." }
/api/audit/compare
需认证
对比两个URL的SEO评分(消耗2次配额)
| 参数 | 类型 | 说明 |
|---|---|---|
| url1 | string 必填 | 第一个URL |
| url2 | string 必填 | 第二个URL |
| coverage | string 选填 | 扫描范围 |
/api/audit/batch
需认证
批量审计多个URL(最多10个,消耗N次配额)
| 参数 | 类型 | 说明 |
|---|---|---|
| urls | string[] 必填 | URL数组,最多10个 |
| coverage | string 选填 | 扫描范围 |
// 请求
{ "urls": ["https://a.com", "https://b.com", "https://c.com"], "coverage": "quick" }
// 响应
{ "batchId": "batch-a1b2c3d4", "status": "started", "total": 3 }
/api/audit/batch/:batchId/stream
批量审计SSE进度流
/api/my/audits
需认证
获取当前用户的审计历史(最近50条)
/api/url-history?url=https://example.com
需认证
获取特定URL的历史评分(用于趋势图表)
/api/share/:jobId
获取可公开分享的审计结果(无需认证)
所有管理接口需要 ?key=管理密钥 参数
/api/admin/stats?key=xxx
获取统计仪表盘数据(用户数、审计数、分数分布、每日趋势、热门域名)
/api/admin/users?key=xxx
用户列表
/api/admin/audits?key=xxx
审计日志(最近100条)
/api/health
健康检查(无需认证)
{ "status": "ok", "uptime": 12345.67, "jobs": 0, "users": 3, "audits": 5 }
Based on customer reviews and expert analysis, this product offers excellent value for money with high-quality features and reliable performance.
Most orders ship within 24-48 hours and arrive within 3-7 business days depending on your location.
We offer a 30-day money-back guarantee. If you are not satisfied, you can return the product for a full refund.