Libera.Date.Api is a high-precision date calculation engine designed to streamline business logic for global applications. Its core strength lies in its advanced Working Days System, which accurately calculates business days by automatically excluding weekends and public holidays for multiple countries (including 100 countries). Beyond simple duration checks, the API offers intelligent scheduling tools like finding the nearest available working day, analyzing date ranges for non-working intervals, and distinguishing between standard weekends and legal holidays. Whether you are computing SLAs, planning delivery windows, or building HR rosters, Libera.Date.Api ensures your dates align with real-world business calendars.
Healthy
curl --location --request GET 'https://zylalabs.com/api/11640/edit+libera+date+and+buisness+days+calculator+api/21974/health' --header 'Authorization: Bearer YOUR_API_KEY'
{"date":"2026-01-06T00:00:00","isWorkingDay":false,"nearestWorkingDay":"2026-01-07T00:00:00"}
curl --location --request GET 'https://zylalabs.com/api/11640/edit+libera+date+and+buisness+days+calculator+api/21978/is+working+day?Date=2026-01-06&countryCode=Required' --header 'Authorization: Bearer YOUR_API_KEY'
{"date":"2026-01-06T00:00:00","nearestWorkingDay":"2026-01-07T00:00:00","isSameDay":false}
curl --location --request GET 'https://zylalabs.com/api/11640/edit+libera+date+and+buisness+days+calculator+api/21981/nearest+working+day?Date=2026-01-06&countryCode=Required' --header 'Authorization: Bearer YOUR_API_KEY'
{"date":"2026-01-06T00:00:00","isNonWorkingDay":true,"type":"holiday","weekendDayNumber":null,"holiday":{"englishName":"Epiphany","localName":"Święto Trzech Króli"}}
curl --location --request GET 'https://zylalabs.com/api/11640/edit+libera+date+and+buisness+days+calculator+api/21982/non+working+day+info?Date=2026-01-06&countryCode=Required' --header 'Authorization: Bearer YOUR_API_KEY'
{"start":"2026-01-01T00:00:00","end":"2026-01-31T00:00:00","workingDays":[{"date":"2026-01-02T00:00:00"},{"date":"2026-01-05T00:00:00"},{"date":"2026-01-07T00:00:00"},{"date":"2026-01-08T00:00:00"},{"date":"2026-01-09T00:00:00"},{"date":"2026-01-12T00:00:00"},{"date":"2026-01-13T00:00:00"},{"date":"2026-01-14T00:00:00"},{"date":"2026-01-15T00:00:00"},{"date":"2026-01-16T00:00:00"},{"date":"2026-01-19T00:00:00"},{"date":"2026-01-20T00:00:00"},{"date":"2026-01-21T00:00:00"},{"date":"2026-01-22T00:00:00"},{"date":"2026-01-23T00:00:00"},{"date":"2026-01-26T00:00:00"},{"date":"2026-01-27T00:00:00"},{"date":"2026-01-28T00:00:00"},{"date":"2026-01-29T00:00:00"},{"date":"2026-01-30T00:00:00"}],"nonWorkingDays":[{"date":"2026-01-01T00:00:00","type":"holiday","englishName":"New Year's Day","localName":"Nowy Rok"},{"date":"2026-01-03T00:00:00","type":"weekend","weekendDayNumber":1},{"date":"2026-01-04T00:00:00","type":"weekend","weekendDayNumber":2},{"date":"2026-01-06T00:00:00","type":"holiday","englishName":"Epiphany","localName":"Święto Trzech Króli"},{"date":"2026-01-10T00:00:00","type":"weekend","weekendDayNumber":1},{"date":"2026-01-11T00:00:00","type":"weekend","weekendDayNumber":2},{"date":"2026-01-17T00:00:00","type":"weekend","weekendDayNumber":1},{"date":"2026-01-18T00:00:00","type":"weekend","weekendDayNumber":2},{"date":"2026-01-24T00:00:00","type":"weekend","weekendDayNumber":1},{"date":"2026-01-25T00:00:00","type":"weekend","weekendDayNumber":2},{"date":"2026-01-31T00:00:00","type":"weekend","weekendDayNumber":1}]}
curl --location --request GET 'https://zylalabs.com/api/11640/edit+libera+date+and+buisness+days+calculator+api/21983/workingdays++range?Start=2026-01-01&End=2026-01-31&countryCode=Required' --header 'Authorization: Bearer YOUR_API_KEY'
{"totalDays":366,"workingDays":251}
curl --location --request GET 'https://zylalabs.com/api/11640/edit+libera+date+and+buisness+days+calculator+api/21973/workingdays+count?Start=2025-01-01&End=2026-01-01&countryCode=Required' --header 'Authorization: Bearer YOUR_API_KEY'
{"totalDays":366,"offDays":115}
curl --location --request GET 'https://zylalabs.com/api/11640/edit+libera+date+and+buisness+days+calculator+api/21975/off-days?Start=2025-01-01&End=2026-01-01&countryCode=Required' --header 'Authorization: Bearer YOUR_API_KEY'
{"totalDays":366,"weekendDaysCount":104}
curl --location --request GET 'https://zylalabs.com/api/11640/edit+libera+date+and+buisness+days+calculator+api/21976/weekend+count?Start=2025-01-01&End=2026-01-01&countryCode=Required' --header 'Authorization: Bearer YOUR_API_KEY'
{"count":15,"holidays":[{"date":"2025-01-01T00:00:00","englishName":"New Year's Day","localName":"Nowy Rok"},{"date":"2025-01-06T00:00:00","englishName":"Epiphany","localName":"Święto Trzech Króli"},{"date":"2025-04-20T00:00:00","englishName":"Easter Sunday","localName":"Wielkanoc"},{"date":"2025-04-21T00:00:00","englishName":"Easter Monday","localName":"Drugi Dzień Wielkanocy"},{"date":"2025-05-01T00:00:00","englishName":"May Day","localName":"Święto Pracy"},{"date":"2025-05-03T00:00:00","englishName":"Constitution Day","localName":"Święto Narodowe Trzeciego Maja"},{"date":"2025-06-08T00:00:00","englishName":"Pentecost","localName":"Zielone Świątki"},{"date":"2025-06-19T00:00:00","englishName":"Corpus Christi","localName":"Boże Ciało"},{"date":"2025-08-15T00:00:00","englishName":"Assumption Day","localName":"Wniebowzięcie Najświętszej Maryi Panny"},{"date":"2025-11-01T00:00:00","englishName":"All Saints' Day","localName":"Wszystkich Świętych"},{"date":"2025-11-11T00:00:00","englishName":"Independence Day","localName":"Narodowe Święto Niepodległości"},{"date":"2025-12-24T00:00:00","englishName":"Christmas Eve","localName":"Wolna Wigilia"},{"date":"2025-12-25T00:00:00","englishName":"Christmas Day","localName":"Boże Narodzenie"},{"date":"2025-12-26T00:00:00","englishName":"St. Stephen's Day","localName":"Drugi Dzień Bożego Narodzenia"},{"date":"2026-01-01T00:00:00","englishName":"New Year's Day","localName":"Nowy Rok"}]}
curl --location --request GET 'https://zylalabs.com/api/11640/edit+libera+date+and+buisness+days+calculator+api/21977/public+holidays?Start=2025-01-01&End=2026-01-01&countryCode=Required' --header 'Authorization: Bearer YOUR_API_KEY'
After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Edit Libera Date And Buisness Days Calculator API simply include your bearer token in the Authorization header.
| Header | Description |
|---|---|
Authorization
|
Required
Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.
|
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
(Save 2 months with annual billing 🎉)
Time is money, but calculating it correctly is harder than it looks. Libera.Date.Api is the ultimate solution for developers building HR systems, logistics platforms, and financial applications.
Stop wrestling with leap years, timezone anomalies, and shifting public holidays. Powered by the industry-standard NodaTime engine and our proprietary Working Days System, this API delivers:
Global Awareness: Built-in support for major economies (US, UK, DE, PL, FR) with accurate holiday calendars.
Business Logic Ready: Instantly calculate SLAs and delivery dates by excluding weekends and holidays.
Precision Engineering: Get exact durations down to the minute, or broad calendar period differences (Years/Months/Days).
Smart Fallbacks: Automatically find the next available working day when deadlines hit a holiday.
All requests must be authenticated. You can use either an API Key or a Bearer Token.
| Method | Header Name | Value Format |
|---|---|---|
| API Key | X-Api-Key |
YOUR_API_KEY |
| Bearer Token | Authorization |
Bearer YOUR_JWT_TOKEN |
Base URL: http://localhost:8080 (adjust to your deployment)
Calculates the calendar difference (Years, Months, Days).
URL: /date-calculator/period/date
Method: GET
Parameters:
Start (query, required): Start date (ISO 8601, e.g., 2024-01-01)
End (query, required): End date (ISO 8601, e.g., 2025-03-15)
Request:
curl -X GET "http://localhost:8080/date-calculator/period/date?Start=2024-01-01&End=2025-03-15" \
-H "X-Secret: TEST_SECRET"
Response (200 OK):
{
"years": 1,
"months": 2,
"days": 14,
"description": "1 year, 2 months, 14 days"
}
Calculates the duration in total days, hours, and minutes.
URL: /date-calculator/period/time
Method: GET
Parameters:
Start (query): 2024-01-01T12:00:00
End (query): 2024-01-05T18:30:00
Request:
curl -X GET "<http://localhost:8080/date-calculator/period/time?Start=2024-01-01T12:00:00&End=2024-01-05T18:30:00>" \
-H "X-Secret: TEST_SECRET"
Response (200 OK):
{
"totalDays": 4,
"hours": 102,
"minutes": 6150
}
Advanced logic for business days, weekends, and public holidays.
Path Parameter: {countryCode} (e.g., PL, US, DE, UK).
Checks if a specific date is a working day. If it is not (due to weekend or holiday), it returns the date of the next immediate working day.
URL: GET /workingdays/{countryCode}/is-working-day
Parameters:
Date (required, YYYY-MM-DD)
Example Request (Checking Christmas Day in US):
bash
curl -X GET "http://localhost:8080/workingdays/US/is-working-day?Date=2025-12-25"
Response (200 OK):
json{
"date": "2025-12-25T00:00:00",
"isWorkingDay": false,
"nearestWorkingDay": "2025-12-26T00:00:00"
}
Returns detailed metadata about why a day is not a working day. It distinguishes between weekends (specifying if it's the 1st or 2nd day of the weekend) and public holidays.
URL: GET /workingdays/{countryCode}/non-working-info
Parameters:
Date (required, YYYY-MM-DD)
Example Request:
bash
curl -X GET "http://localhost:8080/workingdays/PL/non-working-info?Date=2024-05-01"
Response (200 OK):
json{
"date": "2024-05-01T00:00:00",
"isNonWorkingDay": true,
"type": "holiday",
"weekendDayNumber": null,
"holiday": {
"englishName": "Labor Day",
"localName": "Święto Pracy"
}
}
Generates a comprehensive breakdown of a date range, splitting all dates into "Working" and "Non-Working" lists. Ideal for rendering calendars or Gantt charts.
URL: GET /workingdays/{countryCode}/range
Parameters:
Start (required): Range start.
End (required): Range end.
Note: Max range is limited by server configuration (default 366 days).
Example Request:
bash
curl -X GET "http://localhost:8080/workingdays/US/range?Start=2024-07-03&End=2024-07-05"
Response (200 OK):
json{
"start": "2024-07-03T00:00:00",
"end": "2024-07-05T00:00:00",
"workingDays": [
{ "date": "2024-07-03T00:00:00" },
{ "date": "2024-07-05T00:00:00" }
],
"nonWorkingDays": [
{
"date": "2024-07-04T00:00:00",
"type": "holiday",
"englishName": "Independence Day",
"localName": "Independence Day"
}
]
}
Calculates the number of business days between two dates. (excluding weekends and holidays).
URL: /workingdays/{countryCode}/count
Method: GET
Parameters:
Start (query): 2024-05-01
End (query): 2024-05-10
Request:
curl -X GET "<http://localhost:8080/workingdays/PL/count?Start=2024-05-01&End=2024-05-10>" \
-H "X-Secret: TEST_SECRET"
Response (200 OK):
{
"totalDays": 366,
"workingDays": 253
}
Returns the count of non-working days (weekends + holidays).
URL: /workingdays/{countryCode}/off-days
Method: GET
Request:
curl -X GET "<http://localhost:8080/workingdays/PL/off-days?Start=2024-05-01&End=2024-05-10>" \
-H "X-Secret: TEST_SECRET"
Response (200 OK):
{
"totalDays": 366,
"offDays": 113
}
Returns a list of public holidays in the given range.
URL: /workingdays/{countryCode}/holidays
Method: GET
Request:
curl -X GET "<http://localhost:8080/workingdays/PL/holidays?Start=2024-01-01&End=2024-01-10>" \
-H "X-Secret: TEST_SECRET"
Response (200 OK):
[
{
"date": "2024-01-01",
"name": "New Year's Day",
"localName": "Nowy Rok"
},
{
"date": "2024-01-06",
"name": "Epiphany",
"localName": "Święto Trzech Króli"
}
]
Returns the number of weekend days (Saturdays and Sundays).
URL: /workingdays/{countryCode}/weekends
Method: GET
Request:
curl -X GET "<http://localhost:8080/workingdays/PL/weekends?Start=2024-05-01&End=2024-05-10>" \
-H "X-Secret: TEST_SECRET"
Response (200 OK):
{
"totalDays": 91,
"weekendDaysCount": 26
}
Each endpoint returns JSON data tailored to specific date calculations. For example, the "Count Working Days" endpoint returns the total number of business days between two dates, while the "List Public Holidays" endpoint provides details about holidays within a specified range.
Key fields vary by endpoint. For instance, the "Get Off-Days Count" endpoint returns "totalDays" and "offDays," while "Get Detailed Non-Working Info" includes "date," "isNonWorkingDay," and "holiday" details like "englishName" and "localName."
Parameters differ by endpoint. For example, the "Check Working Day" endpoint requires a "Date" parameter, while the "Analyze Range" endpoint needs "Start" and "End" dates. Each parameter must follow specific formats, such as YYYY-MM-DD for dates.
Response data is structured in JSON format, typically containing a main object with relevant fields. For example, the "Analyze Range" endpoint returns "workingDays" and "nonWorkingDays" as arrays of date objects, making it easy to parse and utilize.
The API utilizes the industry-standard NodaTime engine and proprietary algorithms to ensure accurate date calculations. Data for public holidays and weekends is sourced from reliable national calendars for over 100 countries.
Common use cases include calculating SLAs, planning delivery schedules, and managing HR rosters. For instance, businesses can use the "Count Working Days" endpoint to determine deadlines while accounting for holidays and weekends.
Users can customize requests by specifying parameters like date ranges and country codes. For example, when using the "List Public Holidays" endpoint, users can define the "Start" and "End" dates to retrieve holidays relevant to their specific timeframe.
Users can leverage the structured JSON responses to integrate date calculations into applications. For example, the "Get Weekends Count" response can be used to adjust project timelines by accounting for non-working days in scheduling software.
The "Get Off-Days Count" endpoint provides the total number of non-working days within a specified date range, including both weekends and public holidays. This helps businesses understand potential downtime during a given period.
You can use the "Check Working Day & Find Nearest" endpoint. By providing a date, the API will return whether it's a working day and, if not, the nearest subsequent working day, allowing for effective scheduling.
The "Analyze Range" endpoint allows you to analyze a maximum date range of 366 days, as configured by the server settings. This is useful for generating comprehensive working and non-working day lists over a year.
The API includes built-in support for over 100 countries, utilizing reliable national calendars to accurately reflect public holidays. This ensures that calculations for business days are precise and relevant to the specified country.
The response includes fields such as "date," "isWorkingDay" (boolean), and "nearestWorkingDay" (date). This structure allows users to quickly assess the status of a date and plan accordingly.
Use the "List Public Holidays" endpoint by specifying the country code and the desired date range. The response will include an array of holidays, detailing each holiday's date and name, which is essential for planning around non-working days.
This endpoint returns detailed metadata about why a specific date is non-working, including whether it's a weekend or a public holiday, along with the holiday's name in both English and the local language, enhancing clarity for users.
The "Count Working Days" endpoint returns the total number of business days between two dates, excluding weekends and holidays. This data can be used to set realistic deadlines and manage project timelines effectively.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world's most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]
Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.
The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.
Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]
Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.
API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.
Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.
To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.
To check how many API calls you have left for the current month, refer to the 'X-Zyla-API-Calls-Monthly-Remaining' field in the response header. For example, if your plan allows 1,000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.
To see the maximum number of API requests your plan allows, check the 'X-Zyla-API-Calls-Monthly-Limit' response header. For instance, if your plan includes 1,000 requests per month, this header will display 1,000.
The 'X-Zyla-RateLimit-Reset-Seconds' header shows the number of seconds until your per-minute rate limit resets. For example, if it displays 24, it means 24 seconds are left until you can make requests again at the full per-minute rate. You can also check 'X-Zyla-RateLimit-Remaining' for how many requests you have left in the current minute.
Yes, you can cancel your plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.
You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]
To give you the opportunity to experience our APIs without any commitment, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost. This trial can be used only once, so we recommend applying it to the API that interests you the most. While most of our APIs offer a free trial, some may not. The trial concludes after 7 days or once you've made 50 requests, whichever occurs first. If you reach the 50 request limit during the trial, you will need to "Start Your Paid Plan" to continue making requests. You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab. Alternatively, if you don't cancel your subscription before the 7th day, your free trial will end, and your plan will automatically be billed, granting you access to all the API calls specified in your plan. Please keep this in mind to avoid unwanted charges.
After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it's important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.
When you subscribe to an API free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.
Payout Orders are processed between the 20th and the 30th of each month. If you submit your request before the 20th, your payment will be processed within this timeframe.