GuiStracini.HolidayAPI 3.3.1015

dotnet add package GuiStracini.HolidayAPI --version 3.3.1015
                    
NuGet\Install-Package GuiStracini.HolidayAPI -Version 3.3.1015
                    
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.1015" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GuiStracini.HolidayAPI" Version="3.3.1015" />
                    
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.1015
                    
#r "nuget: GuiStracini.HolidayAPI, 3.3.1015"
                    
#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.1015
                    
#: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.1015
                    
Install as a Cake Addin
#tool nuget:?package=GuiStracini.HolidayAPI&version=3.3.1015
                    
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 was computed.  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.1015 102 1/19/2026
3.3.1012 102 1/19/2026
3.3.1007 111 1/5/2026
3.3.1004 117 12/29/2025
3.3.1001 261 12/15/2025
3.3.998 229 12/15/2025
3.3.993 232 12/15/2025
3.3.986 373 12/8/2025
3.3.983 527 12/1/2025
3.3.978 513 12/1/2025
3.3.975 516 12/1/2025
3.3.972 521 12/1/2025
3.3.969 226 11/24/2025
3.3.966 217 11/24/2025
3.3.955 425 11/17/2025
3.3.952 369 11/17/2025
3.3.942 227 10/20/2025
3.3.939 218 10/20/2025
3.3.936 220 10/20/2025
3.3.933 212 10/20/2025
3.3.922 235 10/6/2025
3.3.919 227 9/29/2025
3.3.916 356 9/15/2025
3.3.912 317 9/15/2025
3.3.905 276 9/10/2025
3.3.902 236 9/8/2025
3.3.897 244 9/4/2025
3.3.894 240 9/4/2025
3.3.888 247 9/3/2025
3.3.882 268 8/29/2025
3.3.875 272 8/29/2025
3.3.862 241 8/18/2025
3.3.855 234 8/11/2025
3.3.850 229 8/4/2025
3.3.847 232 7/28/2025
3.3.844 518 7/25/2025
3.3.839 570 7/23/2025
3.3.834 621 7/23/2025
3.3.828 245 7/15/2025
3.3.823 244 7/14/2025
3.3.818 305 6/16/2025
3.3.815 509 6/12/2025
3.3.812 261 5/26/2025
3.3.809 270 5/22/2025
3.3.808 267 5/19/2025
3.3.805 260 5/19/2025
3.3.800 273 5/9/2025
3.3.796 338 4/14/2025
3.3.795 309 4/14/2025
3.3.792 306 4/14/2025
3.3.787 311 4/7/2025
3.3.784 469 3/24/2025
3.3.781 285 3/17/2025
3.3.778 287 3/17/2025
3.3.773 292 2/17/2025
3.3.770 230 2/17/2025
3.3.765 221 2/17/2025
3.3.758 258 2/10/2025
3.3.755 393 1/21/2025
3.3.752 228 1/20/2025
3.3.749 233 1/20/2025
3.3.742 227 1/20/2025
3.3.730 223 1/17/2025
3.3.727 244 1/14/2025
3.3.724 229 1/14/2025
3.3.716 233 1/13/2025
3.3.709 232 1/6/2025
3.3.706 238 1/6/2025
3.3.701 235 1/6/2025
3.3.694 224 12/30/2024
3.3.691 244 12/23/2024
3.3.688 295 12/9/2024
3.3.685 438 11/25/2024
3.3.682 224 11/25/2024
3.3.677 265 11/18/2024
3.3.674 217 11/18/2024
3.3.669 236 11/18/2024
3.3.662 231 11/18/2024
3.3.653 408 10/28/2024
3.3.650 289 10/14/2024
3.3.647 241 10/14/2024
3.3.644 240 10/3/2024
3.3.641 232 10/3/2024
3.3.636 276 9/23/2024
3.3.633 276 9/16/2024
3.3.630 290 9/9/2024
3.3.627 276 8/27/2024
3.3.619 242 8/27/2024
3.3.614 254 8/27/2024
3.3.609 272 8/27/2024
3.3.602 262 8/26/2024
3.3.592 386 7/15/2024
3.3.589 235 7/15/2024
3.3.584 244 7/11/2024
3.3.574 2,169 5/28/2024
3.3.571 237 5/28/2024
3.3.566 237 5/28/2024
3.3.559 221 5/19/2024
3.3.553 244 4/29/2024
3.3.550 246 4/29/2024
3.3.545 246 4/29/2024
3.3.538 275 4/22/2024
3.3.535 256 4/22/2024
3.3.530 280 4/15/2024
3.3.527 256 4/15/2024
3.3.522 281 4/8/2024
3.3.519 283 3/18/2024
3.3.516 255 3/18/2024
3.3.511 268 2/26/2024
3.3.508 262 2/26/2024
3.3.503 264 2/26/2024
3.3.499 268 2/19/2024
3.3.494 263 2/19/2024
3.3.487 269 2/14/2024
3.3.484 259 2/14/2024
3.3.478 256 2/12/2024
3.3.475 285 1/30/2024
3.3.470 228 1/29/2024
3.3.464 2,327 1/22/2024
3.3.461 249 1/22/2024
3.3.456 291 1/16/2024
3.3.453 254 1/16/2024
3.3.448 302 1/8/2024
3.3.445 285 12/25/2023
3.3.442 275 12/25/2023
3.3.437 286 12/18/2023
3.3.422 294 12/14/2023
3.3.417 310 12/11/2023
3.3.414 273 12/11/2023
3.3.409 295 12/11/2023
3.3.406 298 12/11/2023
3.3.397 240 12/4/2023
3.3.394 229 11/27/2023
3.3.391 253 11/21/2023
3.3.388 230 11/21/2023
3.3.383 224 11/20/2023
3.3.376 228 11/20/2023
3.3.367 214 11/20/2023
3.3.356 223 11/14/2023
3.3.353 221 11/14/2023
3.3.348 200 11/14/2023
3.3.339 205 11/10/2023
3.3.332 235 11/7/2023
3.3.328 222 11/6/2023
3.3.325 271 10/25/2023
3.3.322 237 10/25/2023
3.3.315 242 10/25/2023
3.3.307 223 10/23/2023
3.3.304 261 10/18/2023
3.3.301 223 10/18/2023
3.3.292 222 10/18/2023
3.3.283 271 9/19/2023
3.3.280 233 9/19/2023
3.3.271 245 9/13/2023
3.3.268 284 9/4/2023
3.3.265 909 8/24/2023
3.3.262 324 8/9/2023
3.3.259 322 7/29/2023
3.3.257 289 7/29/2023
3.3.249 274 7/19/2023
3.3.246 308 7/17/2023
3.3.243 315 7/12/2023
3.3.240 310 7/12/2023
3.3.231 626 6/15/2023
3.3.228 299 6/7/2023
3.3.224 421 6/5/2023
3.3.219 473 5/24/2023
3.3.216 305 5/24/2023
3.3.211 327 5/23/2023
3.3.200 356 5/4/2023
3.3.199 612 4/21/2023
3.3.198 402 4/20/2023
3.3.194 367 4/9/2023
3.3.186 368 4/4/2023
3.3.182 385 4/3/2023
3.3.178 362 4/3/2023
3.3.169 406 3/26/2023
3.3.166 426 3/8/2023
3.3.162 413 2/27/2023
3.3.159 497 1/28/2023
3.3.156 478 1/28/2023
3.3.151 498 1/28/2023
3.3.144 474 1/28/2023
3.3.135 463 1/28/2023
3.3.124 514 1/28/2023
3.3.113 494 1/28/2023
3.3.98 501 1/28/2023
3.3.81 507 1/28/2023
3.3.56 477 1/28/2023
3.3.53 502 1/28/2023
3.3.25 460 1/28/2023
3.3.4 471 1/28/2023
3.2.86 9,431 3/10/2022
3.2.59 661 3/2/2022
3.2.52 674 3/2/2022
3.2.43 1,461 1/5/2022
3.2.35 488 1/5/2022
3.2.10 862 6/21/2021
3.1.102 1,130 6/23/2020
3.0.90 791 4/19/2020
3.0.83 768 4/19/2020
3.0.72 749 4/18/2020
3.0.71 781 4/18/2020
3.0.69 729 4/18/2020
3.0.68 749 4/7/2020
3.0.60 803 3/30/2020
3.0.52 754 3/30/2020
3.0.45 820 3/30/2020
2.0.34 883 1/5/2020
2.0.27 837 1/5/2020
2.0.24 823 1/5/2020
1.0.8 842 1/4/2020
1.0.7 833 1/4/2020
1.0.6 1,177 8/18/2018
1.0.5 1,128 8/18/2018
1.0.4 1,131 8/17/2018
1.0.3 1,345 12/18/2017
1.0.2 1,322 12/18/2017
1.0.1 1,314 12/18/2017