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

网站测速

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

接口描述

免费API提供快速的网站测速服务,返回GET请求的响应时间(毫秒),帮助用户实时监测网站性能,适用于网站优化和性能分析。

请求参数

请求示例

var axios = require('axios')

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

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

返回示例

{
	"code": 200,
	"msg": "数据请求成功",
	"data": "681ms"
}