节假日查询接口

By admin, 6 十二月, 2019

https://holidays-calendar.net/calendar_zh_cn/china_zh_cn.html

https://zhiwei-tech.com/console/api/holiday/202001

 

百度接口(没有国务院每年假期,只是万年历):

http://opendata.baidu.com/api.php?query=2020%E5%B9%B41%E6%9C%88&resource_id=6018&format=json

参考:https://open.baidu.com/xcxdoc/srcids/48019.html

节假日采用以下接口:
​http://www.easybots.cn/api/holiday.php?m=201912,202001
工作日对应结果为 0, 休息日对应结果为 1, 节假日对应的结果为 2
输出结果:

{"201912":{"01":"1","07":"1","08":"1","14":"1","15":"1","21":"1","22":"1","28":"1","29":"1"},"202001":{"01":"2","04":"1","05":"1","11":"1","12":"1","18":"1","24":"1","25":"2","26":"2","27":"2","28":"1","29":"1","30":"1"}}

评论

Restricted HTML

  • 允许的HTML标签:<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <img src>
  • 自动断行和分段。
  • 网页和电子邮件地址自动转换为链接。
验证码
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
请输入"Drupal10"