0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions132

Date and Time → Get Holidays

AI-generated

Overview

The "Get Holidays" operation under the "Date and Time" resource in this node allows users to retrieve a list of public holidays for a specified country and year. This is useful for workflows that need to account for non-working days, plan events around holidays, or adjust scheduling based on local public holidays.

For example, a user might use this node to:

  • Automatically skip sending marketing emails on public holidays.
  • Adjust project timelines by excluding holidays.
  • Generate reports that highlight holiday periods.

Properties

Name Meaning
Country Code The ISO country code representing the country for which to get holidays (e.g., DE, US, FR).
Year The year for which to retrieve the holidays (e.g., 2024).

Output

The node outputs JSON data containing the list of holidays for the specified country and year. Each holiday entry typically includes details such as the date and name of the holiday.

If the node supports binary data output, it would be related to any downloadable content or attachments associated with the holidays, but based on the provided information, the output is primarily JSON structured data listing holidays.

Dependencies

  • Requires an API key credential for authentication with the external service at https://prod.0codekit.com.
  • The node sends a POST request to the /dateandtime/holidays endpoint with the country code and year in the request body.

Troubleshooting

  • Common issues:

    • Invalid or unsupported country codes may result in empty or error responses.
    • Providing a year in an incorrect format could cause the API to reject the request.
    • Network or authentication errors if the API key is missing or invalid.
  • Error messages:

    • Authentication failures usually indicate missing or incorrect API credentials.
    • Validation errors may occur if required parameters are missing or malformed.

To resolve these:

  • Ensure the country code follows standard ISO codes.
  • Use a valid four-digit year.
  • Verify that the API key credential is correctly configured in n8n.

Links and References

Discussion