CalcFi Developer API — coming soon
Hundreds of calculators, one API. Join the waitlist.
Authentication
All API requests require a Bearer token in the Authorization header. API keys are issued per-application and available through your dashboard.
API Reference
Every endpoint accepts JSON and returns structured results.
/v1/calculate/mortgageCalculate monthly mortgage payment, total interest, and amortization schedule.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| principal | number | required | Loan amount in USD |
| annual_rate | number | required | Annual interest rate as a decimal (e.g. 0.065) |
| term_years | integer | required | Loan term in years (e.g. 30) |
| include_amortization | boolean | optional | Return full amortization schedule |
Request Body
{
"principal": 400000,
"annual_rate": 0.065,
"term_years": 30,
"include_amortization": false
}Response
{
"monthly_payment": 2528.27,
"total_interest": 510178.20,
"total_cost": 910178.20,
"payoff_date":"2055-04-01",
"meta": {
"calculator":"mortgage",
"version":"1.0",
"computed_at":"2025-04-01T12:00:00Z"
}
}/v1/calculate/compound-interestCalculate compound interest growth with optional regular contributions.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| principal | number | required | Initial investment amount |
| annual_rate | number | required | Annual interest rate as a decimal |
| years | integer | required | Investment duration in years |
| monthly_contribution | number | optional | Regular monthly contribution |
| compound_frequency | string | optional | "monthly" |"quarterly" |"annually" |
Request Body
{
"principal": 10000,
"annual_rate": 0.07,
"years": 30,
"monthly_contribution": 500,
"compound_frequency":"monthly"
}Response
{
"final_value": 613089.34,
"total_contributions": 190000.00,
"total_interest_earned": 423089.34,
"growth_multiple": 3.23,
"yearly_breakdown": [
{"year": 1,"value": 17283.40 },
{"year": 5,"value": 51640.28 }
]
}/v1/calculate/retirementProject retirement savings and determine required monthly contribution to reach a goal.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| current_age | integer | required | Current age in years |
| retirement_age | integer | required | Target retirement age |
| current_savings | number | required | Current retirement savings balance |
| monthly_contribution | number | required | Current monthly contribution |
| annual_return | number | optional | Expected annual return (default 0.07) |
Request Body
{
"current_age": 35,
"retirement_age": 65,
"current_savings": 50000,
"monthly_contribution": 1000,
"annual_return": 0.07
}Response
{
"projected_balance": 1247892.50,
"years_to_retirement": 30,
"monthly_income_at_4pct": 4159.64,
"on_track": true,
"required_monthly_for_1m": 831.52,
"required_monthly_for_2m": 1663.04
}/v1/calculatorsList all available calculators with their slugs, categories, and required parameters.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| category | string | optional | Filter by category (e.g."mortgage","retirement","tax") |
Request
GET /v1/calculators?category=mortgage Authorization: Bearer YOUR_API_KEY
Response
{
"calculators": [
{
"slug":"mortgage-payment",
"name":"Mortgage Payment Calculator",
"category":"mortgage",
"endpoint":"/v1/calculate/mortgage"
},
{
"slug":"mortgage-affordability",
"name":"Mortgage Affordability Calculator",
"category":"mortgage",
"endpoint":"/v1/calculate/mortgage-affordability"
}
],
"total": 14,
"categories": ["mortgage","retirement","investing","debt","tax","business"]
}Error Handling
400401404429422500Who Uses the CalcFi API
Built for developers who need accurate financial calculations without reinventing the math.
Fintech Apps
Add financial planning tools to your banking or investment app without building from scratch.
Robo-Advisors
Power retirement projections and investment calculators in automated advisory platforms.
Real Estate Platforms
Integrate mortgage, affordability, and rent-vs-buy calculations into property listings.
Mobile Apps
Fetch calculation results server-side and display them natively in iOS and Android apps.
Publisher Tools
Build custom interactive widgets that pull live calculations for editorial content.
AI Assistants
Give your LLM-powered financial assistant accurate, structured calculation capabilities.
Why CalcFi API
Pricing (Coming Soon)
Early access users on the waitlist will receive discounted pricing.
Starter
- ✓ 1,000 requests/month
- ✓ All calculators
- ✓ REST API access
- ✓ Community support
Pro
- ✓ 50,000 requests/month
- ✓ All calculators
- ✓ Priority support
- ✓ Webhook callbacks
- ✓ Higher rate limits
Enterprise
- ✓ Unlimited requests
- ✓ SLA guarantee
- ✓ Dedicated support
- ✓ Custom calculators
- ✓ On-premise option
Request API Access
The CalcFi API is in development. Join the waitlist to get early access, shape the feature set, and receive launch pricing.
No spam. You'll only hear from us when the API launches.
FAQ
When will the API launch?
We're actively building it. Waitlist members will get early access and will be notified before public launch. Join above.
Will there be a free tier?
Yes. We plan to offer a free Starter tier with 1,000 requests/month to let developers prototype and build without upfront commitment.
Can I use the embed iframes right now?
Absolutely. While the API is in development, you can embed any CalcFi calculator on your website for free right now via the /embed page. No API key required.
Which calculators will be available?
Hundreds of CalcFi calculators. That includes mortgage, compound interest, retirement, taxes, debt payoff, crypto, business, salary, and more.
Will you build custom calculators?
Enterprise plans will include custom calculator development. If you have a specific calculation need, mention it in the waitlist form.
Citing CalcFi data
If you use CalcFi data in research, journalism, or a derivative product, please cite the dataset under CC BY 4.0:
Salmisto, J. (2026). CalcFi Open Data: 34 Free CC-BY Financial and Macro Time Series Mirrored from Primary Sources [Dataset]. Figshare. https://doi.org/10.6084/m9.figshare.32332290
The dataset is also archived with permanent identifiers at:
- Figshare: 10.6084/m9.figshare.32332290
- Zenodo (CERN archival): 10.5281/zenodo.20302283
- OSF: 10.17605/OSF.IO/PUMKT
- Kaggle (canonical bundle): 10.34740/kaggle/dsv/16356447 — bundled CC-BY dataset. Plus 24 per-series Kaggle dataset mirrors (rates, FX, oil, gas, labor, GDP, prices) — each independently citable at kaggle.com/jeresalmisto/datasets.
- Mendeley Data: data.mendeley.com/datasets/jsnwhy6vjn/1 (DOI pending curation)
- Harvard Dataverse: 10.7910/DVN/2LJXZM
- Zenodo Software DOIs (7, CERN-archived from GitHub releases): calcfi-open-data · calcfidata-js · CalcFiData.jl · dbt-calcfi-open-data · streamlit-yield-curve-recession · streamlit-mortgage-rate-today · streamlit-cpi-pce-inflation
- Wikidata (Jere Salmisto): Q139897552
- Wikidata (CalcFi org): Q139897285
- Hugging Face mirror: iizy/calcfi-open-data
- GitLab mirror: jere.salmisto/calcfi-open-data
- Static documentation site: calcfi-open-data-4a2bc1.gitlab.io (catalog, methodology, citation guide)
- Full reference docs (MkDocs Material): calcfidata.readthedocs.io
- Live SQL queries (Datasette): calcfi-open-data.vercel.app — 5 saved queries, JSON + CSV export
- data.world mirror: data.world/jerehere/calcfi-open-data
- DoltHub (git-for-data, versioned): dolthub/jerehere/calcfi-open-data
- MotherDuck (cloud DuckDB): shared database —
ATTACH 'md:_share/calcfi_open_data_share/...' - Python package (PyPI): pypi.org/project/calcfidata —
pip install calcfidata - Anaconda channel: anaconda.org/jeresalmisto/calcfidata
- GitLab Package Registry: jere.salmisto/calcfi-open-data/-/packages
- Software Heritage Archive (permanent citable code preservation, visit 2026-05-26 UTC):
- calcfi-open-data
SWHID:swh:1:rev:2b1261d034ee055f2254a1ed5058be408e02176b - calcfidata-js
SWHID:swh:1:rev:db07c9e3528f5778d553e1c546849b8f03f941f8 - CalcFiData.jl
SWHID:swh:1:rev:1ab03c220b398d8ef525f67f4115ebabbf72f9e6 - dbt-calcfi-open-data
SWHID:swh:1:rev:81edab9d10c0cbdbba6d43569766ec8c645f86e6 - streamlit-yield-curve-recession
SWHID:swh:1:rev:1c06881ca0b471ed35216bf388b0b02fe15ec187 - streamlit-mortgage-rate-today
SWHID:swh:1:rev:ade4fa03172a2a56e62d9d504fe373b9295967e1 - streamlit-cpi-pce-inflation
SWHID:swh:1:rev:e50c8b51f1c1de9a9b093ad8b8fe1af8f3723aa5 - jeresalmisto (author profile repo)
SWHID:swh:1:rev:5ea57e2f817a851c18dce3802b8b4c27f78e7c40
- calcfi-open-data
All entries resolve to identical content under the same Creative Commons Attribution 4.0 International licence. Attribution requested back to calcfi.app and the primary source named in each dataset's README.
Code demos and visualizations
Interactive visualizations built on the CalcFi Open Data dataset:
- Observable notebooks: CalcFi US Macro & Finance Data Stories collection — curated set covering: 50-Year Mortgage Rates vs 10Y Treasury · Yield Curve Recession Indicator (2s/10s) · Why 2% Inflation? Fed Target History
- Hugging Face Spaces (10): Mortgage explorer · Inflation & wage tracker · Yield curve spread · Fed funds cycle · Oil & gas tracker · FX history · Commodity inflation · GDP per capita · Labor market · Consumer credit
- CodePen demos: 6-pen collection — compound interest, mortgage amortization, inflation-adjusted returns, 30Y mortgage rate history, retirement corpus, CPI vs wages. Vanilla JS, MIT.
- Streamlit Cloud apps: CPI vs PCE inflation · Mortgage rate today · Yield curve recession indicator — interactive Python apps backed by the CalcFi Open Data ETL. Source on GitHub + permanent Software Heritage archive (SWHID listed above).
- Kaggle Notebooks: 30Y Mortgage Rate History · Capital Gains Tax Rates 2026 · 401k Contribution Limits · Compound Interest Explained · Auto Loan Rate (48mo) — Python notebooks demonstrating analysis on the CalcFi Open Data Kaggle dataset. More notebooks pending account-level deploy cleanup.
- CalcFi MCP server (for Claude / ChatGPT / Cursor AI agents): github.com/jeresalmisto/calcfi-mcp — Open-source Model Context Protocol server exposing 24 CalcFi tools (mortgage, paycheck, capital gains, citation generators, dataset DOIs, methodology, press provenance) directly inside AI chat clients. Install with
npm install -g @calcfi/mcporpip install calcfi-mcp. MIT license, stdio-first, zero-cost self-hosted. Tools return primary-source-cited results with optional Ed25519-signed citations for academic use. Same data, no scraping, no fees, no signup.
Want to use CalcFi right now?
While the API is in development, you can embed any calculator on your website for free today.
Get Free Embed Code