Free Calculator API

All Rechner op dëser Säit ass och eng gratis JSON API. Keng Registréierung, keng API Schlëssel, CORS-aktivéiert - rufft et vun Ärem Server oder direkt aus dem Browser.

Iwwersiicht

D'API féiert déi selwecht Mathematik aus wéi d'Websäit. Setzt Feldwäerter vun engem Rechner als Ufroparameter oder JSON an kritt d'berechent Resultater als JSON zréck - inklusiv all Amortisatiounsplang oder Diagrammdaten déi de Rechner produzéiert.

  • 198+ Rechner, all mat engem eegenen Endpunkt
  • Keng API Schlëssel — anonymous access, rate-limited by IP
  • CORSAccess-Control-Allow-Origin: * (Clientsäit)
  • Rate Limit: 60 Ufroen/Stonn pro IP (HTTP 429 wann iwwerschratt)
  • Errors are free — only a successful (2xx) response uses one call from your monthly quota. Every 400, 401, 404, 429 and 500 costs you nothing.

Basis- URL

https://calculator.free/api/v1/

Index — all Rechner opzielen

GET https://calculator.free/api/v1/

D'Resultat ass eng ganz Rei vu verschiddene Formen, déi all op eng aner Manéier funktionnéieren (z. B. d'Resultat vun enger Geschicht, engem Film, enger Serie, enger Serie vu Lidder, asw.). Each field also carries a required flag — true for the few fields that have no default (dates, mostly). Send those: a couple of calculators can infer one, the rest answer 400 without it.

Rechen - e Rechner ausféieren

GET  https://calculator.free/api/v1/<slug>/?field=value&field=value
POST https://calculator.free/api/v1/<slug>/     (JSON or form body)

Antwortform:

{
  "ok": true,
  "slug": "mortgage",
  "country": "us",
  "inputs":   { ... the values actually computed with ... },
  "results":  { ... computed result keys ... },
  "schedule": { "columns": [...], "rows": [...] } | null,
  "chart":    { "type": "pie", "slices": [...] } | null,
  "defaults_applied": ["tax", "insurance"]
}

D'Sozialversécherung (Sozialversécherung, Sozialversécherung, Sozialversécherung, Sozialversécherung) ass eng staatlech Gesondheets- a Fleegeversécherung. ?country=us|uk|ca|au|in|ie|nz|za. D'Grenz tëscht dem Land an der Belsch ass net ganz kloer, well et 400 Kilometer Grenz tëscht dem Land an der Belsch gëtt.

Parameters, defaults and errors

Send only the fields you care about. Anything you leave out is filled with that field's published default — the same value the calculator page pre-fills, so the API and the website always return the same numbers for the same inputs. Each response lists what it filled in under defaults_applied.

Anything the API cannot resolve honestly is an error, never a zero: a misspelled parameter, a value of the wrong type, an unknown dropdown option, or a missing field that has no default (the date fields — a birth date cannot be guessed). Every 400 names the offending parameter and echoes the full field spec so a client can correct itself.

$ curl "https://calculator.free/api/v1/mortgage/?price=350000&rate=6.5&term=30"
{
  "ok": false,
  "error": "unknown_parameter",
  "message": "Unknown parameter 'term' for calculator 'mortgage'. Did you mean 'years'? ...",
  "unknown_parameters": ["term"],
  "did_you_mean": { "term": "years" },
  "valid_parameters": ["down", "extra", "extra_onetime", "extra_yearly", "hoa",
                       "insurance", "other", "pmi", "price", "rate", "tax", "years"],
  "fields": [ ... ]
}
errorHTTPWhen
unknown_parameter400a parameter that is not a field of this calculator (with a did-you-mean suggestion)
invalid_value400a number field that is not a number, a dropdown value outside its options, an unparseable date, or an unknown _mode
missing_parameter400the calculator produced no result because a field with no default was left empty
unsupported_country400?country= is not one this calculator has data for
bad_json400the POST body is not valid JSON
unknown_calculator404no calculator with that slug
invalid_key401an API key was sent but is unknown or inactive
rate_limited / quota_exceeded429the anonymous hourly IP limit, or a key's monthly quota, is used up
too_many_invalid_requests429too many rejected requests in one hour for this key — rejected calls are free, so they are rate-limited instead. Resets hourly; successful calls never count towards it.

The /api/v1/ index publishes every field's key, type, unit, default and whether it is required — enough to build a client that never guesses.

Authentifizéierung

Dir kënnt d'API ouni Schlëssel opruffen - anonym Ufroe sinn duerch IP limitéiert. Fir eng méi héich, virsiichteg monatlech Quota (an kommerziell Benotzung), erstellen en Schlëssel op Ärer Kontsäit an schécken et op eng vun den dräi Manéiere:

GET  https://calculator.free/api/v1/mortgage/?price=350000&key=YOUR_KEY
curl -H "Authorization: Bearer YOUR_KEY" "https://calculator.free/api/v1/bmi/?units=metric&height=180&weight=80"
curl -H "X-Api-Key: YOUR_KEY"           "https://calculator.free/api/v1/bmi/?units=metric&height=180&weight=80"
  • Free — anonym (IP-Rate-limitéiert) oder e gratis Schlëssel mat enger klenge monatlecher Quot. Net kommerziell.
  • Entwéckler &mdash; $9/mo — 10.000 Leit, déi am 1.
  • Business &mdash; $49/mo — 100.000 Leit, déi d'Spill spillen.

What counts against your quota

Only a successful response does. One 2xx = one call. Every error is free: a 400 for a misspelled parameter, a bad value or a missing required field, a 404 for an unknown slug, a 401 for a bad key, a 429, and anything that goes wrong on our side. Explore the contract and fix your request as many times as you need — you are billed for answers, not for corrections.

Because errors are free they are rate-limited instead: if one key provokes more than 200 rejected responses in an hour, it gets HTTP 429 "too_many_invalid_requests" until the hour rolls over. Successful calls never count towards that, so a working integration will never see it — it only catches a client stuck in a retry loop.

Wann d'Spill op engem Computer gespillt gëtt, gëtt et eng 4000-Spill-Optioun, déi op der 4000-Spill-Säit verfügbar ass. Si ass och an der Lëscht vun de gréisste Stären opgeholl. Präis Säit.

Beispiller

curl

curl "https://calculator.free/api/v1/mortgage/?price=350000&down=70000&rate=6.9&years=30"

JavaScript fetch()

const r = await fetch(
  "https://calculator.free/api/v1/bmi/?" + new URLSearchParams({
    units: "metric", height: "180", weight: "80"
  }));
const { results } = await r.json();
console.log(results.bmi, results.category);

Python

import requests

r = requests.get("https://calculator.free/api/v1/mortgage/",
                 params={"price": 350000, "down": 70000,
                         "rate": 6.9, "years": 30},
                 headers={"Authorization": "Bearer YOUR_KEY"})
print(r.json()["results"])

POST JSON

curl -X POST "https://calculator.free/api/v1/income-tax/?country=uk" \
  -H "Content-Type: application/json" \
  -d '{"income": 60000}'

All Endpunkten

E Endpunkt pro Rechner. Feldschlëssel an Resultatschlëssel fir all sinn am /api/v1/ Index.

Finanzen (41)
RechnerEndpunkt
Hypothéik-Rechner /api/v1/mortgage/
Rechner /api/v1/loan/
Compound Interest Calculator /api/v1/compound-interest/
Einfache Zinsrechner /api/v1/simple-interest/
Kreditkaart Payoff Rechner /api/v1/credit-card-payoff/
Rechner fir Brennstoffkäschte /api/v1/fuel-cost/
Auto Loan Calculator /api/v1/auto-loan/
Rentenrechner /api/v1/retirement/
Rechner fir d'Sparziel /api/v1/savings-goal/
Profit Margin Calculator /api/v1/margin/
Zukünfteg Wäert Rechner /api/v1/future-value/
Present Value Rechner /api/v1/present-value/
ROI-Rechner /api/v1/roi/
Rechner fir Annuitéiten /api/v1/annuity-payout/
Abrëll 2007 Rechner /api/v1/apr-to-apy/
CD-Rechner /api/v1/cd/
Inflatiounsrechner /api/v1/inflation/
Websäit vun der Gemeng /api/v1/home-affordability/
Lëscht vun de Reegele vum Reegelespill /api/v1/rent-affordability/
Rechner fir d'Bezuelen /api/v1/down-payment/
Refinanzierungsrechner /api/v1/refinance/
Lëscht vun de lëtzebuergesche Reliounswëssenschaftler /api/v1/debt-to-income/
Lëscht vun de Reegele /api/v1/boat-loan/
Studentenkreditrechner /api/v1/student-loan/
Personal Loan Calculator /api/v1/personal-loan/
Auto-Rechner /api/v1/lease/
Nettowäert-Rechner /api/v1/net-worth/
[Translation temporarily unavailable. Please try again.] /api/v1/break-even/
SIP-Rechner /api/v1/sip/
EMI-Rechner /api/v1/emi/
401(k) Rechner /api/v1/401k/
Roth IRA Rechner /api/v1/roth-ira/
Traditionelle IRA-Rechner /api/v1/ira/
Budgetsrechner (50/30/20) /api/v1/budget/
Rechner fir d'Sozialversécherung /api/v1/social-security/
Rechner fir d'Spill /api/v1/debt-payoff/
Rechner fir Miet- a Kafpräisser /api/v1/rent-vs-buy/
Lëscht vun de lëtzebuergesche Reliounswëssenschaftler /api/v1/mortgage-payoff/
APR-Rechner /api/v1/apr/
Rechner fir d'Depreciatioun /api/v1/depreciation/
GDP-Rechner /api/v1/gdp/
Steuern a Gehalt (2)
Gesundheit & Fitness (28)
Typ (26)
Statistiken (15)
Eenheets-Konverter (17)
Science & Engineering (27)
Datum & Zäit (15)
All Dag (27)

D'Resultater sinn nëmmen als allgemeng Orientéierung, net als finanziell, medizinesch oder Steuerberodung.