← 返回
开发者工具 Key 中文

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....
使用 apipick 公共假期 API 查询任意国家/年份的公共假期,支持 100 多国(ISO 3166-1 alpha-2 代码)。
javainthinking javainthinking 来源
开发者工具 clawhub v1.0.0 1 版本 99888.5 Key: 需要
★ 0
Stars
📥 896
下载
💾 8
安装
1
版本
#latest

概述

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

ParameterRequiredDescription
----------------------------------
countryYesISO 3166-1 alpha-2 code (e.g. US, GB, CN, DE, JP)
yearNo4-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

CodeMeaning
---------------
400Invalid country code or year
401Missing or invalid API key
402Insufficient credits

Cost: 1 credit per request

Usage Pattern

  1. Use $APIPICK_API_KEY env var as the x-api-key header value; if not set, ask the user for their apipick API key
  2. Convert a country name to ISO code if the user provides a full name (e.g. "China" → CN, "United Kingdom" → GB)
  3. Make the GET request with country and optional year
  4. Present the holidays as a sorted list with dates and names

See references/api_reference.md for full response field descriptions.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 13:00 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

office-efficiency

Slides/PPT generation and voice narration

javainthinking
基于2slides API的AI演示文稿生成,支持从文本、参考图片或文档摘要创建幻灯片。适用于“创建演示文稿”“制作幻灯片”等请求,提供主题选择、多语言及同步/异步生成模式。
★ 0 📥 2,343
business-ops

Stripe

byungkyu
Stripe API 集成,支持托管 OAuth,实现对客户、订阅、发票、产品、价格和支付的可写金融集成。
★ 27 📥 25,921
business-ops

Trello

steipete
使用 Trello REST API 管理看板、列表和卡片
★ 161 📥 41,109