CalcLeap API

Free Financial Calculator API for Developers. Simple, fast, reliable. No credit card required.

Get Started → View on GitHub

Getting Started

The CalcLeap API provides instant access to financial calculations via simple HTTP requests. All endpoints return JSON and are available over HTTPS.

Base URL

https://calcleap.com

Quick Example

// Fetch mortgage calculation
const response = await fetch('https://calcleap.com/api/mortgage?principal=300000&rate=6.5&years=30');
const data = await response.json();
console.log(data);
# Fetch mortgage calculation
import requests

response = requests.get('https://calcleap.com/api/mortgage', params={
    'principal': 300000,
    'rate': 6.5,
    'years': 30
})
data = response.json()
print(data)
# Fetch mortgage calculation
curl "https://calcleap.com/api/mortgage?principal=300000&rate=6.5&years=30"

Authentication

No authentication required for free tier. All endpoints are publicly accessible with rate limits applied per IP address.

For Pro and Enterprise plans, include your API key in the request header:

Authorization: Bearer YOUR_API_KEY

API Endpoints

GET /api/mortgage

Calculate monthly mortgage payment, total payment, and total interest.

Parameters
principal Loan amount (number, required)
rate Annual interest rate as percentage (number, required)
years Loan term in years (number, required)
Try It
const response = await fetch(
  'https://calcleap.com/api/mortgage?principal=300000&rate=6.5&years=30'
);
const data = await response.json();
// Response: { monthlyPayment: 1896.20, totalPayment: 682632, totalInterest: 382632 }
import requests

response = requests.get('https://calcleap.com/api/mortgage', params={
    'principal': 300000,
    'rate': 6.5,
    'years': 30
})
data = response.json()
# Response: { 'monthlyPayment': 1896.20, 'totalPayment': 682632, 'totalInterest': 382632 }
curl "https://calcleap.com/api/mortgage?principal=300000&rate=6.5&years=30"
GET /api/compound

Calculate compound interest with optional regular contributions.

Parameters
principal Initial investment amount (number, required)
rate Annual interest rate as percentage (number, required)
years Investment period in years (number, required)
contribution Regular contribution amount (number, default: 0)
compounding Compounding frequency: annually, monthly, daily (string, default: annually)
Try It
const params = new URLSearchParams({
  principal: 10000,
  rate: 7,
  years: 10,
  contribution: 500,
  compounding: 'monthly'
});
const response = await fetch(`https://calcleap.com/api/compound?${params}`);
const data = await response.json();
response = requests.get('https://calcleap.com/api/compound', params={
    'principal': 10000,
    'rate': 7,
    'years': 10,
    'contribution': 500,
    'compounding': 'monthly'
})
curl "https://calcleap.com/api/compound?principal=10000&rate=7&years=10&contribution=500&compounding=monthly"
GET /api/retirement

Calculate retirement savings projections based on age and contributions.

Parameters
currentAge Current age (number, required)
retireAge Retirement age (number, required)
currentSavings Current retirement savings (number, required)
monthlyContribution Monthly contribution amount (number, required)
annualReturn Expected annual return as percentage (number, required)
Try It
const params = new URLSearchParams({
  currentAge: 35,
  retireAge: 65,
  currentSavings: 50000,
  monthlyContribution: 1000,
  annualReturn: 7
});
const response = await fetch(`https://calcleap.com/api/retirement?${params}`);
const data = await response.json();
response = requests.get('https://calcleap.com/api/retirement', params={
    'currentAge': 35,
    'retireAge': 65,
    'currentSavings': 50000,
    'monthlyContribution': 1000,
    'annualReturn': 7
})
curl "https://calcleap.com/api/retirement?currentAge=35&retireAge=65¤tSavings=50000&monthlyContribution=1000&annualReturn=7"
GET /api/loan

Calculate loan payments with optional down payment.

Parameters
amount Loan amount (number, required)
rate Annual interest rate as percentage (number, required)
months Loan term in months (number, required)
downPayment Down payment amount (number, default: 0)
Try It
const params = new URLSearchParams({
  amount: 25000,
  rate: 5.5,
  months: 60,
  downPayment: 5000
});
const response = await fetch(`https://calcleap.com/api/loan?${params}`);
const data = await response.json();
response = requests.get('https://calcleap.com/api/loan', params={
    'amount': 25000,
    'rate': 5.5,
    'months': 60,
    'downPayment': 5000
})
curl "https://calcleap.com/api/loan?amount=25000&rate=5.5&months=60&downPayment=5000"
GET /api/insurance

Estimate insurance costs for auto or home insurance.

Parameters
type Insurance type: auto or home (string, required)
state US state abbreviation (string, required)
age Age of insured (number, required)
coverage Coverage amount (number, required)
Try It
const params = new URLSearchParams({
  type: 'auto',
  state: 'CA',
  age: 35,
  coverage: 100000
});
const response = await fetch(`https://calcleap.com/api/insurance?${params}`);
const data = await response.json();
response = requests.get('https://calcleap.com/api/insurance', params={
    'type': 'auto',
    'state': 'CA',
    'age': 35,
    'coverage': 100000
})
curl "https://calcleap.com/api/insurance?type=auto&state=CA&age=35&coverage=100000"
GET /api/bmi

Calculate Body Mass Index with category classification.

Parameters
weight Body weight (number, required)
height Height (number, required)
unit Unit system: imperial or metric (string, default: imperial)
Try It
const params = new URLSearchParams({
  weight: 180,
  height: 70,
  unit: 'imperial'
});
const response = await fetch(`https://calcleap.com/api/bmi?${params}`);
const data = await response.json();
response = requests.get('https://calcleap.com/api/bmi', params={
    'weight': 180,
    'height': 70,
    'unit': 'imperial'
})
curl "https://calcleap.com/api/bmi?weight=180&height=70&unit=imperial"
GET /api/tip

Calculate tip and split bill among multiple people.

Parameters
bill Bill amount (number, required)
tipPercent Tip percentage (number, required)
people Number of people splitting bill (number, default: 1)
Try It
const params = new URLSearchParams({
  bill: 85.50,
  tipPercent: 20,
  people: 4
});
const response = await fetch(`https://calcleap.com/api/tip?${params}`);
const data = await response.json();
response = requests.get('https://calcleap.com/api/tip', params={
    'bill': 85.50,
    'tipPercent': 20,
    'people': 4
})
curl "https://calcleap.com/api/tip?bill=85.50&tipPercent=20&people=4"
GET /api/percentage

Calculate percentage operations: what is X% of Y, percentage increase/decrease, or percentage change.

Parameters
value Base value (number, required)
percentage Percentage value (number, required)
type Calculation type: of, increase, decrease, or change (string, required)
Try It
const params = new URLSearchParams({
  value: 1000,
  percentage: 15,
  type: 'of'
});
const response = await fetch(`https://calcleap.com/api/percentage?${params}`);
const data = await response.json();
response = requests.get('https://calcleap.com/api/percentage', params={
    'value': 1000,
    'percentage': 15,
    'type': 'of'
})
curl "https://calcleap.com/api/percentage?value=1000&percentage=15&type=of"

Pricing

Choose the plan that fits your needs. All plans include access to all endpoints.

Free
$0/month
Perfect for testing and small projects
  • 100 requests per day
  • All 8 endpoints
  • Rate limited by IP
  • Community support
  • No credit card required
Get Started
Enterprise
Custom
For high-volume applications
  • Unlimited requests
  • Custom endpoints
  • Dedicated support
  • SLA guarantees
  • On-premise deployment option
Contact Sales
⚠️ Disclaimer: This tool provides estimates for informational and educational purposes only. Results may not reflect actual values and should be verified independently. CalcLeap makes no warranties regarding the accuracy or completeness of any calculations. Use at your own discretion.