API CodexAPI Codex
WebsiteDashboardGet API Key
  • Documentation
  • All APIs
  • Changelog
Resources
  • Docs Home
  • API Catalog
  • API Codex Website
Platform
  • Get a free API key
  • Dashboard
  • APIs & Pricing

© 2026 API Codex. All rights reserved.

Information
Other endpoints
    Public holidays for a country in a given yeargetPublic holidays within an inclusive date rangegetUpcoming public holidays (next 365 days)getCheck whether a date is a public holidaygetList supported countriesget
Schemas
powered by Zudoku
Public Holidays API
Public Holidays API

Other endpoints


Public holidays for a country in a given year

GET
https://api.apicodex.io/holidays
/v1/public

Returns all public holidays for a country in a given calendar year, passed through cleanly from upstream. Supports a default limit of 50 and an optional limit (1-1000).

Public holidays for a country in a given year › query Parameters

country
​string · minLength: 2 · maxLength: 2 · required

ISO-3166 alpha-2 country code (case-insensitive).

Example: US
year
​integer · min: 2000 · max: 2100 · required

Calendar year (2000-2100).

Example: 2026
limit
​integer · min: 1 · max: 1000

Max items to return (1-1000, default 50).

Default: 50

Public holidays for a country in a given year › Responses

Array of public holidays.

​Holiday[]
Holiday
date
​string · date · required

Calendar date of the holiday.

Example: 2026-07-03
localName
​string · required

Holiday name in the country's local language.

Example: Independence Day
name
​string · required

Holiday name in English.

Example: Independence Day
countryCode
​string · required

ISO-3166 alpha-2 country code.

Example: US
fixed
​boolean

Whether the holiday falls on a fixed calendar date.

Example: false
global
​boolean

True for nationwide holidays; false for subdivision-only holidays.

Example: true
counties
​array | null

ISO-3166-2 subdivision codes the holiday applies to, or null when nationwide.

Example: null
launchYear
​integer | null

First year the holiday was observed, when known.

Example: null
types
​string[]

Holiday type flags (e.g. Public, Bank, Optional).

Example: ["Public"]
GET/v1/public
curl 'https://api.apicodex.io/holidays/v1/public?country=<string>&year=<number>&apikey=<api-key>'
Example Responses
[ { "date": "2026-01-01", "localName": "New Year's Day", "name": "New Year's Day", "countryCode": "US", "fixed": false, "global": true, "counties": null, "launchYear": null, "types": [ "Public", "Bank" ] }, { "date": "2026-07-03", "localName": "Independence Day", "name": "Independence Day", "countryCode": "US", "fixed": false, "global": true, "counties": null, "launchYear": null, "types": [ "Public" ] } ]
json
application/json

Public holidays within an inclusive date range

GET
https://api.apicodex.io/holidays
/v1/range

Returns public holidays for a country falling within an inclusive date range. The relevant year(s) are fetched, merged, filtered to from <= date <= to, and sorted ascending. The range may span at most 5 years.

Public holidays within an inclusive date range › query Parameters

country
​string · minLength: 2 · maxLength: 2 · required

ISO-3166 alpha-2 country code (case-insensitive).

Example: US
from
​string · date · required

Inclusive start date, YYYY-MM-DD.

Example: 2026-06-01
to
​string · date · required

Inclusive end date, YYYY-MM-DD (must be on or after 'from').

Example: 2026-12-31
limit
​integer · min: 1 · max: 1000

Max items to return (1-1000, default 50).

Default: 50

Public holidays within an inclusive date range › Responses

Array of public holidays within the range, sorted ascending.

​Holiday[]
Holiday
date
​string · date · required

Calendar date of the holiday.

Example: 2026-07-03
localName
​string · required

Holiday name in the country's local language.

Example: Independence Day
name
​string · required

Holiday name in English.

Example: Independence Day
countryCode
​string · required

ISO-3166 alpha-2 country code.

Example: US
fixed
​boolean

Whether the holiday falls on a fixed calendar date.

Example: false
global
​boolean

True for nationwide holidays; false for subdivision-only holidays.

Example: true
counties
​array | null

ISO-3166-2 subdivision codes the holiday applies to, or null when nationwide.

Example: null
launchYear
​integer | null

First year the holiday was observed, when known.

Example: null
types
​string[]

Holiday type flags (e.g. Public, Bank, Optional).

Example: ["Public"]
GET/v1/range
curl 'https://api.apicodex.io/holidays/v1/range?country=<string>&from=<string>&to=<string>&apikey=<api-key>'
Example Responses
[ { "date": "2026-07-03", "localName": "Independence Day", "name": "Independence Day", "countryCode": "US", "fixed": false, "global": true, "counties": null, "launchYear": null, "types": [ "Public" ] }, { "date": "2026-09-07", "localName": "Labor Day", "name": "Labour Day", "countryCode": "US", "fixed": false, "global": true, "counties": null, "launchYear": null, "types": [ "Public" ] } ]
json
application/json

Upcoming public holidays (next 365 days)

GET
https://api.apicodex.io/holidays
/v1/next

Returns the upcoming public holidays for a country within the next 365 days, passed through cleanly from upstream.

Upcoming public holidays (next 365 days) › query Parameters

country
​string · minLength: 2 · maxLength: 2 · required

ISO-3166 alpha-2 country code (case-insensitive).

Example: US
limit
​integer · min: 1 · max: 1000

Max items to return (1-1000, default 50).

Default: 50

Upcoming public holidays (next 365 days) › Responses

Array of upcoming public holidays.

​Holiday[]
Holiday
date
​string · date · required

Calendar date of the holiday.

Example: 2026-07-03
localName
​string · required

Holiday name in the country's local language.

Example: Independence Day
name
​string · required

Holiday name in English.

Example: Independence Day
countryCode
​string · required

ISO-3166 alpha-2 country code.

Example: US
fixed
​boolean

Whether the holiday falls on a fixed calendar date.

Example: false
global
​boolean

True for nationwide holidays; false for subdivision-only holidays.

Example: true
counties
​array | null

ISO-3166-2 subdivision codes the holiday applies to, or null when nationwide.

Example: null
launchYear
​integer | null

First year the holiday was observed, when known.

Example: null
types
​string[]

Holiday type flags (e.g. Public, Bank, Optional).

Example: ["Public"]
GET/v1/next
curl 'https://api.apicodex.io/holidays/v1/next?country=<string>&apikey=<api-key>'
Example Responses
[ { "date": "2026-07-03", "localName": "Independence Day", "name": "Independence Day", "countryCode": "US", "fixed": false, "global": true, "counties": null, "launchYear": null, "types": [ "Public" ] } ]
json
application/json

Check whether a date is a public holiday

GET
https://api.apicodex.io/holidays
/v1/is-holiday

Returns whether a specific date is a public holiday in a country. The holiday field is the full matching upstream record, or null when the date is not a public holiday.

Check whether a date is a public holiday › query Parameters

country
​string · minLength: 2 · maxLength: 2 · required

ISO-3166 alpha-2 country code (case-insensitive).

Example: US
date
​string · date · required

Date to check, YYYY-MM-DD (year within 2000-2100).

Example: 2026-07-03

Check whether a date is a public holiday › Responses

Holiday-check result.

IsHolidayResponse
country
​string · required

ISO-3166 alpha-2 country code that was checked.

Example: US
date
​string · date · required

Date that was checked.

Example: 2026-07-03
is_holiday
​boolean · required

Whether the date is a public holiday.

Example: true
​object

The matching holiday record, or null when the date is not a public holiday.

GET/v1/is-holiday
curl 'https://api.apicodex.io/holidays/v1/is-holiday?country=<string>&date=<string>&apikey=<api-key>'
Example Responses
{ "country": "US", "date": "2026-07-03", "is_holiday": true, "holiday": { "date": "2026-07-03", "localName": "Independence Day", "name": "Independence Day", "countryCode": "US", "fixed": false, "global": true, "counties": null, "launchYear": null, "types": [ "Public" ] } }
json
application/json

List supported countries

GET
https://api.apicodex.io/holidays
/v1/countries

Returns the list of countries supported by the holiday dataset.

List supported countries › query Parameters

limit
​integer · min: 1 · max: 1000

Max items to return (1-1000, default 50).

Default: 50

List supported countries › Responses

Array of supported countries.

​Country[]
Country
countryCode
​string · required

ISO-3166 alpha-2 country code.

Example: US
name
​string · required

English country name.

Example: United States
GET/v1/countries
curl 'https://api.apicodex.io/holidays/v1/countries?apikey=<api-key>'
Example Responses
[ { "countryCode": "US", "name": "United States" }, { "countryCode": "GB", "name": "United Kingdom" }, { "countryCode": "DE", "name": "Germany" } ]
json
application/json