Bygga
Type the product name from the box. Bygga shows every assembly step in 3D, with the parts, screws and tools for each one, and reads it out loud.
翻譯準備中
Easily access public holidays for 200+ countries via .NET, REST API, Docker, or NuGet for online and offline use.
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗Discover the convenience of easily accessing holidays from over 200 countries with Nager.Date. Our popular project utilizes the power of .NET and offers a user-friendly public REST API for seamless integration into your application.
You can find an overview of the supported countries here.
| Variant | Hosting | Internet required | License key | Examples |
|---|---|---|---|---|
| REST API | nagerholidays.com | Yes | No | REST API examples |
| Docker container | Self-hosted | No | Yes | REST API examples |
| NuGet package Nager.Date | In your .NET app | No | Yes | Offline examples |
The Docker container provides the same REST API as nagerholidays.com, but runs on your own infrastructure. Existing integrations only need a different base URL.
curl https://nagerholidays.com/api/v4/Holidays/US/2026
The API documentation provides a complete overview of all available endpoints. You can generate a client in your preferred programming language with the OpenAPI Generator. For .NET there is the official client Nager.Holiday.
Examples for .NET, Python, JavaScript, PHP and Java: doc/examples/rest-api.md
The Docker container is available via Docker Hub. It provides the same REST API as nagerholidays.com, operated on your own infrastructure without a dependency on our servers.
docker run -p 8080:8080 -e LICENSE_KEY=YOUR_LICENSE_KEY nager/nager-date
All REST API examples work unchanged, only the base URL changes:
curl http://localhost/api/v4/Holidays/US/2026
dotnet add package Nager.Date
HolidaySystem.LicenseKey = "TheLicenseKey";
var holidays = HolidaySystem.GetHolidays(2026, CountryCode.DE);
More examples: doc/examples/offline-nuget.md
What variants of holidays are supported by Nager.Date
| Type | Description |
|---|---|
| Public | Public holiday |
| Bank | Bank holiday, banks and offices are closed |
| School | School holiday, schools are closed |
| Authorities | Authorities are closed |
| Optional | Majority of people take a day off |
| Observance | Optional festivity, no paid day off |
To better handle complex calendar systems and official announcements, the project distinguishes certain holidays with special characteristics:
HijriCalendar. Because these dates rely on local moon sightings, they are subject to change and may shift 1–2 days forward or backward at short notice.Here you can see how long the product will be supported and when the End of Life (EOL) is planned.
| Product | Release Date | Supported | End of life |
|---|---|---|---|
| Pro - WebApi v1 | under development | No | - |
| Community - WebApi v4 | 2026-06-30 | Yes | - |
| Community - WebApi v3 | 2021-05-18 | Yes | 2027-01-31 |
| Community - WebApi v2 | 2019-02-10 | No | 2024-12-01 |
| Community - WebApi v1 | 2017-02-06 | No | 2024-06-24 |
| Nuget Package v2 | 2024-03-07 | Yes | - |
| Nuget Package v1 | 2014-08-15 | No | 2024-03-07 |
Holidays are provided at country level and, where they differ regionally, for the first-level subdivisions of a country according to ISO 3166-2 (e.g. states, provinces, cantons). More detailed levels such as districts or cities are not supported.
Since every country names its subdivisions differently, they are always returned in the field subdivisionCodes (REST API v4) or SubdivisionCodes (NuGet package). If a holiday applies to the entire country, nationalHoliday is true and subdivisionCodes is empty.
[!NOTE] REST API v3 still uses the older field name
countiesfor the same data.
| Country | Subdivision type | Example code |
|---|---|---|
| United States | States | US-CA |
| Germany | States (Länder) | DE-BY |
| Austria | States (Bundesländer) | AT-9 |
| Switzerland | Cantons | CH-ZH |
| Brazil | States | BR-SP |
| Australia | States and territories | AU-NSW |
| Canada | Provinces and territories | CA-ON |
| Precision | Supported |
|---|---|
| Holidays for a country | Yes |
| Holidays for first-level subdivisions (ISO 3166-2) | Yes |
| Holidays for lower-level regions (districts, counties) | No |
| Holidays for cities | No |
Some Islamic holidays (e.g., Eid al-Fitr, Eid al-Adha) are based on the Islamic lunar calendar and are often determined by local moon sightings. As this depends on weather conditions and geographic location, these dates cannot be reliably calculated in advance. Therefore, such holidays are not included in this project.
There are several business fields in which it is important to know the holidays in different countries.