维梦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": "1805年04月02日",
            "title": "安徒生诞辰"
        },
        {
            "id": 2,
            "year": "1945年04月02日",
            "title": "美军开始大规模轰炸日本本土"
        },
        {
            "id": 3,
            "year": "1974年04月02日",
            "title": "法国总统蓬皮杜逝世"
        },
        {
            "id": 4,
            "year": "1975年04月02日",
            "title": "董必武逝世"
        },
        {
            "id": 5,
            "year": "1979年04月02日",
            "title": "总政开始平反冤案"
        },
        {
            "id": 6,
            "year": "1982年04月02日",
            "title": "阿根廷出兵收复马岛 “马岛之战”迫在眉睫"
        },
        {
            "id": 7,
            "year": "1982年04月02日",
            "title": "巴金获“但丁国际奖”"
        },
        {
            "id": 8,
            "year": "1983年04月02日",
            "title": "张大千逝世"
        },
        {
            "id": 9,
            "year": "1984年04月02日",
            "title": "各国议会联盟理事会议正式接纳我为联盟成员"
        },
        {
            "id": 10,
            "year": "1984年04月02日",
            "title": "第一届潍坊国际风筝会举行"
        },
        {
            "id": 11,
            "year": "1989年04月02日",
            "title": "阿拉法特出任巴勒斯坦国总统"
        },
        {
            "id": 12,
            "year": "1992年04月02日",
            "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);