Get public holidays by country and year
/install apipick-public-holidays
apipick Public Holidays
Query public holidays for 100+ countries by ISO country code and year.
Endpoint
GET https://www.apipick.com/api/holidays
Authentication: x-api-key: YOUR_API_KEY header required.
Get a free API key at https://www.apipick.com/dashboard/api-keys
Request Parameters
| Parameter | Required | Description |
|---|---|---|
country |
Yes | ISO 3166-1 alpha-2 code (e.g. US, GB, CN, DE, JP) |
year |
No | 4-digit year (defaults to current year). Range: 1900 to current year + 10 |
GET /api/holidays?country=US&year=2026
Response
{
"success": true,
"code": 200,
"message": "Holidays retrieved successfully",
"data": {
"country": "US",
"country_name": "United States",
"year": 2026,
"total": 11,
"holidays": [
{"date": "2026-01-01", "name": "New Year's Day"},
{"date": "2026-07-04", "name": "Independence Day"},
{"date": "2026-12-25", "name": "Christmas Day"}
]
},
"credits_used": 1,
"remaining_credits": 99
}
Error Codes
| Code | Meaning |
|---|---|
| 400 | Invalid country code or year |
| 401 | Missing or invalid API key |
| 402 | Insufficient credits |
Cost: 1 credit per request
Usage Pattern
- Use
$APIPICK_API_KEYenv var as thex-api-keyheader value; if not set, ask the user for their apipick API key - Convert a country name to ISO code if the user provides a full name (e.g. "China" →
CN, "United Kingdom" →GB) - Make the GET request with
countryand optionalyear - Present the holidays as a sorted list with dates and names
See references/api_reference.md for full response field descriptions.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install apipick-public-holidays - 安装完成后,直接呼叫该 Skill 的名称或使用
/apipick-public-holidays触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Get public holidays by country and year 是什么?
Query public holidays for any country and year using the apipick Public Holidays API. Supports 100+ countries identified by ISO 3166-1 alpha-2 country codes.... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 553 次。
如何安装 Get public holidays by country and year?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install apipick-public-holidays」即可一键安装,无需额外配置。
Get public holidays by country and year 是免费的吗?
是的,Get public holidays by country and year 完全免费(开源免费),可自由下载、安装和使用。
Get public holidays by country and year 支持哪些平台?
Get public holidays by country and year 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Get public holidays by country and year?
由 javainthinking(@javainthinking)开发并维护,当前版本 v1.0.0。