入门
在 Duaer 里查公共假期
在 Duaer 里:Nager.Date:某国某年的公共假期,含当地名称、假期类型与适用地区。一次成功查询用 1 额度。
能拿到什么
Duaer 数据市场里的「公共假期」:Nager.Date:某国某年的公共假期,含当地名称、假期类型与适用地区。查到结果时用 1 额度,结果交给数字组织的下一个节点。
从节点创建器选 Duaer 数据 → 公共假期,或打开 数据市场。相关:日出日落、天气预报。
适合做什么
- 按新加坡假期安排交付排期。
- 列出明年中国的法定假日。
在画布里检索
- 打开节点创建器,选 Duaer 数据 → Public holidays。
- 填 Country(如 SG);Year(2027)可选。
- Limit 默认 10,最大 20。执行。
查到结果才扣 1 额度;没有结果、输入有误或上游失败都不扣。
用 API 调用
- GET https://api.duaer.com/v1/data/public-holidays?country=SG
- Authorization: Bearer <Duaer key>
下方是与数据市场「复制技能」相同的英文技能,含参数、示例与返回字段。
调用技能(英文)
与数据市场「复制技能」一致。
---
name: duaer-public-holidays
description: >-
Duaer Public holidays. Nager.Date: public holidays of a country for a year, with local names, types, and regions.
One successful search uses 1 Duaer credit.
---
# Duaer Public holidays
Duaer Public holidays lists the public holidays of about 120 countries for a year, with the local name, the English name, the holiday type, and the regions where it applies.
## When to use
- Plan a delivery schedule around Singapore holidays.
- List next year's Chinese public holidays.
## When not to use
- Sunrise and sunset times. Use https://skills.duaer.com/sunrise.md.
- Weather on a date. Use https://skills.duaer.com/weather.md.
## Call
`GET https://api.duaer.com/v1/data/public-holidays?country=SG`
Header: `Authorization: Bearer <Duaer key>`
Use an account key or a model API key.
Get a Duaer key: https://skills.duaer.com/keys.md
## Parameters
Provide `country`.
- `country` — Two-letter country code such as CN, US, DE, or SG.
- `year` — Optional. Four-digit year. Default this year.
- `limit` — Optional. Rows to return, from 1 to 20. Default 10.
## Examples
- `GET https://api.duaer.com/v1/data/public-holidays?country=SG` — Singapore public holidays this year.
- `GET https://api.duaer.com/v1/data/public-holidays?country=CN&year=2027&limit=20` — Chinese public holidays in 2027.
## Result
The response is `{ "items": [...] }`. Each item has `source`, `title`, `url`, and `summary`, plus:
- `date`, `name`, `localName` — date, English name, and local name.
- `types`, `regions`, `nationwide`, `country` — holiday type, regions where it applies, and whether it is nationwide.
Make-up working days are not included.
Fields without a value are left out.
## Credits
A search that returns at least one row uses 1 credit.
An empty search, a search that finds nothing, or a failed search uses 0.
Wrong input returns 400 with a message and uses 0.
No remaining credits returns 402 and does not search.
A missing key returns 401.
## Related
- https://skills.duaer.com/sunrise.md — Duaer Sunrise and sunset
- https://skills.duaer.com/weather.md — Duaer Weather forecast
常见问题
Duaer 的公共假期检索扣多少额度?
查到结果时扣 1 额度;没有结果或出错不扣。
Duaer 公共假期包含中国的调休上班日吗?
不包含。Duaer 只列出放假的日子,调休上班日需要另外核对。
同组