Returns the catalogue of supported holiday categories — countries with their regions — that a user can subscribe to.
Each entry is a country identified by an ISO-style key (e.g. DE, FR), with a regions array of its sub-divisions. A country with no sub-divisions returns an empty regions array.
Use search to filter countries by name. To subscribe to a whole country, post categoryType: country with the country key.
curl --request GET \
--url https://api.zeeg.me/v2/holidays/categories \
--header 'Authorization: Bearer <token>'{
"collection": [
{
"key": "DE",
"name": "Germany",
"regions": [
{
"key": "DE-BY",
"name": "Bavaria"
},
{
"key": "DE-BE",
"name": "Berlin"
}
]
},
{
"key": "FR",
"name": "France",
"regions": []
}
]
}Optional case-insensitive substring filter on country name.
100"germany"
OK
Supported countries with their regions.
Hide child attributes
curl --request GET \
--url https://api.zeeg.me/v2/holidays/categories \
--header 'Authorization: Bearer <token>'{
"collection": [
{
"key": "DE",
"name": "Germany",
"regions": [
{
"key": "DE-BY",
"name": "Bavaria"
},
{
"key": "DE-BE",
"name": "Berlin"
}
]
},
{
"key": "FR",
"name": "France",
"regions": []
}
]
}