稳定、快速、免费的 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": "1917年07月01日", "title": "张勋复辟" }, { "id": 2, "year": "1919年07月01日", "title": "少年中国学会成立" }, { "id": 3, "year": "1931年07月01日", "title": "蒋介石发动第三次“围剿”" }, { "id": 4, "year": "1949年07月01日", "title": "毛泽东在《人民日报》发表《论人民民主专政》" }, { "id": 5, "year": "1952年07月01日", "title": "成渝铁路建成通车" }, { "id": 6, "year": "1958年07月01日", "title": "《红旗》首次提出“人民公社”的名称" }, { "id": 7, "year": "1961年07月01日", "title": "坎坷一生的戴安娜王妃诞辰" }, { "id": 8, "year": "1961年07月01日", "title": "中国革命博物馆开馆" }, { "id": 9, "year": "1975年07月01日", "title": "我国与泰国建交" }, { "id": 10, "year": "1976年07月01日", "title": "张闻天逝世" }, { "id": 11, "year": "1983年07月01日", "title": "《邓小平文选》出版" }, { "id": 12, "year": "1988年07月01日", "title": "中国国际航空公司正式成立" }, { "id": 13, "year": "1988年07月01日", "title": "《求是》杂志创刊" }, { "id": 14, "year": "1991年07月01日", "title": "苏联议会通过私有化法" }, { "id": 15, "year": "1992年07月01日", "title": "俄罗斯总统签署命令 将大部分国营企业改为股份公司" }, { "id": 16, "year": "1997年07月01日", "title": "中国政府对香港恢复行使主权" }, { "id": 17, "year": "1999年07月01日", "title": "国防科技工业十大集团公司成立" }, { "id": 18, "year": "2000年07月01日", "title": "日本著名日中友好人士宇都宫德马逝世" }, { "id": 19, "year": "2001年07月01日", "title": "中共中央举行大会隆重庆祝建党八十周年 江泽民全面阐述“三个代表”重要思想" }, { "id": 20, "year": "2001年07月01日", "title": "“西电东送”的重要标志性工程龙滩水电站开工" }, { "id": 21, "year": "2003年07月01日", "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);