Nager.Date API: Check public holiday
Checks whether a date is a public holiday or weekend in a country. By default only nationwide holidays count; give a region to include holidays observed there.
Unofficial. Not affiliated with or endorsed by Nager.Date.
Inputs
Values from the run on Oct 31, 2026, shown under Output.
- Date, required
date Date to check in YYYY-MM-DD format, for example 2026-07-14.
2026-01-06
- Region optional
region Optional state or province name or subdivision code, for example Bavaria or DE-BY. Omit to check nationwide holidays only.
Bavaria
Default
.- Country, required
country Country name or two-letter country code, for example France or FR.
Germany
Input as JSON
{ "date": "2026-01-06", "region": "Bavaria", "country": "Germany"}Output
{ "date": "2026-01-06", "region": "Bavaria", "country": "Germany", "weekday": "Tuesday", "holidays": [ { "regions": [ "Baden-Württemberg", "Bavaria", "Saxony-Anhalt" ], "page_link": "https://date.nager.at/PublicHoliday/Germany/2026" , "local_name": "Heilige Drei Könige", "nationwide": false, "english_name": "Epiphany", "region_codes": [ "DE-BW", "DE-BY", "DE-ST" ] } ], "is_weekend": false, "is_public_holiday": true}Code
curl https://api.fous.com/v1/runs \ -H "Authorization: Bearer $FOUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{"method":"date.nager.at/check_public_holiday","input":{"date":"2026-01-06","region":"Bavaria","country":"Germany"}}' # Save as fous.py, then run: python3 fous.pyimport json, os, timefrom urllib.error import HTTPErrorfrom urllib.request import Request, urlopenAPI = "https://api.fous.com/v1/runs" KEY = os.environ["FOUS_API_KEY"]HEADERS = { "Authorization": f"Bearer {KEY}", "Content-Type": "application/json" ,}def call(url, body=None): data = json.dumps(body).encode() if body else None request = Request(url, data, HEADERS) try: with urlopen(request, timeout=120) as r: return r.status, json.load(r) except HTTPError as error: message = json.load(error)["error"]["message"] raise RuntimeError(message) from errorstatus, run = call(API, { "method": "date.nager.at/check_public_holiday" , "input": { "date": "2026-01-06", "region": "Bavaria", "country": "Germany" }})# 202: still going after 30 s. Ask again until it ends.while status == 202: time.sleep(2) status, run = call(f"{API}/{run['id']}")print(json.dumps(run["data"], indent=2))// Save as fous.mjs, then run: node fous.mjsconst api = "https://api.fous.com/v1/runs" ;const headers = { Authorization: `Bearer ${process.env.FOUS_API_KEY}`, "Content-Type": "application/json" ,};let response = await fetch(api, { method: "POST", headers, body: JSON.stringify({ "method": "date.nager.at/check_public_holiday" , "input": { "date": "2026-01-06", "region": "Bavaria", "country": "Germany" } }), signal: AbortSignal.timeout(120_000),});let run = await response.json();// 202: still going after 30 s. Ask again until it ends.while (response.status === 202) { await new Promise((done) => setTimeout(done, 2_000)); response = await fetch(`${api}/${run.id}`, { headers }); run = await response.json();}if (!response.ok) throw new Error(run.error.message);console.log(run.data);# Connect your agent to Fous once, over MCP (Streamable HTTP):# https://api.fous.com/mcp# Set FOUS_API_KEY first: create a key at https://app.fous.com/keys.# Claude Codeclaude mcp add \ --scope user \ --transport http fous https://api.fous.com/mcp \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Codexcodex mcp add fous \ --url https://api.fous.com/mcp \ --bearer-token-env-var FOUS_API_KEY# Cursor, VS Code, Windsurf, Cline and morenpx -y add-mcp https://api.fous.com/mcp -g -n fous \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Then ask your agent:# "Use Fous to run date.nager.at/check_public_holiday# with {"date":"2026-01-06","region":"Bavaria","country":"Germany"}"Over HTTP, the answer’s data holds the output. A run still going after 30 seconds answers 202 with its id: ask GET /v1/runs/{id} until it ends.
Schema
Input schema
{ "type": "object", "required": [ "country", "date" ], "properties": { "date": { "type": "string", "description": "Date to check in YYYY-MM-DD format, for example 2026-07-14." }, "region": { "type": "string", "default": "", "description": "Optional state or province name or subdivision code, for example Bavaria or DE-BY. Omit to check nationwide holidays only." }, "country": { "type": "string", "description": "Country name or two-letter country code, for example France or FR." } }}Output schema
{ "type": "object", "required": [ "country", "date", "weekday", "region", "is_public_holiday", "is_weekend", "holidays" ], "properties": { "date": { "type": "string", "format": "date", "description": "Date checked." }, "region": { "type": [ "string", "null" ], "description": "Region checked, or null for nationwide only." }, "country": { "type": "string", "description": "Country name." }, "weekday": { "type": "string", "description": "Day of the week." }, "holidays": { "type": "array", "items": { "type": "object", "required": [ "english_name", "local_name", "nationwide", "regions", "region_codes", "page_link" ], "properties": { "regions": { "type": "array", "items": { "type": "string" }, "description": "Regions where a regional holiday applies; empty for nationwide holidays." }, "page_link": { "type": "string", "description": "Page for the country's holiday calendar." }, "local_name": { "type": "string", "description": "Holiday name in the local language." }, "nationwide": { "type": "boolean", "description": "Whether the holiday applies nationwide." }, "english_name": { "type": "string", "description": "Holiday name in English." }, "region_codes": { "type": "array", "items": { "type": "string" }, "description": "Official subdivision codes for applicable regions." } }, "additionalProperties": false }, "description": "Applicable public holidays on the date; empty if none." }, "is_weekend": { "type": "boolean", "description": "Whether the date falls on Saturday or Sunday." }, "is_public_holiday": { "type": "boolean", "description": "Whether the date has an applicable public holiday." } }, "additionalProperties": false}- Price
- 1 credit per completed run (1¢ with pay as you go); failed runs are free.
- Method
date.nager.at/check_public_holiday- Returns
- country, date, weekday, region, is public holiday, is weekend, holidays with names, regions and calendar link
Use it from your agent
Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method date.nager.at/check_public_holiday with the inputs above.
Ask your agent
- Is 2026-10-03 a public holiday in Germany?
- Will banks in Quebec be closed on June 24, 2025 for a holiday?
- Using nager.at, check whether 2025-12-26 is a holiday or weekend in AU-NSW.
- I'm planning a delivery to Spain on 2026-05-02 in Madrid — is that a day off there?
- Check on Nager.Date if July 4, 2027 falls on a weekend or public holiday in the US.
See more
All Nager.Date methodsLists a country's public holidays for a year from Nager.Date, with local names, regional coverage and holiday types.
date.nager.at/list_public_holidaysLooks up a country on Nager.Date by name or two-letter code and returns its common and official names, code, region and land-border neighbours.
date.nager.at/get_country_infoCounts weekdays between two dates, excluding nationwide public holidays or, optionally, public holidays in a state or province, from Time and Date's published holiday calendar.
timeanddate.com/count_business_daysLists GOV.UK bank holidays for a UK region and year, including substitute days and notes, plus the next upcoming holiday. Years GOV.UK does not publish return an empty list and the published years.
gov.uk/list_bank_holidaysGets daily sunrise, sunset, solar noon, day length and civil twilight for a place from Time and Date, for one or more consecutive days. Times are local with UTC offset; days without sunrise or sunset are marked.
timeanddate.com/get_sunrise_and_sunsetGets the official ECB euro reference exchange rates for a day, or the latest published day. Weekends, holidays and dates before publication return the previous published day.
ecb.europa.eu/get_euro_exchange_ratesReturns Wikipedia's On this day events, births, deaths and holidays for a month and day, in a chosen Wikipedia language; events, births and deaths come newest year first.
wikipedia.org/get_on_this_dayConverts a meeting time in one city to local times in other cities, with time zones and 09:00-17:00 working-hours status. Supports dates from 1970 to 2030; ambiguous clock-change times use the first occurrence.
timeanddate.com/convert_time_between_cities