The Interest Rate API provides current central bank interest rates for 22 countries, all major benchmark interest rates (such as LIBOR, EURIBOR, and SOFR), and prime rates.
Interest rates are refreshed every 4 hours to ensure up-to-date information.
Looking for historical interest rate data? Use the /v2/interestratehistorical endpoint.
https://api.api-ninjas.com/v2/interestrate
Get a specific interest rate by name. Returns the rate value, name, and last updated timestamp.
rate
requiredName of the interest rate to retrieve. The following rates are supported:
central_bank_au (Reserve Bank of Australia) |
central_bank_br (Central Bank of Brazil) |
central_bank_ca (Bank of Canada) |
central_bank_cn (People's Bank of China) |
central_bank_cz (Czech National Bank) |
central_bank_dk (Danmarks Nationalbank) |
central_bank_eu (European Central Bank) |
central_bank_hu (Hungarian National Bank) |
central_bank_in (Indian Central Bank) |
central_bank_il (Bank of Israel) |
central_bank_mx (Bank of Mexico) |
central_bank_nz (Reserve Bank of New Zealand) |
central_bank_no (Norges Bank) |
central_bank_pl (Narodowy Bank Polski) |
central_bank_ru (Central Bank of Russia) |
central_bank_sa (South African Reserve Bank) |
central_bank_sk (Bank of Korea) |
central_bank_se (Sveriges Riksbank) |
central_bank_ch (Swiss National Bank) |
central_bank_tr (Central Bank of the Republic of Türkiye) |
central_bank_gb (Bank of England) |
central_bank_us (United States Federal Reserve) |
prime_us (United States Prime Rate) |
prime_ca (Canada Prime Rate) |
prime_jp (Japan Prime Rate) |
euribor_1_week (Euribor - 1 week) |
euribor_1_month (Euribor - 1 month) |
euribor_3_months (Euribor - 3 months) |
euribor_6_months (Euribor - 6 months) |
euribor_12_months (Euribor - 12 months) |
ester (ESTER) |
sonia (SONIA) |
saron (SARON) |
tonar (TONAR) |
sofr (SOFR - overnight) |
sofr_30d_avg (SOFR 30-day average) |
sofr_90d_avg (SOFR 90-day average) |
sofr_180d_avg (SOFR 180-day average) |
effr (Effective Federal Funds Rate - EFFR) |
corra (Canadian Overnight Repo Rate Average - CORRA) |
X-Api-Key
requiredAPI Key associated with your account.
https://api.api-ninjas.com/v2/interestrate?rate=central_bank_us
Headers
X-Api-Key
Log in or sign up to get your API Key
1
2
3
4
5
{
"rate_name": "United States Federal Reserve",
"rate_pct": 4.5,
"last_updated": "12-18-2024"
}
1
2
curl -X GET "https://api.api-ninjas.com/v2/interestrate?rate=central_bank_us" \
-H "X-Api-Key: YOUR_API_KEY"
If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.
https://api.api-ninjas.com/v2/interestratehistorical
Returns historical interest rates for specific central banks or benchmark rates using a single rate parameter. You can specify a time range to retrieve data from. The maximum number of data points returned per API call is 100.
rate
requiredThe specific interest rate identifier. Supports both central bank rates and benchmark rates.
central_bank_au (Australia - Reserve Bank of Australia) |
central_bank_br (Brazil - Central Bank of Brazil) |
central_bank_ca (Canada - Bank of Canada) |
central_bank_cn (China - People's Bank of China) |
central_bank_cz (Czech Republic - Czech National Bank) |
central_bank_dk (Denmark - Danmarks Nationalbank) |
central_bank_eu (Europe - European Central Bank) |
central_bank_hu (Hungary - Hungarian National Bank) |
central_bank_in (India - Indian Central Bank) |
central_bank_il (Israel - Bank of Israel) |
central_bank_mx (Mexico - Bank of Mexico) |
central_bank_nz (New Zealand - Reserve Bank of New Zealand) |
central_bank_no (Norway - Norges Bank) |
central_bank_pl (Poland - Narodowy Bank Polski) |
central_bank_ru (Russia - Central Bank of Russia) |
central_bank_sa (South Africa - South African Reserve Bank) |
central_bank_sk (South Korea - Bank of Korea) |
central_bank_se (Sweden - Sveriges Riksbank) |
central_bank_ch (Switzerland - Swiss National Bank) |
central_bank_tr (Türkiye - Central Bank of the Republic of Türkiye) |
central_bank_gb (United Kingdom - Bank of England) |
central_bank_us (United States - United States Federal Reserve) |
usd_libor_overnight (USD LIBOR Overnight) |
usd_libor_1_month (USD LIBOR - 1 month) |
usd_libor_3_months (USD LIBOR - 3 months) |
usd_libor_6_months (USD LIBOR - 6 months) |
usd_libor_12_months (USD LIBOR - 12 months) |
euribor_1_week (Euribor - 1 week) |
euribor_1_month (Euribor - 1 month) |
euribor_3_months (Euribor - 3 months) |
euribor_6_months (Euribor - 6 months) |
euribor_12_months (Euribor - 12 months) |
ester (ESTER) |
sonia (SONIA) |
saron (SARON) |
tonar (TONAR) |
sofr (SOFR - overnight) |
corra (Canadian Overnight Repo Rate Average - CORRA) |
start_time
optionalStart time for the data range, specified as a UNIX timestamp in seconds.
end_time
optionalEnd time for the data range, specified as a UNIX timestamp in seconds.
X-Api-Key
requiredAPI Key associated with your account.
https://api.api-ninjas.com/v2/interestratehistorical
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
"name": "United States Federal Reserve",
"data": [
{
"timestamp": 647827200,
"rate_pct": 8
},
{
"timestamp": 657158400,
"rate_pct": 7.75
},
{
"timestamp": 658454400,
"rate_pct": 7.5
},
{
"timestamp": 660528000,
"rate_pct": 7.25
},
{
"timestamp": 661478400,
"rate_pct": 7
},
{
"timestamp": 663379200,
"rate_pct": 6.75
},
{
"timestamp": 665366400,
"rate_pct": 6.25
},
{
"timestamp": 668390400,
"rate_pct": 6
},
...
]
}