About this endpoint
What it does
Returns the public holidays for a specified country, optionally filtered by year.
Query Parameter(s)
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| year | Integer | No | Year to list holidays for. |
| country | String | Yes | Country code. |
Response
Returns a JSON object with a data array field. Each item in data is an object with date and name string fields representing a public holiday.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| data | Object Array | No | Array of public holiday objects. |
| data[].date | String | No | Holiday date in YYYY-MM-DD format. |
| data[].name | String | No | Holiday name in the country's primary language. |