Payroll and leave
Count the working days in a pay period or a leave request.
Read the guide →The Public Holidays API returns the official public holidays for 91 countries, taken from each government’s own decree, gazette or open-data file. Every day says whether it applies nationwide or to one region, and bank, government and collective-leave days are labelled separately.
curl --request GET \
--url "https://api.narwhalapi.com/v1/calendars/holidays/IDN/next?from_date=2026-11-01" \
--header "Authorization: Bearer $NARWHAL_API_KEY"curl --request GET \
--url "https://api.narwhalapi.com/v1/calendars/holidays/IDN/2027" \
--header "Authorization: Bearer $NARWHAL_API_KEY"{
"country": "IDN",
"coverage": [
{
"scope": "collective_leave",
"subdivision_codes": []
},
{
"scope": "national_public",
"subdivision_codes": []
}
],
"holidays": [
{
"date": "2027-01-01",
"name": "New Year’s Day",
"holiday_key": "new_years_day",
"local_name": "Tahun Baru 2027 Masehi",
"scope": "national_public",
"subdivision_codes": []
},
{
"date": "2027-01-05",
"name": "Isra and Mi’raj",
"holiday_key": "isra_and_miraj",
"local_name": "Isra Mikraj Nabi Muhammad S.A.W. 1448 Hijriah",
"scope": "national_public",
"subdivision_codes": []
},
{
"date": "2027-02-05",
"name": "Chinese New Year collective leave",
"holiday_key": "lunar_new_year",
"local_name": "Cuti Bersama Tahun Baru Imlek 2578 Kongzili",
"scope": "collective_leave",
"subdivision_codes": []
}
]
}curl --request POST \
--url "https://api.narwhalapi.com/v1/calendars/subscriptions" \
--header "Authorization: Bearer $NARWHAL_API_KEY" \
--header "Content-Type: application/json" \
--data '{"countries":["IDN"],"start_date":"2027-01-01","end_date":"2027-12-31","include_releases":false}'/v1/calendars/holidays/{country}/{year}Every holiday for one country and year, in date order. Use it to fill a calendar or plan a year of staffing.
countryrequiredThree-letter country code, such as IDN or JPN.
yearrequiredA published year, such as 2026.
scopeoptionalOnly one kind of day: national_public, regional_public, bank, collective_leave and others. Leave it out to get every kind.
datedateThe local calendar date of the holiday.
namestringThe holiday name in English.
holiday_keystringThe same key for the same holiday in every country, such as christmas_day.
local_namestringThe name in the local language, when the government publishes one.
scopestringWhat kind of day it is, such as national_public, bank or collective_leave.
subdivision_codesarrayRegions where it applies, such as GB-SCT. Empty means the whole country.
/v1/calendars/holidays/{country}/on/{date}Every holiday on one day. An empty list means a normal day. Use it before you schedule a payment or a delivery.
countryrequiredThree-letter country code, such as IDN or JPN.
daterequiredThe day to check, as YYYY-MM-DD.
scopeoptionalOnly one kind of day: national_public, regional_public, bank, collective_leave and others. Leave it out to get every kind.
datedateThe local calendar date of the holiday.
namestringThe holiday name in English.
holiday_keystringThe same key for the same holiday in every country, such as christmas_day.
local_namestringThe name in the local language, when the government publishes one.
scopestringWhat kind of day it is, such as national_public, bank or collective_leave.
subdivision_codesarrayRegions where it applies, such as GB-SCT. Empty means the whole country.
/v1/calendars/holidays/{country}/nextThe first holiday on or after a date. Use it for a countdown or a “closed next week” notice.
countryrequiredThree-letter country code, such as IDN or JPN.
from_daterequiredStart from this day, as YYYY-MM-DD. The day itself counts.
scopeoptionalOnly one kind of day: national_public, regional_public, bank, collective_leave and others. Leave it out to get every kind.
datedateThe local calendar date of the holiday.
namestringThe holiday name in English.
holiday_keystringThe same key for the same holiday in every country, such as christmas_day.
local_namestringThe name in the local language, when the government publishes one.
scopestringWhat kind of day it is, such as national_public, bank or collective_leave.
subdivision_codesarrayRegions where it applies, such as GB-SCT. Empty means the whole country.
{
"country": "IDN",
"coverage": [
{"scope": "collective_leave", "subdivision_codes": []},
{"scope": "national_public", "subdivision_codes": []}
],
"holiday": {
"date": "2026-12-24",
"name": "Christmas collective leave",
"holiday_key": "christmas_day",
"local_name": "Cuti Bersama Kelahiran Yesus Kristus",
"scope": "collective_leave",
"subdivision_codes": []
}
}Count the working days in a pay period or a leave request.
Read the guide →Add working days to an order or invoice date and skip the holidays.
Read the guide →Work out T+1 and T+2 dates around weekends and holidays.
Read the guide →See which days each office is closed before you plan a release or a meeting.
Read the guide →Cache a year of holidays and check any date without a call per request.
Read the guide →Get a yes or no for one date, with regional and observed days handled.
Read the guide →Release dates for GDP, inflation, jobs and rate decisions.
Explore the API →Know which days rates will not move, then fetch them.
Explore the API →Prepaid credit, $2 per 1,000 calls, no plans or tiers.
See pricing →91 countries for 2026, most of them for 2027 too. The coverage list shows exactly which years are published.
57 countries have a published list for 2027. Change the country code in the 2027 request above to get another one.
Where the government publishes them, yes, and every day says whether it is national or regional. Some countries cover national days only; the coverage table says which.
Not always. Public holidays, bank holidays and exchange closures can follow different calendars. Use scope to get the kind you need.
You get a clear error, not an empty list. An empty list would look like a year with no holidays.
Yes. Create a calendar subscription with one request, then paste the feed link into Google Calendar under Other calendars, From URL.
Yes. Every account gets $10 free every month, and holiday calls cost $2 per 1,000. See pricing.
Yes, through our MCP server. All three endpoints work as tools. Set up MCP.
Free $10 credits every month, no card.Free $10 credits a month, no card.