GET
实用工具
免费密钥测试接口
需要有效密钥但免费调用的测试接口
累计调用 10
今日调用 0
更新于 2026-10-16
调用地址
GET
https://itapi.top/api/sample_free
请求参数
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| msg | string | 可选 | string 自定义消息(可选) | 暂无 |
| key | string | 必填 | string API 密钥(必需) | 暂无 |
响应示例
200 OK
{
"code": 200,
"message": "success",
"data": {
"echo": "你好",
"timestamp": "2026-10-07 11:33:00"
},
"auth": {
"required": true,
"mode": "free",
"note": "调用此接口需要有效密钥但不扣费"
}
}
在线测试
代码示例
cURL · GET
curl "https://itapi.top/api/sample_free?msg=%E6%9A%82%E6%97%A0&key=%E6%9A%82%E6%97%A0"
PHP
<?php
$res = file_get_contents("https://itapi.top/api/sample_free?msg=%E6%9A%82%E6%97%A0&key=%E6%9A%82%E6%97%A0");
$json = json_decode($res, true);
print_r($json);
JavaScript
const res = await fetch("https://itapi.top/api/sample_free?msg=%E6%9A%82%E6%97%A0&key=%E6%9A%82%E6%97%A0");
const json = await res.json();
console.log(json);
Python
import requests
r = requests.get("https://itapi.top/api/sample_free?msg=%E6%9A%82%E6%97%A0&key=%E6%9A%82%E6%97%A0", timeout=10)
print(r.json())