Public Holidays All docs

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/holidays

List public holidays with filters and paging.

ParameterInTypeRules
pagequeryintegermin 1 · default 1
limitqueryinteger1 to 200 · default 50
countryquerystringISO 3166-1 alpha-2
qquerystring2 to 100 chars
yearqueryinteger1900 to 2100
GET/v1/holidays
curl 'https://api.apifor.dev/v1/holidays' \
  -G -d country=AD -d limit=1 \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "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 parameters
  • 404Record not found
  • 500Dataset unavailable
GET/v1/holidays/{id}

Find public holidays by identifier.

ParameterInTypeRules
id *pathstringNone
GET/v1/holidays/{id}
curl 'https://api.apifor.dev/v1/holidays/{id}' \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "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 parameters
  • 404Record not found
  • 500Dataset unavailable

Error handling · Rate limits · Source licences