1. 基本信息
| 接口地址 | https://v1.apizero.cn/api/site-security |
|---|
| 请求方法 | GET |
|---|
| 分类 | dev |
|---|
| 提供方 | 极数本源 |
|---|
| 计费模式 | 免费试用 |
|---|
| 单次消耗 | 0 积分 |
|---|
| 起步价 | — |
|---|
| QPS 限制 | 2 req/s |
|---|
| 每日免费额度 | 30 次(已认证用户) |
|---|
| 匿名每日额度 | 0 次(无 API Key) |
|---|
| VIP 免费 | 否 |
|---|
| 调用次数 | |
|---|
3. 请求参数
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|
domain | string | 是 | 纯域名,如 baidu.com | — |
5. 请求示例 (cURL)
curl "https://v1.apizero.cn/api/site-security?domain=%3Cdomain%3E&key=YOUR_API_KEY"
6. 响应字段
| 字段 | 类型 | 说明 | 示例 |
|---|
overall_score | number | 综合评分 0-100 | — |
grade | string | 等级 A/B/C/D/F | — |
ssl | object | SSL 证书检测详情 | — |
domain_info | object | 域名安全检测详情 | — |
icp | object | ICP 备案查询详情 | — |
social | object | 微信/QQ 拦截检测详情 | — |
performance | object | 网站性能检测详情 | — |
7. 响应示例
{
"code": 0,
"msg": "成功",
"data": {
"domain": "baidu.com",
"overall_score": 92,
"grade": "A",
"detection_time": "4521ms",
"ssl": {
"score": 100,
"https_enabled": true,
"days_until_expiry": 365
}
}
}
8. 错误码
| code | status | 说明 |
|---|
4000 | — | domain 为空或格式错误 |