Skip to contents

Retrieves the list of official public holidays in Indonesia for a specific year using the Nager.Date public holidays API. This function returns a tibble containing the date of the holiday, the name in the local language (Indonesian), and the English name. It is useful for academic, planning, and data analysis purposes. The information is retrieved directly from the Nager.Date API and reflects the current status of holidays for the requested year. The field names returned are consistent with the API structure.

Usage

get_indonesia_holidays(year)

Source

Data obtained from the Nager.Date API: https://date.nager.at/

Arguments

year

An integer indicating the year (e.g., 2024 or 2025).

Value

A tibble with the following columns:

  • date: Date of the holiday (class Date)

  • local_name: Holiday name in the local language (Indonesian)

  • name: Holiday name in English

Examples

get_indonesia_holidays(2024)
#> # A tibble: 8 × 3
#>   date       local_name                                      name            
#>   <date>     <chr>                                           <chr>           
#> 1 2024-01-01 Tahun Baru Masehi                               New Year's Day  
#> 2 2024-03-29 Wafat Isa Almasih                               Good Friday     
#> 3 2024-03-31 Paskah                                          Easter Sunday   
#> 4 2024-05-01 Hari Buruh Internasional                        Labour Day      
#> 5 2024-05-09 Kenaikan Isa Almasih                            Ascension Day   
#> 6 2024-06-01 Hari Lahir Pancasila                            Pancasila Day   
#> 7 2024-08-17 Hari Ulang Tahun Kemerdekaan Republik Indonesia Independence Day
#> 8 2024-12-25 Hari Raya Natal                                 Christmas Day   
get_indonesia_holidays(2025)
#> # A tibble: 8 × 3
#>   date       local_name                                      name            
#>   <date>     <chr>                                           <chr>           
#> 1 2025-01-01 Tahun Baru Masehi                               New Year's Day  
#> 2 2025-04-18 Wafat Isa Almasih                               Good Friday     
#> 3 2025-04-20 Paskah                                          Easter Sunday   
#> 4 2025-05-01 Hari Buruh Internasional                        Labour Day      
#> 5 2025-05-29 Kenaikan Isa Almasih                            Ascension Day   
#> 6 2025-06-01 Hari Lahir Pancasila                            Pancasila Day   
#> 7 2025-08-17 Hari Ulang Tahun Kemerdekaan Republik Indonesia Independence Day
#> 8 2025-12-25 Hari Raya Natal                                 Christmas Day