EMI Calculator API
Calculate your monthly EMI, total interest, and total payment for any loan — home, car, or personal.
Accurate Calculation
Get precise EMI and loan breakdown using the standard PMT formula.
Detailed Breakdown
Principal, interest, total payment and amortization details.
Easy Integration
Simple REST API with clean JSON response.
Developer Friendly
Clear docs, multiple SDK examples and fast response.
Endpoint
All requests should be made to the following endpoint:
GET https://api.tools.town/v1/calculators/emi Authentication
This endpoint requires an API Key. Include your API key in the request header.
Request Parameters
Send a GET request with query parameters.
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
principal | number | ✓ | Loan principal amount. | 500000 |
annualRate | number | ✓ | Annual interest rate (%). | 8.5 |
tenureMonths | number | ✓ | Loan tenure in months. | 60 |
Example Request
curl -G "https://api.tools.town/v1/calculators/emi" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "principal=500000" \
--data-urlencode "annualRate=8.5" \
--data-urlencode "tenureMonths=60" Example Response 200 OK
{
"success": true,
"data": {
"emi": "0",
"totalPayment": "0",
"totalInterest": "0",
"principal": "0",
"annualRate": "0",
"tenureMonths": "0",
"monthlyRate": "0"
}
} Error Codes
| Code | Meaning |
|---|---|
| 400 | Bad Request — missing or invalid parameter |
| 401 | Unauthorized — API key missing or invalid |
| 429 | Rate limit exceeded — free tier: 1,000 requests/month |
| 500 | Internal Server Error — try again or contact support |