BrasilAPI Feriados icon

BrasilAPI Feriados

Consulta feriados nacionais para um ano via BrasilAPI

BrasilAPI Feriados

AI-generated

Overview

This node, named "BrasilAPI Feriados," retrieves national holidays in Brazil for a specified year by querying the BrasilAPI service. It is useful for workflows that need to consider public holidays, such as scheduling, planning, or date validations. For example, a user might use this node to automatically adjust task deadlines around Brazilian public holidays or to generate reports that exclude holiday dates.

Properties

Name Meaning
Ano The year for which to query Brazilian national holidays. This should be provided as a string representing the year (e.g., "2025").

Output

The node outputs an array of JSON objects, each representing a holiday. Each object contains details about a specific national holiday returned from the API. If the API response is an array, each element is output as a separate item; if it is a single object, it is output as one item.

In case of an error during the API request, the output will contain a JSON object with two fields:

  • error: The error message describing what went wrong.
  • ano: The year parameter used in the request.

No binary data is produced by this node.

Dependencies

  • Requires internet access to call the BrasilAPI endpoint: https://brasilapi.com.br/api/feriados/v1/{year}
  • No special credentials are needed since the API appears to be publicly accessible.
  • The node uses HTTP GET requests to fetch data.

Troubleshooting

  • Common issues:

    • Network connectivity problems may cause the API request to fail.
    • Providing an invalid year format could result in an error response from the API.
    • The API might be temporarily unavailable or rate-limited.
  • Error messages:

    • Errors from the API or network failures are caught and returned in the output JSON under the error field along with the requested year.
    • To resolve errors, verify network connectivity, ensure the year is valid and correctly formatted, and check the API status.

Links and References

Discussion