GET
/api/v1/loanLoan EMI Calculator API
Equated monthly instalment (EMI) plus total interest and total payment, using the reducing-balance formula.
Parameters
| Param | In | Required | Description |
|---|---|---|---|
| principal | query | yes | Loan amount in LKR. |
| rate | query | yes | Annual interest rate %. |
| months | query | yes | Tenure in months. |
Request
curl "https://induwara.lk/api/v1/loan?principal=5000000&rate=12.5&months=240"JavaScript (SDK):
import { InduwaraLK } from "https://induwara.lk/sdk/induwaralk.js";
const api = new InduwaraLK();
const data = await api.loan(/* … */);Response
{
"ok": true,
"data": {
"principal": 5000000, "annualRate": 12.5, "tenureMonths": 240,
"emi": 56785.71, "totalInterest": 8628570.4, "totalPayment": 13628570.4,
"currency": "LKR"
}
}Frequently asked questions
- Is there a free loan EMI calculator API?
- Yes. GET /api/v1/loan?principal=5000000&rate=12.5&months=240 returns the monthly EMI plus total interest and total payment using the reducing-balance formula.