curl --request GET \
--url https://api.bilauitmcuti.com/api/v1/public-holidayimport requests
url = "https://api.bilauitmcuti.com/api/v1/public-holiday"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.bilauitmcuti.com/api/v1/public-holiday', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.bilauitmcuti.com/api/v1/public-holiday",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bilauitmcuti.com/api/v1/public-holiday"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.bilauitmcuti.com/api/v1/public-holiday")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bilauitmcuti.com/api/v1/public-holiday")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"apiVersion": "1",
"baseUrl": "https://api.bilauitmcuti.com",
"defaultYear": 2026,
"yearOptions": [
{
"value": 2026,
"label": "2026"
}
],
"query": {
"year": 2026,
"state": "selangor",
"coverage": null
},
"total": 1,
"meta": {
"nationwideTotal": 0,
"dateRange": {
"startDate": "2026-12-11",
"endDate": "2026-12-11"
},
"stateTotals": [
{
"state": "selangor",
"label": "Selangor",
"total": 1
}
]
},
"holidays": [
{
"id": "selangor-ruler-birthday",
"name": "Birthday of Sultan of Selangor",
"date": "2026-12-11",
"day": "Friday",
"states": [
"selangor"
],
"isSubjectToChange": false
}
]
}{
"error": "<string>",
"detail": "<string>",
"retryAfter": 123
}{
"error": "<string>",
"detail": "<string>",
"retryAfter": 123
}Malaysia Public Holidays
Returns Malaysia public holiday rows from public-holiday.json. Optional year scopes rows to a calendar year (defaults to defaultYear from the dataset, currently 2026 while that year is published). Optional coverage selects the full dataset for that year, nationwide-only rows, or (by default) you can filter with state for one of 16 states/territories. This endpoint focuses on holiday results and aggregates (including meta.dateRange); use /api/v1/public-holiday/meta for option lists only.
curl --request GET \
--url https://api.bilauitmcuti.com/api/v1/public-holidayimport requests
url = "https://api.bilauitmcuti.com/api/v1/public-holiday"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.bilauitmcuti.com/api/v1/public-holiday', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.bilauitmcuti.com/api/v1/public-holiday",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bilauitmcuti.com/api/v1/public-holiday"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.bilauitmcuti.com/api/v1/public-holiday")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bilauitmcuti.com/api/v1/public-holiday")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"apiVersion": "1",
"baseUrl": "https://api.bilauitmcuti.com",
"defaultYear": 2026,
"yearOptions": [
{
"value": 2026,
"label": "2026"
}
],
"query": {
"year": 2026,
"state": "selangor",
"coverage": null
},
"total": 1,
"meta": {
"nationwideTotal": 0,
"dateRange": {
"startDate": "2026-12-11",
"endDate": "2026-12-11"
},
"stateTotals": [
{
"state": "selangor",
"label": "Selangor",
"total": 1
}
]
},
"holidays": [
{
"id": "selangor-ruler-birthday",
"name": "Birthday of Sultan of Selangor",
"date": "2026-12-11",
"day": "Friday",
"states": [
"selangor"
],
"isSubjectToChange": false
}
]
}{
"error": "<string>",
"detail": "<string>",
"retryAfter": 123
}{
"error": "<string>",
"detail": "<string>",
"retryAfter": 123
}Query Parameters
Geographic coverage preset. all returns every row (ignores state). nationwide returns only rows where states lists all 16 territories (nationwide holidays). Omit to use optional state filtering: with state, returns nationwide rows plus rows that include that territory.
all, nationwide State/territory filter (slug format). Ignored when coverage=all. Accepted values: johor, kedah, kelantan, melaka, negeri-sembilan, pahang, perak, perlis, pulau-pinang, sabah, sarawak, selangor, terengganu, kuala-lumpur, labuan, putrajaya.
johor, kedah, kelantan, melaka, negeri-sembilan, pahang, perak, perlis, pulau-pinang, sabah, sarawak, selangor, terengganu, kuala-lumpur, labuan, putrajaya Response
Malaysia public holiday list with optional year, coverage, and state filters. Nationwide rows list all 16 territory slugs. Use /api/v1/public-holiday/meta for filter options.
Was this page helpful?