稳定、快速、免费的 API 接口服务
共收录了 26 个接口
接口地址: https://collect.xmwxxc.com/collect/holiday
返回格式: JSON
请求方式: 不限
请求示例: https://collect.xmwxxc.com/collect/holiday/?year=2022
请求参数说明:
名称 | 必填 | 类型 | 说明 |
---|---|---|---|
year | 是 | string | 年份 |
type | 否 | string | 返回类型 默认json 可选 jsonp |
callback | 否 | string | Jsonp下返回标签 选择Jsonp返回时必选 |
返回参数说明:
名称 | 类型 | 说明 |
---|
返回示例:
{"code":1,"msg":"ok","time":"1642405973","data":{"holidays":{"cn":[{"date":"20220101","status":0,"name":"元旦"},{"date":"20220102","status":0,"name":"元旦"},{"date":"20220103","status":0,"name":"元旦"},{"date":"20220131","status":0,"name":"春节"},{"date":"20220201","status":0,"name":"春节"},{"date":"20220202","status":0,"name":"春节"},{"date":"20220203","status":0,"name":"春节"},{"date":"20220204","status":0,"name":"春节"},{"date":"20220205","status":0,"name":"春节"},{"date":"20220206","status":0,"name":"春节"},{"date":"20220403","status":0,"name":"清明节"},{"date":"20220404","status":0,"name":"清明节"},{"date":"20220405","status":0,"name":"清明节"},{"date":"20220430","status":0,"name":"劳动节"},{"date":"20220501","status":0,"name":"劳动节"},{"date":"20220502","status":0,"name":"劳动节"},{"date":"20220503","status":0,"name":"劳动节"},{"date":"20220504","status":0,"name":"劳动节"},{"date":"20220603","status":0,"name":"端午节"},{"date":"20220604","status":0,"name":"端午节"},{"date":"20220605","status":0,"name":"端午节"},{"date":"20220910","status":0,"name":"中秋节"},{"date":"20220911","status":0,"name":"中秋节"},{"date":"20220912","status":0,"name":"中秋节"},{"date":"20221001","status":0,"name":"国庆节"},{"date":"20221002","status":0,"name":"国庆节"},{"date":"20221003","status":0,"name":"国庆节"},{"date":"20221004","status":0,"name":"国庆节"},{"date":"20221005","status":0,"name":"国庆节"},{"date":"20221006","status":0,"name":"国庆节"},{"date":"20221007","status":0,"name":"国庆节"},{"date":"20220129","status":1,"name":"春节补班"},{"date":"20220130","status":1,"name":"春节补班"},{"date":"20220402","status":1,"name":"清明补班"},{"date":"20220424","status":1,"name":"劳动节补班"},{"date":"20220507","status":1,"name":"劳动节补班"},{"date":"20221008","status":1,"name":"国庆节补班"},{"date":"20221009","status":1,"name":"国庆节补班"}]}}}
错误码格式说明:
名称 | 类型 | 说明 |
---|
代码示例:
友情连接