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
Calculate monthly mortgage payment, total payment, and total interest.
Parameters
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"
Calculate compound interest with optional regular contributions.
Parameters
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"
Calculate retirement savings projections based on age and contributions.
Parameters
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"
Calculate loan payments with optional down payment.
Parameters
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"
Estimate insurance costs for auto or home insurance.
Parameters
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"
Calculate Body Mass Index with category classification.
Parameters
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"
Calculate tip and split bill among multiple people.
Parameters
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"
Calculate percentage operations: what is X% of Y, percentage increase/decrease, or percentage change.
Parameters
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.
- 100 requests per day
- All 8 endpoints
- Rate limited by IP
- Community support
- No credit card required
- 10,000 requests per day
- All 8 endpoints
- API key authentication
- Priority email support
- 99.9% uptime SLA
- Unlimited requests
- Custom endpoints
- Dedicated support
- SLA guarantees
- On-premise deployment option