稳定、快速、免费的 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": "1900年07月16日", "title": "海兰泡惨案" }, { "id": 2, "year": "1912年07月16日", "title": "同盟会改组" }, { "id": 3, "year": "1918年07月16日", "title": "“血腥的尼古拉”被处决" }, { "id": 4, "year": "1923年07月16日", "title": "溥仪裁撤宫内太监" }, { "id": 5, "year": "1935年07月16日", "title": "中国电影业奠基者之一郑正秋逝世" }, { "id": 6, "year": "1936年07月16日", "title": "中共要求团结哥老会" }, { "id": 7, "year": "1945年07月16日", "title": "世界第一颗原子弹爆炸" }, { "id": 8, "year": "1960年07月16日", "title": "苏联撤走全部专家" }, { "id": 9, "year": "1967年07月16日", "title": "美国铁路工人总罢工" }, { "id": 10, "year": "1979年07月16日", "title": "萨达姆·侯赛因就任伊拉克共和国总统" }, { "id": 11, "year": "1989年07月16日", "title": "世界著名指挥家卡拉扬逝世" }, { "id": 12, "year": "1990年07月16日", "title": "我国大推力运载火箭发射成功" }, { "id": 13, "year": "1994年07月16日", "title": "彗星木星相撞" }, { "id": 14, "year": "1997年07月16日", "title": "朝韩双方发生武装冲突" }, { "id": 15, "year": "1999年07月16日", "title": "美前总统肯尼迪之子驾机失事" }, { "id": 16, "year": "2001年07月16日", "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);