{"openapi":"3.1.0","info":{"title":"Math API","version":"1.0.0","description":"A full math engine as an API, powered by mathjs. Evaluate any expression — arithmetic, hundreds of functions (sqrt, sin, log, gcd, factorial, combinations, …), constants (pi, e), complex numbers, matrices and number theory — with optional precision control (e.g. 2+3*sqrt(16) → 14, pi at 5 digits → 3.1416). Take the symbolic derivative of an expression with respect to a variable (x^2+3x → 2*x+3), and simplify algebra (2x+3x → 5*x). No formula libraries to bundle, no maths to reimplement: send an expression, get the answer. Ideal for calculators and STEM education apps, spreadsheet and form logic, quiz and homework tools, engineering and data dashboards, and any product that needs reliable server-side computation.","contact":{"name":"PremiumApi","url":"https://www.oanor.com/by/premiumapi"}},"servers":[{"url":"https://api.oanor.com/math-api","description":"oanor gateway"}],"tags":[{"name":"Math"},{"name":"Meta"}],"components":{"securitySchemes":{"oanorKey":{"type":"apiKey","in":"header","name":"x-oanor-key","description":"Get your key at https://www.oanor.com/developer/keys"}}},"security":[{"oanorKey":[]}],"paths":{"/v1/derivative":{"get":{"operationId":"get_v1_derivative","tags":["Math"],"summary":"Symbolic derivative","description":"","parameters":[{"name":"expr","in":"query","required":true,"description":"Expression, e.g. x^2+3x","schema":{"type":"string"},"example":"x^2+3x"},{"name":"variable","in":"query","required":false,"description":"Variable to differentiate by (default x)","schema":{"type":"string"},"example":"x"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"variable":"x","derivative":"2 * x + 3","expression":"x^2+3x"},"meta":{"timestamp":"2026-06-01T00:04:29.855Z","request_id":"d00146ad-91c2-4ed8-91d0-03b0b5400d76"},"status":"ok","message":"Derivative computed","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/evaluate":{"get":{"operationId":"get_v1_evaluate","tags":["Math"],"summary":"Evaluate a math expression","description":"","parameters":[{"name":"expr","in":"query","required":true,"description":"Expression, e.g. 2+3*sqrt(16) or gcd(12,18)+factorial(5)","schema":{"type":"string"},"example":"2+3*sqrt(16)"},{"name":"precision","in":"query","required":false,"description":"Significant digits 1-64","schema":{"type":"string"}}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"result":"14","expression":"2+3*sqrt(16)"},"meta":{"timestamp":"2026-06-01T00:04:30.026Z","request_id":"4b6d6d26-8724-4170-91de-6cdb473f0650"},"status":"ok","message":"Expression evaluated","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/simplify":{"get":{"operationId":"get_v1_simplify","tags":["Math"],"summary":"Simplify an algebraic expression","description":"","parameters":[{"name":"expr","in":"query","required":true,"description":"Expression, e.g. 2x+3x","schema":{"type":"string"},"example":"2x+3x"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"expression":"2x+3x","simplified":"5 * x"},"meta":{"timestamp":"2026-06-01T00:04:30.201Z","request_id":"7ffda779-c9ad-4063-8bde-66b55adafee6"},"status":"ok","message":"Expression simplified","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/meta":{"get":{"operationId":"get_v1_meta","tags":["Meta"],"summary":"Usage notes","description":"","parameters":[],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"note":"A math engine. /v1/evaluate = evaluate any expression — arithmetic, functions (sqrt, sin, log, gcd, factorial, …), constants (pi, e), complex numbers, unit conversions (e.g. 12.7 cm to inch), matrices and number theory; optional precision=1..64. /v1/derivative = the symbolic derivative of an expression with respect to a variable (e.g. expr=x^2+3x, variable=x → 2*x+3). /v1/simplify = simplify algebra (e.g. 2x+3x → 5*x). Expressions are math-only (no quotes).","source":"mathjs (api.mathjs.org)","endpoints":["/v1/evaluate","/v1/derivative","/v1/simplify","/v1/meta"]},"meta":{"timestamp":"2026-06-01T00:04:30.270Z","request_id":"2963b340-8a03-42c8-adf9-fe171e4ea231"},"status":"ok","message":"Meta retrieved","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}}},"x-oanor-pricing":[{"slug":"free","name":"Free","price_cents_month":0,"monthly_call_quota":12500,"rps_limit":2,"hard_limit":true},{"slug":"starter","name":"Starter","price_cents_month":380,"monthly_call_quota":185000,"rps_limit":8,"hard_limit":true},{"slug":"pro","name":"Pro","price_cents_month":1110,"monthly_call_quota":820000,"rps_limit":20,"hard_limit":true},{"slug":"mega","name":"Mega","price_cents_month":3260,"monthly_call_quota":3300000,"rps_limit":50,"hard_limit":true}],"x-oanor-marketplace-url":"https://www.oanor.com/api/math-api"}