稳定、快速、免费的 API 接口服务
距离世界节日还剩N天
接口地址: https://api.52vmy.cn/api/wl/day/world
返回格式: JSON
请求方式: GET
请求示例: https://api.52vmy.cn/api/wl/day/world
接口定制: 点此加入用户群
默认QPS: 每2秒最多4次 携带Token可无视限制
请求参数说明:
名称 | 必填 | 类型 | 说明 |
---|---|---|---|
type | 否 | string | 返回格式默认JSON可选text |
返回参数说明:
名称 | 类型 | 说明 |
---|
返回示例:
{ "code": 200, "msg": "成功", "info": [ { "date": "20250908", "festival": "国际扫盲日(InternationalAnti-illiteracyDay)", "countdown": 8, "desc": "距离国际扫盲日还剩8天" }, { "date": "20250910", "festival": "中国教师节(Teacher'sDay)", "countdown": 10, "desc": "距离中国教师节还剩10天" }, { "date": "20250916", "festival": "国际臭氧层保护日(InternationalDayforthePreservationoftheOzoneLayer)", "countdown": 16, "desc": "距离国际臭氧层保护日还剩16天" }, { "date": "20250920", "festival": "全国爱牙日", "countdown": 20, "desc": "距离全国爱牙日还剩20天" }, { "date": "20250921", "festival": "世界停火日(WorldCease-fireDay)", "countdown": 21, "desc": "距离世界停火日还剩21天" }, { "date": "20250927", "festival": "世界旅游日(WorldTourismDay)", "countdown": 27, "desc": "距离世界旅游日还剩27天" }, { "date": "20251001", "festival": "国际老年人日(InternationalDayofOlderPersons)", "countdown": 31, "desc": "距离国际老年人日还剩31天" }, { "date": "20251004", "festival": "世界动物日(WorldAnimalDay)", "countdown": 34, "desc": "距离世界动物日还剩34天" }, { "date": "20251005", "festival": "世界教师日(WorldTeachers'Day)", "countdown": 35, "desc": "距离世界教师日还剩35天" } ] }
PHP代码示例:
$type = $_GET["type"]; $url = "https://api.52vmy.cn/api/wl/day/world?type=".$type; echo file_get_contents($url);