首页 > 其他分享 >免费API查询法定节假日

免费API查询法定节假日

时间:2023-05-24 11:11:26浏览次数:56  
标签:wage 节假日 rest 查询 API 2023 date holiday name

API: https://timor.tech/api/holiday/year/2023

请求结果示例

{
    "code": 0,
    "holiday":
    {
        "01-01":
        {
            "holiday": true,
            "name": "元旦",
            "wage": 3,
            "date": "2023-01-01",
            "rest": 1
        },
        "01-02":
        {
            "holiday": true,
            "name": "元旦",
            "wage": 2,
            "date": "2023-01-02",
            "rest": 1
        },
        "01-21":
        {
            "holiday": true,
            "name": "除夕",
            "wage": 3,
            "date": "2023-01-21",
            "rest": 15
        },
        "01-22":
        {
            "holiday": true,
            "name": "初一",
            "wage": 3,
            "date": "2023-01-22",
            "rest": 1
        },
        "01-23":
        {
            "holiday": true,
            "name": "初二",
            "wage": 3,
            "date": "2023-01-23",
            "rest": 1
        },
        "01-24":
        {
            "holiday": true,
            "name": "初三",
            "wage": 3,
            "date": "2023-01-24",
            "rest": 1
        },
        "01-25":
        {
            "holiday": true,
            "name": "初四",
            "wage": 2,
            "date": "2023-01-25",
            "rest": 1
        },
        "01-26":
        {
            "holiday": true,
            "name": "初五",
            "wage": 2,
            "date": "2023-01-26",
            "rest": 1
        },
        "01-27":
        {
            "holiday": true,
            "name": "初六",
            "wage": 2,
            "date": "2023-01-27",
            "rest": 1
        },
        "01-28":
        {
            "holiday": false,
            "name": "春节后补班",
            "wage": 1,
            "after": true,
            "target": "春节",
            "date": "2023-01-28",
            "rest": 1
        },
        "01-29":
        {
            "holiday": false,
            "name": "春节后补班",
            "wage": 1,
            "after": true,
            "target": "春节",
            "date": "2023-01-29",
            "rest": 1
        },
        "04-05":
        {
            "holiday": true,
            "name": "清明节",
            "wage": 3,
            "date": "2023-04-05",
            "rest": 42
        },
        "04-23":
        {
            "holiday": false,
            "name": "劳动节前补班",
            "wage": 1,
            "target": "劳动节",
            "after": false,
            "date": "2023-04-23",
            "rest": 4
        },
        "04-29":
        {
            "holiday": true,
            "name": "劳动节",
            "wage": 2,
            "date": "2023-04-29",
            "rest": 5
        },
        "04-30":
        {
            "holiday": true,
            "name": "劳动节",
            "wage": 2,
            "date": "2023-04-30",
            "rest": 1
        },
        "05-01":
        {
            "holiday": true,
            "name": "劳动节",
            "wage": 3,
            "date": "2023-05-01",
            "rest": 1
        },
        "05-02":
        {
            "holiday": true,
            "name": "劳动节",
            "wage": 3,
            "date": "2023-05-02",
            "rest": 1
        },
        "05-03":
        {
            "holiday": true,
            "name": "劳动节",
            "wage": 3,
            "date": "2023-05-03",
            "rest": 1
        },
        "05-06":
        {
            "holiday": false,
            "name": "劳动节后补班",
            "after": true,
            "wage": 1,
            "target": "劳动节",
            "date": "2023-05-06",
            "rest": 1
        },
        "06-22":
        {
            "holiday": true,
            "name": "端午节",
            "wage": 3,
            "date": "2023-06-22",
            "rest": 29
        },
        "06-23":
        {
            "holiday": true,
            "name": "端午节",
            "wage": 3,
            "date": "2023-06-23",
            "rest": 1
        },
        "06-24":
        {
            "holiday": true,
            "name": "端午节",
            "wage": 2,
            "date": "2023-06-24",
            "rest": 1
        },
        "06-25":
        {
            "holiday": false,
            "name": "端午节后补班",
            "wage": 1,
            "target": "端午节",
            "after": true,
            "date": "2023-06-25",
            "rest": 1
        },
        "09-29":
        {
            "holiday": true,
            "name": "中秋节",
            "wage": 3,
            "date": "2023-09-29",
            "rest": 96
        },
        "09-30":
        {
            "holiday": true,
            "name": "中秋节",
            "wage": 3,
            "date": "2023-09-30",
            "rest": 1
        },
        "10-01":
        {
            "holiday": true,
            "name": "国庆节",
            "wage": 3,
            "date": "2023-10-01",
            "rest": 1
        },
        "10-02":
        {
            "holiday": true,
            "name": "国庆节",
            "wage": 3,
            "date": "2023-10-02",
            "rest": 1
        },
        "10-03":
        {
            "holiday": true,
            "name": "国庆节",
            "wage": 2,
            "date": "2023-10-03",
            "rest": 1
        },
        "10-04":
        {
            "holiday": true,
            "name": "国庆节",
            "wage": 2,
            "date": "2023-10-04",
            "rest": 1
        },
        "10-05":
        {
            "holiday": true,
            "name": "国庆节",
            "wage": 2,
            "date": "2023-10-05",
            "rest": 1
        },
        "10-06":
        {
            "holiday": true,
            "name": "国庆节",
            "wage": 2,
            "date": "2023-10-06",
            "rest": 1
        },
        "10-07":
        {
            "holiday": false,
            "after": true,
            "wage": 1,
            "name": "国庆节后补班",
            "target": "国庆节",
            "date": "2023-10-07",
            "rest": 1
        },
        "10-08":
        {
            "holiday": false,
            "after": true,
            "wage": 1,
            "name": "国庆节后补班",
            "target": "国庆节",
            "date": "2023-10-08",
            "rest": 1
        },
        "12-31":
        {
            "holiday": true,
            "name": "元旦",
            "wage": 2,
            "date": "2023-12-31",
            "rest": 86
        }
    }
}

标签:wage,节假日,rest,查询,API,2023,date,holiday,name
From: https://www.cnblogs.com/JentZhang/p/17427426.html

相关文章

  • Discourse 如何配置 MAXMIND 来对 IP 地址反向查询
     【配置MAXMIND,Discourse需要重新构建,这将会导致服务中断。】什么是MAXMIND和为什么我们需要使用这个服务Discourse使用 MAXMIND 来通过IP地址反向查询具体的物理地址。如果Discourse没有配置Maxmind’s数据库,我们看到的配置信息如下:或者在对Discourse容......
  • es笔记五之term-level的查询操作
    本文首发于公众号:Hunter后端原文链接:es笔记五之term-level的查询操作官方文档上写的是term-levelqueries,表义为基于准确值的对文档的查询,可以理解为对keyword类型或者text类型分词为keyword的字段进行term形式的精确查找。以下是本篇笔记目录:是否存在值前缀搜索......
  • APIO 2023 真·旅游记
    Day0不知道为什么能来线上,就当来南京旅游了。前一周被感冒折磨的要死,爸妈阳了还不能回家,状态非常非常差,上周末还去深圳打了gdcpc。很累。早上六点钟起床,赶七点半的飞机,大概十点就到了。下飞机发现APIO的老师在迎接我们,等到十一点之后就出发去了酒店。车上甚至有桌子,其他人......
  • dom、js原生常用api, 兼容ie等主流浏览器(持续更新)
    开发组件库必须知道的东西/***获取scrollTop*@param{HTMLElement|window}element-dom元素或者window对象*@returns{number}*/functiongetScrollTop(element){if(element===window){returnwindow.pageYOffset||document.documentElemen......
  • hive查询练习
    练习12022-08-071,liuyan2,tangyan3,jinlian4,dalang5,ximenqing2022-08-081,liuyan2,tangyan4,dalang6,wusong--创建分区表记录每天用户登陆信息createtabletb_login(uidint,namestring)partitionedby(dtstring)rowformatdelimited......
  • 记录--使用率比较低的10个Web API
    这里给大家分享我在网上总结出来的一些知识,希望对大家有所帮助avaScript中有些API可能使用率比较低,下面我们逐一介绍它们的用法和使用场景。至于标题,主要是想让你进来看看,兄弟们别打我!BlobAPIBlobAPI用于处理二进制数据,可以方便地将数据转换为Blob对象或从Blob对象读取数......
  • java api调用kafka
    已经启用了zookeeper和kafka单机的ip为192.168.80.128加入maven的pom.xml代码如下 <dependency><groupId>org.apache.kafka</groupId><artifactId>kafka-clients</artifactId><version>0.8.2.1</version&g......
  • 在终端运行查询clickhouse的方式
    执行的语法和命令如下:timeclickhouse-client-hlocalhost-udefault--password"root"--port9000-dtpch-q"selectcount(*)fromcustomer;"打印的结果显示如下:root@test-stonedata-ck02:~#timeclickhouse-client-hlocalhost-udefault--password&q......
  • clickhouse-查询的22条SQL
    selectl_returnflag,l_linestatus,sum(l_quantity)assum_qty,sum(l_extendedprice)assum_base_price,sum(l_extendedprice*(1-l_discount))assum_disc_price,sum(l_extendedprice*(1-l_discount)*(1+l_tax))assum_charge,avg(l_quantity)asavg_q......
  • Uni-app 封装 API 请求
    一、在文件夹API下创建api.jsconstBASE_URL="";//封装请求方法constrequest=(url,method,data)=>{ wx.showLoading({ title:'加载中'//数据请求前loading }) returnnewPromise((resolve,reject)=>{ wx.request({ url:BASE_URL+url,......