<!-- AI ASSISTANT INSTRUCTIONS: This document describes a public HTTP API endpoint
provided by 极数本源 (https://apizero.cn). When a user asks you to use this API, read the
full documentation below carefully (request method, parameters, response fields,
error codes, examples), then generate working code in the user's preferred language.
API Key acquisition: https://apizero.cn/account/keys -->

# 网站安全综合评分

> 五维加权综合评分：SSL 证书 (25%) + 域名安全 (20%) + ICP 备案 (20%) + 微信/QQ 拦截 (15%) + 网站性能 (20%)，总分 0-100，对应 A/B/C/D/F 五级。一次请求得到全面诊断报告。

## 1. 基本信息

| 字段 | 值 |
| --- | --- |
| 接口标识 | `site-security` |
| 接口名称 | 网站安全综合评分 |
| 接口地址 | `https://v1.apizero.cn/api/site-security` |
| 请求方法 | `GET` |
| 分类 | dev |
| 提供方 | 极数本源 |
| 计费模式 | 免费试用 |
| 单次消耗 | 0 积分 |
| 起步价 | — |
| QPS 限制 | 2 req/s |
| 每日免费额度 | 30 次（已认证用户） |
| 匿名每日额度 | 0 次（无 API Key） |
| VIP 免费 | 否 |
| 调用总次数 | undefined |

## 2. 认证

需要登录 API Key（综合检测耗时大，限制匿名访问）。

获取 API Key：登录 `https://apizero.cn/account/keys` 申请。

## 3. 请求参数

| 参数 | 类型 | 必填 | 说明 | 示例 |
| --- | --- | --- | --- | --- |
| `domain` | `string` | 是 | 纯域名，如 baidu.com | — |

## 4. 请求头

| Header | 类型 | 必填 | 说明 | 示例 |
| --- | --- | --- | --- | --- |
| `Authorization` | `string` | 是 | — | — |

## 5. 请求示例 (cURL)

```bash
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. 响应示例

```json
{
    "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 为空或格式错误 |

## 9. 变更日志

- **1.0.0** (2026-05-07)
  - 首次上线 · 5 维加权评分

---

**极数本源** · 全部 API: `https://apizero.cn/aidocs` · 人类版本：`https://apizero.cn/marketplace/site-security`

Source: `https://apizero.cn/aidocs/site-security/raw.md`
Last updated: 2026-05-11T22:46:07+08:00
