维梦API - 提供免费接口调用平台
该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": "1689年01月18日",
            "title": "资产阶级国家学说的奠基人——孟德斯鸠"
        },
        {
            "id": 2,
            "year": "1871年01月18日",
            "title": "德意志帝国建立"
        },
        {
            "id": 3,
            "year": "1911年01月18日",
            "title": "黄兴在香港设置广州起义总指挥部"
        },
        {
            "id": 4,
            "year": "1915年01月18日",
            "title": "日本向中国提出“21条要求”"
        },
        {
            "id": 5,
            "year": "1918年01月18日",
            "title": "威尔逊提出解决战后问题的14点方案"
        },
        {
            "id": 6,
            "year": "1919年01月18日",
            "title": "巴黎和会召开"
        },
        {
            "id": 7,
            "year": "1944年01月18日",
            "title": "苏军终于解除了列宁格勒之围"
        },
        {
            "id": 8,
            "year": "1950年01月18日",
            "title": "我国与越南建交"
        },
        {
            "id": 9,
            "year": "1974年01月18日",
            "title": "“批林批孔”运动开始"
        },
        {
            "id": 10,
            "year": "1988年01月18日",
            "title": "西南航空公司一客机在重庆失事 108人罹难"
        },
        {
            "id": 11,
            "year": "1992年01月18日",
            "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);