মুক্ত ক্যালকুলেটৰ API

এই সাইটত থকা প্ৰতিটো গণক এক বিনামূলীয়া JSON API। কোনো নিবন্ধন, কোনো API কি', CORS-সক্ষম — আপোনাৰ সেৱক বা ব্ৰাউছাৰ থেকে সরাসৰি কল কৰক।

সৰলৰূপে

API-এ ৱেবছাইটৰ ব্যৱহাৰ কৰা একেই গণিত চলায়। গণক ক্ষেত্ৰৰ মানসমূহ প্ৰশ্ন প্ৰাচল বা JSON হিচাপে পঠাওক আৰু গণিত ফলাফলসমূহ JSON হিচাপে পুনৰ প্ৰাপ্ত কৰক - গণকে উৎপাদন কৰা যিকোনো আৱৰ্জনাৰ সময়সূচী বা চিত্ৰ তথ্য অন্তৰ্ভুক্ত কৰি।

  • 198+ গণকসমূহ, প্ৰতিটো নিজস্ব অন্তবিন্দু সহ
  • API কি' নাই — বেনামী অভিগম, IP দ্বাৰা হাৰ-সীমিত
  • CORSAccess-Control-Allow-Origin: * (ব্যৱহাৰযোগ্য ক্লায়েন্ট-পাৰ্শ্ব)
  • হাৰ সীমা: 60 প্ৰতি IP অনুৰোধ/ঘন্টা (HTTP 429 অতিক্ৰম কৰিলে)
  • 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.

ভিত্তি URL

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

সূচী — প্ৰতিটো গণক তালিকাভুক্ত কৰক

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. অজ্ঞাত slug ৰ ফলাফল 404; অসমৰ্থিত দেশ বা ভুল ইনপুটৰ ফলাফল 400 সহায়ক বাৰ্তা আৰু ক্ষেত্ৰৰ বিৱৰণ সহ।

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.

প্ৰমাণীকৰণ আৰু পৰিকল্পনাসমূহ

আপুনি API-ক কোনো কি' নোহোৱাকে কল কৰিব পাৰে - বেনামী অনুৰোধ IP দ্বাৰা হাৰ-সীমিত কৰা হয়। উচ্চ, ভৱিষ্যদ্বাণীযোগ্য মাহেকীয়া কোটা (আৰু বাণিজ্যিক ব্যৱহাৰ) ৰ বাবে, আপোনাৰ একাওন্ট পৃষ্ঠাত এটা কি' সৃষ্টি কৰক আৰু ইয়াক তিনিটা পথৰ এটাত প্ৰেৰণ কৰক:

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 হাৰ-সীমিত) অথবা এটা মুক্ত কি' যি মাহেকে এটা সৰু কোটাৰে আছে। অ-বাণিজ্যিক।
  • বিকাশক &mdash; $9/mo — ১০,০০০ কল/মাহ, বাণিজ্যিক ব্যৱহাৰ।
  • ব্যৱসা &mdash; $49/মাহ — ১০০,০০০ কল/মাহ, অগ্ৰাধিকাৰ ভিত্তিত

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.

কি'ৰ মাহেকীয়া কোটা ব্যৱহাৰ কৰা হ'লে API দ্বাৰা HTTP 429 আৰু ত্ৰুটি "quota_exceeded" প্ৰদৰ্শিত হ'ব; অজ্ঞাত বা নিষ্ক্ৰিয় কি'ৰ দ্বাৰা 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/
লাভ মাৰ্জিন গণনাকাৰী /api/v1/margin/
ভৱিষ্যৎ মান গণনাকাৰী /api/v1/future-value/
বৰ্তমান মান গণনাকাৰী /api/v1/present-value/
ROI গণক /api/v1/roi/
Annuity পেইড আউট গণক /api/v1/annuity-payout/
APR ৰ পৰা APY গণক /api/v1/apr-to-apy/
CD গণক /api/v1/cd/
Inflation গণনাকাৰী /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/
গাড়ী ঋণ গণনাকাৰী /api/v1/lease/
নেট ৱাৰ্ড ক্যালকুলেটৰ /api/v1/net-worth/
Break-Even Point গণক /api/v1/break-even/
SIP গণক /api/v1/sip/
EMI গণক /api/v1/emi/
401(k) ক্যালকুলেটৰ /api/v1/401k/
Roth IRA গণক /api/v1/roth-ira/
প্ৰথাগত IRA গণক /api/v1/ira/
বাজেট গণনাকাৰী (৫০/৩০/২০) /api/v1/budget/
সামাজিক সুৰক্ষা গণক /api/v1/social-security/
ঋণ পৰিশোধৰ গণনাকাৰী /api/v1/debt-payoff/
ৰিটায়াৰিং আৰু কিনক গণক /api/v1/rent-vs-buy/
ঋণ পৰিশোধৰ গণক /api/v1/mortgage-payoff/
APR গণক /api/v1/apr/
হ্রাসৰ গণক /api/v1/depreciation/
GDP গণক /api/v1/gdp/
কৰ আৰু বেতন (2)
স্বাস্থ্য আৰু ফিটনেস (28)
গণকঅন্তিম বিন্দু
BMI গণক /api/v1/bmi/
ক্যালৰি (TDEE) গণক /api/v1/tdee/
শৰীৰৰ চৰ্বি গণনাকাৰী /api/v1/body-fat/
আদর্শ ওজন গণনাকাৰী /api/v1/ideal-weight/
পানীৰ ধাৰণকাৰী গণক /api/v1/water-intake/
BMR গণক /api/v1/bmr/
দৌৰা পেছ ক্যালকুলেটৰ /api/v1/running-pace/
মেক্ৰো ক্যালকুলেটৰ /api/v1/macro/
ক্যালৰি হ্রাসৰ গণনাকাৰী /api/v1/calorie-deficit/
প্ৰোটিন গ্ৰহণ গণক /api/v1/protein-intake/
এক Rep Max গণক /api/v1/one-rep-max/
সৰ্বাধিক হৃদস্পন্দন গণনাকাৰী /api/v1/max-heart-rate/
হৃদস্পন্দন অঞ্চল গণনাকাৰী /api/v1/heart-rate-zones/
রক্তৰ মদ (BAC) গণনাকাৰী /api/v1/bac/
গৰ্ভধাৰণৰ সময়সীমা গণনাকাৰী /api/v1/pregnancy-due-date/
অভ্যুত্থান আৰু প্ৰজনন ক্ষমতাৰ গণক /api/v1/ovulation/
হাৰ্ট-টু-হিপ অনুপাত গণনাকাৰী /api/v1/waist-to-hip-ratio/
ওজন-প্ৰতি-উচ্চতা অনুপাত গণনাকাৰী /api/v1/waist-to-height-ratio/
Lean Body Mass গণনাকাৰী /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-EPI) /api/v1/gfr/
ধৰণ (26)
গণকঅন্তিম বিন্দু
শতাংশ গণক /api/v1/percentage/
গড় (মধ্যম) গণক /api/v1/average/
শতাংশ পৰিবৰ্তনৰ গণক /api/v1/percentage-change/
অনুপাত গণনাকাৰী /api/v1/ratio/
ভগ্নাংশ গণক /api/v1/fraction/
ভাগৰ পৰা শতাংশ গণনাকাৰী /api/v1/fraction-to-percent/
মিশ্ৰিত সংখ্যাৰ পৰা অপ্ৰয়োজনীয় ভগ্নাংশ গণনাকাৰী /api/v1/mixed-number/
এক্সপোনেণ্ট (শক্তি) গণক /api/v1/exponent/
Nth ৰূট গণক /api/v1/root/
বৰ্গমূল গণনাকাৰী /api/v1/square-root/
লগাৰিথম গণক /api/v1/logarithm/
GCD আৰু LCM গণক /api/v1/gcd-lcm/
প্ৰিম ফেক্টৰাইজেশন ক্যালকুলেটৰ /api/v1/prime-factorization/
ফেক্টোৰাল ক্যালকুলেটৰ /api/v1/factorial/
Permutation গণক (nPr) /api/v1/permutation/
সংমিশ্ৰণ গণক (nCr) /api/v1/combination/
বৰ্গ সূত্ৰ গণক /api/v1/quadratic-formula/
স্প্ৰেডশ্বিট গণনাকাৰী /api/v1/slope/
দুটা বিন্দুৰ মাজৰ দূৰত্ব গণনাকাৰী /api/v1/distance-two-points/
মধ্যবিন্দু গণক /api/v1/midpoint/
পাইথাগোৰিয়ান প্ৰমেয় গণক /api/v1/pythagorean-theorem/
ক্ষেত্ৰ গণক /api/v1/area-of-a-shape/
বৃত্ত গণক /api/v1/circle/
আয়তন গণনাকাৰী /api/v1/volume-of-a-shape/
বৈজ্ঞানিক নোটেশন পৰিবৰ্তনকাৰী /api/v1/scientific-notation/
ঘূৰ্ণন গণক /api/v1/rounding/
পৰিসংখ্যান (15)
একক পৰিবৰ্তনকাৰী (17)
বিজ্ঞান আৰু প্ৰকৌশল (27)
গণকঅন্তিম বিন্দু
Ohm's Law গণক /api/v1/ohms-law/
ভোল্টেজ ড্ৰপ ক্যালকুলেটৰ /api/v1/voltage-drop/
প্ৰতিৰোধী ৰঙৰ কোড গণনাকাৰী /api/v1/resistor-color-code/
কনটেনচাৰ চাৰ্জ গণনা ব্যৱস্থা /api/v1/capacitor-charge/
বৈদ্যুতিক শক্তি গণক /api/v1/electrical-power/
শক্তি গণনাকাৰী (F = ma) /api/v1/force/
কাৰনেটিক শক্তি গণক /api/v1/kinetic-energy/
সম্ভাব্য শক্তি গণক /api/v1/potential-energy/
ঘনত্ব গণক /api/v1/density/
মোলাৰিটি গণক /api/v1/molarity/
আদর্শ গেছ আইন গণক /api/v1/ideal-gas-law/
তৰংগদৈৰ্ঘ্য আৰু আপেক্ষিক গণনাকাৰী /api/v1/wavelength-frequency/
pH গণক /api/v1/ph/
টৰ্ক গণক /api/v1/torque/
গিয়াৰ ৰিয়েটৰ গণক /api/v1/gear-ratio/
প্ৰক্ষেপণ চলন গণক /api/v1/projectile-motion/
সাবনেট গণক (IPv4 CIDR) /api/v1/subnet/
বাইনাৰি / Hex / দশমিক পৰিবৰ্তনকাৰী /api/v1/binary-hex/
BTU গণক (AC আৰু উত্তাপ) /api/v1/btu/
হাফ-লাইফ গণক /api/v1/half-life/
আণবিক ওজন গণনাকাৰী /api/v1/molecular-weight/
বিদ্যুৎ ব্যয় গণনাকাৰী /api/v1/electricity/
বায়ুচাপ গণনাকাৰী /api/v1/wind-chill/
তাপ সূচক গণনাকাৰী /api/v1/heat-index/
ডেউ পয়েন্ট গণক /api/v1/dew-point/
ব্যান্ডউইডথ / ডাউনল'ড সময় গণক /api/v1/bandwidth/
হ' ৰছপাৱাৰ ক্যালকুলেটৰ /api/v1/horsepower/
তাৰিখ আৰু সময় (15)
প্ৰতিদিন (27)
গণকঅন্তিম বিন্দু
টিপ ক্যালকুলেটৰ /api/v1/tip/
ডিস্কাউন্ট গণক /api/v1/discount/
ঘন্টা অনুযায়ী বেতন গণনাকাৰী /api/v1/salary/
অন্তিম শ্ৰেণী গণনাকাৰী /api/v1/final-grade/
GPA গণক /api/v1/gpa/
গ্ৰেড গণনাকাৰী /api/v1/grade/
পৰীক্ষাৰ স্কোৰ গণনাকাৰী /api/v1/test-score/
আখৰ শ্ৰেণী গণক /api/v1/letter-grade/
আকৃতিৰ অনুপাত গণনাকাৰী /api/v1/aspect-ratio/
একক মূল্য গণনাকাৰী /api/v1/unit-price/
বিক্রয় কমিশন গণক /api/v1/sales-commission/
বেয়া ফলন /api/v1/random-number/
ডাইচ ৰোলাৰ /api/v1/dice-roller/
মুদ্ৰা ঘূৰাই দিয়া /api/v1/coin-flip/
ৰচনা Scaler /api/v1/cooking-converter/
পেইন্ট ক্যালকুলেটৰ /api/v1/paint/
টাইল গণক /api/v1/tile/
Mulch আৰু মাটিৰ গণক /api/v1/mulch/
Concrete গণক /api/v1/concrete/
বৰ্গফুট গণক /api/v1/square-footage/
Gravel গণক /api/v1/gravel/
ছাউনিঙৰ গণক /api/v1/roofing/
সিঁড়িৰ গণক /api/v1/stair/
টাইৰ আকাৰ গণনাকাৰী /api/v1/tire-size/
গোলফ হ্যান্ডিক্যাপ গণক /api/v1/golf-handicap/
ভালপোৱা গণক /api/v1/love/
Bra আকাৰ গণনাকাৰী /api/v1/bra-size/

এই তথ্যসমূহ কেৱল সাধাৰণ দিশ নিৰ্দেশৰ বাবে, আৰ্থিক, চিকিৎসা বা কৰৰ পৰামৰ্শৰ বাবে নহয়।