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...
Template notes
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: