Public holidays
public_holidaysRetrieve national and bank holidays for a country and year (207 countries, 2000–2050) to build holiday calendars, check office closures, or test if a date is a holiday.
Instructions
List public holidays (bank holidays, national holidays) for a country and year: 207 countries, 2000–2050. Use for holiday calendars, office closures and checking if a date is a holiday. Lunar or government-proclaimed dates are rule-based estimates. First 25 calls per day are free, then $0.001 per call (x402).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | Defaults to the current year | |
| country | Yes | ISO 3166-1 alpha-2 country code (207 countries); its public holidays (2000–2050) are excluded from business days |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | ||
| year | Yes | ||
| count | Yes | ||
| source | No | Data attribution | |
| country | Yes | ||
| holidays | Yes | ||
| country_name | No |