Brasil API icon

Brasil API

Consulta endpoints públicos da BrasilAPI

Overview

This node integrates with BrasilAPI, a public API service providing various Brazilian data endpoints. Specifically for the FIPE – Preço operation, it fetches vehicle price information from the FIPE table, which is widely used in Brazil to reference average market prices of vehicles.

Use cases include:

  • Retrieving current market prices for cars, motorcycles, or trucks based on their FIPE code.
  • Automating vehicle price lookups in workflows related to vehicle sales, insurance quotes, or financial assessments.
  • Enriching datasets with official pricing data for Brazilian vehicles.

Example: Given a FIPE code like "001004-9", the node returns detailed pricing info such as brand, model, year, and average price.

Properties

Name Meaning
Código FIPE The FIPE code identifying the specific vehicle to query price information for.
Extra Query (JSON) Optional key-value pairs for additional filters or parameters sent as query string.

Output

The node outputs JSON data containing the response from the BrasilAPI FIPE price endpoint. This typically includes fields such as:

  • Vehicle brand and model
  • Year/model year
  • Fuel type
  • FIPE code
  • Reference month/year
  • Average price value

The exact structure depends on the FIPE API response but generally provides comprehensive vehicle price details.

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 publicly accessible.
  • Uses the HTTP client library internally to perform GET requests with a 10-second timeout.

Troubleshooting

  • Timeouts or network errors: Ensure the node can reach https://brasilapi.com.br/api. Network issues or firewall restrictions may cause failures.
  • Invalid FIPE code: If the provided FIPE code does not exist or is malformed, the API may return an error or empty result. Verify the code format before use.
  • Unsupported operation error: This node supports many operations; ensure the selected operation is exactly "fipePreco" when using the FIPE price feature.
  • Malformed Extra Query JSON: If the extra query parameter is not valid JSON, the request may fail. Validate JSON syntax carefully.

Links and References

Discussion