NewConnect Claude, Gemini, ChatGPT, and other AI agents to API Ninjas via our MCP server

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:

For other holiday categories — public, religious, observances, and more — see the Holidays API.

(4.1)

From 2,430 users

2,400+

Applications using this API

API Status

Online - All Systems Operational

API Response Times

Average
P50
P75
P90
P95
391ms417ms453ms753ms1294ms

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

  • country  required

    Country name or ISO 3166-2 country code (preferred).

  • year  optional premium only

    Calendar year between 1980 and 2050 (inclusive). Defaults to the current year.

Headers

  • X-Api-Key  required

    API Key associated with your account.

Response

A JSON array of objects, each containing the following fields, or an error if the request is unsuccessful.

  • name

    Name of the bank holiday.

  • date

    Date of the bank holiday in YYYY-MM-DD format.

  • country

    2-letter ISO 3166 alpha-2 country code.

  • year

    The year for which the bank holiday is observed.

Sample Request Live Demo!

country
year premium

Try this endpoint live with a free API key

Instant access — no credit card required.

https://api.api-ninjas.com/v1/bankholidays?country=US

Headers

X-Api-KeyLog in or sign up to get your API Key

Sample Response

JSON
[
    {
      name:"New Year's Day",
      date:"2025-01-01",
      country:"US",
      year:2025
    },
    {
      name:"Martin Luther King Jr. Day",
      date:"2025-01-20",
      country:"US",
      year:2025
    },
    "..."
]

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

  • date  required

    Date in YYYY-MM-DD format (e.g. 2025-12-25). Note: dates in future calendar years are for premium subscribers only.

  • country  required

    Country name or ISO 3166-2 country code (preferred).

Headers

  • X-Api-Key  required

    API Key associated with your account.

Response

A JSON object with the following fields or an error if the request is unsuccessful.

  • is_bank_holiday

    Whether the date is a bank holiday in the specified country.

  • bank_holiday_name

    Name of the bank holiday, when is_bank_holiday is true; otherwise null.

  • date

    Date in YYYY-MM-DD format.

  • country

    2-letter ISO 3166 alpha-2 country code.

Sample Request Live Demo!

date
country

Try this endpoint live with a free API key

Instant access — no credit card required.

https://api.api-ninjas.com/v1/isbankholiday?date=2025-01-01&country=US

Headers

X-Api-KeyLog in or sign up to get your API Key

Sample Response

JSON
{
    date:"2025-01-01",
    country:"US",
    is_bank_holiday:true,
    holiday_name:"New Year's Day"
}

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.


Frequently Asked Questions

  • 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.
  • Sign up for a free account to instantly get your API key, then pass it in the X-Api-Key header on every request. The documentation above includes ready-to-run examples in cURL, Python, JavaScript, Node.js, and more.
  • 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.
  • 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.
  • Because every entry is of type BANK_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.
  • Call the /v1/bankholidays endpoint with the required country parameter (a country name or, preferably, an ISO 3166-2 code) and an optional year between 1980 and 2050, which defaults to the current year and is a premium feature. To check a single date instead, see the /v1/isbankholiday endpoint, or for non-bank holidays try Public Holidays.
  • It returns a JSON object with is_bank_holiday (true or false), bank_holiday_name (the holiday name when true, otherwise null), the date in YYYY-MM-DD format, and the 2-letter country code, given the required date and country parameters. To find the actual business days around a closure, pair it with the Working Days API.
  • The API covers over 230 countries, regions, and territories, and each array entry includes the name of the bank holiday, its date in YYYY-MM-DD format, the 2-letter ISO 3166 alpha-2 country code, and the year observed. To validate or look up country codes, see the Country API.