docs / holidays

Holidays & Workdays

Public holidays and business-day calculations.

base /holidays/v16 endpoints
post/holidays/v1/holidays1 credit

public holidays for a country + year (full Nager fields + derived year/weekday/nationwide)

ParameterAllowed / rangeDescription
countryrequired2-letter ISO-3166 country code (e.g. US, GB, DE, TR, JP). 123 countries supported — call action='countries' for the full set. Case-insensitive.
yearrequired1900–22004-digit year (supported range 1900-2200).
Try in playground →
post/holidays/v1/is_workday1 credit

is a given date a working day for a country? (weekend + public-holiday aware; reasons[] explain)

ParameterAllowed / rangeDescription
countryrequired2-letter ISO-3166 country code (e.g. US, GB, DE, TR, JP). 123 countries supported — call action='countries' for the full set. Case-insensitive.
daterequiredThe date to test, in ISO format YYYY-MM-DD.
weekendoptionalOverride the weekend definition with day names (e.g. 'Sat,Sun' or 'Fri,Sat'). Defaults to Sat+Sun (Fri+Sat for EG/BD).
typesoptionalPublic · Bank · School · Authorities · Optional · ObservanceWhich holiday types count as a day off (comma-separated, case-insensitive). Defaults to Public only.
subdivisionoptionalOptional ISO-3166-2 subdivision code (e.g. US-CA, GB-SCT) for region-precise business days. Omit for nationwide. Case-insensitive.
Try in playground →
post/holidays/v1/workday_count1 credit

business-day count over a date range: workdays/weekend_days/holiday_days + the holidays in range

ParameterAllowed / rangeDescription
countryrequired2-letter ISO-3166 country code (e.g. US, GB, DE, TR, JP). 123 countries supported — call action='countries' for the full set. Case-insensitive.
startrequiredRange start date (inclusive), ISO YYYY-MM-DD.
endrequiredRange end date (inclusive), ISO YYYY-MM-DD. Max range ~10 years.
weekendoptionalOverride the weekend definition with day names (e.g. 'Sat,Sun' or 'Fri,Sat'). Defaults to Sat+Sun (Fri+Sat for EG/BD).
typesoptionalPublic · Bank · School · Authorities · Optional · ObservanceWhich holiday types count as a day off (comma-separated, case-insensitive). Defaults to Public only.
subdivisionoptionalOptional ISO-3166-2 subdivision code (e.g. US-CA, GB-SCT) for region-precise business days. Omit for nationwide. Case-insensitive.
Try in playground →
post/holidays/v1/next_holidays1 credit

upcoming public holidays (next ~365 days) with daysUntil

ParameterAllowed / rangeDescription
countryrequired2-letter ISO-3166 country code (e.g. US, GB, DE, TR, JP). 123 countries supported — call action='countries' for the full set. Case-insensitive.
todayoptionalOptional 'as of' date (ISO YYYY-MM-DD) to compute daysUntil from; defaults to the current UTC date.
Try in playground →
post/holidays/v1/long_weekends1 credit

long-weekend windows for a country + year (+ bridge-day suggestions)

ParameterAllowed / rangeDescription
countryrequired2-letter ISO-3166 country code (e.g. US, GB, DE, TR, JP). 123 countries supported — call action='countries' for the full set. Case-insensitive.
yearrequired1900–22004-digit year (supported range 1900-2200).
Try in playground →
post/holidays/v1/countriesfree

the supported country set (code → name)

Try in playground →