Endpoint
Authentication
| Header | Required | Value |
|---|---|---|
X-API-Key | Yes | Your API key (bun_...) |
Content-Type | Yes | application/json |
Overview
Retrieve a complete list of public holidays for any supported country, optionally filtered to a specific year. Returns holiday names in both English and the local language alongside ISO dates, enabling date-aware scheduling, SLA calculations, and calendar integrations.Use cases
- Skip holidays in business day calculations
- Display regional holidays in scheduling or calendar UIs
- Automate SLA deadline adjustments around public holidays
- Build country-aware payroll or time-tracking systems
Details
Covers 100+ countries. Holiday data includes national and regional observances. Theyear field defaults to the current year when omitted. Country codes follow ISO 3166-1 alpha-2 (e.g. BR, US, DE).
Request body
| Field | Type | Required | Description |
|---|---|---|---|
country | string | Yes | ISO 3166-1 alpha-2 country code (e.g. BR, US) |
year | number | No | Year to retrieve holidays for (default: current year, range: 1900–2100) |
Example
Response
200 OK
| Field | Type | Description |
|---|---|---|
country | string | ISO country code (uppercased) |
year | number | Year of the holidays |
count | integer | Total number of holidays returned |
holidays | object[] | Array of holiday objects |
| Field | Type | Description |
|---|---|---|
date | string | ISO 8601 date (YYYY-MM-DD) |
localName | string | Holiday name in the local language |
name | string | Holiday name in English |
countryCode | string | ISO country code |
fixed | boolean | Whether this holiday falls on the same date every year |
global | boolean | true if the holiday applies to the whole country, false if regional |
counties | string[] | null | List of county/region codes the holiday applies to (null if global) |
launchYear | integer | null | Year the holiday was first observed (if known) |
types | string[] | Holiday type tags, e.g. ["Public"] |

