Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lecepin/chinese-holidays-query

📅 中国节假日接口,同步更新
https://github.com/lecepin/chinese-holidays-query

Last synced: 4 days ago
JSON representation

📅 中国节假日接口,同步更新

Awesome Lists containing this project

README

        

# 📅 中国节假日接口

同步 [中国政府网](http://www.gov.cn/) 数据。

#### 使用

直接获取需要的年份 json,如 2022 年:

```
https://raw.githubusercontent.com/lecepin/chinese-holidays-query/main/2022.json
```

国内加速:

```
https://github.91chi.fun/https://raw.githubusercontent.com/lecepin/chinese-holidays-query/main/2022.json
https://raw.staticdn.net/lecepin/chinese-holidays-query/main/2022.json
https://cdn.jsdelivr.net/gh/lecepin/chinese-holidays-query@main/2020.json
```

### API

- `holiday: 清明节`,20220403、20220404、20220405
- `holiday_today: 节日当天`,20220405
- `workday: 非工作日`,20220403、20220404、20220405
- `workday: 工作日`,20220402

```json
{
...
"20220402": {
"year": "2022年",
"month": "2022年04月",
"date": "2022年04月02日",
"yearweek": "2022年第13周",
"yearday": "2022年第92天",
"lunar_year": "二零二二年",
"lunar_month": "二零二二年三月",
"lunar_date": "二零二二年三月初二",
"lunar_yearday": "2022年第61天",
"week": "星期六",
"weekend": "周末",
"workday": "工作日",
"holiday": "非节假日",
"holiday_or": "非节假日",
"holiday_overtime": "清明节调休",
"holiday_today": "非节日当天",
"holiday_legal": "非法定节假日",
"holiday_recess": "非假期节假日"
},
"20220403": {
"year": "2022年",
"month": "2022年04月",
"date": "2022年04月03日",
"yearweek": "2022年第13周",
"yearday": "2022年第93天",
"lunar_year": "二零二二年",
"lunar_month": "二零二二年三月",
"lunar_date": "二零二二年三月初三",
"lunar_yearday": "2022年第62天",
"week": "星期日",
"weekend": "周末",
"workday": "非工作日",
"holiday": "清明节",
"holiday_or": "清明节",
"holiday_overtime": "非节假日调休",
"holiday_today": "非节日当天",
"holiday_legal": "非法定节假日",
"holiday_recess": "假期节假日"
},
"20220404": {
"year": "2022年",
"month": "2022年04月",
"date": "2022年04月04日",
"yearweek": "2022年第14周",
"yearday": "2022年第94天",
"lunar_year": "二零二二年",
"lunar_month": "二零二二年三月",
"lunar_date": "二零二二年三月初四",
"lunar_yearday": "2022年第63天",
"week": "星期一",
"weekend": "非周末",
"workday": "非工作日",
"holiday": "清明节",
"holiday_or": "清明节",
"holiday_overtime": "非节假日调休",
"holiday_today": "非节日当天",
"holiday_legal": "非法定节假日",
"holiday_recess": "假期节假日"
},
"20220405": {
"year": "2022年",
"month": "2022年04月",
"date": "2022年04月05日",
"yearweek": "2022年第14周",
"yearday": "2022年第95天",
"lunar_year": "二零二二年",
"lunar_month": "二零二二年三月",
"lunar_date": "二零二二年三月初五",
"lunar_yearday": "2022年第64天",
"week": "星期二",
"weekend": "非周末",
"workday": "非工作日",
"holiday": "清明节",
"holiday_or": "清明节",
"holiday_overtime": "非节假日调休",
"holiday_today": "节日当天",
"holiday_legal": "法定节假日",
"holiday_recess": "假期节假日"
}
...
}
```