bacen_url: Creation of URLs to Access the Central Bank API

View source: R/bacen_url.R

bacen_urlR Documentation

Creation of URLs to Access the Central Bank API

Description

This function generates URLs to access specific time series data provided by the Central Bank of Brazil API.

Usage

bacen_url(series, start_date, end_date)

Arguments

series

Desired series code(s). Must be a number or a vector of numbers.

start_date

Start date of the period of interest, in the format "dd/mm/yyyy".

end_date

End date of the period of interest, in the format "dd/mm/yyyy".

Value

Returns a vector containing the generated URLs for each provided series.

Examples

# Generate a URL for series 433 (IPCA) from 01/01/2003 to 31/12/2023.
bacen_url(433, "01/01/2020", "31/12/2023") # in the format "dd/mm/yyyy"


BacenAPI documentation built on June 8, 2025, 10:51 a.m.