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 |
|---|---|---|---|---|
| 391ms | 417ms | 453ms | 753ms | 1294ms |
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!
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!
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
Frequently Asked Questions
Can I use the Bank Holidays API for commercial purposes?
Yes, but you must have a premium subscription. Commercial use of the Bank Holidays API is not permitted on the free tier. See our pricing page to choose a plan that fits your needs.How do I get an API key and start using the Bank Holidays API?
Sign up for a free account to instantly get your API key, then pass it in theX-Api-Keyheader on every request. The documentation above includes ready-to-run examples in cURL, Python, JavaScript, Node.js, and more.What happens if I exceed my quota for the month?
Your API requests will simply be denied once you hit your monthly quota — you will never be charged more than the plan you signed up for. To increase your quota, you can upgrade your plan any time on our pricing page.What happens if a request to the Bank Holidays API fails?
The API responds with a standard HTTP status code and a JSON error message describing the problem. See our error codes reference for the full list of codes and how to resolve each one, or contact support if you need help.What are some use cases for the Bank Holidays API?
Because every entry is of typeBANK_HOLIDAY(banking-relevant closures only), the API is well suited for settlement and clearing calendars (ACH, wire, SWIFT), treasury and cash management, trading platforms, international payment scheduling, and loan interest accrual calendars. For non-banking holidays such as public, religious, and observances, use the Holidays API instead.How do I retrieve all bank holidays for a specific country and year?
Call the/v1/bankholidaysendpoint with the requiredcountryparameter (a country name or, preferably, an ISO 3166-2 code) and an optionalyearbetween1980and2050, which defaults to the current year and is a premium feature. To check a single date instead, see the/v1/isbankholidayendpoint, or for non-bank holidays try Public Holidays.What does the /v1/isbankholiday endpoint return?
It returns a JSON object withis_bank_holiday(true or false),bank_holiday_name(the holiday name when true, otherwisenull), thedatein YYYY-MM-DD format, and the 2-lettercountrycode, given the requireddateandcountryparameters. To find the actual business days around a closure, pair it with the Working Days API.What does the data cover and which response fields are returned by /v1/bankholidays?
The API covers over 230 countries, regions, and territories, and each array entry includes thenameof the bank holiday, itsdatein YYYY-MM-DD format, the 2-letter ISO 3166 alpha-2countrycode, and theyearobserved. To validate or look up country codes, see the Country API.