Complete REST API specification & Node.js Module SDK documentation for 300+ Sri Lankan public, bank, and Poya holidays (2024–2035). Free, open-source, zero authentication required.
100% offline-ready TypeScript SDK with 28 helper methods for zero-latency local queries.
API v2 / v3 Beta endpoint featuring full-text search, multi-field filtering, sorting (date_asc, date_desc, name_asc), Poya flag, and page-based pagination.
| Parameter | Type | Required | Description |
|---|---|---|---|
| search | query string | Optional | Full-text search keyword (matches name, description, date) |
| year | integer | Optional | Filter by year (2024 to 2045) |
| month | integer | Optional | Filter by month number (1 to 12) |
| type | string | Optional | Filter by holiday type: buddhist, hindu, islamic, christian, national, international |
| isPoya | boolean | Optional | Set to true to filter only Full Moon Poya days |
| sort | string | Optional | Sort direction: date_asc, date_desc, name_asc, name_desc. Default: date_asc |
| page | integer | Optional | Page number for pagination. Default: 1 |
| limit | integer | Optional | Results per page (1 to 200). Default: 50 |
fetch("https://holiday.imrishmika.dev/api/v2/holidays?search=poya&sort=date_asc&limit=10")
.then(res => res.json())
.then(data => console.log(data));{
"success": true,
"apiVersion": "3.0.0-beta",
"pagination": {
"total": 12,
"page": 1,
"limit": 10,
"totalPages": 2,
"hasNextPage": true,
"hasPrevPage": false
},
"data": [
{
"id": "2026-01-03-duruthu-full-moon-poya-day",
"name": "Duruthu Full Moon Poya Day",
"date": "2026-01-03",
"year": 2026,
"month": 1,
"day": 3,
"dayOfWeek": "Saturday",
"type": "buddhist",
"category": "public_and_bank",
"isPublicHoliday": true,
"isBankHoliday": true
}
],
"meta": {
"timezone": "Asia/Colombo",
"filtersApplied": {
"search": "poya",
"sort": "date_asc"
}
}
}