Public holidays All docs

Indonesia Public holidays API Reference

2 routes under /v1/id/holidays. Base URL https://api.apifor.dev, authenticated with x-api-key, one credit per request.

GET/v1/id/holidays

List 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/id/holidays
curl 'https://api.apifor.dev/v1/id/holidays' \
  -G -d limit=1 \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "success": true,
  "data": [
    {
      "id": "50f187ed-9fd8-52e1-847b-bd013f40bbfc",
      "date": "2027-01-01",
      "name": "Tahun Baru 2027 Masehi",
      "type": "nasional",
      "is_joint_leave": 0,
      "description": null,
      "source": "skb-3-menteri-2027",
      "year": 2027,
      "is_active": 1,
      "created_at": "2026-10-23 08:41:56",
      "updated_at": "2026-10-23 08:41:56"
    }
  ]
}
  • 200Successful response. Pagination is explicit; no silent truncation.
  • 400Invalid query parameters
  • 404Record not found
  • 500Dataset unavailable
GET/v1/id/holidays/{id}

Find indonesia holidays by identifier.

ParameterInTypeRules
id *pathstringNone
GET/v1/id/holidays/{id}
curl 'https://api.apifor.dev/v1/id/holidays/{id}' \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "success": true,
  "data": {
    "id": "50f187ed-9fd8-52e1-847b-bd013f40bbfc",
    "date": "2027-01-01",
    "name": "Tahun Baru 2027 Masehi",
    "type": "nasional",
    "is_joint_leave": 0,
    "description": null,
    "source": "skb-3-menteri-2027",
    "year": 2027,
    "is_active": 1,
    "created_at": "2026-10-23 08:41:56",
    "updated_at": "2026-10-23 08:41:56"
  }
}
  • 200Successful response. Pagination is explicit; no silent truncation.
  • 400Invalid query parameters
  • 404Record not found
  • 500Dataset unavailable

Error handling · Rate limits · Source licences