维梦API - 提供免费接口调用平台
该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": "20250405",
            "festival": "清明节(Tomb-sweepingDay)",
            "countdown": 2,
            "desc": "距离清明节还剩2天"
        },
        {
            "date": "20250407",
            "festival": "世界卫生日(WorldHealthDay)",
            "countdown": 4,
            "desc": "距离世界卫生日还剩4天"
        },
        {
            "date": "20250422",
            "festival": "世界地球日(WorldEarthDay)",
            "countdown": 19,
            "desc": "距离世界地球日还剩19天"
        },
        {
            "date": "20250426",
            "festival": "世界知识产权日(WorldIntellectualPropertyDay)",
            "countdown": 23,
            "desc": "距离世界知识产权日还剩23天"
        },
        {
            "date": "20250501",
            "festival": "国际劳动节(InternationalLabourDay)",
            "countdown": 28,
            "desc": "距离国际劳动节还剩28天"
        },
        {
            "date": "20250503",
            "festival": "世界哮喘日(WorldAsthmaDay)",
            "countdown": 30,
            "desc": "距离世界哮喘日还剩30天"
        },
        {
            "date": "20250504",
            "festival": "中国青年节(ChineseYouthDay)",
            "countdown": 31,
            "desc": "距离中国青年节还剩31天"
        },
        {
            "date": "20250508",
            "festival": "世界红十字日(WorldRed-CrossDay)",
            "countdown": 35,
            "desc": "距离世界红十字日还剩35天"
        },
        {
            "date": "20250512",
            "festival": "国际护士节(InternationalNurseDay)",
            "countdown": 39,
            "desc": "距离国际护士节还剩39天"
        }
    ]
}

PHP代码示例:

$type = $_GET["type"];
$url = "https://api.52vmy.cn/api/wl/day/world?type=".$type;
echo file_get_contents($url);