描述:域名Ping4检测可实时检测域名的IPv4Ping值,支持多节点检测,支持输入IPV4和域名进行检测,仅支持IPV4的Ping。
接口地址:https://openapi.chinaz.net/v1/1029/ping
返回格式:JSON
请求方式:GET
请求参数:
名称 | 类型 | 必填 | 说明 |
---|---|---|---|
url | string | 是 | 查询的域名 |
nodeid | string | 否 | 节点ID |
APIKey | string | 是 | 申请接口时获取的APIKey值 |
ChinazVer | string | 是 | 接口版本号,取值:1.0 |
返回参数说明:
名称 | 类型 | 说明 |
---|---|---|
msg | string | 返回msg |
statu | string | 域名正常返回true,其他返回false |
url | string | 检测的URL地址 |
code | string | 状态码 |
ip | string | IP |
ipaddress | string | IP地址 |
data | string | Ping延迟 |
JSON返回示例:
{
"msg":"获取成功",
"node":"gz_bgp",
"nodecode":200,
"ip":"109.244.236.65",
"ipaddress":"中国 广东省 深圳市 腾讯云",
"data":"3.354ms",
"statu":"true",
"url":"https://www.qq.com/",
"code":1001
}
错误代码 | 说明 |
---|---|
1001 | 域名正常 |
1002 | 不支持ipv4或ping超时 |
-210 | 查询失败 |
-202 | url参数不能为空 |
431 | http响应状态码:APIKey缺失,请附带APIKey参数 |
432 | http响应状态码:错误的APIkey长度 |
433 | http响应状态码:错误的请求key(或者返回状态码10001) |
434 | http响应状态码:错误的APIkey类型 |
436 | http响应状态码:额度不足,或者APIKey不存在 |
437 | http响应状态码:该IP未在白名单内 |
531 | http响应状态码:请求过于频繁 |
532 | http响应状态码:未知错误,请联系管理员(或者返回533) |
内容 | 说明 |
---|---|
客服微信 | ![]() |
描述:查询IP高精准...
描述:查询IP高精准...
描述:查询IP区县级...
描述:查询IP城市级...
描述:分析公共通信和...