GET ./holidays

Tags: simple query

The method also supports additional filtering through query parameters. The query parameters are processed by the api_query library. The supported query parameters include:

Obs: holIsGlobal is the flag for identify the global holidays.

GET parameters

NameValue TypeValidationDetails
holIDstringOptionalFilter holidays by their ID.
startDaterfc_dateRequiredFilter holidays having data > startDate.
endDaterfc_dateRequiredFilter holidays having data < endDate

Validation

Error FieldError CodeError Message
startDate102The date in invalid.
endDate103The date in invalid.
endDate104The end date must be higher than start date.

Output example

{
"meta": {
"countTotal": "0",
"countData": "3",
"countOffset": ""
},
"data": [
{
"holID": "lwWrpQ",
"holName": "1 Mai",
"holDate": "2024-03-01",
"holIsGlobal": "0",
"holCountryCod": null
},
{
"holID": "2fVACv",
"holName": "Paste22 updated 2 22",
"holCountryID": "3",
"holDate": "2024-03-02",
"holIsGlobal": "1",
"holCountryCod": "IT"
},
{
"holID": "4O52ya",
"holName": "Paste",
"holCountryID": "1",
"holDate": "2024-03-02",
"holIsGlobal": "1",
"holCountryCod": "RO"
}
]
}