Calcs.com API
The Calcs.com API provides structural engineering calculations and geospatial data through a simple REST interface.
What You Can Do
Structural Calculations
Run engineering calculations programmatically:
- Wood Beam Analysis - US timber beams per NDS 2018 (ASD)
- Snow Load Analysis - Ground and roof snow loads per ASCE 7-16/7-22
- Create projects to organize your calculations
- Get pass/fail results with utilization ratios
- PDF Export - Download a project's calculations as a single PDF, the same output you get from the Calcs.com web app (guide →)
Geospatial Data (GIS)
Access location-based design parameters:
- Wind Speeds - ASCE 7-22/7-16 (US), Eurocode (EU)
- Tornado Speeds - ASCE 7-22 (US, Risk Categories III & IV)
- Snow Loads - ASCE 7-22 (US), Eurocode (Nordic)
- Seismic Parameters - USGS data (US)
- Elevation & Terrain - Available via
/gis/environmental_loadswithinclude_elevation=trueandinclude_roughness=true
Quick Example
Calculate a wood beam using the multi-step workflow of the legacy Timber Beam endpoint (new integrations should use the calculator endpoints):
Code
Response:
Code
API Structure
| Endpoint Group | Purpose |
|---|---|
/v1/projects | Create and manage projects |
/v1/timber-beam/* | Wood beam calculations (legacy, kept for existing integrations) |
/v1/snow-load/* | Snow load calculations (legacy, kept for existing integrations) |
/v1/templates/* | Generic template calculations (any template) |
/gis/* | Geospatial data queries |
Error Responses
The API uses different error formats depending on the endpoint type:
Calculation endpoints (/v1/timber-beam/*, /v1/snow-load/*, /v1/templates/*) use a structured error envelope. See Timber Beam Error Handling for details.
Code
Input validation on generic templates. POST /v1/templates/{code}/validate and POST /v1/templates/{code}/calculate report invalid inputs with 422 and one entry per invalid field, instead of the envelope:
Code
A value in the wrong unit has "type": "invalid_unit" and an expectedUnit field naming the unit the input takes:
Code
Request errors on these two endpoints that are not about input values, such as a missing projectId (400) or an unknown template (404), still use the envelope above.
GIS endpoints (/gis/*) use a flat error format:
Missing Required Parameter
Code
Invalid Parameter Value
Code
Coordinate Out of Range
Code
Unsupported Location
Code
Data Not Available
Code
Next Steps
- Authentication - Set up your API key
- Quick Start - Create your first calculation
- Snow Load Guide - Snow load calculations
- Generic Templates - Use any calculation template
- API Reference - Full endpoint documentation
Support
- Email: [email protected]
- Website: calcs.com/support