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.
For the selected operation "CEP (v2)", the node fetches detailed address information based on a given Brazilian postal code (CEP). This is useful for validating addresses, enriching customer data, or automating shipping label generation.
Practical example:
- Inputting a CEP like "01001-000" returns the corresponding street, neighborhood, city, and state information, enabling automated address completion in workflows.
Properties
| Name | Meaning |
|---|---|
| CEP | The Brazilian postal code to look up. Must be provided as a string. |
Note: The property is shown only when the operation is "cep" or "cepV2".
Output
The node outputs JSON data containing the response from BrasilAPI for the requested CEP. The structure typically includes fields such as:
cep: The postal code queried.state: The state abbreviation.city: The city name.neighborhood: The neighborhood name.street: The street name.- Other address-related details depending on the API version.
No binary data output is produced by this node.
Dependencies
- Requires internet access to call the BrasilAPI endpoints at
https://brasilapi.com.br/api. - No authentication or API keys are needed since BrasilAPI is a public service.
- Uses the HTTP client library internally to perform GET requests with a 10-second timeout.
Troubleshooting
- Timeouts or network errors: Ensure the n8n instance has internet connectivity and can reach
brasilapi.com.br. - Invalid CEP format: Provide a valid Brazilian postal code string; otherwise, the API may return an error or empty result.
- Unsupported operation error: This node supports many operations; ensure the operation parameter is set correctly to "cep" or "cepV2" for CEP lookups.
- Empty or unexpected response: Verify the CEP exists and is correctly formatted. Check BrasilAPI status if issues persist.
Links and References
- BrasilAPI official documentation: https://brasilapi.com.br/docs
- Example CEP lookup endpoint: https://brasilapi.com.br/api/cep/v2/01001000