Public Holidays API
Public holidays for 204 countries and territories, 2015-2035: one row per country, date and holiday, with local names, a nationwide flag, ISO 3166-2 subdivisions and holiday type.
Public holiday dates for every country and territory the Nager.Date project covers, as plain rows you can filter rather than a calendar you have to parse. 55,643 dated rows across 204 countries for the years 2015-2035 (21 years), each carrying the English holiday name, the local-language name, whether it is observed nationwide, the ISO 3166-2 subdivision codes it applies to when it is not, the year it was introduced where the source knows it, and the holiday's type — Public, Bank, School, Authorities, Optional or Observance.
The data comes from the Nager.Date open-source project (https://date.nager.at, source at https://github.com/nager/Nager.Date), published under the MIT licence, Copyright (c) 2016 nager.at, with the licence text in LICENSE at the repository root. It is community-maintained calendar data, not a legal gazette: it is not legal, HR or payroll advice, and regional holidays, substitute days and in-lieu observances vary by jurisdiction and by employer. Bodek republishes what the source returned, unchanged and ungapfilled — a country-year the project does not cover is absent here, not estimated.
The year window is a deliberate trade-off, because a materialised holiday row per country per year grows linearly with the years kept. This API keeps 2015-2035 and nothing outside it, and normalises hard: holiday names repeat in every year of every country, so they are not stored on the dated rows at all. /names holds the 1,529 distinct (name, local_name) pairs once and /holidays references one by name_id, exposing name and local_name through that look-up. Dates are stored as DATE, countries as CHAR(2), subdivision lists as short ASCII strings and the flags as single bytes, which puts all three tables — data and indexes together — at 4.3 MB. One composite index on (country, date) carries the whole query load. The window is one constant in the seeder, so rolling it forward is a re-run, not a migration.
Three things a caller answers in one request. Every public holiday in the United States in 2026, in date order: /v1/calendar/holidays?country=US&year=2026&sort=date. Which countries observe a holiday on Christmas Day 2026: /v1/calendar/holidays?date=2026-12-25&sort=country. Only the nationwide holidays for Germany, leaving out the state-level ones: /v1/calendar/holidays?country=DE&year=2026&global=1. Add type=Public to leave out bank and observance entries, subdivisions__contains=DE-BY for one state, date__gte and date__lte for any span, and q=Christmas to search names and local names free-text. country and date are the indexed axes, so narrow on one of them first.
Row counts: 55,643 holidays, 1,529 names, 204 countries. /v1/calendar/countries lists every supported code with its region, its neighbours and how many rows it has, so coverage is something you read rather than guess — a country with holiday_count of 0 is one the source returned nothing for. Upstream corrects and adds holidays continuously, so this dataset is refreshed monthly and responses are cached for an hour. Calls need a Bodek API key; create one at https://api.bodek.us/keys.
Endpoints
Try it
This panel sends no key, so it answers 401 — it is here to show you the
shape of a request and the error envelope. Use curl with your own key to see data.
Holidays
One row per country, date and holiday, 2015-2035, with the nationwide flag and subdivision codes.
| Field | Type | Description | Filter | Search | Sort |
|---|---|---|---|---|---|
id |
integer | Stable identifier for this country-date-holiday row, e.g. 41203. | |||
country |
string | ISO 3166-1 alpha-2 country code, e.g. "US". Indexed — narrow on this. | |||
country_name |
string | The country's common English name, e.g. "United States". | |||
date |
date | The date observed, e.g. "2026-12-25". Indexed; use date__gte and date__lte for a span. | |||
year |
integer | Calendar year of the date, e.g. 2026. A shorthand for a whole-year span. | |||
name_id |
integer | The /names row this holiday's name comes from, e.g. 812. | |||
name |
string | English holiday name, e.g. "Christmas Day". | |||
local_name |
string | The name in the country's own language, e.g. "1. Weihnachtstag". Empty where the source has none. | |||
global |
integer | 1 when the holiday is observed nationwide, 0 when only in the listed subdivisions. | |||
fixed |
integer | 1 when the source marks the holiday as falling on the same calendar day every year. | |||
subdivisions |
string | Comma-separated ISO 3166-2 codes the holiday applies to, e.g. "DE-BY,DE-SL". Empty when global = 1. Use subdivisions__contains=DE-BY for one. | |||
launch_year |
integer | The year the holiday was introduced, e.g. 1994, or null where the source does not say. | |||
type |
string | Comma-separated types from the source, e.g. "Public,Bank". One of Public, Bank, School, Authorities, Optional, Observance. Use type__contains=Public. |
curl "https://api.bodek.us/v1/calendar/holidays?limit=5&country=example&q=search+text" \ -H "Authorization: Bearer $BODEK_API_KEY"
Holiday names
The deduplicated English and local-language holiday names that /holidays references.
| Field | Type | Description | Filter | Search | Sort |
|---|---|---|---|---|---|
id |
integer | The id /holidays references as name_id, e.g. 812. | |||
name |
string | English holiday name, e.g. "Christmas Day". | |||
local_name |
string | The same holiday in a local language, e.g. "1. Weihnachtstag". Empty where the source has none. | |||
holiday_count |
integer | How many /holidays rows in the 2015-2035 window use this name, e.g. 21. |
curl "https://api.bodek.us/v1/calendar/names?limit=5&name=example&q=search+text" \ -H "Authorization: Bearer $BODEK_API_KEY"
Countries
Every country code this API covers, with its region, neighbours and row count.
| Field | Type | Description | Filter | Search | Sort |
|---|---|---|---|---|---|
country |
string | ISO 3166-1 alpha-2 code, e.g. "DE" — the value /holidays takes as country. | |||
name |
string | Common English name, e.g. "Germany". | |||
official_name |
string | Official name, e.g. "Federal Republic of Germany". | |||
native_name |
string | Name in the country's own language, e.g. "Deutschland". | |||
region |
string | Continental region as the source groups it, e.g. "Europe". | |||
borders |
string | Comma-separated codes of bordering countries, e.g. "AT,BE,CH,CZ,DK,FR,LU,NL,PL". Empty for an island or where the source lists none. | |||
holiday_count |
integer | How many /holidays rows this country has in the 2015-2035 window, e.g. 357. 0 means the source returned nothing for it. | |||
first_year |
integer | Earliest year with at least one row, e.g. 2015. 0 when there are none. | |||
last_year |
integer | Latest year with at least one row, e.g. 2035. 0 when there are none. |
curl "https://api.bodek.us/v1/calendar/countries?limit=5&country=example&q=search+text" \ -H "Authorization: Bearer $BODEK_API_KEY"
Common questions
How do I get access to the Public Holidays API?
Bodek API is included with the Bodek plans that cover it. Sign in, create a key on the keys page, and send it as an Authorization: Bearer header. A key is scoped to the APIs you pick, carries its own rate limits and expiry, and can be revoked at any time.
What format does it return?
JSON over HTTPS, one GET per collection, with the same filtering, search, sort and paging conventions on every endpoint. An OpenAPI 3.1 description is published at https://api.bodek.us/v1/calendar/openapi.json.
How often does the data change?
It is maintained as production reference data, and responses carry an ETag so an unchanged request comes back as an empty 304. This API was last updated on 26 October 2026.
Limits
- Up to 200 records per request (
limit), 50 by default. - Rate limits are set per key, up to 600 requests a minute.
- Responses are cached for up to 3600 seconds and carry an
ETag.