⚡ Developer API

Financial Calculator API

Integrate 100+ financial calculators into your app, website, or workflow. REST API with JSON responses, SDKs, and an interactive playground. Free tier available.

Base URL

Base URL: https://api.finstyra.com/v1

All requests require an Authorization: Bearer YOUR_API_KEY header.

Available Endpoints

GET/api/v1/calculators
POST/api/v1/calculate/compound-interest
POST/api/v1/calculate/mortgage
POST/api/v1/calculate/sip
POST/api/v1/calculate/emi
POST/api/v1/calculate/fire
POST/api/v1/calculate/retirement
POST/api/v1/calculate/cagr
GET/api/v1/currency/rates
POST/api/v1/currency/convert

Code Examples

// Finstyra API — JavaScript Example
const response = await fetch('https://api.finstyra.com/v1/calculate/sip', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer YOUR_API_KEY'
  },
  body: JSON.stringify({
    monthly_investment: 10000,   // INR
    annual_return: 12,           // %
    years: 10,
    currency: 'INR'
  })
});

const data = await response.json();
console.log(data);
// {
//   "future_value": 2323217,
//   "total_invested": 1200000,
//   "wealth_gained": 1123217,
//   "cagr": 6.72,
//   "currency": "INR"
// }
# Finstyra API — Python Example
import requests

response = requests.post(
    'https://api.finstyra.com/v1/calculate/mortgage',
    headers={'Authorization': 'Bearer YOUR_API_KEY'},
    json={
        'home_price': 400000,
        'down_payment': 80000,
        'interest_rate': 7.0,
        'loan_term': 30,
        'currency': 'USD'
    }
)

data = response.json()
monthly = data['monthly_payment']
interest = data['total_interest']
print("Monthly Payment: $" + format(monthly, ",.0f"))
print("Total Interest: $" + format(interest, ",.0f"))
# Output:
# Monthly Payment: $2,129
# Total Interest: $446,428
# Finstyra API — cURL Example
curl -X POST https://api.finstyra.com/v1/calculate/compound-interest \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "principal": 100000,
    "annual_rate": 8,
    "years": 10,
    "compound_frequency": "monthly"
  }'

# Response:
# {
#   "future_value": 221964,
#   "interest_earned": 121964,
#   "effective_annual_rate": 8.30
# }
<?php
// Finstyra API — PHP Example
$client = new GuzzleHttp\Client();

$response = $client->post('https://api.finstyra.com/v1/calculate/emi', [
    'headers' => [
        'Authorization' => 'Bearer YOUR_API_KEY',
        'Content-Type' => 'application/json',
    ],
    'json' => [
        'principal' => 500000,
        'annual_rate' => 10.5,
        'tenure_months' => 60,
        'currency' => 'INR',
    ]
]);

$data = json_decode($response->getBody(), true);
echo "EMI: ₹" . number_format($data['emi']);

Why Finstyra API?

Lightning Fast

Median response time < 50ms. Built on globally distributed edge infrastructure.

🎯

100+ Calculators

Compound interest, mortgage, SIP, FIRE, EMI, retirement, tax, and more.

🌍

Multi-Currency

Support for USD, EUR, GBP, INR, AED, CAD, AUD, and 13+ more currencies.

📖

OpenAPI Spec

Full Swagger/OpenAPI 3.0 documentation with interactive playground.

🔒

Secure

API key authentication, HTTPS only, SOC 2 compliant infrastructure.

📊

Detailed Responses

Rich JSON with projections, breakdowns, charts data, and insights.