Bank Holidays API
The Bank Holidays API returns the days on which banks and financial institutions are officially closed across over 230 countries, regions, and territories around the world. The endpoints are dedicated to banking-relevant closures only — every entry is of type BANK_HOLIDAY.
Common use cases include:
- Settlement and clearing calendars (ACH, wire, SWIFT)
- Treasury and cash management systems
- Trading and brokerage platforms
- International payment scheduling
- Loan amortization and interest accrual calendars
Available endpoints:
- /v1/bankholidays - Get bank holidays for a given country and year
- /v1/isbankholiday - Check if a specific date is a bank holiday
For other holiday categories — public, religious, observances, and more — see the Holidays API.
From 2,430 users
Applications using this API
API Status
API Response Times
Average | P50 | P75 | P90 | P95 |
|---|---|---|---|---|
| 365ms | 399ms | 406ms | 733ms | 1213ms |
Didn't find what you were looking for? Suggest an improvement
/v1/bankholidays GET
https://api.api-ninjas.com/v1/bankholidays
Returns a list of bank holiday entries for a given country and year. Each entry contains the holiday name, date, day of the week, and country information.
Parameters
countryrequiredCountry name or ISO 3166-2 country code (preferred).
yearoptional premium onlyCalendar year between
1980and2050(inclusive). Defaults to the current year.
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.
nameName of the bank holiday.
dateDate of the bank holiday in YYYY-MM-DD format.
country2-letter ISO 3166 alpha-2 country code.
yearThe year for which the bank holiday is observed.
Sample Request Live Demo!
Try this API endpoint with all available parameters in our API playground
https://api.api-ninjas.com/v1/bankholidays?country=USHeaders
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/bankholidays?country=US&year=2025" \
-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/isbankholiday GET
https://api.api-ninjas.com/v1/isbankholiday
Returns whether a given date is a bank holiday for a given country.
Parameters
daterequiredDate in
YYYY-MM-DDformat (e.g.2025-12-25). Note: dates in future calendar years are for premium subscribers only.countryrequiredCountry name or ISO 3166-2 country code (preferred).
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
A JSON object with the following fields or an error if the request is unsuccessful.
is_bank_holidayWhether the date is a bank holiday in the specified country.
bank_holiday_nameName of the bank holiday, when
is_bank_holidayistrue; otherwisenull.dateDate in
YYYY-MM-DDformat.country2-letter ISO 3166 alpha-2 country code.
Sample Request Live Demo!
Try this API endpoint with all available parameters in our API playground
https://api.api-ninjas.com/v1/isbankholiday?date=2025-01-01&country=USHeaders
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/isbankholiday?date=2025-01-01&country=US" \
-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.
Bank Holidays by Country
Browse bank holidays for the world's most populous countries:
- Bank Holidays in India
- Bank Holidays in China
- Bank Holidays in United States
- Bank Holidays in Indonesia
- Bank Holidays in Pakistan
- Bank Holidays in Nigeria
- Bank Holidays in Brazil
- Bank Holidays in Bangladesh
- Bank Holidays in Russia
- Bank Holidays in Mexico
- Bank Holidays in Japan
- Bank Holidays in Ethiopia
- Bank Holidays in Philippines
- Bank Holidays in Egypt
- Bank Holidays in Vietnam