← Back to API Ninjas
GET/v2/interestrate

Get current interest rates

Returns the latest published value of a central bank or benchmark `rate`. For the full history of that rate use /historicalinterestrates.

API Ninjas·$0.001 per call

Example code

// Using @orth/sdk - The simplest way to call APIs // Install: npm install @orth/sdk import Orthogonal from "@orth/sdk"; const orthogonal = new Orthogonal({ apiKey: process.env.ORTHOGONAL_API_KEY, }); const output = await orthogonal.run({ api: "api-ninjas", path: "/v2/interestrate", query: { "rate": "example" } }); console.log(output);

Query parameters

raterequired
string

The specific interest rate identifier. Supports central bank rates (e.g. central_bank_us, central_bank_eu), benchmark rates (e.g. sofr, effr, euribor_3_months, sonia), and bank prime / base lending rates (prime_us, prime_ca, prime_jp, prime_za, lpr_cn_1y, lpr_cn_5y, br_my, blr_my, tpb_br).

    Orthogonal - Giving AI agents the tools they need.