Banrep Historical Data API: Timeseries, Charts & Downloads

Banrep Historical Data API: Timeseries, Charts & Downloads

Introduction

In the world of finance, access to accurate and timely interest rate data is crucial for developers, economists, and financial analysts. The ability to analyze historical trends, monitor current rates, and visualize data through charts can significantly enhance decision-making processes. The Interest Rates API provides a comprehensive solution for retrieving interest rate data, including central bank rates, interbank rates, and financial time series analysis. This blog post will focus on the BANREP_RATE, the interest rate set by the Banco de la República de Colombia, and explore how to effectively utilize the API for various financial applications.

Understanding the BANREP_RATE

The BANREP_RATE is the benchmark interest rate set by the central bank of Colombia, which influences the overall economic environment, including lending rates, inflation, and investment decisions. For developers building fintech applications, having access to this data is essential for creating accurate financial models, conducting economic research, and providing users with up-to-date information on interest rates.

With the Interest Rates API, users can access a variety of endpoints to retrieve the latest rates, historical data, time series, and even perform comparisons between different rates. This flexibility allows for a wide range of applications, from simple data retrieval to complex financial analyses.

Key API Endpoints for BANREP_RATE

The Interest Rates API offers several endpoints that are particularly useful for working with the BANREP_RATE. Below, we will explore each endpoint, its purpose, and provide practical examples of how to use them.

1. Latest Rates: GET /api/v1/latest

This endpoint retrieves the latest value for specified symbols, including the BANREP_RATE. It is useful for applications that require real-time data.

cURL Example:

curl "https://interestratesapi.com/api/v1/latest?symbols=BANREP_RATE&api_key=YOUR_KEY"

JSON Response Example:


{
"success": true,
"date": "2026-07-24",
"base": "MIXED",
"rates": {
"BANREP_RATE": 5.33
},
"dates": {
"BANREP_RATE": "2026-07-24"
},
"currencies": {
"BANREP_RATE": "USD"
}
}

This response indicates that the latest BANREP_RATE is 5.33% as of July 24, 2026. The "success" field confirms that the request was successful, while the "date" field provides the date of the retrieved rate.

2. Historical Data: GET /api/v1/historical

The historical endpoint allows users to retrieve the interest rate for a specific date. This is particularly useful for point-in-time analyses and understanding how rates have changed over time.

cURL Example:

curl "https://interestratesapi.com/api/v1/historical?date=2025-06-15&symbols=BANREP_RATE&api_key=YOUR_KEY"

JSON Response Example:


{
"success": true,
"date": "2025-06-15",
"base": "USD",
"rates": {
"BANREP_RATE": 5.33
},
"currencies": {
"BANREP_RATE": "USD"
}
}

This response shows that on June 15, 2025, the BANREP_RATE was also 5.33%. This endpoint is essential for conducting historical analyses and understanding trends over time.

3. Time Series Data: GET /api/v1/timeseries

The timeseries endpoint allows users to fetch a series of rates between two specified dates. This is particularly useful for analyzing trends over a longer period.

cURL Example:

curl "https://interestratesapi.com/api/v1/timeseries?start=2025-07-24&end=2026-07-24&symbols=BANREP_RATE&api_key=YOUR_KEY"

JSON Response Example:


{
"success": true,
"base": "USD",
"start_date": "2025-07-24",
"end_date": "2026-07-24",
"rates": {
"BANREP_RATE": {
"2025-01-02": 5.33,
"2025-01-03": 5.33,
"2025-01-06": 5.33
}
},
"frequencies": {
"BANREP_RATE": "daily"
},
"currencies": {
"BANREP_RATE": "USD"
}
}

This response provides daily rates for the BANREP_RATE between the specified dates. The ability to analyze time series data is crucial for identifying trends, seasonality, and other patterns in interest rates.

4. Fluctuation Analysis: GET /api/v1/fluctuation

This endpoint provides statistics on the change in rates over a specified date range, including the start and end values, percentage change, and high/low values.

cURL Example:

curl "https://interestratesapi.com/api/v1/fluctuation?start=2025-07-24&end=2026-07-24&symbols=BANREP_RATE&api_key=YOUR_KEY"

JSON Response Example:


{
"success": true,
"rates": {
"BANREP_RATE": {
"start_date": "2025-07-24",
"end_date": "2026-07-24",
"start_value": 5.50,
"end_value": 5.33,
"change": -0.17,
"change_pct": -3.09,
"high": 5.50,
"low": 5.25
}
}
}

This response indicates that the BANREP_RATE decreased from 5.50% to 5.33% over the specified period, providing valuable insights into the rate's volatility and trends.

5. OHLC Data: GET /api/v1/ohlc

The OHLC (Open, High, Low, Close) endpoint provides candlestick data, which is essential for visualizing trends in financial data. This is particularly useful for creating charts and visual representations of interest rate movements.

cURL Example:

curl "https://interestratesapi.com/api/v1/ohlc?symbols=BANREP_RATE&period=monthly&start=2025-07-24&end=2026-07-24&api_key=YOUR_KEY"

JSON Response Example:


{
"success": true,
"period": "monthly",
"start_date": "2025-07-24",
"end_date": "2026-07-24",
"rates": {
"BANREP_RATE": [
{
"period": "2025-01",
"open": 5.50,
"high": 5.50,
"low": 5.33,
"close": 5.33,
"data_points": 23
}
]
}
}

This response provides monthly OHLC data for the BANREP_RATE, which can be used to create candlestick charts for visual analysis. Integrating this data with libraries like Chart.js or Plotly can enhance the user experience in fintech applications.

Building a Data Pipeline with Python

To effectively utilize the Interest Rates API, developers can build a data pipeline in Python that fetches data, processes it, and exports it to a desired format such as CSV or Parquet. Below is an example of how to achieve this using the pandas library.

Python Code Example:

import requests
import pandas as pd

# Fetching timeseries data
response = requests.get(
'https://interestratesapi.com/api/v1/timeseries',
params=dict(start='2025-07-24', end='2026-07-24', symbols='BANREP_RATE', api_key='YOUR_KEY')
)

data = response.json()

# Processing the data into a DataFrame
dates = data['rates']['BANREP_RATE']
df = pd.DataFrame(list(dates.items()), columns=['Date', 'Rate'])

# Exporting to CSV
df.to_csv('banrep_rates.csv', index=False)

# Exporting to Parquet
df.to_parquet('banrep_rates.parquet', index=False)

This code fetches the BANREP_RATE time series data, processes it into a pandas DataFrame, and exports it to both CSV and Parquet formats for further analysis or storage.

Common Pitfalls in Time Series Analysis

When working with time series data, developers should be aware of several common pitfalls:

  • Missing Dates: Financial data may not be available for every date, especially on weekends or holidays. It is essential to handle these gaps appropriately in analyses.
  • Frequency Considerations: Understanding the frequency of the data (daily vs. monthly) is crucial for accurate analyses. Monthly data may not capture daily fluctuations, while daily data may be too granular for some analyses.
  • Data Points Interpretation: The "data_points" field in the OHLC response indicates the number of data points used to calculate the OHLC values. This can impact the reliability of the data, especially if the number of data points is low.

Conclusion

The Interest Rates API provides a powerful tool for accessing and analyzing interest rate data, particularly the BANREP_RATE. By leveraging the various endpoints, developers can build robust financial applications that offer real-time data, historical insights, and visual representations of trends. Whether you are conducting economic research, building a fintech application, or performing quantitative analysis, the Interest Rates API can significantly enhance your capabilities.

To get started with the Interest Rates API, visit Get started with Interest Rates API and explore the features available to you. With the right tools and data, you can unlock valuable insights and drive informed financial decisions.

For more information on the capabilities of the Interest Rates API, check out Explore Interest Rates API features.

Ready to get started?

Get your API key and start validating bank data in minutes.

Get API Key

Related posts