📅

数字年份

已测试可用GET
数学与计算提供商: Numbers API

获取某年份的历史事件

#年份#历史#事件#数字

请求地址

GET http://numbersapi.com/random/year

在线测试

GEThttp://numbersapi.com/random/year

注册并登录后即可在线测试 API

请求参数

参数名类型必填描述
qstring查询关键字
limitnumber返回数量限制
JavaScriptfetch
fetch('http://numbersapi.com/random/year')
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error('Error:', error));
cURL命令行
curl "http://numbersapi.com/random/year"