可通过本接口检查指定域名或服务器的响应状态
参数:
请求地址: | https://www.90th.cn/api/tools/ping | ||
---|---|---|---|
请求方式: | POST | ||
计费方式: | 1 钻石 | ||
参数名称 | 数据类型 | 必填 | 示例 |
host | String | 是 | www.90th.cn |
请求示例 (curl):
curl -X POST "https://www.90th.cn/api/tools/ping" -d "host=www.90th.cn" -H "Authorization: Bearer xxxxxxxxxxxxxxxx"
返回值示例: JSON UFT-8
{
"code": 200,
"data": {
"ip": "2404:a140:20:1::20",
"ms": 2.23,
"ttl": 53
},
"times": 0.8,
"spend": 1
}
可通过本接口检查指定域名或服务器的响应状态
参数:
请求地址: | https://www.90th.cn/api/tools/url_status | |||
---|---|---|---|---|
请求方式: | POST | |||
计费方式: | 1 钻石 / 深度 | |||
参数名称 | 数据类型 | 必填 | 默认值 | 说明 |
target | String | 是 | - | www.90th.cn |
type | String | 否 | foreign | 检测线路, 可选: china, foreign |
请求示例 (curl):
curl -X POST "https://www.90th.cn/api/tools/url_status" -d "target=www.90th.cn" -H "Authorization: Bearer xxxxxxxxxxxxxxxx"
返回值示例: JSON UFT-8
{
"code": 200,
"data": [{
"no": 1,
"status_code": 301,
"ip": "113.105.157.204",
"location": "https://www.90th.cn/",
"msg": "301跳转"
}, {
"no": 2,
"status_code": 200,
"ip": "113.105.157.204",
"msg": "访问正常"
}],
"times": 0.49,
"spend": 2
}
可通过本接口检查指定域名或服务器的响应状态
参数:
请求地址: | https://www.90th.cn/api/tools/domain_intercept | |||
---|---|---|---|---|
请求方式: | POST | |||
计费方式: | 1-2 钻石 | |||
参数名称 | 数据类型 | 必填 | 默认值 | 说明 |
target | String | 是 | - | www.90th.cn |
type | String | 否 | Chrome | 检测类型, 可选: Chrome, Edge, QQBrowser, WeChat, QQ |
请求示例 (curl):
curl -X POST "https://www.90th.cn/api/tools/domain_intercept" -d "target=www.90th.cn&type=Edge" -H "Authorization: Bearer xxxxxxxxxxxxxxxx"
返回值示例: JSON UFT-8
{
"code": 200,
"data": {
"state": 1,
"text": "状态正常"
},
"msg": "状态正常",
"times": 0.12,
"spend": 1
}