小小API是一个稳定 快速 的 API 接口服务   点击加入QQ群

ping

GEThttps://v2.xxapi.cn/api/ping

接口描述

免费API提供一键ping网站延迟的功能,帮助用户快速检测网站的响应时间,适用于网络监控、网站性能分析和优化。

请求参数

请求示例

var axios = require('axios')

var config = {
  method: 'get',
  url: 'https://v2.xxapi.cn/api/ping?url=www.xxhzm.cn'
}

axios(config)
  .then(function (response) {
    console.log(JSON.stringify(response.data))
  })
  .catch(function (error) {
    console.log(error)
  })

返回示例

{
	"code": 200,
	"msg": "数据请求成功",
	"data": {
		"url": "www.xxhzm.cn",
		"ip": "180.188.16.219",
		"time": "12ms",
		"server": "浙江温州电信"
	}
}