返回 | 接口 / 实用工具 / 闰年平年判断
GET 实用工具

闰年平年判断

闰年平年判断 接口,点击查看请求参数与调用示例。

累计调用 10 今日调用 0

更新于 2026-10-16

调用地址

GET
https://itapi.top/api/year

响应示例

200 OK
闰年

在线测试

该接口无需参数,直接发送即可。

代码示例

cURL · GET
curl "https://itapi.top/api/year"
PHP
<?php
$res  = file_get_contents("https://itapi.top/api/year");
$json = json_decode($res, true);
print_r($json);
JavaScript
const res  = await fetch("https://itapi.top/api/year");
const json = await res.json();
console.log(json);
Python
import requests

r = requests.get("https://itapi.top/api/year", timeout=10)
print(r.json())
返回接口列表