维梦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": "1795年04月05日",
            "title": "法普签订巴塞尔和约"
        },
        {
            "id": 2,
            "year": "1876年04月05日",
            "title": "南开创办人张伯苓诞辰"
        },
        {
            "id": 3,
            "year": "1908年04月05日",
            "title": "音乐大师卡拉扬诞辰"
        },
        {
            "id": 4,
            "year": "1916年04月05日",
            "title": "美国影星格利高利·派克出生"
        },
        {
            "id": 5,
            "year": "1927年04月05日",
            "title": "陈独秀与汪精卫发表“联合宣言”"
        },
        {
            "id": 6,
            "year": "1931年04月05日",
            "title": "邓恩铭在济南被杀"
        },
        {
            "id": 7,
            "year": "1937年04月05日",
            "title": "国共两党同祭黄帝陵"
        },
        {
            "id": 8,
            "year": "1959年04月05日",
            "title": "容国团在世乒赛夺得男子单打冠军"
        },
        {
            "id": 9,
            "year": "1964年04月05日",
            "title": "麦克阿瑟将军逝世"
        },
        {
            "id": 10,
            "year": "1975年04月05日",
            "title": "蒋介石病逝"
        },
        {
            "id": 11,
            "year": "1976年04月05日",
            "title": "“四·五”运动"
        },
        {
            "id": 12,
            "year": "1978年04月05日",
            "title": "中共中央批准全部摘掉右派分子帽子"
        },
        {
            "id": 13,
            "year": "1979年04月05日",
            "title": "中共决定实行“调整、改革、整顿、提高”方针"
        },
        {
            "id": 14,
            "year": "1983年04月05日",
            "title": "法国驱逐47名苏联外交人员"
        },
        {
            "id": 15,
            "year": "1983年04月05日",
            "title": "美国第二架“挑战者”号航天飞机首航成功"
        },
        {
            "id": 16,
            "year": "1983年04月05日",
            "title": "中国人民武装警察部队成立"
        },
        {
            "id": 17,
            "year": "1998年04月05日",
            "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);