API Reference

Public Holidays

The Public Holiday API lists national holidays, religious holidays and joint leave days (cuti bersama) based on the SKB 3 Menteri decree. For 2027 it has 18 public holidays and 8 joint leave days; filter by year or month, or fetch the next 10 upcoming holidays.

Main endpoint
GET https://use.apiindonesia.id/api/v1/libur
Endpoints
3
Authentication
x-api-key header (create one free in the dashboard)
Price
2 credits (Rp2) per successful request; failed requests are free
Format
JSON (REST), with cURL, JavaScript and Python examples
Product Brief

What this API gives you

Calendar of national public holidays, religious holidays, and joint leave days based on the SKB 3 Menteri (joint ministerial decree).

Coverage
3

ready-to-use endpoints in this product, with JSON responses and consistent error handling.

Access
API key

Can be tried with the 3,000 credit signup bonus, then used in production through one API Indonesia key.

Sample resource
https://use.apiindonesia.id/api/v1/libur

Returns a list of public holidays, sorted by date. Can be filtered by year and month.

When should you use it?

The Public Holidays API is useful for apps that calculate working days, operating schedules, deadlines, SLAs, or leave calendars without manually updating holidays every year.

Due-date calculations must skip national holidays and joint leave days.

Operations teams need the same calendar across dashboards, reminders, and notifications.

HR, payroll, booking, or logistics products need to know whether a date is a working day.

For company-specific rules such as regional substitute days or shift schedules, add your own policy layer in the app.

Example product scenarios

This section separates the product page from the docs. The docs explain how to call endpoints; this page explains why the endpoints make sense for your feature.

  • HR-tech: auto-calculate employee leave balances and effective working days per month.
  • Logistics: schedule deliveries and operations around holidays and joint leave days.
  • Calendar & productivity apps: surface national holidays without manually updating them every year.

Example Usage

Request
curl "https://use.apiindonesia.id/api/v1/libur?tahun=2026" \
  -H "x-api-key: YOUR_API_KEY"
Response · 200 OK
{
  "data": [
    {
      "id": "hol_2026_001",
      "date": "2026-01-01",
      "name": "Tahun Baru 2026 Masehi",
      "type": "nasional",
      "is_joint_leave": 0,
      "description": null,
      "source": "SKB 3 Menteri",
      "year": 2026,
      "is_active": 1
    }
  ]
}

Related Articles

Pricing 2 credits (Rp2) per successful request; failed requests are free. One-time 3,000 credit signup bonus, no credit card, no monthly allowance.

Public Holidays API questions

How are national, religious and joint leave days distinguished?

Each record has a type field (nasional, keagamaan or cuti_bersama) and is_joint_leave set to 1 for joint leave days, so you can separate official holidays from cuti bersama.

How do I fetch holidays for a year or a month?

Call GET /api/v1/libur?tahun=2027 and add bulan=03 (two digits) for a single month. Results are sorted by date.

How do I show the next upcoming holidays?

GET /api/v1/libur/upcoming returns up to 10 upcoming holidays counted from today, which suits calendar widgets and reminders.

Is the holiday data available as a file?

Free JSON files for 2026 and 2027 are at apiindonesia.id/data/libur-nasional-2026.json and apiindonesia.id/data/libur-nasional-2027.json, generated from the same data as the API.

Get Started

Start Integrating
Today

Sign up for free and get a 3,000 credit bonus (Rp3,000) once your email is verified, grab an API key, and call your first endpoint right away. No credit card, no tedious approval process.

Dot wave visualization