Public Holidays API Reference
2 routes under /v1/holidays. Base URL https://api.apifor.dev, authenticated with x-api-key, one credit per request. Coverage and licence are on the Public Holidays page.
GET
/v1/holidaysList public holidays with filters and paging.
| Parameter | In | Type | Rules |
|---|---|---|---|
| page | query | integer | min 1 · default 1 |
| limit | query | integer | 1 to 200 · default 50 |
| country | query | string | ISO 3166-1 alpha-2 |
| q | query | string | 2 to 100 chars |
| year | query | integer | 1900 to 2100 |
curl 'https://api.apifor.dev/v1/holidays' \
-G -d country=AD -d limit=1 \
-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
}
]
}200Successful response. Pagination is explicit; no silent truncation.400Invalid query parameters404Record not found500Dataset unavailable
GET
/v1/holidays/{id}Find public holidays by identifier.
| Parameter | In | Type | Rules |
|---|---|---|---|
| id * | path | string | None |
curl 'https://api.apifor.dev/v1/holidays/{id}' \
-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
}
}200Successful response. Pagination is explicit; no silent truncation.400Invalid query parameters404Record not found500Dataset unavailable