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

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:

(4.2)

From 5,149 users

3,600+

Applications using this API

API Status

Online - All Systems Operational

API Response Times

Average
P50
P75
P90
P95
345ms392ms442ms602ms1158ms

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

  • country  required

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

  • year  optionalpremium only

    Calendar year between 2005 and 2039 (inclusive). Default is the current year. Note: not all countries are guaranteed to contain data going back to 2005.

  • type  optional

    Holiday type filter. Possible values are:

    Show all types

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.

  • country

    Country name.

  • iso

    2-letter ISO 3166 alpha-2 country code.

  • year

    The year for which the holiday is observed.

  • date

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

  • day

    Day of the week.

  • name

    Name of the holiday.

  • type

    Type of holiday. See the type parameter for possible values.

Sample Request Live Demo!

country
year premium
type

Try our APIs in the API playground

Sign up for a free API key to get started — no credit card required.

https://api.api-ninjas.com/v2/holidays?country=CA&type=public_holiday

Headers

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

Sample Response

JSON
[
    {
      country:"Canada",
      iso:"CA",
      year:2025,
      date:"2025-09-01",
      day:"Monday",
      name:"Labour Day",
      type:"PUBLIC_HOLIDAY"
    },
    {
      country:"Canada",
      iso:"CA",
      year:2025,
      date:"2025-05-19",
      day:"Monday",
      name:"Victoria Day",
      type:"PUBLIC_HOLIDAY"
    },
    {
      country:"Canada",
      iso:"CA",
      year:2025,
      date:"2025-07-01",
      day:"Tuesday",
      name:"Canada Day",
      type:"PUBLIC_HOLIDAY"
    },
    "..."
]

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

  • 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  optional

    Country name or ISO 3166-2 country code (preferred). If not specified, holidays from all countries are returned.

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.

  • country

    Country name.

  • iso

    2-letter ISO 3166 alpha-2 country code.

  • year

    The year for which the holiday is observed.

  • date

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

  • day

    Day of the week.

  • name

    Name of the holiday.

  • type

    Type of holiday. See the type parameter for possible values.

Sample Request Live Demo!

date
country

Try our APIs in the API playground

Sign up for a free API key to get started — no credit card required.

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

Headers

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

Sample Response

JSON
[
    {
      country:"Canada",
      iso:"CA",
      year:2025,
      date:"2025-01-01",
      day:"Wednesday",
      name:"New Year's Day",
      type:"PUBLIC_HOLIDAY"
    }
]

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.

Frequently Asked Questions

  • Yes, but you must have a premium subscription. Commercial use of the 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.
  • The Holidays API provides holiday information for over 230 countries, regions, and territories worldwide, with the /v2/holidays endpoint supporting any calendar year between 2005 and 2039 (not all countries have data going back to 2005). If you only need public holidays across a wider range of years, consider the dedicated Public Holidays API instead.
  • The /v2/holidays endpoint returns a list of all holidays for a given country and year, while /v1/isholiday returns the holidays that fall on a specific date (returning matches across all countries if country is omitted). To simply check whether a date is a business day instead, see the Working Days API.
  • Pass the optional type parameter to the /v2/holidays endpoint with a value like public_holiday, bank_holiday, christian_holiday, or observance, among more than 25 supported categories. If you specifically only need bank closures, the Bank Holidays API may be a better fit.
  • Each holiday object includes country, the iso alpha-2 code, year, the date in YYYY-MM-DD format, the day of the week, the holiday name, and its type; a failed request returns an error instead. Note that querying historical or future years via the year and date parameters requires a premium subscription.