The ecoseries package has three main functions, two to gather data from the Brazilian Central Bank (Bacen) and Sidra (IBGE) and another to gather Institute of Applied Economic Research data (IPEA).
The series_bacen function takes advantage of the Bacen API ("http://api.bcb.gov.br/") to access this sistem "https://www3.bcb.gov.br/sgspub/localizarseries/localizarSeries.do?method=prepararTelaLocalizarSeries", load and save the series. You can either save in csv or xlsx formats.
The series_ipea function accesses a simpler section of the ipeadata website and harvests the informations based on series numbers.
The series_sidra function uses the Sidra API ("http://api.sidra.ibge.gov.br") to load and save the series. You can either save in csv or xlsx formats.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.