South Star

Holiday Calendar Public Holidays Business Days API

Free tier included · Data
Public holidays for 100+ countries, business day calculations, multi-country overlap search, wage analysis, and batch date checking.

Holiday Calendar API delivers robust holiday tracking and business day calculations for over 100 countries. Beyond listing holidays by year or checking if a single date is a holiday, this API powers advanced scheduling workflows. You can calculate business days in a date range, add or subtract business days and working hours while skipping weekends and holidays, analyze periods for working hours and wages, list non-working days, and find common working slots across multiple countries simultaneously. A batch date checker lets you evaluate up to 100 dates in a single request.

Building on top of open-source holiday libraries, this service runs entirely offline with local datasets embedded in the release. It performs no external network calls, stores no request data, and maintains no cross-request state, making it secure and privacy-compliant for enterprise and PII-sensitive workflows.

Honest limits: Ranges for business days and period analyses are capped at 2 years (730 days) to protect performance. Multi-country common slot searches look up to 365 days ahead. Adding working hours supports up to 2,000 hours per call, and batch checking allows a maximum of 100 dates per request. Invalid country codes, subdivision codes, or improperly formatted dates will return standard validation errors (HTTP 422).

Endpoints

MethodPathWhat it does
GET/API metadata: name, version, and paths to interactive docs and the health endpoint.
GET/healthLiveness probe; returns status "ok" when the service is able to answer.
GET/countriesList ISO 3166-1 alpha-2 country codes supported by the holiday dataset.
GET/holidaysReturns every public holiday of a country for 1-5 consecutive years, sorted by date.
GET/is-holidayChecks one date against the public holidays of a country.
GET/nextFinds the closest public holiday on or after a given date and reports days_until.
GET/business-daysCounts weekends and holidays inside a range and returns the business days.
GET/add-business-daysAdds or subtracts N business days to a date, skipping weekends and public holidays.
GET/next-holidayConvenience shortcut for the next public holiday from a date.
GET/analyseAnalyse a period: returns calendar days, working days, weekend days, holiday days, total working hours, and total wages.
GET/list-non-working-daysReturns every non-working date in a range (weekends and public holidays) with reasons and names.
GET/add-working-hoursAdds a number of working hours to a start date/datetime, skipping weekends and holidays.
GET/find-common-working-slotFinds the next date that is a business day in all listed countries.
GET/batch/is-holidayBatch-check up to 100 dates against a country's holidays in a single call.

Quick start

curl -X GET "https://holiday.p.rapidapi.com/countries" \
  -H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
  -H "X-RapidAPI-Host: holiday.p.rapidapi.com"

FAQ

Are regional or state-level holidays supported?

Yes, you can pass optional subdivision codes (e.g., `NY` for United States) to target regional holiday calendars.

Can I check multiple countries at once for overlapping schedules?

Yes! Use the `/find-common-working-slot` endpoint with comma-separated country codes to find the next mutually available business day.

How many dates can I check in a single batch request?

You can check up to 100 dates in one call using the `/batch/is-holiday` endpoint.

Does the API store any of my query parameters or personal data?

No. The API is entirely stateless and offline, running computations locally without logging requests or retaining data.

Try Holiday Calendar Public Holidays Business Days free

Free tier on every plan. Get an API key and start calling in under a minute.

Open on RapidAPI

Related APIs