All APIs

Public Holidays API

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.

Online99.99% uptime, last 30 days285 ms typical response

First request

Find the next holiday

curl --request GET \
  --url "https://api.narwhalapi.com/v1/calendars/holidays/IDN/next?from_date=2026-11-01" \
  --header "Authorization: Bearer $NARWHAL_API_KEY"

Get the 2027 public holidays for Indonesia

curl --request GET \
  --url "https://api.narwhalapi.com/v1/calendars/holidays/IDN/2027" \
  --header "Authorization: Bearer $NARWHAL_API_KEY"
Example response
{
  "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": []
    }
  ]
}

Calendar subscriptions

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}'

Endpoints

GETList a published holiday year/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.

Parameters

  • countryrequired

    Three-letter country code, such as IDN or JPN.

  • yearrequired

    A published year, such as 2026.

  • scopeoptional

    Only one kind of day: national_public, regional_public, bank, collective_leave and others. Leave it out to get every kind.

Each holiday in the list

  • datedate

    The local calendar date of the holiday.

  • namestring

    The holiday name in English.

  • holiday_keystring

    The same key for the same holiday in every country, such as christmas_day.

  • local_namestring

    The name in the local language, when the government publishes one.

  • scopestring

    What kind of day it is, such as national_public, bank or collective_leave.

  • subdivision_codesarray

    Regions where it applies, such as GB-SCT. Empty means the whole country.


Full reference →
GETFind holidays on a date/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.

Parameters

  • countryrequired

    Three-letter country code, such as IDN or JPN.

  • daterequired

    The day to check, as YYYY-MM-DD.

  • scopeoptional

    Only one kind of day: national_public, regional_public, bank, collective_leave and others. Leave it out to get every kind.

Each holiday in the list

  • datedate

    The local calendar date of the holiday.

  • namestring

    The holiday name in English.

  • holiday_keystring

    The same key for the same holiday in every country, such as christmas_day.

  • local_namestring

    The name in the local language, when the government publishes one.

  • scopestring

    What kind of day it is, such as national_public, bank or collective_leave.

  • subdivision_codesarray

    Regions where it applies, such as GB-SCT. Empty means the whole country.


Full reference →
GETFind the next holiday/v1/calendars/holidays/{country}/next

The first holiday on or after a date. Use it for a countdown or a “closed next week” notice.

Parameters

  • countryrequired

    Three-letter country code, such as IDN or JPN.

  • from_daterequired

    Start from this day, as YYYY-MM-DD. The day itself counts.

  • scopeoptional

    Only one kind of day: national_public, regional_public, bank, collective_leave and others. Leave it out to get every kind.

The holiday

  • datedate

    The local calendar date of the holiday.

  • namestring

    The holiday name in English.

  • holiday_keystring

    The same key for the same holiday in every country, such as christmas_day.

  • local_namestring

    The name in the local language, when the government publishes one.

  • scopestring

    What kind of day it is, such as national_public, bank or collective_leave.

  • subdivision_codesarray

    Regions where it applies, such as GB-SCT. Empty means the whole country.


Full reference →

Try it live

GET https://api.narwhalapi.com/v1/calendars/holidays/IDN/next?from_date=2026-11-01
{
  "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": []
  }
}

Use cases

Payroll and leave

Count the working days in a pay period or a leave request.

Read the guide →

Due dates and delivery

Add working days to an order or invoice date and skip the holidays.

Read the guide →

Trade settlement

Work out T+1 and T+2 dates around weekends and holidays.

Read the guide →

Teams in several countries

See which days each office is closed before you plan a release or a meeting.

Read the guide →

Holiday checks in your app

Cache a year of holidays and check any date without a call per request.

Read the guide →

Is this date a holiday?

Get a yes or no for one date, with regional and observed days handled.

Read the guide →

Coverage

Show all 91 countries

Sources

Show all 91 sources

Related APIs

Economic calendar API

Release dates for GDP, inflation, jobs and rate decisions.

Explore the API →

Pricing

Prepaid credit, $2 per 1,000 calls, no plans or tiers.

See pricing →

FAQ

Which countries and years can I get?

91 countries for 2026, most of them for 2027 too. The coverage list shows exactly which years are published.

Which countries have public holidays for 2027?

57 countries have a published list for 2027. Change the country code in the 2027 request above to get another one.

Are regional holidays included?

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.

Does a public holiday mean banks or markets are closed?

Not always. Public holidays, bank holidays and exchange closures can follow different calendars. Use scope to get the kind you need.

What happens if a country or year is missing?

You get a clear error, not an empty list. An empty list would look like a year with no holidays.

Can I add holidays to Google Calendar?

Yes. Create a calendar subscription with one request, then paste the feed link into Google Calendar under Other calendars, From URL.

Is there free credit?

Yes. Every account gets $10 free every month, and holiday calls cost $2 per 1,000. See pricing.

Can I use it from Claude, ChatGPT or Cursor?

Yes, through our MCP server. All three endpoints work as tools. Set up MCP.