How to Integrate Chilean Central Bank Interest Rate Data into Your App: Complete API Guide

How to Integrate Chilean Central Bank Interest Rate Data into Your App: Complete API Guide

Introduction

In the fast-paced world of finance, access to accurate and timely interest rate data is crucial for developers, economists, and financial analysts. The ability to integrate central bank rates, interbank rates, and other financial time series data into applications can significantly enhance decision-making processes and financial modeling. This blog post serves as a comprehensive guide for integrating the Chilean Central Bank interest rate data into your application using the Interest Rates API. We will focus on the Federal Funds Effective Rate (FED_FUNDS) and provide detailed instructions on how to utilize the API effectively.

Why Use Interest Rates API?

The Interest Rates API provides a robust solution for accessing a wide range of interest rate data, including central bank rates, interbank rates, and treasury rates. By leveraging this API, developers can avoid the complexities of building their own data infrastructure, saving both time and resources. The API offers reliable, real-time data that can be used for various applications, such as financial modeling, risk assessment, and economic analysis.

Without such an API, developers face challenges like data inaccuracy, outdated information, and the overhead of maintaining their own data sources. The Interest Rates API addresses these issues by providing a centralized, easy-to-use platform for accessing interest rate data.

Getting Started with Interest Rates API

To begin using the Interest Rates API, you need to familiarize yourself with its endpoints and how to authenticate your requests. All requests to the API must be made using the GET method, and authentication is done by appending the api_key query parameter to your request URL.

API Endpoints Overview

The Interest Rates API offers several endpoints that allow you to access different types of data. Below is a summary of the key endpoints we will cover:

  • /api/v1/symbols - Retrieve a catalogue of available rate symbols.
  • /api/v1/latest - Get the latest value per symbol.
  • /api/v1/historical - Fetch the value on a specific date.
  • /api/v1/timeseries - Access a series of values between two dates.
  • /api/v1/fluctuation - Get change statistics over a range.
  • /api/v1/ohlc - Retrieve OHLC candlestick data.
  • /api/v1/convert - Compare loan interest costs between two rates.

1. Retrieving Available Symbols

The first step in integrating the Interest Rates API is to retrieve the available symbols. This can be done using the /api/v1/symbols endpoint. This endpoint allows you to filter symbols based on categories such as central bank, interbank, treasury, or reference rates.

Here’s how to make a request to this endpoint:

curl "https://interestratesapi.com/api/v1/symbols?category=central_bank&base=USD&api_key=YOUR_KEY"

Upon a successful request, you will receive a JSON response containing the available symbols:


{
"success": true,
"count": 2,
"symbols": [
{
"symbol": "FED_FUNDS",
"name": "US Federal Funds Rate",
"category": "central_bank",
"country_code": "US",
"currency_code": "USD",
"frequency": "daily",
"description": "The interest rate at which depository institutions lend reserve balances to each other overnight"
}
]
}

2. Fetching the Latest Rates

Once you have the symbols, the next step is to fetch the latest rates using the /api/v1/latest endpoint. This endpoint allows you to get the most recent values for specified symbols.

Here’s an example of how to request the latest rates:

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

The expected JSON response will look like this:


{
"success": true,
"date": "2026-08-25",
"base": "MIXED",
"rates": {
"FED_FUNDS": 5.33
},
"dates": {
"FED_FUNDS": "2026-08-25"
},
"currencies": {
"FED_FUNDS": "USD"
}
}

3. Accessing Historical Data

To analyze trends over time, you can access historical data using the /api/v1/historical endpoint. This endpoint allows you to retrieve the value of a symbol on a specific date.

Here’s how to make a request for historical data:

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

The JSON response will provide the historical rate for the specified date:


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

4. Retrieving Time Series Data

For a more comprehensive analysis, you can retrieve a series of values between two dates using the /api/v1/timeseries endpoint. This is particularly useful for visualizing trends over time.

Here’s an example request:

curl "https://interestratesapi.com/api/v1/timeseries?start=2025-08-25&end=2026-08-25&symbols=FED_FUNDS&api_key=YOUR_KEY"

The response will include daily rates for the specified period:


{
"success": true,
"base": "USD",
"start_date": "2025-08-25",
"end_date": "2026-08-25",
"rates": {
"FED_FUNDS": {
"2025-01-02": 5.33,
"2025-01-03": 5.33,
"2025-01-06": 5.33
}
},
"frequencies": {
"FED_FUNDS": "daily"
},
"currencies": {
"FED_FUNDS": "USD"
}
}

5. Analyzing Fluctuations

The /api/v1/fluctuation endpoint allows you to analyze the change statistics over a specified range. This can help you understand the volatility of interest rates during that period.

Here’s how to request fluctuation data:

curl "https://interestratesapi.com/api/v1/fluctuation?start=2025-08-25&end=2026-08-25&symbols=FED_FUNDS&api_key=YOUR_KEY"

The response will provide details about the fluctuation:


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

6. Retrieving OHLC Data

The /api/v1/ohlc endpoint provides OHLC (Open, High, Low, Close) candlestick data, which is useful for visualizing the price movements of interest rates over a specified period.

Here’s an example request for OHLC data:

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

The response will include the OHLC data for the specified period:


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

7. Comparing Loan Interest Costs

The /api/v1/convert endpoint allows you to compare the total interest cost of a loan between two different rates. This is particularly useful for financial analysts looking to assess the impact of different interest rates on loan costs.

Here’s how to make a request to compare rates:

curl "https://interestratesapi.com/api/v1/convert?from=FED_FUNDS&to=ECB_MRO&amount=100000&term_months=12&api_key=YOUR_KEY"

The response will provide a detailed comparison:


{
"success": true,
"amount": 100000,
"term_months": 12,
"from": {
"symbol": "FED_FUNDS",
"rate": 5.33,
"date": "2026-08-25",
"total_interest": 5330.00,
"total_payment": 105330.00
},
"to": {
"symbol": "ECB_MRO",
"rate": 4.50,
"date": "2026-08-25",
"total_interest": 4500.00,
"total_payment": 104500.00
},
"difference": {
"rate_spread": 0.83,
"interest_saved": 830.00
}
}

Error Handling

When working with the Interest Rates API, it’s essential to handle errors gracefully. Common error responses include:

  • 401: Missing api_key, invalid or revoked key, user not found.
  • 403: Account without active plan.
  • 404: No symbols matched or no data for requested date/range.
  • 422: Validation error (e.g., wrong date format, invalid symbol).
  • 429: Request quota exhausted.

For rate limit errors (429), the response will include headers such as:

  • X-RateLimit-Limit: The maximum number of requests allowed in a given time period.
  • X-RateLimit-Remaining: The number of requests remaining in the current time window.
  • X-RateLimit-Reset: The time when the rate limit will reset.

Mini Project: Node.js/Express Endpoint

To demonstrate the practical application of the Interest Rates API, let’s create a simple Node.js/Express endpoint that fetches, caches, and serves the FED_FUNDS rate data.

First, ensure you have Node.js and Express installed. Then, create a new Express application:

const express = require('express');
const fetch = require('node-fetch');
const app = express();
const PORT = process.env.PORT || 3000;

app.get('/api/fed-funds', async (req, res) => {
const apiKey = 'YOUR_KEY';
const response = await fetch(`https://interestratesapi.com/api/v1/latest?symbols=FED_FUNDS&api_key=${apiKey}`);
const data = await response.json();
res.json(data);
});

app.listen(PORT, () => {
console.log(`Server is running on port ${PORT}`);
});

This simple endpoint fetches the latest FED_FUNDS rate and serves it as JSON. You can further enhance this application by adding caching mechanisms and error handling.

Conclusion

Integrating the Chilean Central Bank interest rate data into your application using the Interest Rates API is a straightforward process that can significantly enhance your financial applications. By leveraging the various endpoints provided by the API, you can access real-time and historical data, analyze fluctuations, and compare loan interest costs effectively.

For more information on the features and capabilities of the Interest Rates API, visit Explore Interest Rates API features and Get started with Interest Rates API.

Ready to get started?

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

Get API Key

Related posts