מחשבון חינם API

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.

סקירה

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+ מחשבונים, כל אחד עם נקודת קצה משלו
  • אין מפתח API — גישה אנונימית, שיעור מוגבל על ידי IP
  • CORS — Access-Control-Allow-Origin: * (לקוח זמין)
  • רמת הגבלת קצב: 60 בקשות/ שעה ל- IP (HTTP 429 כאשר חרג)
  • שגיאות הן בחינם — only a successful (2xx) response uses one call from your monthly quota. Every 400, 401, 404, 429 and 500 costs you nothing.

כתובת בסיס

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

Index — list every calculator

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

מחזיר רשימה של כל מחשבונים שניתן לקרוא באמצעות כל אחד מהם (מפתח, תוויות, סוג, ברירת מחדל, יחידה) ומביא למפתחות מספיק כדי לבנות לקוח באופן דינמי. 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.

מחשבון אחד

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

צורת תגובה:

{
  "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"]
}

מחשבונים מודעים למדינה (משכנתר, הלוואה, מס הכנסה, מס מכירות...) ?country=us|uk|ca|au|in|ie|nz|za. הקליע לא ידוע מחזיר 404; מדינה לא נתמכת או קלט רע מחזירה 400 עם הודעה מועילה ומפרט השדה.

פרמטרים, ברירת מחדל וטעויות

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": [ ... ]
}
שגיאהHTTPמתי
unknown_parameter400פרמטר שאינו שדה של המחשבון הזה (עם הצעה של "עשה אתה")
invalid_value400שדה מספרים שאינו מספר, ערך ירידה מחוץ לאפשרויות שלו, תאריך בלתי ניתן להסדר, או _מוד לא ידוע
missing_parameter400המחשבון לא הפיק תוצאה משום ששדה ללא ברירת מחדל לא נשאר ריק
unsupported_country400? מדינה= אין אחד מחשבון זה יש נתונים עבור
bad_json400גוף הדואר אינו תקף JSON
unknown_calculator404אין מחשבון עם הקליע הזה.
invalid_key401מפתח API נשלח אך אינו ידוע או לא פעיל
rate_limited / quota_exceeded429גבול האיי-פי האנונימי לשעה, או מכסת המפתח החודשית, משמש לשימוש
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/ אינדקס מפרסם את המפתח, הסוג, היחידה, ברירת המחדל של כל שדה, והאם הוא נדרש מספיק כדי לבנות לקוח שלעולם לא מנחש.

אימות ותוכניות

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"
  • חופשי — אנונימי (IP-Limited) או מפתח חינם עם מכסה חודשית קטנה.
  • מפתח & mdash; 9/mo — 10,000 שיחות/חודש, שימוש מסחרי.
  • עסקים & מדש; 49/ מו — 100,000 calls/month, priority throughput.

מה שחשוב נגד המכסה שלך

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.

בגלל שטעויות הן חופשיות הן מוגבלות בקצב במקום: אם מפתח אחד מעורר יותר מאשר 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.

כאשר מכסת המפתח החודשית משמשת את API מחזירה את HTTP 429 עם שגיאה "qua_exeed"; מפתח לא ידוע או לא פעיל מחזיר HTTP 401. ראה תוכניות מלאות ורשם על & מפרט עמוד.

דוגמאות

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}'

כל הנקודות

נקודת קצה אחת למחשבון. מפתחות שדה ומפתחות תוצאה עבור כל אחד מהם נמצאים /api/v1/ אינדקס.

מימון (41)
מחשבוןנקודת סיום
מחשבון משכנתאות /api/v1/mortgage/
מחשבון הלוואה /api/v1/loan/
מחשבון ריבית מורכב /api/v1/compound-interest/
מחשבון ריבית פשוט /api/v1/simple-interest/
מחשבון כרטיסי אשראי /api/v1/credit-card-payoff/
מחשבון עלות הדלק /api/v1/fuel-cost/
מחשבון הלוואה אוטומטית /api/v1/auto-loan/
מחשבון פרישה /api/v1/retirement/
חיסכון בחישוב שער /api/v1/savings-goal/
מחשבון רווח Margin /api/v1/margin/
מחשבון ערך עתידי /api/v1/future-value/
מחשבון ערך נוכחי /api/v1/present-value/
מחשבון ROIComment /api/v1/roi/
מחשבון תשלום /api/v1/annuity-payout/
APR לחישוב APY /api/v1/apr-to-apy/
מחשבון CD /api/v1/cd/
אינפלציה מחשבון /api/v1/inflation/
מחשבון יכולת התרעה בבית /api/v1/home-affordability/
מחשבון יכולת ניהול /api/v1/rent-affordability/
מחשבון התשלום למטה /api/v1/down-payment/
מחשבון החזרות /api/v1/refinance/
מחשבון רציפה /api/v1/debt-to-income/
מחשבון הלוואת סירות /api/v1/boat-loan/
מחשבון הלוואות סטודנטים /api/v1/student-loan/
מחשבון הלוואה אישי /api/v1/personal-loan/
מחשבון Lease רכב /api/v1/lease/
מחשבון נטו שווה /api/v1/net-worth/
מחשבון נקודתי לשבור /api/v1/break-even/
מחשבון SIP /api/v1/sip/
מחשבון EMI /api/v1/emi/
מחשבון 401 /api/v1/401k/
מחשבון רוט IRA /api/v1/roth-ira/
מחשבון IRA מסורתי /api/v1/ira/
מחשבון תקציב (50/30/ 20) /api/v1/budget/
מחשבון ביטוח לאומי /api/v1/social-security/
מחשבון תשלום החוב /api/v1/debt-payoff/
השכרה לעומת מחשבון קנה /api/v1/rent-vs-buy/
מחשבון תשלום משכנתאות /api/v1/mortgage-payoff/
מחשבון APRComment /api/v1/apr/
מחשבון דיפיקציה /api/v1/depreciation/
מחשבון GDP /api/v1/gdp/
מס ומשכורת (2)
בריאות וכושר (28)
מחשבוןנקודת סיום
מחשבון BMI /api/v1/bmi/
מחשבון (TDE) Calorie /api/v1/tdee/
מחשבון שומן גוף /api/v1/body-fat/
מחשב משקל אידיאלי /api/v1/ideal-weight/
מחשבון צריכת מים /api/v1/water-intake/
מחשבון BMR /api/v1/bmr/
מחשבון קצבי /api/v1/running-pace/
מחשבון MacroComment /api/v1/macro/
Calorie Deficit Calculator /api/v1/calorie-deficit/
מחשבון צריכת חלבונים /api/v1/protein-intake/
Replex Max colectator /api/v1/one-rep-max/
מחשבון קצב לב מקסימלי /api/v1/max-heart-rate/
מחשבון קצב הלב /api/v1/heart-rate-zones/
Acoleator (BAC) Blood Acotol /api/v1/bac/
מחשבון תאריך תאריך הלידה /api/v1/pregnancy-due-date/
מחשבון עיכול ופוריות /api/v1/ovulation/
מחשבון Waist- to- Hip Ratio /api/v1/waist-to-hip-ratio/
מחשבון Ratio גובה־ הרואי /api/v1/waist-to-height-ratio/
מחשבון גוף רזה /api/v1/lean-body-mass/
מחשבון שומן של גוף צבאי /api/v1/army-body-fat/
קלוריות מחושב שרוף /api/v1/calories-burned/
צעדים למיילים מחשבון /api/v1/steps-to-miles/
מחשבון מחזור שינה /api/v1/sleep/
מחשבון איזור פני השטח של הגוף /api/v1/body-surface-area/
מחשבון נקודה /api/v1/period/
מחשבון תאריך הקלט /api/v1/conception/
מחשבון משקל בהריון /api/v1/pregnancy-weight-gain/
מחשבון GFR (EGFR, CKD-PI) /api/v1/gfr/
מתמטיקה (26)
סטטיסטיקות (15)
ממיר יחידות (17)
הנדסה ומדע (27)
תאריך ושעה (15)
יום (27)

התוצאות הן הערכות להדרכה כללית בלבד, לא ייעוץ כספי, רפואי או מס.