Need central bank interest rates in a finance dashboard or calculation? The Current Interest Rates API returns rate records in one request. By the end of this guide, you can call the endpoint, read its JSON response, and use the data in a Python integration.
What the API returns
The Current Interest Rates API provides interest rate information through Zyla API Hub. The example response separates central bank rates from other named rates and includes a message about access to prime rates.
Each central bank record includes a bank name, country, percentage rate, and last-updated date. Finance dashboards can display these records by country; reporting tools can use them as reference data alongside their own calculations.
The example response is a historical sample, not a statement of current rates. Check the returned dates when deciding whether a record is suitable for your application.
Getting started on Zyla API Hub
- Open The Current Interest Rates API marketplace page linked at the end of this article.
- Create a free Zyla account if needed, then select Subscribe or Start Free Trial when available.
- Get your API key and use it as the bearer token in requests to the Hub endpoint.
Zyla uses subscriptions and quotas rather than pay-per-call billing. For a first API, access may include a 7-day trial or 50 requests; check the API page for current access options and pricing. Keep your API key out of source control and client-side code.
Get interest rate information
The Get Interest Rate endpoint uses GET. Run it to obtain interest rate information; the request needs the authorization header and has no documented request parameters in this example.
Replace YOUR_API_KEY with your Zyla API key:
curl -s -X GET "https://zylalabs.com/api/2083/the-current-interest-rates-api/1866/get-interest-rate" \
-H "Authorization: Bearer YOUR_API_KEY"
The following is the official example response:
{
"central_bank_rates": [
{
"central_bank": "Australian Central Bank",
"country": "Australia",
"rate_pct": 4.35,
"last_updated": "11-08-2023"
},
{
"central_bank": "British Central Bank",
"country": "United Kingdom",
"rate_pct": 4.75,
"last_updated": "11-07-2024"
},
{
"central_bank": "Chilean Central Bank",
"country": "Chile",
"rate_pct": 5,
"last_updated": "12-17-2024"
},
{
"central_bank": "Chinese Central Bank",
"country": "China",
"rate_pct": 3.1,
"last_updated": "10-21-2024"
},
{
"central_bank": "Czech Central Bank",
"country": "Czech Republic",
"rate_pct": 4,
"last_updated": "11-07-2024"
},
{
"central_bank": "Danish Central Bank",
"country": "Denmark",
"rate_pct": 2.75,
"last_updated": "12-12-2024"
},
{
"central_bank": "Japanese Central Bank",
"country": "Japan",
"rate_pct": 0.25,
"last_updated": "07-31-2024"
},
{
"central_bank": "Mexican Central Bank",
"country": "Mexico",
"rate_pct": 10,
"last_updated": "12-19-2024"
},
{
"central_bank": "New Zealand Central Bank",
"country": "New Zealand",
"rate_pct": 4.25,
"last_updated": "11-27-2024"
},
{
"central_bank": "Norwegian Central Bank",
"country": "Norway",
"rate_pct": 4.5,
"last_updated": "12-14-2023"
},
{
"central_bank": "Polish Central Bank",
"country": "Poland",
"rate_pct": 5.75,
"last_updated": "10-04-2023"
},
{
"central_bank": "Russian Central Bank",
"country": "Russia",
"rate_pct": 21,
"last_updated": "10-25-2024"
},
{
"central_bank": "Saudi Arabian Central Bank",
"country": "Saudi Arabia",
"rate_pct": 5,
"last_updated": "12-18-2024"
},
{
"central_bank": "Swedish Central Bank",
"country": "Sweden",
"rate_pct": 2.5,
"last_updated": "12-19-2024"
},
{
"central_bank": "Swiss Central Bank",
"country": "Switzerland",
"rate_pct": 0.5,
"last_updated": "12-12-2024"
},
{
"central_bank": "Turkish Central Bank",
"country": "Türkiye",
"rate_pct": 47.5,
"last_updated": "12-27-2024"
}
],
"non_central_bank_rates": [
{
"name": "ESTER",
"rate_pct": 2.917,
"last_updated": "01-10-2025"
},
{
"name": "SARON",
"rate_pct": 0.432889,
"last_updated": "01-09-2025"
},
{
"name": "SONIA",
"rate_pct": 4.7,
"last_updated": "01-09-2025"
},
{
"name": "TONAR",
"rate_pct": 0.232,
"last_updated": "01-09-2025"
}
],
"prime_rates": "Prime rates are only available to premium subscribers."
}
Use central_bank_rates for records identified by central_bank and country. Use non_central_bank_rates for records identified by name. In both arrays, rate_pct is expressed as a percentage and last_updated is the associated date.
The sample dates contain no time or timezone, so do not treat them as precise timestamps. The sample also returns prime_rates as a message rather than a list of rates; handle that value accordingly and check the API page for access options.
Read the rates in Python
This example calls the same Hub URL using Python’s standard library. It prints central bank and non-central-bank records separately, preserving each returned date alongside its rate.
import json
import sys
from urllib.error import HTTPError, URLError
from urllib.request import Request, urlopen
url = "https://zylalabs.com/api/2083/the-current-interest-rates-api/1866/get-interest-rate"
request = Request(url, method="GET")
request.add_header("Authorization", "Bearer YOUR_API_KEY")
try:
with urlopen(request, timeout=30) as response:
data = json.load(response)
except HTTPError as exc:
sys.exit("API request failed with HTTP status: " + str(exc.code))
except URLError as exc:
sys.exit("Could not reach the API: " + str(exc.reason))
except (json.JSONDecodeError, UnicodeDecodeError):
sys.exit("The API response could not be read as JSON.")
for rate in data.get("central_bank_rates", []):
print(
rate.get("country"),
rate.get("central_bank"),
rate.get("rate_pct"),
rate.get("last_updated"),
)
for rate in data.get("non_central_bank_rates", []):
print(
rate.get("name"),
rate.get("rate_pct"),
rate.get("last_updated"),
)
print("Prime rates:", data.get("prime_rates"))
Replace YOUR_API_KEY before running the script. For a deployed service, load the key from your server’s secret storage instead of committing it to the application. The timeout in this example is a client-side setting, not an API limit.
If your application needs one country, filter the returned central_bank_rates locally by country. Keep the bank name and date with the value so the UI does not present a percentage without its context.
Using the data in finance workflows
A central bank rate dashboard can show the country, bank, percentage, and last-updated date together. Keep the separate non-central-bank array in its own section: a named reference rate and a central bank rate should not be presented as interchangeable simply because both use rate_pct.
For an internal finance report, retain the response date shown for each record and record when your application retrieved it separately. The retrieved time describes your integration; it is not a replacement for the API’s last_updated value.
If you cache the response, choose a refresh policy based on how your users rely on the data and your subscription quota. Show the returned date in the interface, and avoid implying that a cached value reflects a newly announced rate. The example does not establish an update schedule or guarantee that all records share the same update date.
For calculations, remember that the returned number is a percentage. Convert it only as required by your own formula, and avoid treating a central bank rate as a customer’s loan or deposit rate without additional context.
Call it from an AI agent
Zyla APIs can also be called from an MCP-compatible client, including Claude Code, Cursor, and Windsurf. Configure the client with https://mcp.zylalabs.com/mcp?apikey=YOUR_API_KEY, replacing YOUR_API_KEY with your key. See MCP for the Hub endpoint.
Ask the agent to retrieve the interest rate information and report the bank or rate name, percentage, and returned date. Verify the date and the rate category before using its answer in a financial calculation; an agent’s summary should not turn the sample’s prime-rate access message into a numeric rate.
FAQ
Can I request the rate for just one country?
The documented example does not include a country request parameter. Retrieve the response and filter the central_bank_rates array in your application.
Is rate_pct a decimal fraction or a percentage?
It is a percentage. Keep that unit visible when displaying the value, and convert it explicitly if a calculation expects a decimal fraction.
Does the response include a timestamp or timezone?
The example provides last_updated as a date string, without a time or timezone. Do not infer a precise update time from it.
Are prime rates included?
The example returns a message saying prime rates are only available to premium subscribers. Check the API page for current access options and pricing rather than assuming the example message is a rate.
Create a free account and get an API key from the marketplace item page. Check the available access options, then Start 7-day trial on The Current Interest Rates API.