在线PING
接口地址: http://api.botwl.cn/api/ping
返回格式: JSON
请求方式: GET
请求示例: http://api.botwl.cn/api/ping?url=botwl.cn
请求参数说明:
名称 | 必填 | 类型 | 说明 |
---|---|---|---|
url | 是 | string | 需要进行查询的网站URL |
返回参数说明:
名称 | 类型 | 说明 |
---|---|---|
code | string | 状态码 1=成功 -1=失败 |
host | txt | 成功返回域名,失败返回错误信息 |
ip | txt | IP地址 |
iocation | txt | 服务商 |
ping_time_min | txt | 最小延迟 |
ping_time_max | txt | 最大延迟 |
node | txt | 节点 |
返回示例:
{ "code": 1, "host": "botwl.cn", "ip": "47.100.18.209", "location": "上海市 阿里云", "ping_time_min": " 32.718ms", "ping_time_max": "33.341ms", "node": "北京市 京东云" }
错误码格式说明:
名称 | 类型 | 说明 |
---|
代码示例: