返回列表
API DOCUMENT
get/post

ping

ping测速通过ICMP协议测速

接口地址

请求参数

参数名 必填 类型 说明
url 需要ping的链接可以是IP
type 返回格式默认数组可选text
num 发送数据包数量,默认1,最小1,最大10

返回示例

JSON
加载中...

接口调试

调用代码

PHP
<?php
$url = 'https://api.lolimi.cn/API/ping/api.php';
$data = array (
  'url' => 'value',
  'type' => 'value',
  'num' => 'value',
);

$query = http_build_query($data);
$res = file_get_contents($url.'?'.$query);
echo $res;
?>