Brasil Hub icon

Brasil Hub

Query Brazilian public data (CNPJ, CEP, CPF, Banks, Câmbio, DDD, Holidays, FIPE, IBGE, NCM, PIX, Taxas) with multi-provider fallback

Actions28

Taxa → Query

AI-generated

Summary

Query the current value of a specified Brazilian interest rate by its rate code, such as Selic, CDI, or IPCA.

Inputs

  • Rate Code (required) — The specific rate code to query, for example 'Selic', 'CDI', or 'IPCA'.
  • Include Raw Response — Optionally include the raw API response alongside the normalized interest rate data.
  • Timeout (Ms) — Specify the HTTP request timeout in milliseconds for each provider attempt, ranging from 1000 to 60000 ms; defaults to 10000 ms.

Output shape

A single JSON object containing normalized data for the requested interest rate, optionally including the raw API response if requested.

The normalized data is returned in a consistent format regardless of which API provider supplies the data. If 'Include Raw Response' is set to true, an additional field with the raw response data will accompany the normalized output. Requests will honor the specified timeout, and the operation attempts fallback logic through multiple providers if needed.

Examples

Example 1: Retrieve the current Selic rate.

Set Rate Code to 'Selic'. Leave 'Include Raw Response' false for just normalized data.

Example 2: Retrieve the CDI rate with raw API data.

Set Rate Code to 'CDI' and enable 'Include Raw Response'. Optionally adjust timeout if slower response anticipated.

Links

Discussion