Holidays API
The Holidays API provides holiday information on over 230 countries, regions, and territories around the world. It contains holiday data going back previous years as well as calendars in the future. The data incudes public holidays, different religious dates, bank holidays, and many other categories.
If you are only interested in public holidays, please use the Public Holidays API instead as it contains holiday data for many more years.
Available endpoints:
- /v2/holidays - Get holidays for a given country and year
- /v1/isholiday - Check if a specific date is a holiday
From 5,149 users
Applications using this API
API Status
API Response Times
Average | P50 | P75 | P90 | P95 |
|---|---|---|---|---|
| 391ms | 441ms | 438ms | 770ms | 1162ms |
Similar APIs
Didn't find what you were looking for? Suggest an improvement
/v2/holidays GET
https://api.api-ninjas.com/v2/holidays
Returns a list of holiday entries for a given country and year. Each entry in the response contains the holiday name, date, day of the week, and the type of holiday.
Parameters
countryrequiredCountry name or ISO 3166-2 country code (preferred).
yearoptionalpremium onlyCalendar year between
2005and2039(inclusive). Default is the current year. Note: not all countries are guaranteed to contain data going back to 2005.typeoptionalHoliday type filter. Possible values are:
Show all types ▼
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
A JSON array of objects, each containing the following fields, or an error if the request is unsuccessful.
countryCountry name.
iso2-letter ISO 3166 alpha-2 country code.
yearThe year for which the holiday is observed.
dateDate of the holiday in YYYY-MM-DD format.
dayDay of the week.
nameName of the holiday.
typeType of holiday. See the type parameter for possible values.
Sample Request Live Demo!
Try this API endpoint with all available parameters in our API playground
https://api.api-ninjas.com/v2/holidays?country=CA&type=public_holidayHeaders
X-Api-KeyLog in or sign up to get your API KeySample Response
Code Examples
1
2
curl -X GET "https://api.api-ninjas.com/v2/holidays?country=US&year=2024" \
-H "X-Api-Key: YOUR_API_KEY"If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.
/v1/isholiday GET
https://api.api-ninjas.com/v1/isholiday
Returns a list of all holidays that fall on a given date. If no country is specified, holidays from all countries matching the date are returned.
Parameters
daterequiredDate in
YYYY-MM-DDformat (e.g.2025-12-25). Note: dates in future calendar years are for premium subscribers only.countryoptionalCountry name or ISO 3166-2 country code (preferred). If not specified, holidays from all countries are returned.
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
A JSON array of objects, each containing the following fields, or an error if the request is unsuccessful.
countryCountry name.
iso2-letter ISO 3166 alpha-2 country code.
yearThe year for which the holiday is observed.
dateDate of the holiday in YYYY-MM-DD format.
dayDay of the week.
nameName of the holiday.
typeType of holiday. See the type parameter for possible values.
Sample Request Live Demo!
Try this API endpoint with all available parameters in our API playground
https://api.api-ninjas.com/v1/isholiday?date=2025-01-01&country=CAHeaders
X-Api-KeyLog in or sign up to get your API KeySample Response
Code Examples
1
2
curl -X GET "https://api.api-ninjas.com/v1/isholiday?date=2025-01-01&country=CA" \
-H "X-Api-Key: YOUR_API_KEY"If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.