Skip to main content

Public holiday lookup with Nager.Date API via webhook

Workflow preview

Workflow preview
100%
Public holiday lookup with Nager.Date API via webhook preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This n8n template empowers you to instantly fetch a list of public holidays for any given year and country using the Nager.Date API. This is incredibly useful for scheduling, planning, or integrati...

Best for

  • Personal Productivity automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.httprequest, n8n-nodes-base.webhook, n8n-nodes-base.respondtowebhook

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by ist00dent.

Original n8n.io source

1.1 Workflow description

Title
Public holiday lookup with Nager.Date API via webhook
Workflow name
Public holiday lookup with Nager.Date API via webhook

This n8n template empowers you to instantly fetch a list of public holidays for any given year and country using the Nager.Date API. This is incredibly useful for scheduling, planning, or integrating holiday data into various business and personal automation workflows.


๐Ÿ”ง How it works

  • Receive Holiday Request Webhook: This node acts as the entry point, listening for incoming POST requests. It expects a JSON body containing the year (e.g., 2025) and countryCode (e.g., US for United States, PH for Philippines, DE for Germany) for which you want to retrieve public holidays.
  • Get Public Holidays: This node makes an HTTP GET request to the Nager.Date API (date.nager.at). It dynamically uses the year and countryCode from your webhook request to query the API. The API responds with a JSON array, where each object represents a public holiday with details like its date, name, and type.
  • Respond with Holiday Data: This node sends the full list of public holidays received from Nager.Date back to the service that initiated the webhook.

๐Ÿ‘ค Who is it for?

This workflow is ideal for:

  • Businesses with International Operations: Automatically check holidays for different country branches to adjust production schedules, customer service hours, or delivery estimates.
  • HR & Payroll Departments: Accurately calculate workdays, plan leave schedules, or process payroll taking public holidays into account.
  • Event Planners: Avoid scheduling events on public holidays, which could impact attendance or venue availability.
  • Travel Agencies: Inform clients about holidays in their destination country that might affect local business hours or attractions.
  • Content & Social Media Schedulers: Plan content around national holidays to maximize engagement or avoid insensitive postings.
  • Personal Productivity & Travel Planning: Integrate holiday data into your calendar or task management tools to plan trips or personal time off more effectively.
  • Developers: Easily integrate a reliable source of public holiday data into custom applications, dashboards, or internal tools without managing complex datasets.

๐Ÿ“‘ Data Structure

When you trigger the webhook, send a POST request with a JSON body structured as follows:

{
  "year": 2025,
  "countryCode": "PH" // Example: "US", "DE", "GB", etc.
}

You can find a comprehensive list of supported country codes on the Nager.Date API documentation: https://www.nager.at/Country

The workflow will return a JSON array, where each element is a holiday object, like this example for a single holiday:

[
  {
    "date": "2025-01-01",
    "localName": "New Year's Day",
    "name": "New Year's Day",
    "countryCode": "PH",
    "fixed": true,
    "global": true,
    "counties": null,
    "launchYear": null,
    "types": [
      "Public"
    ]
  }
  // ... more holiday objects
]

โš™๏ธ Setup Instructions

  • Import Workflow: In your n8n editor, click "Import from JSON" and paste the provided workflow JSON.
  • Configure Webhook Path:
    • Double-click the Receive Holiday Request Webhook node.
    • In the 'Path' field, set a unique and descriptive path (e.g., /public-holidays).
  • Activate Workflow: Save and activate the workflow.

๐Ÿ“ Tips

This workflow is a foundation for many powerful automations:

  • Conditional Branching for Specific Holidays: Add an IF node after "Get Public Holidays" to check for a specific holiday (e.g., "Christmas Day"). You can then trigger different actions (e.g., send a reminder, adjust a schedule) only for that particular holiday.
  • Filtering and Aggregating Data:
    • Use a Filter node to only keep holidays of a certain type (e.g., "Public").
    • Use a Code or Function node to count the number of public holidays, or extract just the names and dates into a simpler list.
  • Storing Holiday Data:
    • Google Sheets/Airtable: Automatically append new holidays to a spreadsheet for easy reference or further analysis.
    • Database: Store holiday data in a database (like PostgreSQL or MySQL) to build a custom holiday calendar application.
  • Scheduling and Reminders:
    • Connect this workflow to a Cron or Schedule node to run periodically (e.g., once a year at the start of the year).
    • Use the retrieved holiday dates to set up reminders in your calendar (Google Calendar node) or send notifications (Slack, Email, SMS) a few days before an upcoming holiday.
  • Integrate with Business Logic:
    • Employee Leave Management: Cross-reference employee leave requests with public holidays to ensure accuracy.
    • Automated Messages: Schedule automated "Happy Holiday" messages to customers or employees.
    • E-commerce Shipping: Adjust estimated shipping times based on upcoming non-working days.
  • API Key (Not needed for Nager.Date free tier): The Nager.Date API used here does not require an API key for basic public holiday lookups, which makes this template very easy to use out-of-the-box.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Note for Webhook Trigger

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Note for Holiday API Call

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Note for Webhook Response

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Get Public Holidays

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 5 - Receive Holiday Request Webhook

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 6 - Respond with Holiday Data

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.2

3. Summary Table

Workflow Public holiday lookup with Nager.Date API via webhook
Complexity intermediate
Nodes 6
Categories Personal Productivity
Author ist00dent
Published 02 Jun 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4601/4601.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Public holiday lookup with Nager.Date API via webhook do?

This n8n template empowers you to instantly fetch a list of public holidays for any given year and country using the Nager.Date API. This is incredibly useful for scheduling, planning, or integrati...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Personal Productivity use case.