API Documentation

Halo para pengoding 🎉

Yuk, kenalan sama API Tanggal Merah dari Harli! Buat kamu yang pengen tau kapan waktu yang pas buat liburan atau cuma mau nandain kalender, kita punya jawabannya!

API Base URL: https://harli.mgkusumaputra.me

Seluruh Hari Libur

GET

https://harli.mgkusumaputra.me/api

Contoh Request:

GET /api HTTP/1.1
Content-Type: application/json
Host: https://harli.mgkusumaputra.me

Hari Libur Terdekat

GET

https://harli.mgkusumaputra.me/api/nearest

Contoh Request:

GET /api/nearest HTTP/1.1
Content-Type: application/json
Host: https://harli.mgkusumaputra.me

Filter Tahun

GET

https://harli.mgkusumaputra.me/api?year="yyyy"

Contoh Request:

GET /api?year="2024" HTTP/1.1
Content-Type: application/json
Host: https://harli.mgkusumaputra.me

Filter Bulan

GET

https://harli.mgkusumaputra.me/api?month="mm"

Contoh Request:

GET /api?month="01" HTTP/1.1
Content-Type: application/json
Host: https://harli.mgkusumaputra.me

Filter Cuti Bersama

GET

https://harli.mgkusumaputra.me/api?includeCuti=true

Contoh Request:

GET /api?month="2024"&includeCuti=true HTTP/1.1
Content-Type: application/json
Host: https://harli.mgkusumaputra.me