维梦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": "1824年03月02日",
            "title": "捷克音乐家斯美塔那诞辰"
        },
        {
            "id": 2,
            "year": "1919年03月02日",
            "title": "第三国际成立"
        },
        {
            "id": 3,
            "year": "1924年03月02日",
            "title": "孙中山提出国民党应与共产党志同道合"
        },
        {
            "id": 4,
            "year": "1930年03月02日",
            "title": "英国作家劳伦斯逝世"
        },
        {
            "id": 5,
            "year": "1930年03月02日",
            "title": "中国左翼作家联盟成立"
        },
        {
            "id": 6,
            "year": "1949年03月02日",
            "title": "美国轰炸机首次完成中途不着陆绕世界飞行"
        },
        {
            "id": 7,
            "year": "1962年03月02日",
            "title": "周总理重申知识分子是劳动人民的—部分"
        },
        {
            "id": 8,
            "year": "1969年03月02日",
            "title": "英法合作的“协和式”飞机首次飞行"
        },
        {
            "id": 9,
            "year": "1969年03月02日",
            "title": "苏军侵入珍宝岛 我防部队被迫还击"
        },
        {
            "id": 10,
            "year": "1972年03月02日",
            "title": "美国发射宇宙飞船对木星进行考察"
        },
        {
            "id": 11,
            "year": "1976年03月02日",
            "title": "江青想当“女皇”"
        },
        {
            "id": 12,
            "year": "1983年03月02日",
            "title": "我国与科特迪瓦建交"
        },
        {
            "id": 13,
            "year": "1988年03月02日",
            "title": "中国青海省西宁元宵观灯惨案"
        },
        {
            "id": 14,
            "year": "1997年03月02日",
            "title": "邓小平骨灰撒入大海"
        },
        {
            "id": 15,
            "year": "1999年03月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);