← All demos

Long Weekend Planner

Find every stretch of 3+ consecutive non-working days. Perfect for planning trips with minimum leave burned.

 
GET https://mycal-api.huijun00100101.workers.dev/v1/holidays/long-weekends?year=2026&state=selangor

What's a long weekend here?

Any run of 3 or more consecutive non-working days for the selected state. The API considers the state's weekend configuration (Kumpulan A states use Fri–Sat, Kumpulan B use Sat–Sun) and all public holidays including cuti ganti (replacement holidays) for holidays that fall on weekends.

The bridgeDaysNeeded field tells you how many days of annual leave would extend the run. Zero means it's a freebie.

See also