API Almanac
API reference › Holidays

Public holidays for a country and year, optionally for one state or region

GET/v1/holidays

GET/v1/holidays

Public holidays for a country and year, optionally for one state or region

National holidays by default. Add subdivision (a state, province or region code such as TX or BY) to include regional ones. Years 2020–2030 for every country the data covers.

PARAMETERS
countryquery · stringREQUIRED
ISO 3166-1 alpha-2 code
e.g. US
yearquery · integer
Year (default: the current year)
e.g. 2026
subdivisionquery · string
State / province / region code
e.g. TX
In the full reference
REQUEST
curl "https://api.apialmanac.com/v1/holidays?country=US" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200OK
{
  "country": "US",
  "name": "United States",
  "year": 2026,
  "subdivision": null,
  "weekend": [
    "Saturday",
    "Sunday"
  ],
  "count": 2,
  "holidays": [
    {
      "date": "2026-01-01",
      "weekday": "Thursday",
      "name": "New Year's Day",
      "national": true,
      "subdivisions": null
    },
    {
      "date": "2026-01-19",
      "weekday": "Monday",
      "name": "Martin Luther King Jr. Day",
      "national": true,
      "subdivisions": null
    }
  ]
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.