Comoros Public Holidays API
25 public holidays for Comoros, from Nager.Date. Filter the collection with country=KM and you get the same JSON shape as every other country.
Request and response
Add country filtering to the collection endpoint and you get Comoros records back. The response below is the example from our OpenAPI document, so it shows the exact shape you get, though the record itself may come from another country.
curl 'https://api.apifor.dev/v1/holidays' \
-G -d country=KM \
-H 'x-api-key: YOUR_API_KEY'{
"success": true,
"data": [
{
"id": 1,
"country_code": "AD",
"date": "2024-01-01",
"year": 2024,
"local_name": "Any nou",
"name": "New Year's Day",
"is_global": 1,
"is_fixed": 0,
"counties": null,
"types": "Public",
"launch_year": null
}
]
}Fields
Each record in data has these fields. Types are read from the example values; a nullable field can hold null for some records.
| Field | Type | Example |
|---|---|---|
| id | integer | 1 |
| country_code | string | "AD" |
| date | string (date) | "2024-01-01" |
| year | integer | 2024 |
| local_name | string | "Any nou" |
| name | string | "New Year's Day" |
| is_global | integer | 1 |
| is_fixed | integer | 0 |
| counties | nullable | null |
| types | string | "Public" |
| launch_year | nullable | null |
Filters and paging
Query parameters accepted by GET /v1/holidays. Full detail, including the single-record route, is in the endpoint reference.
| Parameter | Type | Rules |
|---|---|---|
| page | integer | min 1 · default 1 |
| limit | integer | 1 to 200 · default 50 |
| country | string | ISO 3166-1 alpha-2 |
| q | string | 2 to 100 chars |
| year | integer | 1900 to 2100 |