What it does
The Public Holidays API returns the holidays of a country or stock exchange calendar. List every holiday in a year, get the next holidays after a date, or check whether one date is a holiday, a weekend day or a business day.
To list a year, call GET /v1/holidays/:year/:country with a year from 1900 to 2100 and a country code such as US. For the next holidays, call GET /v1/holidays/upcoming and set count (1 to 50, default 5) and after. Results stay within three years. To check one date, call GET /v1/holidays/check with date and a country or market.
Each holiday includes its date, weekday, English name, local name, categories, and whether an observance rule moved it. Set language for names in another language. Add subdivision for state, province or regional holidays. Use categories to include bank, government, optional or religious days. Use observed to switch observed dates on or off. Official weekend workdays, such as China's swapped working days, count as business days. Dates use YYYY-MM-DD and default to today in UTC.
Teams use the Public Holidays API in calendar and scheduling apps, HR and payroll tools, delivery estimates, and any feature that needs to know when people are off work.
To move dates by working days, use the Calculate Business Days Across Countries and Markets API. For exchange closures, use the Stock Exchange Calendars API.