Faktori API

Free JSON API for conversions and calculations. No API key required. CORS enabled.

Unit Conversion

GET /api/convert?from=cm&to=feet&value=171

Response:

{ "from": { "unit": "cm", "value": 171 }, "to": { "unit": "feet", "value": 5.610236 }, "formula": "feet = cm × custom" }

Available conversions: cm-feet, cm-inches, inches-cm, meters-feet, km-miles, miles-km, kg-lbs, lbs-kg, celsius-fahrenheit, fahrenheit-celsius, kelvin-celsius, liters-gallons, gallons-liters, ml-oz, sqft-sqm, sqm-sqft, mph-kmh, kmh-mph, and more.

Compound Interest

GET /api/finance/compound-interest?principal=10000&rate=7&years=10

Optional: compounds (default: 12 for monthly)

{ "principal": 10000, "rate": 7, "years": 10, "compoundsPerYear": 12, "total": 20096.61, "interest": 10096.61, "formula": "A = P(1 + r/n)^(nt)", "ruleOf72": 10.29 }

Percentage

GET /api/math/percentage?percent=15&of=200
{ "percent": 15, "of": 200, "result": 30, "formula": "result = (15 ÷ 100) × 200" }

Rate Limits

About

  • All calculations use pure math formulas — no external data sources.
  • Results are deterministic: same input always produces same output.
  • Powered by Cloudflare Workers for global low-latency responses.