稳定、快速、免费的 API 接口服务
查询网站状态码
接口地址: https://apis.jxcxin.cn/api/websitecode
返回格式: JSON
请求方式: GET/POST
请求示例: https://apis.jxcxin.cn/api/websitecode?url=https://apis.jxcxin.cn/
请求参数说明:
| 名称 | 必填 | 类型 | 说明 |
|---|---|---|---|
| url | 是 | string | 需要查询的网址 |
返回参数说明:
| 名称 | 类型 | 说明 |
|---|---|---|
| code | string | 返回的状态码 |
| msg | string | 返回提示信息 |
| data | string | 返回查询结果 |
| url | string | 返回查询的url |
| state | string | 返回状态码 |
| explain | string | 返回状态码说明 |
返回示例:
{
"code": 200,
"msg": "查询成功",
"data": {
"url": "https://apis.jxcxin.cn",
"state": 200,
"explain": "正常"
}
}
请求参数设置:
| 参数名称 | 参数值 | 操作 |
|---|---|---|
{
"code": 200,
"msg": "查询成功",
"data": {
"url": "https://apis.jxcxin.cn",
"state": 200,
"explain": "正常"
}
}
错误码格式说明:
| 名称 | 类型 | 说明 |
|---|---|---|
| -1 | string | 参数缺失 |
| 3200 | string | apiKey为空 |
| 3201 | string | apiKey错误 |
| 3202 | string | apiKey过期 |
| 3203 | string | 请求频繁 |
代码示例:
暂无