维梦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": "1279年03月19日",
            "title": "陆秀夫背幼帝投海殉国   南宋亡"
        },
        {
            "id": 2,
            "year": "1883年03月19日",
            "title": "史迪威将军诞辰"
        },
        {
            "id": 3,
            "year": "1944年03月19日",
            "title": "郭沫若的《甲申三百年祭》发表"
        },
        {
            "id": 4,
            "year": "1964年03月19日",
            "title": "朱德等题词 号召学习欧阳海"
        },
        {
            "id": 5,
            "year": "1975年03月19日",
            "title": "最高法院特赦全部战犯"
        },
        {
            "id": 6,
            "year": "1979年03月19日",
            "title": "乌干达总统逃出首都"
        },
        {
            "id": 7,
            "year": "1980年03月19日",
            "title": "邓小平提出评价建国以来历史问题的指导思想"
        },
        {
            "id": 8,
            "year": "1991年03月19日",
            "title": "孟加拉国第一位女总理卡莉达·齐亚就职"
        },
        {
            "id": 9,
            "year": "1996年03月19日",
            "title": "数学家陈景润逝世"
        },
        {
            "id": 10,
            "year": "1998年03月19日",
            "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);