Finturest.Holiday
1.0.0
dotnet add package Finturest.Holiday --version 1.0.0
NuGet\Install-Package Finturest.Holiday -Version 1.0.0
<PackageReference Include="Finturest.Holiday" Version="1.0.0" />
<PackageVersion Include="Finturest.Holiday" Version="1.0.0" />
<PackageReference Include="Finturest.Holiday" />
paket add Finturest.Holiday --version 1.0.0
#r "nuget: Finturest.Holiday, 1.0.0"
#addin nuget:?package=Finturest.Holiday&version=1.0.0
#tool nuget:?package=Finturest.Holiday&version=1.0.0
Finturest Holiday API C# SDK
Official C# SDK for the Finturest Holiday API - supports .NET Standard 2.0+ and all modern .NET versions.
Overview
This SDK provides a convenient and efficient way to access the Finturest Holiday API in your .NET applications. It supports .NET Standard 2.0 and later, ensuring compatibility with .NET Core and the latest .NET releases.
Features
Worldwide Holiday Coverage: Access public, national, bank, and regional holidays across 250+ countries and territories.
Multi-Year Range: Query holidays for any year or range of years — past, current, or future.
Region & Subdivision Support: Retrieve holidays based on country, region, state, or province with ISO-compliant codes.
Date-Based Lookups: Check if a specific date is a holiday, weekend, or working day in a given location.
Flexible Filters: Filter holidays by type (public, religious, observance), and country.
Official Sources: Data is aggregated from government declarations and official sources for accuracy and reliability.
Installation
Using the .NET Core command-line interface (CLI) tools:
dotnet add package Finturest.Holiday
Using the NuGet Command Line Interface (CLI):
nuget install Finturest.Holiday
Using the Package Manager Console:
Install-Package Finturest.Holiday
From within Visual Studio:
- Open the Solution Explorer.
- Right-click on a project within your solution.
- Click on Manage NuGet Packages...
- Click on the Browse tab and search for "Finturest.Holiday".
- Click on the Finturest.Holiday package, select the appropriate version in the right-tab and click Install.
Usage
Registering
To use the Finturest.Holiday
client, register it in your application's dependency injection container using AddFinturestHoliday
. This configures the services required to communicate with the Finturest Holiday API.
var services = new ServiceCollection();
services.AddFinturestHoliday(options =>
{
options.ApiKey = "YOUR_API_KEY";
});
Note
IHolidayServiceClient
is registered in the DI container and should be resolved via dependency injection.
In ASP.NET Core applications, it's recommended to inject it through constructor injection.
Note
The abstractions for the Finturest Holiday API client are provided in a separate package namedFinturest.Holiday.Abstractions
.
You can reference this package in your business layer to avoid a tight dependency on the implementation.
Only the root application or composition root should reference the fullFinturest.Holiday
package that contains the implementation.
Get upcoming holidays
To get upcoming holidays using the Finturest Holiday API, call the GetUpcomingHolidaysAsync
method on the IHolidayServiceClient
.
var serviceProvider = services.BuildServiceProvider();
var holidayServiceClient = serviceProvider.GetRequiredService<IHolidayServiceClient>();
var result = await holidayServiceClient.GetUpcomingHolidaysAsync(countryCode: "PL", days: 365, type: HolidayType.Public);
Console.WriteLine($"Holidays: {result.Count}.");
Note
In production applications, avoid usingBuildServiceProvider()
manually.
Instead, use constructor injection to getIHolidayServiceClient
from the framework’s dependency injection system.
Subscription & Pricing
To get access to the Finturest Holiday API or subscribe to a plan, please visit the subscription page. An active subscription is required to access the API in production.
API Key Generation
An API key is required to use the SDK and can be generated on your Finturest dashboard:
Documentation
For full API reference and usage guides, please visit the official Finturest Holiday API documentation:
Contact
For support, questions, or inquiries, please contact us at: support@finturest.com
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. 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 is compatible. 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 is compatible. 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 is compatible. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.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. |
-
.NETCoreApp 3.1
- Finturest.Holiday.Abstractions (>= 1.0.0)
- Microsoft.Extensions.Http (>= 3.1.32)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 3.1.32)
- System.Net.Http.Json (>= 3.2.1)
-
.NETStandard 2.0
- Finturest.Holiday.Abstractions (>= 1.0.0)
- Microsoft.Extensions.Http (>= 3.1.32)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 3.1.32)
- System.Net.Http.Json (>= 3.2.1)
-
net5.0
- Finturest.Holiday.Abstractions (>= 1.0.0)
- Microsoft.Extensions.Http (>= 5.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 5.0.0)
- System.Net.Http.Json (>= 5.0.0)
-
net6.0
- Finturest.Holiday.Abstractions (>= 1.0.0)
- Microsoft.Extensions.Http (>= 6.0.1)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 6.0.1)
- System.Net.Http.Json (>= 6.0.2)
-
net7.0
- Finturest.Holiday.Abstractions (>= 1.0.0)
- Microsoft.Extensions.Http (>= 7.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 7.0.0)
- System.Net.Http.Json (>= 7.0.1)
-
net8.0
- Finturest.Holiday.Abstractions (>= 1.0.0)
- Microsoft.Extensions.Http (>= 8.0.1)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
- System.Net.Http.Json (>= 8.0.1)
-
net9.0
- Finturest.Holiday.Abstractions (>= 1.0.0)
- Microsoft.Extensions.Http (>= 9.0.5)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 9.0.5)
- System.Net.Http.Json (>= 9.0.5)
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 |
---|---|---|
1.0.0 | 138 | 5/18/2025 |