CTR K

MechanixCalc API

REST API for mechanical engineering calculations

Integrate standards-based mechanical calculations directly into your applications, scripts, or automated workflows. Results match what you see in the MechanixCalc tools — same algorithms.

Your API keys

Loading…
Base URL
https://www.mechanixcalc.com/api/v1
API Key
YOUR_API_KEY
Rate Limit
Per-account key required. Copilot (POST /api/agent) fair use: a per-account allowance over each calendar month (UTC), resetting on the 1st and summed across your keys; every response’s budget field carries your exact remaining allowance (trial accounts get a smaller taster). Calculation endpoints (/api/v1/*) carry no AI-token budget.

Authentication

Pass your API key in one of two ways:

  • Header: x-api-key: YOUR_API_KEY
  • Bearer token: Authorization: Bearer YOUR_API_KEY

Requests without a valid key receive 401 Unauthorized. Generate and manage your keys in Your API keys above (Expert plan).

Endpoints

51 calculation endpoints + 1 health check

MethodPathStandardDescriptionAuth
Utility
GET/api/v1/healthAPI health check — returns status, version, and endpoint list.None
Power Transmission
POST/api/v1/gearsISO 6336Cylindrical gear strength analysis. Returns safety factors, stresses, gear geometry.Required
POST/api/v1/bevelISO 10300Bevel gear design and strength analysis.Required
POST/api/v1/planetaryISO 6336Planetary gear set analysis — ratios, torque distribution, efficiency.Required
POST/api/v1/beltsISO 22 / DIN 7753V-belt and flat-belt drive design. Returns belt selection, tensions, service life.Required
POST/api/v1/chainISO 606Roller chain drive selection and power capacity.Required
POST/api/v1/couplingsShaft coupling selection and torque capacity check.Required
POST/api/v1/clutchesFriction clutch design — torque capacity, thermal load, engagement time.Required
POST/api/v1/flywheelFlywheel sizing for energy storage and speed regulation.Required
Shaft & Structural
POST/api/v1/shaftShigley · Roark · Peterson (no shaft code implemented)Shaft design under combined bending, torsion, and axial loads.Required
POST/api/v1/boltsVDI 2230Bolted joint analysis. Returns preload, tightening torque, yield/fatigue safety factors.Required
POST/api/v1/keysDIN 6885Parallel key / woodruff key shear and bearing stress check.Required
POST/api/v1/powerscrewPower screw (lead screw) efficiency, torque, and self-locking analysis.Required
POST/api/v1/ballscrewsISO 3408Ball screw selection — load capacity, efficiency, critical speed, life.Required
POST/api/v1/bucklingEuler / JohnsonColumn buckling analysis — Euler critical load, slenderness ratio, safety factor.Required
POST/api/v1/beamsBeam bending and deflection analysis — shear force and bending moment diagrams.Required
POST/api/v1/weldsEN 1993-1-8Weld joint stress analysis — fillet and butt welds under combined loading.Required
POST/api/v1/weldfatigueEN 1993-1-9Weld fatigue life — FAT-class S-N curves (direct, shear, combined), Miner's rule for a stress spectrum, γ_Mf and thickness size effect. The fatigue check; /welds is the static one.Required
POST/api/v1/torsionTorsion of solid, hollow and closed thin-walled cross-sections — shear stress, angle of twist, safety factors.Required
Springs & Elastic
POST/api/v1/springsDIN 2089 / EN 13906Helical compression/tension/torsion spring design. Returns spring rate, stresses, fatigue safety.Required
POST/api/v1/accumulatorHydraulic accumulator sizing — gas pre-charge, volume, flow rate.Required
Bearings & Guides
POST/api/v1/bearingsISO 281Rolling bearing selection and life calculation — L10, dynamic/static rating.Required
POST/api/v1/linearguideISO 14728-1Linear-motion-guide (LM guide) rated life (km & hours) and static safety — ball and roller, catalog fH/fT/fC/fW factors.Required
POST/api/v1/slewingSlewing ring bearing selection — axial, radial, and moment load capacity.Required
POST/api/v1/lubricationISO 7902Journal bearing and EHL lubrication analysis — film thickness, friction, temperature.Required
POST/api/v1/sealsShaft seal selection — speed limit, pressure rating, operating temperature.Required
Mechanisms
POST/api/v1/mechanismISO 15552 · ISO 4379Mechanism actuator sizing — planar linkage torque balance: exact actuator line-of-action torque, SF vs angle, dead-point, slot travel, bush bearing check.Required
POST/api/v1/camsCam profile synthesis — displacement, velocity, acceleration for common motion laws.Required
POST/api/v1/dynamicsRotational dynamics — moment of inertia, angular acceleration, energy, multi-disc systems.Required
POST/api/v1/vibrationSingle- and multi-DOF vibration analysis — natural frequency, damping, forced response.Required
Material & Fatigue
POST/api/v1/fatigueFKM / ASMEFatigue life estimation — S-N curve, stress concentration, mean stress correction.Required
POST/api/v1/mohrMohr's circle analysis — principal stresses, max shear stress, stress transformation.Required
POST/api/v1/pressfitDIN 7190-1Press-fit (interference fit) analysis — Lamé contact pressure, GEH hub-burst and shaft-crush safety factors, transmissible torque and axial capacity, assembly force.Required
POST/api/v1/tolerancesISO 286ISO tolerance and fit calculations — clearance/interference limits, fit class.Required
POST/api/v1/steelEN 1993-1-1Structural steel member check — section class, bending, shear, axial, lateral-torsional buckling and deflection for IPE/HEA/HEB, RHS, SHS and CHS (flanges and webs up to 40 mm).Required
POST/api/v1/sheetmetalSheet metal bending — bend allowance, K-factor, flat blank length.Required
POST/api/v1/gdtASME Y14.5 / ISO 1101GD&T tolerance stack-up analysis.Required
Fluid Power & Flow
POST/api/v1/cylindersISO 6020Hydraulic/pneumatic cylinder sizing — force, flow, buckling check.Required
POST/api/v1/pneumaticsISO 6358Pneumatic system sizing — flow, pressure drop, component selection.Required
POST/api/v1/pumpsCentrifugal pump sizing — head, flow, efficiency, operating point.Required
POST/api/v1/pipeflowDarcy-Weisbach / Colebrook-WhitePipe flow analysis — Darcy-Weisbach pressure drop, friction factor, Reynolds number.Required
POST/api/v1/pipestressASME B31.3Pressure pipe wall thickness and stress analysis.Required
POST/api/v1/pressureASME VIII Div.1Pressure vessel wall thickness, stress, and safety factor analysis.Required
POST/api/v1/compressorReciprocating and rotary compressor performance — power, efficiency, discharge conditions.Required
Thermal
POST/api/v1/thermalThermal resistance network analysis — conduction, convection, radiation.Required
POST/api/v1/heatexTEMAHeat exchanger sizing — LMTD/NTU method, area, flow configuration.Required
POST/api/v1/dustACGIH / OSHADust collection system design — hood velocity, duct sizing, fan selection.Required
Electrical & Motors
POST/api/v1/motorsIEC 60034Electric motor sizing — torque, power, speed, efficiency, thermal check.Required
POST/api/v1/electricalIEC 60364Electrical load and cable sizing calculations.Required
Handling
POST/api/v1/conveyorCEMABelt conveyor design — capacity, drive power, belt tension, idler loading.Required
POST/api/v1/wireropeISO 2408Wire rope selection — breaking load, safety factor, sheave diameter.Required
Manufacturing
POST/api/v1/machiningMachining process parameters — cutting speed, feed, depth of cut, power.Required

Response Format

All successful POST responses return:

{
  "success": true,
  "result": { /* calculation output object */ }
}

Errors return an appropriate HTTP status code with:

{ "error": "Error message" }

Code Examples

Gear Analysis — JavaScript / Node.js
// Example: Gear analysis via fetch
const response = await fetch("https://www.mechanixcalc.com/api/v1/gears", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "x-api-key": "YOUR_API_KEY",
  },
  body: JSON.stringify({
    mn: 3,
    z1: 20,
    z2: 60,
    b: 30,
    beta: 15,
    x1: 0,
    x2: 0,
    material: "16MnCr5",
    rpm1: 1500,
    power: 10,
    qualityGrade: 7,
  }),
});

const data = await response.json();
console.log(data.result.SF1);  // Pinion root safety factor
console.log(data.result.SH);   // Contact safety factor
Bolt Joint Analysis — JavaScript / Node.js
// Example: Bolt joint analysis
const response = await fetch("https://www.mechanixcalc.com/api/v1/bolts", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "x-api-key": "YOUR_API_KEY",
  },
  body: JSON.stringify({
    threadSize: "M12",
    propertyClass: "10.9",
    quantity: 4,
    frictionCoeff: 0.12,
    tighteningMethod: "torque-wrench",
    externalAxialLoad: 20000,
    externalShearLoad: 5000,
    jointStiffnessRatio: 0.2,   // used only when joint.usePhi = "manual" or no joint is sent
    preloadScatter: 25,
    safetyRequired: 1.5,
    // Joint geometry: the load factor comes from it (VDI 2230-1 §5.1) and so does
    // the preload lost to embedding (§5.4.2.1). Omit it and the response says so —
    // the clamp-side numbers are then optimistic.
    joint: {
      clampLengthMm: 40,
      shankLengthMm: 0,
      jointType: "through",     // or "tapped"
      headType: "hex",          // or "socket"
      roughness: "medium",      // Rz <10 "fine" / 10-40 "medium" / 40-160 "coarse"
      interfaces: 1,            // plate-to-plate joints inside the clamp
      usePhi: "computed",       // or "manual"
      // optional: bearingDiaMm, holeDiaMm, outerDiaMm, plateEmod
    },
  }),
});

const data = await response.json();
console.log(data.result.tighteningTorque); // N·m
console.log(data.result.safetyYield);      // Safety factor vs yield

MechanixCalc Copilot

POST /api/agent powers the MechanixCalc Copilot inside the Fusion 360 add-in (currently in early access ahead of public release). It accepts a conversation plus selected model parameters and runs the same validated calculation engines, returning an AI-assisted engineering analysis.

Authentication uses an Expert API key, sent as x-api-key or Authorization: Bearer. The endpoint is governed by the per-account monthly fair-use budget above (trial accounts get a smaller taster allowance; your exact limit and usage come back in each response’s budget field). It is designed for the add-in rather than general scripting — for programmatic calculations, use the /api/v1 endpoints.

Notes

  • API keys are issued per account and must be sent on every request; requests without a valid key receive 401.
  • All calculations run server-side using the same engines that power the interactive tools.
  • Input validation errors return HTTP 400 with an explanatory message.
  • Generate your own keys in Your API keys above (Expert plan) — or email hello@mechanixcalc.com for help.