NewConnect Claude, Cursor, ChatGPT, and other AI agents to API Ninjas via our MCP server
Bank Holidays API

Bank Holidays in Mexico

Bank holidays in Mexico (días inhábiles bancarios) are published each year by the Comisión Nacional Bancaria y de Valores (CNBV). The schedule includes Año Nuevo, Día de la Constitución, Natalicio de Benito Juárez, Maundy Thursday and Good Friday, Día del Trabajo, Día de la Independencia, Día de la Revolución, Day of the Virgin of Guadalupe, and Christmas. The Holidays API returns Mexican bank holiday data for any year.

The Mexico Bank Holidays API allows you to:

  • List every Mexican bank holiday for a given year
  • Pull historical Mexico bank holiday calendars going back to 1980
  • Build settlement, payroll and treasury calendars that respect Mexico financial closures
  • Integrate Mexico banking holidays into trading, brokerage, or scheduling systems
(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
365ms399ms406ms733ms1213ms

Didn't find what you were looking for? Suggest an improvement


Mexico Bank Holidays 2025

The table below lists the Mexico bank holidays for 2025. Use the API to retrieve the full list for any year between 1980 and 2050.

DateDayHoliday
2025-01-01WednesdayAño Nuevo
2025-02-03MondayDía de la Constitución
2025-03-17MondayNatalicio de Benito Juárez
2025-04-17ThursdayMaundy Thursday
2025-04-18FridayGood Friday
2025-05-01ThursdayDía del Trabajo
2025-09-16TuesdayDía de la Independencia
2025-11-17MondayDía de la Revolución
2025-12-12FridayDay of the Virgin of Guadalupe
2025-12-25ThursdayChristmas Day

Sample 2025 schedule. Some dates — in particular religious dates that follow lunar or Coptic calendars — vary year to year. Call the live API for the authoritative list.


/v1/bankholidays GET

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

Returns every bank holiday observed in Mexico for the specified year. Use the country ISO code MX to retrieve Mexico bank closures.


Parameters

  • country  required

    Country name or ISO 3166-2 country code. Use MX for Mexico.

  • year  optional premium only

    Calendar year between 1980 and 2050. Defaults to the current year.

Headers

  • X-Api-Key  required

    API Key associated with your account.

Response

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

  • name

    Name of the bank holiday.

  • date

    Date in YYYY-MM-DD format.

  • country

    ISO 3166 alpha-2 country code (e.g. MX).

  • year

    Year of the bank holiday.

Sample Request Live Demo!

country
year premium

Try this API endpoint with all available parameters in our API playground

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

Headers

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

Sample Response

JSON

Code Examples

1 2 curl -X GET "https://api.api-ninjas.com/v1/bankholidays?country=MX&year=2025" \ -H "X-Api-Key: YOUR_API_KEY"

If your programming language is not listed above, you can still make API calls by using any HTTP request library and following the documentation above.