This n8n workflow provides a simple, automated way to retrieve public holiday data based on incoming webhook requests. Designed for integration with websites or apps, it listens for POST requests containing a year and country code, then fetches relevant public holidays from the Nager.Date API. Once the data is retrieved, it sends the holiday list back as a response, enabling dynamic date-based content updates or holiday reminders.
The workflow begins with a webhook node that listens for POST requests at a specific URL. When triggered, it passes the received JSON payload, which should include ‘year’ and ‘countryCode’ properties, to an HTTP request node that calls the Nager.Date API to fetch holiday data. The response from the API, which includes details like holiday dates and names, is then returned to the original requester via a response node.
This setup is particularly useful for online platforms that need to display or utilize holiday information dynamically. For example, a travel website could use this workflow to show upcoming public holidays for different countries or a business could adjust staffing levels based on upcoming holidays in various regions.
Reviews
There are no reviews yet.