# Best Public Holidays API for Indie Developers (2026)

> Nager.Date vs Calendarific vs HolidayAPI vs HolidayDB vs python-holidays: free tiers, prices, observed days, business-day endpoints and licences for solo devs.

- Canonical: https://zeroraised.com/blog/best-public-holidays-api-for-indie-developers
- Published: 2026-11-24T15:15:00Z
- Author: ZeroRaised Team (https://zeroraised.com/blog/authors/zeroraised)
- Publisher: ZeroRaised (https://zeroraised.com/)
- Section: Building
- Tags: developer-tools, comparison, api, saas

**Verdict:** If you are building booking, payroll, delivery-date or SLA features, start with a library, not an API: [python-holidays](https://pypi.org/project/holidays/) or [date-holidays](https://www.npmjs.com/package/date-holidays) compute holidays offline, handle substitute days and cost nothing. Pay for a hosted API when you want someone else to own data accuracy and business-day maths: [HolidayAPI](https://holidayapi.com/pricing) at $249/year is the best value for high volume, and [HolidayDB](https://holidaydb.com/) from $29/mo has the most ready-made business-day endpoints.

Every price, limit and licence below comes from the vendor's or project's own page, checked on 24 Nov 2026. The analysis in between is ours and is marked as such.

## TL;DR

- **Free and commercial-friendly:** python-holidays (version 0.109, MIT, 250 country codes) and date-holidays (version 3.39.2, ISC code plus CC BY-SA data, 207 countries).
- **Nager.Date is free, but its terms require "active sponsorship" for commercial use** ([Nager.Holidays terms](https://nagerholidays.com/legal/termsofservice)).
- **Cheapest paid entry:** Calendarific Starter, $12/mo for 10,000 calls a month ([Calendarific pricing](https://calendarific.com/pricing)).
- **Best for volume:** HolidayAPI, $249/year or $399/year with subdivisions, 1,000,000 requests a month ([HolidayAPI pricing](https://holidayapi.com/pricing)).
- **Best business-day endpoints:** HolidayDB ([HolidayDB docs](https://holidaydb.com/docs)).
- **Whatever you pick, cache it.**

**Disclosure:** ZeroRaised publishes this comparison and is a launch site for bootstrapped products. ZeroRaised has no commercial relationship with any vendor or project named here and earns nothing if you sign up. Facts come from the linked sources as checked on 24 Nov 2026.

## Who this is for

You are a solo developer whose booking, payroll, HR, delivery-date or SLA feature needs to know when people are not working. If you need users' own calendars (meetings, free/busy), that is a different problem, covered in our [calendar API guide](https://zeroraised.com/blog/best-calendar-api-for-indie-developers). This post is about the public holiday data itself and the business-day maths built on it.

## Public holiday APIs compared

| Option | Free option | Paid entry | Coverage (vendor-stated) | Observed/substitute | Business-day endpoint | Licence or terms |
|---|---|---|---|---|---|---|
| python-holidays | Free, offline | n/a | 250 country codes, subdivisions | Yes, on by default ("doesn't work for all countries") | No (library: you write it) | MIT |
| date-holidays (npm) | Free, offline | n/a | 207 countries, states, regions | Yes, substitute flag | No (library: you write it) | ISC code, CC BY-SA data |
| Nager.Date | Free REST API, no key | Sponsorship for commercial use | "over 200 countries" | Differs by API version (see below) | No | Private or non-profit free; commercial needs sponsorship |
| Calendarific | 500 calls/month, attribution required | $12/mo or $100/year | 230+ countries, 3,300+ states and regions | Not documented | No | Attribution on free plan |
| HolidayAPI | Free key (offline storage limited to 24 hours) | $249/year | 250 countries; 3,680 states and provinces on $399 plan | `observed` field | Yes: workday, workdays | Commercial use on paid plans |
| HolidayDB | 1,000 requests/month, national only | $29/mo | 231 countries | `substitute` field | Yes: several | Check its terms |
| Abstract API | 1,000 requests, 1 request/second | $99/mo, paid annually | 190+ countries, 3,500 regions | Not stated | No | "Commercial license" listed only on Enterprise |
| API Ninjas | 3,000 calls/month, not for commercial use | $39/mo (Developer) | "over 230 countries and territories" | Not stated | Separate Working Days API | Commercial use needs premium |
| Google Calendar | Holiday calendars in Calendar | n/a | Not stated as an API product | Not stated | No | See below |

Sources: each vendor's page linked in its section below.

## The free route: holiday libraries

### python-holidays

The [holidays](https://pypi.org/project/holidays/) package on PyPI is at version 0.109 (released 17 Nov 2026), MIT-licensed. Its [README](https://github.com/vacanza/holidays) says "We currently support 250 country codes", plus subdivisions such as US states and financial calendars such as `holidays.financial_holidays("NYSE")`.

Observed days are on by default. The constructor's `observed` parameter controls "Whether to include the dates when holidays are observed (e.g. a holiday falling on a Sunday being observed the following Monday)", with the caveat: "This doesn't work for all countries" ([holiday_base.py](https://github.com/vacanza/holidays/blob/dev/holidays/holiday_base.py)).

### date-holidays

[date-holidays](https://www.npmjs.com/package/date-holidays) on npm is at version 3.39.2, with the licence field "(ISC AND CC-BY-SA-4.0)". Its [README](https://github.com/commenthol/date-holidays) lists 207 countries and features including "substitute days", timezone-aware checks, and Islamic, Hebrew and Chinese calendar support. It notes that Islamic dates "might not be correct as they are subject to the sighting of the moon."

The licence matters: the README says the holiday data is under Creative Commons BY-SA (it cites 3.0; npm metadata says 4.0) "as the majority of data obtained relies on wikipedia articles". Our read: using the data inside your app is fine for most products, but if you redistribute the dataset itself, share-alike and attribution apply.

Our read: libraries are the right default (no network calls, no rate limits), but data updates arrive only when you upgrade, so bump the version on a schedule.

## Hosted holiday APIs

### Nager.Date (Nager.Holidays)

The old `date.nager.at` homepage now redirects to [nagerholidays.com](https://nagerholidays.com/), which describes Nager.Date as "open-source, community-driven". Its [API page](https://nagerholidays.com/api) shows `GET /api/v4/Holidays/{CountryCode}/{Year}`, says "No Rate Limits", and claims "over 200 countries". The [GitHub project](https://github.com/nager/Nager.Date) is MIT-licensed; the REST API needs no licence key, but the self-hosted Docker container and NuGet package do.

The catch is in the [terms of service](https://nagerholidays.com/legal/termsofservice) (last updated 2023-09-15): "The Web API can be used for private or non-profit projects. For commercial purposes we require active sponsorship." It also says "It is not allowed to use the holiday information to publish or operate your own holiday portal." Sponsorship runs through [GitHub Sponsors](https://github.com/sponsors/nager).

Our test on 24 Nov 2026: the legacy `date.nager.at/api/v3/PublicHolidays/2026/US` endpoint still responds and returns Independence Day on 3 July 2026 (the Friday it is observed), while the v4 endpoint returns 4 July (the Saturday). Same service, two different answers to "is this a day off?"

### Calendarific

[Calendarific](https://calendarific.com/pricing) has the cheapest paid entry point:

| Plan | Price | Calls/month | Attribution |
|---|---|---|---|
| Free | $0 | 500 | Required |
| Starter | $12/mo or $100/year | 10,000 | Not required |
| Business | $500/year (yearly only) | 50,000 | Not required |
| Enterprise | $4,000/year (yearly only) | 50,000,000 | Not required |

The free plan's historical and upcoming data is marked "Limited", and its dataset updates quarterly on Free and Starter. Coverage is stated as "230+ countries, 3,300+ states and regions". The [API docs](https://calendarific.com/api-documentation) document three endpoints (holidays, countries, languages), a `type` filter (`national`, `local`, `religious`, `observance`) and a `location` filter such as `us-ny`. We found no business-day endpoint and no documented observed-date field.

### HolidayAPI

[HolidayAPI](https://holidayapi.com/pricing) sells two yearly plans, both with "1,000,000 requests per month" and commercial use:

- **Countries, $249/year:** 250 countries, years 1 to 2050+, no state or province data.
- **States & Provinces, $399/year:** adds 3,680 states and provinces.

There is a free key, and the page says offline storage on it is "limited to 24 hours"; with an active subscription you can "store whatever you want". The [docs](https://holidayapi.com/docs) list an `observed` field ("Date that the holiday is observed on") plus two business-day endpoints: `/v1/workday` (the date N working days after a start date) and `/v1/workdays` (working days between two dates).

Our read: for volume and workday maths, $249 a year is the best value here, and $399 a year if you also need subdivisions. The 24-hour storage limit makes the free key a testing tier if you cache.

### HolidayDB

[HolidayDB](https://holidaydb.com/) prices monthly:

| Plan | Price | Requests/month | Subdivisions | Languages |
|---|---|---|---|---|
| Free | $0, no card | 1,000 | No | English |
| Basic | $29/mo | 10,000 | No | English |
| Pro | $39/mo | 50,000 | Yes | English |
| Full | $49/mo | 200,000 | Yes | 73 |

It claims 231 countries, and offers "10% off when you include attribution". Its subdivision count is given two different ways on the same page, so check your countries before buying. The [docs](https://holidaydb.com/docs) are the strongest on business logic: `/api/business-days`, `/api/working-hours`, `/api/salary-proration`, `/api/leave-pto`, `/api/sla-deadline`, `/api/delivery-date` and `/api/bridge-days`, and holiday rows carry a `substitute` field. Note that HolidayDB publishes its own holiday API comparison on its blog; treat that as vendor content.

### Abstract API

[Abstract's Holidays API](https://www.abstractapi.com/api/holidays-api) has a Free plan with 1,000 requests at 1 request per second, and Standard at "$99/ month", "Paid annually", with "60,000 requests / year" at 3 requests per second. It claims "190+ countries and 3,500 regions", lists a "Commercial license" only under Enterprise (custom pricing) and does not mention observed dates or business-day maths. Our read: priced high for a holiday list.

### API Ninjas

[API Ninjas pricing](https://api-ninjas.com/pricing) covers all its APIs: Free is 3,000 calls a month with commercial use "No" ("Evaluation and demo purposes only"); Developer is $39/mo for 100,000 calls. Its [Holidays API](https://api-ninjas.com/api/holidays) has 26 holiday types, but on free plans "other years require a premium plan", and future-year dates on `/v1/isholiday` are premium only. A separate Working Days API handles business days.

### Google Calendar holiday calendars

We could not find a Google developer page documenting the public holiday calendars as an API product. Google's [Calendar help](https://support.google.com/calendar/answer/13748345) says users can show "public holidays and other observances, public holidays only, or selected holidays", that the data comes "using information from a third-party company that specializes in this data", and that "You can't edit the details of individual holidays". Our read: fine for showing holidays to a user, risky as the source of truth for payroll or SLAs.

## Why holidays are harder than they look

Our analysis of where holiday logic breaks:

1. **Observed and substitute days.** A holiday on a weekend often moves. GOV.UK's [bank holidays feed](https://www.gov.uk/bank-holidays.json) lists Boxing Day 2026 on 28 December with the note "Substitute day". Your SLA clock cares about the observed date, not the calendar date.
2. **Regional holidays.** The same feed lists 2 January and St Andrew's Day (30 November) for Scotland only. A country-level list gets a Glasgow customer wrong. Pick an API plan with subdivisions if any of your users are in federal countries or the UK.
3. **Lunar and sighted calendars.** Islamic holidays can depend on moon sighting, which is why date-holidays warns its Islamic dates may be off. Expect last-minute corrections.
4. **Holidays declared at short notice.** GOV.UK lists a "World Cup bank holiday" in Scotland on 15 June 2026. One-off holidays like this will not be in a package you installed last year.
5. **Historical years.** Payroll corrections and audits need past years. Check that your plan covers them (Calendarific's free plan marks history as "Limited"; HolidayAPI covers years 1 to 2050+).
6. **"Holiday" is not "closed".** Observances and religious holidays are mixed into many feeds. Filter by type (Calendarific's `type`, API Ninjas' `PUBLIC_HOLIDAY`, Nager's `holidayTypes`) before you block a date.

## Cache it: fetch once a year, refresh on a schedule

A country's holiday list for a year changes rarely. Our recommended pattern:

1. Key the cache by `country + subdivision + year`.
2. Fetch the current and next year on first use (or at deploy), and store them in your database or a JSON file.
3. Refresh on a schedule, weekly or monthly, to pick up short-notice holidays.
4. Serve every business-day calculation from the cache, never from a live API call.

Worked example (illustrative, our arithmetic): a booking SaaS with customers in 10 countries caches 2 years each, which is 20 calls per refresh. Refreshing weekly is about 87 calls a month (20 × 52 / 12), which fits inside Calendarific's 500-call free tier or HolidayDB's 1,000-request free tier, regardless of whether you have 100 users or 100,000. Without caching, a call on every page view would burn through those tiers in hours. If you detect a visitor's country to pick the right list, our [IP geolocation API guide](https://zeroraised.com/blog/best-ip-geolocation-api-for-indie-developers) covers that step; let users override it.

## Code: next business day from a cached holiday list

A minimal TypeScript example. It loads holiday dates once per country and year, then walks forward past weekends and holidays. The fetcher uses Nager.Date's v4 endpoint for brevity; swap in your library or paid API for commercial use, and use observed dates.

```ts
type Holiday = { date: string; holidayTypes?: string[] };
const cache = new Map<string, Set<string>>(); // key: "GB-2026"

async function holidaysFor(country: string, year: number): Promise<Set<string>> {
  const key = `${country}-${year}`;
  const hit = cache.get(key);
  if (hit) return hit;
  const res = await fetch(`https://nagerholidays.com/api/v4/Holidays/${country}/${year}`);
  if (!res.ok) throw new Error(`Holiday fetch failed: ${res.status}`);
  const list: Holiday[] = await res.json();
  // Keep only public holidays, not observances
  const dates = new Set(
    list.filter(h => h.holidayTypes?.includes("Public")).map(h => h.date)
  );
  cache.set(key, dates); // persist to DB or disk in production
  return dates;
}

function isoDate(d: Date): string {
  return d.toISOString().slice(0, 10); // works on UTC dates
}

export async function nextBusinessDay(from: Date, country: string): Promise<Date> {
  const d = new Date(Date.UTC(from.getUTCFullYear(), from.getUTCMonth(), from.getUTCDate()));
  for (let i = 0; i < 30; i++) {
    d.setUTCDate(d.getUTCDate() + 1);
    const dow = d.getUTCDay(); // 0 Sunday, 6 Saturday
    if (dow === 0 || dow === 6) continue;
    const holidays = await holidaysFor(country, d.getUTCFullYear());
    if (!holidays.has(isoDate(d))) return d;
  }
  throw new Error("No business day found in 30 days");
}

// nextBusinessDay(new Date("2026-12-24"), "GB") should skip Christmas, the
// weekend and the Boxing Day substitute (28 Dec) and return 29 Dec 2026.
// With Nager v4 data it returns 28 Dec: see the note below.
```

When we ran this on 24 Nov 2026, Nager.Date's v4 list for GB 2026 had Boxing Day ("St. Stephen's Day") on Saturday 26 December and no entry for Monday 28 December, while [GOV.UK](https://www.gov.uk/bank-holidays.json) lists 28 December as the substitute day. So the code above returns 28 December, which is a bank holiday. This is exactly the bug that observed-day handling causes, and the reason to test your data source against an official list for your main markets before you trust it.

Two notes from us. First, this filter ignores subdivisions: the UK list above includes Scotland-only days with `nationalHoliday: false`, so filter by `subdivisionCodes` for the user's region. Second, weekends are not Saturday and Sunday everywhere; make the weekend days a per-country setting.

## Decision table

Our editorial picks, based on the published prices and features above.

| Your situation | Our pick |
|---|---|
| Commercial SaaS, Python or Node backend, $0 budget | python-holidays or date-holidays, cached |
| Side project or non-profit, want a REST call | Nager.Date (free for private or non-profit use) |
| Commercial use of Nager.Date's API | Sponsor it, per its terms, or use a library |
| Cheapest hosted API for a commercial app | Calendarific Starter ($12/mo, $100/year) |
| US states, Canadian provinces or other subdivisions at volume | HolidayAPI States & Provinces ($399/year) |
| You want SLA deadlines, delivery dates and prorated salary as endpoints | HolidayDB (from $29/mo; Pro $39/mo for subdivisions) |
| Need observed dates returned explicitly | HolidayAPI (`observed`) or HolidayDB (`substitute`) |
| UK only | GOV.UK bank holidays JSON, cached |
| Showing holidays to users in a calendar UI only | Google Calendar holiday calendars |

## Ship it, then tell people

When your product is ready, work through our guide on [how to launch a bootstrapped app](https://zeroraised.com/blog/how-to-launch-a-bootstrapped-app), then [launch it on ZeroRaised](https://zeroraised.com/submit) for free. For more API comparisons written for solo builders, [join the ZeroRaised newsletter](https://zeroraised.com/newsletter).

## Frequently asked questions

### What is the best free public holidays API?

For a commercial product, the best free option is a library rather than an API: python-holidays (MIT) or date-holidays (ISC code, CC BY-SA data) run offline with no limits. Among hosted APIs, Nager.Date is free with no key, but its terms allow free use only for private or non-profit projects and require active sponsorship for commercial use. Calendarific's free plan gives 500 calls a month with attribution.

### Is Nager.Date free for commercial use?

Not without sponsorship. Its terms of service, last updated 15 Sep 2023, say the Web API can be used for private or non-profit projects and that for commercial purposes it requires active sponsorship. The terms also forbid using the data to publish or operate your own holiday portal. The code on GitHub is MIT-licensed, but the self-hosted Docker container needs a licence key.

### Which holiday API calculates business days?

HolidayAPI has workday (add N working days to a date) and workdays (count working days between two dates) endpoints. HolidayDB has business-days, sla-deadline and delivery-date endpoints, among others. Calendarific, Abstract API and Nager.Date's v4 API return holiday lists only, so you do the business-day maths yourself.

### How do holiday APIs handle observed or substitute days?

It varies. HolidayAPI returns an observed field next to the date. HolidayDB marks substitute rows with a substitute field. python-holidays includes observed dates by default but notes this does not work for all countries, and date-holidays flags substitute days. In our test, Nager.Date's v3 endpoint returned 3 July 2026 for US Independence Day while its v4 endpoint returned 4 July, so check which date your API gives you.

### How often should I refresh cached holiday data?

Our approach: cache one list per country per year, refresh it once a week or once a month, and fetch next year's list well before December. Holidays declared at short notice, such as Scotland's World Cup bank holiday on 15 June 2026 listed by GOV.UK, are the reason not to cache forever.

## Sources

- [python-holidays on PyPI](https://pypi.org/project/holidays/) and [GitHub README](https://github.com/vacanza/holidays), last checked 24 Nov 2026
- [python-holidays holiday_base.py](https://github.com/vacanza/holidays/blob/dev/holidays/holiday_base.py), last checked 24 Nov 2026
- [date-holidays on npm](https://www.npmjs.com/package/date-holidays) and [GitHub README](https://github.com/commenthol/date-holidays), last checked 24 Nov 2026
- [Nager.Holidays homepage](https://nagerholidays.com/), [API page](https://nagerholidays.com/api) and [terms of service](https://nagerholidays.com/legal/termsofservice), last checked 24 Nov 2026
- [Nager.Date on GitHub](https://github.com/nager/Nager.Date), last checked 24 Nov 2026
- [Calendarific pricing](https://calendarific.com/pricing) and [API documentation](https://calendarific.com/api-documentation), last checked 24 Nov 2026
- [HolidayAPI pricing](https://holidayapi.com/pricing) and [docs](https://holidayapi.com/docs), last checked 24 Nov 2026
- [HolidayDB homepage and pricing](https://holidaydb.com/) and [docs](https://holidaydb.com/docs), last checked 24 Nov 2026
- [Abstract API Holidays API](https://www.abstractapi.com/api/holidays-api), last checked 24 Nov 2026
- [API Ninjas pricing](https://api-ninjas.com/pricing) and [Holidays API](https://api-ninjas.com/api/holidays), last checked 24 Nov 2026
- [Google Calendar Help: add or remove holidays](https://support.google.com/calendar/answer/13748345), last checked 24 Nov 2026
- [GOV.UK bank holidays JSON](https://www.gov.uk/bank-holidays.json), last checked 24 Nov 2026

## Frequently asked questions

### What is the best free public holidays API?

For a commercial product, the best free option is a library rather than an API: python-holidays (MIT) or date-holidays (ISC code, CC BY-SA data) run offline with no limits. Among hosted APIs, Nager.Date is free with no key, but its terms allow free use only for private or non-profit projects and require active sponsorship for commercial use. Calendarific's free plan gives 500 calls a month with attribution.

### Is Nager.Date free for commercial use?

Not without sponsorship. Its terms of service, last updated 15 Sep 2023, say the Web API can be used for private or non-profit projects and that for commercial purposes it requires active sponsorship. The terms also forbid using the data to publish or operate your own holiday portal. The code on GitHub is MIT-licensed, but the self-hosted Docker container needs a licence key.

### Which holiday API calculates business days?

HolidayAPI has workday (add N working days to a date) and workdays (count working days between two dates) endpoints. HolidayDB has business-days, sla-deadline and delivery-date endpoints, among others. Calendarific, Abstract API and Nager.Date's v4 API return holiday lists only, so you do the business-day maths yourself.

### How do holiday APIs handle observed or substitute days?

It varies. HolidayAPI returns an observed field next to the date. HolidayDB marks substitute rows with a substitute field. python-holidays includes observed dates by default but notes this does not work for all countries, and date-holidays flags substitute days. In our test, Nager.Date's v3 endpoint returned 3 July 2026 for US Independence Day while its v4 endpoint returned 4 July, so check which date your API gives you.

### How often should I refresh cached holiday data?

Our approach: cache one list per country per year, refresh it once a week or once a month, and fetch next year's list well before December. Holidays declared at short notice, such as Scotland's World Cup bank holiday on 15 June 2026 listed by GOV.UK, are the reason not to cache forever.


