稳定、快速、免费的 API 接口服务
看一看历史上的今天都发生了什么
接口地址: https://api.52vmy.cn/api/wl/today
返回格式: JSON
请求方式: GET
请求示例: https://api.52vmy.cn/api/wl/today
接口定制: 点此加入用户群
默认QPS: 每2秒最多4次 携带Token可无视限制
接口备注:历史上的今天资讯
请求参数说明:
名称 | 必填 | 类型 | 说明 |
---|---|---|---|
type | 否 | string | 返回格式默认JSON可选text |
返回参数说明:
名称 | 类型 | 说明 |
---|
返回示例:
{ "code": 200, "msg": "成功", "data": [ { "year": "664年7月4日", "title": "唐朝高僧玄奘去世" }, { "year": "1054年7月4日", "title": "中国天文学家观测到金牛座的超新星爆发" }, { "year": "1776年7月4日", "title": "在从英国独立后的北美大陆上,美利坚合众国正式建立" }, { "year": "1804年7月4日", "title": "美国著名小说家霍桑出生" }, { "year": "1826年7月4日", "title": "美国前总统约翰·亚当斯去世" }, { "year": "1831年7月4日", "title": "美国第五任总统詹姆斯·门罗去世" }, { "year": "1896年7月4日", "title": "作家茅盾出生" }, { "year": "1904年7月4日", "title": "中国历史上最后一次科举考试" }, { "year": "1934年7月4日", "title": "法国著名现代物理学家居里夫人去世" }, { "year": "1938年7月4日", "title": "中国杰出航天技术专家龙乐豪诞辰" }, { "year": "1946年7月4日", "title": "菲律宾宣布独立" }, { "year": "1978年7月4日", "title": "中国历史学家萧一山去世" }, { "year": "2008年7月4日", "title": "中国大陆与台湾的两岸包机正式开始" } ] }
PHP代码示例:
$type = $_GET["type"]; $url = "https://api.52vmy.cn/api/wl/today?type=".$type; echo file_get_contents($url);