{"id":22679988,"url":"https://github.com/tomandjerry136/hodiday","last_synced_at":"2025-04-19T23:49:25.924Z","repository":{"id":220613182,"uuid":"752101737","full_name":"tomandjerry136/hodiday","owner":"tomandjerry136","description":"中国法定节假日信息","archived":false,"fork":false,"pushed_at":"2025-01-05T04:41:33.000Z","size":27,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-19T23:49:20.771Z","etag":null,"topics":["holiday","holidays-api"],"latest_commit_sha":null,"homepage":"https://xiaoai.me/pages/daily-holiday","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tomandjerry136.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-03T03:07:38.000Z","updated_at":"2025-01-05T04:41:37.000Z","dependencies_parsed_at":"2024-02-03T04:31:33.964Z","dependency_job_id":"f5679786-cb71-430d-b93a-82e34a6f9612","html_url":"https://github.com/tomandjerry136/hodiday","commit_stats":null,"previous_names":["tomandjerry136/hodiday"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomandjerry136%2Fhodiday","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomandjerry136%2Fhodiday/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomandjerry136%2Fhodiday/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomandjerry136%2Fhodiday/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomandjerry136","download_url":"https://codeload.github.com/tomandjerry136/hodiday/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249830846,"owners_count":21331357,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["holiday","holidays-api"],"created_at":"2024-12-09T19:11:50.057Z","updated_at":"2025-04-19T23:49:25.897Z","avatar_url":"https://github.com/tomandjerry136.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chinese Hodiday API\n中国法定节假日信息，查询日期从2023-01-01开始，每年进行更新最新日期。\n\n# 使用说明\n* 长期维护\n* 开源免费\n* 可下载源数据，也可以直接Api使用\n\n# 接口地址\n## 字段说明\n示例返回值如下：\n```\n{\n    \"daytype\": 1,//0表示工作日、1节假日、2双休日、3调休日（需上班）\n    \"holiday\": \"元旦节\",//节假日情况\n    \"rest\": 1,//是否休息，0为不休息，1为休息\n    \"date\": \"2024-01-01\",//日期\n    \"week\": 1,//星期几，0为星期日，1为星期一，依次类推\n    \"week_desc_en\": \"Monday\",//星期几的英文描述\n    \"week_desc_cn\": \"星期一\"//星期几的中文描述\n  }\n```\n## 根据年份获取\n### 接口地址\n```\nhttps://publicapi.xiaoai.me/holiday/year\n```\n例如\n[https://publicapi.xiaoai.me/holiday/year?date=2024](https://publicapi.xiaoai.me/holiday/year?date=2024 \"https://publicapi.xiaoai.me/holiday/year?date=2024\")\n\n### 响应示例\n```\n{\n  \"code\": 0,\n  \"msg\": \"ok\",\n  \"data\": [\n    {\n      \"daytype\": 1,\n      \"holiday\": \"元旦节\",\n      \"rest\": 1,\n      \"date\": \"2024-01-01\",\n      \"week\": 1,\n      \"week_desc_en\": \"Monday\",\n      \"week_desc_cn\": \"星期一\"\n    }\n  ]\n}\n```\n## 根据月份获取\n### 接口地址\n```\nhttps://publicapi.xiaoai.me/holiday/month\n```\n例如\n[https://publicapi.xiaoai.me/holiday/month?date=2024-01](https://publicapi.xiaoai.me/holiday/month?date=2024-01 \"https://publicapi.xiaoai.me/holiday/year?date=2024-01\")\n\n### 响应示例\n```\n{\n  \"code\": 0,\n  \"msg\": \"ok\",\n  \"data\": [\n    {\n      \"daytype\": 1,\n      \"holiday\": \"元旦节\",\n      \"rest\": 1,\n      \"date\": \"2024-01-01\",\n      \"week\": 1,\n      \"week_desc_en\": \"Monday\",\n      \"week_desc_cn\": \"星期一\"\n    }\n  ]\n}\n```\n## 根据日期获取\n### 接口地址\n```\nhttps://publicapi.xiaoai.me/holiday/day\n```\n例如\n[https://publicapi.xiaoai.me/holiday/day?date=2024-01-01](https://publicapi.xiaoai.me/holiday/day?date=2024-01-01 \"https://publicapi.xiaoai.me/holiday/day?date=2024-01-01\")\n\n### 响应示例\n```\n{\n  \"code\": 0,\n  \"msg\": \"ok\",\n  \"data\": [\n    {\n      \"daytype\": 1,\n      \"holiday\": \"元旦节\",\n      \"rest\": 1,\n      \"date\": \"2024-01-01\",\n      \"week\": 1,\n      \"week_desc_en\": \"Monday\",\n      \"week_desc_cn\": \"星期一\"\n    }\n  ]\n}\n```\n# 源数据\n## JSON 格式\n|  年份 | 格式  |  链接 |\n| ------------ | ------------ | ------------ |\n|  2023 |  JSON | [2023](https://github.com/tomandjerry136/hodiday/blob/main/data/2023.json \"2023\") |\n|  2023 |  SQL | [2023](https://github.com/tomandjerry136/hodiday/blob/main/data/2023.sql \"2023\") |\n|  2024 |  JSON | [2024](https://github.com/tomandjerry136/hodiday/blob/main/data/2024.json \"2024\")  |\n|  2024 |  SQL | [2024](https://github.com/tomandjerry136/hodiday/blob/main/data/2024.sql \"2024\") |\n|  2025 |  JSON | [2025](https://github.com/tomandjerry136/hodiday/blob/main/data/2025.json \"2025\")  |\n|  2025 |  SQL | [2025](https://github.com/tomandjerry136/hodiday/blob/main/data/2025.sql \"2025\") |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomandjerry136%2Fhodiday","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomandjerry136%2Fhodiday","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomandjerry136%2Fhodiday/lists"}