get_holidays
Retrieve public and bank holidays for 100+ countries, determine if a date is a business day, and find the next and previous business days across year boundaries.
Instructions
Public and bank holidays for 100+ countries, and the business-day question behind them. Pass a date and it answers directly whether that date is a business day and what the next and previous ones are, counting weekends and holidays and walking across year boundaries. Without a date it returns the whole year, including which regions observe a non-national holiday. Regional closures, half-days and market trading calendars are not covered.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | YYYY-MM-DD. Adds isBusinessDay plus next/previous business days. | |
| year | No | Calendar year 1975..2100. Default: current year. Ignored when date is given. | |
| country | Yes | ISO 3166-1 alpha-2 country code, e.g. US, GB, DE, JP. |