GuiStracini.HolidayAPI 3.3.902

There is a newer version of this package available.
See the version list below for details.
dotnet add package GuiStracini.HolidayAPI --version 3.3.902
                    
NuGet\Install-Package GuiStracini.HolidayAPI -Version 3.3.902
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GuiStracini.HolidayAPI" Version="3.3.902" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GuiStracini.HolidayAPI" Version="3.3.902" />
                    
Directory.Packages.props
<PackageReference Include="GuiStracini.HolidayAPI" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add GuiStracini.HolidayAPI --version 3.3.902
                    
#r "nuget: GuiStracini.HolidayAPI, 3.3.902"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package GuiStracini.HolidayAPI@3.3.902
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=GuiStracini.HolidayAPI&version=3.3.902
                    
Install as a Cake Addin
#tool nuget:?package=GuiStracini.HolidayAPI&version=3.3.902
                    
Install as a Cake Tool

GuiStracini.HolidayAPI

A client wrapper of the Holiday API for .NET projects (both Core & Framewok).

GitHub license time tracker

HolidayAPI

CI/CD

Build status Last commit Tests Coverage Code Smells LoC
Build status GitHub last commit AppVeyor tests (branch) Coverage Code Smells Lines of Code

Code Quality

Codacy Badge Codacy Badge

Codecov CodeFactor

Maintainability Test Coverage

Quality Gate Status Maintainability Rating

Technical Debt Duplicated Lines (%)

Reliability Rating Security Rating

Bugs Vulnerabilities

DeepSource

Installation

Github Releases

GitHub last release Github All Releases

Download the latest zip file from the Release page.

Nuget package manager

Package Version Downloads
GuiStracini.HolidayAPI GuiStracini.HolidayAPI NuGet Version GuiStracini.HolidayAPI NuGet Downloads

Features

Implements all features of Holiday API available at HolidayAPI docs

  • Get holidays list (country code and year required)
  • Get filtered holidays (day, month, public, upcoming, previous, subdivisions, switch response language, search parameter)
  • Get countries list
  • Get filtered countries (search parameter)
  • Get languages list
  • Get filtered languages (search parameter)
  • Get workday
  • Get workdays

Usage

Get your API key at Holiday API site.


//Http Client - you should use your DI container for it
var client = HttpClientFactory.Create();
client.BaseAddress = new Uri("https://holidayapi.com/");
client.DefaultRequestHeaders.ExpectContinue = false;
client.DefaultRequestHeaders.Accept.Clear();
client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));

//Use your API key
var myKey = "00000000-0000-0000-0000-000000000000";

//Instantiate a holidayApi client with your API key (GUID/UUID)
var holidayClient = new HolidayApiClient(myKey, client);

//Getting all holidays in Brazil for the year 2019:
var holidays = await holidayClient.GetHolidaysAsync("BR", 2019, CancellationToken.None);
foreach(var holiday in holidays)
    Console.WriteLine("Holiday: {0} | Date: {1}", holiday.Name, holiday.Date);

//Getting all available countries
var countries = await holidayClient.GetCountriesAsync(CancellationToken.None);
foreach(var country in countries)
    Console.WriteLine("Country: {0} | Code: {1} | Flag: {2}", country.Name, country.Code, country.Flag);

//Getting all available languages
var languages = await holidayClient.GetLanguagesAsync(CancellationToken.None);
foreach(var language in languages)
    Console.WriteLine("Code: {0} | Name: {1}", language.Code, language.Name);

//Getting workday
var workday = await holidayClient.GetWorkdayAsync("BR", "2019-06-23", 10, CancellationToken.None);
Console.WriteLine("Workday: {0}", workday.Date);

//Getting workdays between two dates
var workdays = await holidayClient.GetWorkdaysAsync("BR", "2021-01-01", "2021-06-01", CancellationToken.None);
Console.WriteLine("Workdays: {0}". workdays.Days);

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.3.905 113 9/10/2025
3.3.902 127 9/8/2025
3.3.897 147 9/4/2025
3.3.894 137 9/4/2025
3.3.888 139 9/3/2025
3.3.882 164 8/29/2025
3.3.875 167 8/29/2025
3.3.862 133 8/18/2025
3.3.855 134 8/11/2025
3.3.850 138 8/4/2025
3.3.847 109 7/28/2025
3.3.844 384 7/25/2025
3.3.839 472 7/23/2025
3.3.834 514 7/23/2025
3.3.828 150 7/15/2025
3.3.823 148 7/14/2025
3.3.818 207 6/16/2025
3.3.815 348 6/12/2025
3.3.812 175 5/26/2025
3.3.809 174 5/22/2025
3.3.808 172 5/19/2025
3.3.805 167 5/19/2025
3.3.800 175 5/9/2025
3.3.796 246 4/14/2025
3.3.795 225 4/14/2025
3.3.792 230 4/14/2025
3.3.787 214 4/7/2025
3.3.784 382 3/24/2025
3.3.781 192 3/17/2025
3.3.778 193 3/17/2025
3.3.773 192 2/17/2025
3.3.770 139 2/17/2025
3.3.765 138 2/17/2025
3.3.758 167 2/10/2025
3.3.755 299 1/21/2025
3.3.752 144 1/20/2025
3.3.749 156 1/20/2025
3.3.742 143 1/20/2025
3.3.730 142 1/17/2025
3.3.727 154 1/14/2025
3.3.724 142 1/14/2025
3.3.716 151 1/13/2025
3.3.709 147 1/6/2025
3.3.706 152 1/6/2025
3.3.701 143 1/6/2025
3.3.694 147 12/30/2024
3.3.691 149 12/23/2024
3.3.688 206 12/9/2024
3.3.685 314 11/25/2024
3.3.682 145 11/25/2024
3.3.677 183 11/18/2024
3.3.674 136 11/18/2024
3.3.669 136 11/18/2024
3.3.662 135 11/18/2024
3.3.653 320 10/28/2024
3.3.650 202 10/14/2024
3.3.647 151 10/14/2024
3.3.644 155 10/3/2024
3.3.641 146 10/3/2024
3.3.636 185 9/23/2024
3.3.633 181 9/16/2024
3.3.630 201 9/9/2024
3.3.627 195 8/27/2024
3.3.619 156 8/27/2024
3.3.614 171 8/27/2024
3.3.609 174 8/27/2024
3.3.602 180 8/26/2024
3.3.592 301 7/15/2024
3.3.589 148 7/15/2024
3.3.584 156 7/11/2024
3.3.574 1,682 5/28/2024
3.3.571 147 5/28/2024
3.3.566 152 5/28/2024
3.3.559 149 5/19/2024
3.3.553 160 4/29/2024
3.3.550 156 4/29/2024
3.3.545 155 4/29/2024
3.3.538 189 4/22/2024
3.3.535 165 4/22/2024
3.3.530 185 4/15/2024
3.3.527 166 4/15/2024
3.3.522 192 4/8/2024
3.3.519 194 3/18/2024
3.3.516 170 3/18/2024
3.3.511 176 2/26/2024
3.3.508 175 2/26/2024
3.3.503 176 2/26/2024
3.3.499 187 2/19/2024
3.3.494 179 2/19/2024
3.3.487 185 2/14/2024
3.3.484 164 2/14/2024
3.3.478 170 2/12/2024
3.3.475 205 1/30/2024
3.3.470 148 1/29/2024
3.3.464 1,642 1/22/2024
3.3.461 166 1/22/2024
3.3.456 208 1/16/2024
3.3.453 168 1/16/2024
3.3.448 208 1/8/2024
3.3.445 211 12/25/2023
3.3.442 197 12/25/2023
3.3.437 203 12/18/2023
3.3.422 216 12/14/2023
3.3.417 231 12/11/2023
3.3.414 185 12/11/2023
3.3.409 206 12/11/2023
3.3.406 212 12/11/2023
3.3.397 193 12/4/2023
3.3.394 193 11/27/2023
3.3.391 212 11/21/2023
3.3.388 192 11/21/2023
3.3.383 178 11/20/2023
3.3.376 180 11/20/2023
3.3.367 172 11/20/2023
3.3.356 189 11/14/2023
3.3.353 174 11/14/2023
3.3.348 170 11/14/2023
3.3.339 165 11/10/2023
3.3.332 190 11/7/2023
3.3.328 174 11/6/2023
3.3.325 227 10/25/2023
3.3.322 195 10/25/2023
3.3.315 198 10/25/2023
3.3.307 177 10/23/2023
3.3.304 199 10/18/2023
3.3.301 180 10/18/2023
3.3.292 182 10/18/2023
3.3.283 222 9/19/2023
3.3.280 183 9/19/2023
3.3.271 202 9/13/2023
3.3.268 249 9/4/2023
3.3.265 862 8/24/2023
3.3.262 265 8/9/2023
3.3.259 274 7/29/2023
3.3.257 230 7/29/2023
3.3.249 235 7/19/2023
3.3.246 253 7/17/2023
3.3.243 253 7/12/2023
3.3.240 220 7/12/2023
3.3.231 495 6/15/2023
3.3.228 252 6/7/2023
3.3.224 373 6/5/2023
3.3.219 420 5/24/2023
3.3.216 244 5/24/2023
3.3.211 268 5/23/2023
3.3.200 289 5/4/2023
3.3.199 544 4/21/2023
3.3.198 325 4/20/2023
3.3.194 303 4/9/2023
3.3.186 300 4/4/2023
3.3.182 317 4/3/2023
3.3.178 302 4/3/2023
3.3.169 336 3/26/2023
3.3.166 364 3/8/2023
3.3.162 355 2/27/2023
3.3.159 429 1/28/2023
3.3.156 414 1/28/2023
3.3.151 426 1/28/2023
3.3.144 415 1/28/2023
3.3.135 404 1/28/2023
3.3.124 436 1/28/2023
3.3.113 417 1/28/2023
3.3.98 424 1/28/2023
3.3.81 440 1/28/2023
3.3.56 419 1/28/2023
3.3.53 416 1/28/2023
3.3.25 403 1/28/2023
3.3.4 402 1/28/2023
3.2.86 9,366 3/10/2022
3.2.59 568 3/2/2022
3.2.52 591 3/2/2022
3.2.43 1,381 1/5/2022
3.2.35 406 1/5/2022
3.2.10 784 6/21/2021
3.1.102 1,043 6/23/2020
3.0.90 695 4/19/2020
3.0.83 684 4/19/2020
3.0.72 659 4/18/2020
3.0.71 684 4/18/2020
3.0.69 660 4/18/2020
3.0.68 667 4/7/2020
3.0.60 707 3/30/2020
3.0.52 661 3/30/2020
3.0.45 719 3/30/2020
2.0.34 792 1/5/2020
2.0.27 718 1/5/2020
2.0.24 718 1/5/2020
1.0.8 764 1/4/2020
1.0.7 744 1/4/2020
1.0.6 1,084 8/18/2018
1.0.5 1,037 8/18/2018
1.0.4 1,037 8/17/2018
1.0.3 1,205 12/18/2017
1.0.2 1,183 12/18/2017
1.0.1 1,180 12/18/2017