GET /api/v3/PublicHolidays/2026/US • HTTP 200 OK

Public Holidays Calendar API Example — Request & Response Example

Demonstrates a localization API returning regional public holidays with localized names and dates.

1. HTTP Client Request (GET)

GET /api/v3/PublicHolidays/2026/US HTTP/1.1
{
  "Accept": "application/json"
}

2. Server JSON Response (HTTP 200 OK)

[
  {
    "date": "2026-01-01",
    "localName": "New Year's Day",
    "name": "New Year's Day",
    "countryCode": "US",
    "fixed": true,
    "global": true
  },
  {
    "date": "2026-07-04",
    "localName": "Independence Day",
    "name": "Independence Day",
    "countryCode": "US",
    "fixed": true,
    "global": true
  }
]

Copy-Paste Code Snippets (cURL, JavaScript Fetch, Python, Node.js)

curl "https://date.nager.at/api/v3/PublicHolidays/2026/US"
fetch('https://date.nager.at/api/v3/PublicHolidays/2026/US')
  .then(res => res.json())
  .then(holidays => console.log(holidays));
import requests

res = requests.get('https://date.nager.at/api/v3/PublicHolidays/2026/US')
print(res.json()[0])

How This API Call Works Step-by-Step

  1. 1. Dynamic path tokens: 2026 and US.
  2. 2. Calendar engine checks statutory observance dates.
  3. 3. Array of holidays returned sorted chronologically.

Backend API Functions: The API function getPublicHolidays(year, countryCode) validates ISO country codes and queries international holiday observance schedules.

Frequently Asked Questions

How do international apps handle holidays?

By querying localized holiday APIs, international payroll and scheduling software dynamically adjust business days and SLAs across 190+ countries.