稳定、快速、免费的 API 接口服务
看一看历史上的今天都发生了什么
接口地址: https://api.52vmy.cn/api/wl/today/new
返回格式: JSON
请求方式: GET
请求示例: https://api.52vmy.cn/api/wl/today/new
接口定制: 点此加入用户群
默认QPS: 每2秒最多4次 携带Token可无视限制
请求参数说明:
| 名称 | 必填 | 类型 | 说明 |
|---|---|---|---|
| id | 否 | string | 查询数据的ID |
| day | 否 | string | 查询日期,0101 |
| type | 是 | string | 返回格式默认JSON可选text |
返回参数说明:
| 名称 | 类型 | 说明 |
|---|
返回示例:
{
"code": 200,
"msg": "成功",
"data": [
{
"id": 1,
"year": "1887年07月07日",
"title": "俄国画家夏加尔诞辰"
},
{
"id": 2,
"year": "1893年07月07日",
"title": "苏联诗人马雅可夫斯基诞辰"
},
{
"id": 3,
"year": "1902年07月07日",
"title": "清政府就英印军队进犯西藏照会英国"
},
{
"id": 4,
"year": "1921年07月07日",
"title": "中国劳动组合书记部成立"
},
{
"id": 5,
"year": "1927年07月07日",
"title": "上海设市"
},
{
"id": 6,
"year": "1928年07月07日",
"title": "南京国民政府宣告废除中外不平等条约"
},
{
"id": 7,
"year": "1929年07月07日",
"title": "美国东西海岸间的班机首次通航"
},
{
"id": 8,
"year": "1930年07月07日",
"title": "英国作家柯南道尔去世"
},
{
"id": 9,
"year": "1937年07月07日",
"title": "卢沟桥事变"
},
{
"id": 10,
"year": "1941年07月07日",
"title": "美军接管冰岛"
},
{
"id": 11,
"year": "1945年07月07日",
"title": "中共中央纪念抗战八周年"
},
{
"id": 12,
"year": "1967年07月07日",
"title": "世界著名电影演员费雯丽逝世"
},
{
"id": 13,
"year": "1972年07月07日",
"title": "田中当选为日本首相 中日关系实现正常化"
},
{
"id": 14,
"year": "1981年07月07日",
"title": "太阳能飞机首次飞越英吉利海峡"
},
{
"id": 15,
"year": "1981年07月07日",
"title": "国务院下达鼓励个体经营的规定"
},
{
"id": 16,
"year": "1982年07月07日",
"title": "电影艺术家金山逝世"
},
{
"id": 17,
"year": "1995年07月07日",
"title": "法国超级间谍卫星出山"
}
]
}
PHP代码示例:
$id = $_GET["id"]; $day = $_GET["day"]; $type = $_GET["type"]; $url = "https://api.52vmy.cn/api/wl/today/new?id=".$id."&day=".$day."&type=".$type; echo file_get_contents($url);