Actions24
- FIPE – Preço
- CEP (v1)
- CEP (v2)
- DDD → UF & cidades
- Banco por Código
- Câmbio – Cotação
- CNPJ
- Corretora por CNPJ
- Registro.br – Domínio
- Taxa por Sigla
- Feriados por Ano
- FIPE – Marcas
- FIPE – Veículos por Marca
- IBGE – UF por Código
- IBGE – Municípios
- NCM – Lista
- NCM por Código
- ISBN
- CPTEC – Buscar Cidade
- CPTEC – Clima Aeroporto
- CPTEC – Previsão 1 dia
- CPTEC – Previsão N dias
- CPTEC – Ondas 1 dia
- CPTEC – Ondas N dias
Overview
This node integrates with BrasilAPI, a public API providing various Brazilian data endpoints. It allows users to query diverse information such as postal codes (CEP), bank details, currency exchange rates, company registration data (CNPJ), vehicle pricing, weather forecasts, and more.
The "Banco por Código" operation specifically retrieves detailed information about a bank given its numeric code. This is useful for financial applications, payment processing, or any system needing to validate or display bank details based on official codes.
Practical example:
A user can input a bank code (e.g., 1) to fetch the corresponding bank's name, full official details, and other metadata from BrasilAPI, enabling automated validation of banking information in workflows.
Properties
| Name | Meaning |
|---|---|
| Código Banco | Numeric code representing a specific bank. The node uses this code to fetch bank details. |
Output
The output is a JSON object containing the bank information retrieved from BrasilAPI for the specified bank code. The structure typically includes fields such as the bank's name, code, full name, and possibly other metadata provided by the API.
Example output JSON (simplified):
{
"code": 1,
"name": "Banco do Brasil S.A.",
"fullName": "Banco do Brasil S.A."
}
No binary data output is produced by this operation.
Dependencies
- Requires internet access to call the BrasilAPI public endpoints.
- No authentication or API keys are needed since BrasilAPI is a public API.
- Uses HTTP GET requests with a timeout of 10 seconds per request.
Troubleshooting
- Timeouts or network errors: If the API does not respond within 10 seconds, the request will fail. Check your network connection and BrasilAPI service status.
- Unsupported operation error: This occurs if an invalid operation name is set. Ensure "Banco por Código" is selected correctly.
- Invalid bank code: If the bank code does not exist in BrasilAPI, the response may be empty or an error. Verify the bank code is valid.
- Malformed input: Ensure the bank code is a number and properly set in the node parameters.
Links and References
- BrasilAPI Documentation – Official API documentation for all available endpoints.