Kalkülatör
Every calculator on this site is also a free JSON API. No sign-up, no API key, CORS-enabled. Call it from your server or straight from the browser.
_Gözleg
The API runs the exact same math the website uses. Send a calculator's field values as query parameters or JSON and get the computed results back as JSON, including any amortization schedule or chart data the calculator produces.
- 198+ Kalkülatörler, her biri öz ahyr nökerleri bilen
- API adyny goramak başartmady: anonim erişmek, IP bilen çäklendirilen
- CORS:
Access-Control-Allow-Origin: *(ulanyşa laýyk klanç tarapy) - _Gün: 60 IP üçin sagatda soraglar (HTTP 429 eger gaçsa)
- Hatalar boşdur: diňe bir başarnykly (2xx) jogap siziň aýlyk kvotaňyzdan bir jaňy ulanýar. Her 400, 401, 404, 429 we 500 size hiç zat tölemeýär.
Base URL
https://calculator.free/api/v1/
Index: list every calculator
GET https://calculator.free/api/v1/
Returns a machine-readable list of all calculators with each one's fields (key, label, type, default, unit) and result keys, enough to build a client dynamically. 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.
Compute: run one calculator
GET https://calculator.free/api/v1/<slug>/?field=value&field=value
POST https://calculator.free/api/v1/<slug>/ (JSON or form body)
Jawa şekili:
{
"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"]
}
Ýurduň-aňly hasapçylaryň (hypoteka, karz, girdeji-salgy, satyş-salgy...) kabul et ?country=us|uk|ca|au|in|ie|nz|za. Namazly slug 404 gaýtarýar; goldamaýan ýurt ýa-da erbet girdeji 400 kömekçi bir habar bilen we meýdan specifikasiýasy bilen gaýtarýar.
Parametrler, öň bellenenler we hatalar
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, since 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": [ ... ]
}
| hata | HTTP | When |
|---|---|---|
unknown_parameter | 400 | bir parametr bu hasapçynyň bir meýdançasy däl (bir siz-aýal- |
invalid_value | 400 | bir san meýdançasy ol san däl, onuň saýlawlaryndan daşda bir düşen mykdar, pars edilip bilmeýän bir taryh ýa-da namalar _mode |
missing_parameter | 400 | kalkulýator netije çykarmady sebäbi bir meýdan öň bellenen bolmadyk bozuldy |
unsupported_country | 400 | ?country= bu kalkulýatoryň maglumaty bar bir zat däl |
bad_json | 400 | POST bedeni dogry JSON däl |
unknown_calculator | 404 | oňki bilen hiç bir hasapçy ýok |
invalid_key | 401 | API adyny ibermek islendi emma ol namydar ýa-da hereketsiz |
rate_limited / quota_exceeded | 429 | anonim sagat IP çäklendirmesi, ýa-da açaryň aýlyk kvotasy, ulanyldy |
too_many_invalid_requests | 429 | too 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. |
_Gün /api/v1/ index publishes every field's key, type, unit, default and whether it is required, enough to build a client that never guesses.
Tanyşdyryş
You can call the API with no key at all: anonymous requests are rate-limited by IP. For a higher, predictable monthly quota (and commercial use), create a key on your account page and send it one of three ways:
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: anonim (IP tizligi çäkli) ýa-da az aýlyk kvotaly azat açar. Tiz däl.
- Developer ($9/mo): 10,000 çagyryş/aýda, söwda ulanmak.
- Business ($49/mo): 100,000 çagyryş/aýda, öňdebaryjy geçirijilik.
Siziň kotawyňyza nädip hasaplanmaly
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.
Hatalar azat bolansoň olar çaltlyk bilen çäklendirilýär: eger bir baglanç ondan köp hata döredýän bolsa 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.
Bir alyçyň aýlyk kwotasy ulanylanda API HTTP 429'y "quota_exceeded" hatasy bilen gaýtarýar; namazly ýa-da hereketsiz alyç HTTP 401'y gaýtarýar. See full plans and sign up on the Pricing sahypa.
Mysal
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}'
Use it from Claude, ChatGPT or Cursor
Calculator.Free is also an MCP server, so AI assistants can use it in a conversation: https://calculator.free/mcp. Setup for each app
Ehli _Sähbetler
Her bir hasapçy üçin bir sonuk noktasy. Her biriniň meýdan atlyklary we netije atlyklary şunda /api/v1/ indeks.
Maliýe (41)
_Gün (2)
| Kalkülatör | Endpoint |
|---|---|
| Işiň adyny üýtget | /api/v1/income-tax/ |
| Satýuş töleg we VAT hasapçy | /api/v1/sales-tax/ |
Saglyk we Fitnes (28)
_Täze (26)
Stats (15)
Birlik Üýtgekleri (17)
Ilm we inženerçilik (27)
Taryh we Zaman (15)
Her gün (27)
Netijeler diňe umumy ýardam üçin hasaplanypdyr, maliýe, saglyk ýa-da salgyt maslahaty üçin däl.