Skip to content

We've built 200+ tools — open your toolbox, there's something in here you probably need.

GET/api/v1/finance/loanFinance

Loan repayment

Work out a loan repayment on reducing-balance (amortising) or flat-rate terms. Returns the monthly instalment, total interest and total repayable. Currency-agnostic.

Try it live

Request

GET https://www.leadafrik.com/api/v1/finance/loan?principal=300000&rate=13&months=24&method=reducing

Response

Parameters

NameTypeRequiredDescription
principalnumberyesAmount borrowed
ratenumberyesAnnual interest rate, percent
monthsnumberyesLoan term in months
methodreducing | flatnoInterest method

Call it from code

curl

curl "https://www.leadafrik.com/api/v1/finance/loan?principal=300000&rate=13&months=24&method=reducing"

JavaScript

const res = await fetch("https://www.leadafrik.com/api/v1/finance/loan?principal=300000&rate=13&months=24&method=reducing");
const { ok, data, meta } = await res.json();