Cada ruta de la API de las calculadoras de construcción, lista para enviar
Generada a partir de la descripción OpenAPI del motor cuando se construye el sitio: qué acepta cada ruta, una solicitud resuelta, la misma solicitud en tres lenguajes y un formulario que la envía al motor desde esta página.
65Operaciones
14Grupos
3.1OpenAPI
NingunaClave o cuenta
En esta páginaAntes de la primera solicitud
Antes de la primera solicitud
Dirección base
https://api.craftquantities.com/v1
Inicio de sesión
Ninguno: sin clave, sin cuenta, sin cookie. Las solicitudes tienen un límite por dirección, para un uso justo.
Rechazos
application/problem+json: un título, el estado y cada problema por entrada, con los valores que acepta.
Respuestas
JSON, o el informe Markdown del motor con format=md. Cantidades en unidades métricas y de EE. UU., nunca un precio.
summary: the result lines, the citation and the page only (fewer tokens); full, the default: the whole answer. A POST body may carry detail instead.Uno de: full, summaryPredeterminado: full
format
md: the engine's Markdown report as text/markdown (or send Accept: text/markdown); json, the default.Uno de: json, md
Ejemplos de código en
Abierto: las respuestas del motor (su API JSON, su servidor MCP y su paquete npm), los archivos de datos bajo /api/v1/ y la biblioteca de fórmulas (/formulas/) se publican bajo CC BY 4.0: reutilícelos, también con fines comerciales, con el crédito “Craft Quantities” y un enlace. Reservado: el texto de las páginas, el diseño y el software, incluido el código del motor. Los términos de uso
Búsqueda
Find a calculator, takeoff or worked example by what the job is.
GET/v1/search
Find a calculator
Parámetro
En
Tipo
Descripción
qobligatorio
query
string
What the job is, in US, UK or Australian words (or in Spanish, with lang=es).
limit
query
integer
Predeterminado: 10
lang
query
string
es or es-US: the answer in US Spanish (labels, units, result lines, the honest machine-translation label; /es/ links once the site publishes them). en, the default.Uno de: en, es, es-US, fr, fr-CA, pt, pt-BRPredeterminado: en
One calculator: what it asks, its answer in both systems, its sources and a link to its page.
GET/v1/calculate/{slug}
Run a calculator (inputs in the query)
Every other query parameter is an input id, its value written with its unit where it measures something: slabLength=3%20m, slabThickness=4%20in.
Parámetro
En
Tipo
Descripción
slugobligatorio
path
string
The calculator's slug, such as concrete-calculator.
system
query
string
The unit system inputs left out open in, and the one the page link opens in. The answer comes in both.Uno de: metric, imperialPredeterminado: metric
market
query
string
Optional. A market whose own opening choice some inputs take (a UK reader's code, an IEC motor), and whose currency symbol prints the caller's own money figures.Uno de: US, CA, UK, AU, INTL
inputUnits
query
string
Send "base" to pass bare numbers on dimensioned inputs in base units (m, m², L, kg …), as the published test vectors are written. Without it a length, area or volume must carry its unit.Uno de: base
explain
query
boolean
true adds the working: the inputs as the calculator received them, every intermediate figure its own compute reports with its unit, the range check and the unit restatement, ending on the same figures. The answer's figures are identical either way.Predeterminado: false
drawing
query
boolean
true adds the page's drawing as SVG, for the calculators that draw one: the tile set-out (tile-layout-calculator), the deck plan with joists, butt joints and fixings (deck-board-calculator), the wall elevation course by course with its cuts, openings and lintels (brick-calculator, cmu-block-grout-calculator), the drywall hanging layout (drywall-calculator), the stud and plate layout (framing-stud-calculator), the siding face with its trim runs (siding-calculator), the gutter runs with joints and downspouts (gutter-calculator) and the fence elevation with posts, rails, gates and post concrete (fence-calculator). Worded in the system asked for; a setting-out aid, nothing sized. Other calculators refuse it.Predeterminado: false
lang
query
string
es or es-US: the answer in US Spanish (labels, units, result lines, the honest machine-translation label; /es/ links once the site publishes them). en, the default.Uno de: en, es, es-US, fr, fr-CA, pt, pt-BRPredeterminado: en
The calculator's input values, by input id (an unknown id is refused with the accepted ids). A length, area, volume or other measured input takes "12 ft", "3.5 m", "8' 3 1/2\"" or {"value": 12, "unit": "ft"}; a count or percentage takes a number; a select takes one of its option values. Inputs left out take the value the calculator's page opens on.
system
string
The unit system inputs left out open in, and the one the page link opens in. The answer comes in both.
market
string
Optional. A market whose own opening choice some inputs take (a UK reader's code, an IEC motor), and whose currency symbol prints the caller's own money figures.
inputUnits
string
Send "base" to pass bare numbers on dimensioned inputs in base units (m, m², L, kg …), as the published test vectors are written. Without it a length, area or volume must carry its unit.
explain
boolean
true adds the working: the inputs as the calculator received them, every intermediate figure its own compute reports with its unit, the range check and the unit restatement, ending on the same figures. The answer's figures are identical either way.
drawing
boolean
true adds the page's drawing as SVG, for the calculators that draw one: the tile set-out (tile-layout-calculator), the deck plan with joists, butt joints and fixings (deck-board-calculator), the wall elevation course by course with its cuts, openings and lintels (brick-calculator, cmu-block-grout-calculator), the drywall hanging layout (drywall-calculator), the stud and plate layout (framing-stud-calculator), the siding face with its trim runs (siding-calculator), the gutter runs with joints and downspouts (gutter-calculator) and the fence elevation with posts, rails, gates and post concrete (fence-calculator). Worded in the system asked for; a setting-out aid, nothing sized. Other calculators refuse it.
lang
string
The answer's language. en (the default): as ever. es or es-US: US Spanish — labels, units, result lines and the honest machine-translation label from the site's Spanish pages, Spanish words read in a question or a trade term, and links to the /es/ pages once the site publishes them (until then the links stay English). fr or fr-CA (Canadian French, /fr/) and pt or pt-BR (Brazilian Portuguese, /pt/): the same from the site's French and Portuguese pages, figures with a decimal comma; each link names the translated page only once that page is published, otherwise the English page.
Every other query parameter is an input id, its value written with its unit where it measures something: slabLength=3%20m, slabThickness=4%20in.
Parámetro
En
Tipo
Descripción
slugobligatorio
path
string
The calculator's slug, such as concrete-calculator.
system
query
string
The unit system inputs left out open in, and the one the page link opens in. The answer comes in both.Uno de: metric, imperialPredeterminado: metric
market
query
string
Optional. A market whose own opening choice some inputs take (a UK reader's code, an IEC motor), and whose currency symbol prints the caller's own money figures.Uno de: US, CA, UK, AU, INTL
inputUnits
query
string
Send "base" to pass bare numbers on dimensioned inputs in base units (m, m², L, kg …), as the published test vectors are written. Without it a length, area or volume must carry its unit.Uno de: base
lang
query
string
es or es-US: the answer in US Spanish (labels, units, result lines, the honest machine-translation label; /es/ links once the site publishes them). en, the default.Uno de: en, es, es-US, fr, fr-CA, pt, pt-BRPredeterminado: en
linear: lengths cut from stock lengths (studs, plates, joists, rafters, bars, trim, boards). sheet: rectangles nested on sheets (plasterboard or drywall, plywood, OSB, tiles).
material
any
What is cut, for the market's stock lengths or sheet sizes, saw kerf and grain when they are left out: timber (the default for linear), rebar or casing; plasterboard (the default for sheet), plywood, OSB or tile.
piecesobligatorio
array of object
The cut list: up to 200 lines and 3000 pieces (1500 for sheets) in all.
stock
array of number | string | object
linear: the stock lengths on offer, each in any number, with units ("4.8 m", "16 ft"). Left out, the market's usual lengths for the material in the system asked for.
sheets
array of object
sheet: the sheet sizes on offer (the plan takes the one that buys the least area). Left out, the market's usual size for the material.
kerf
number | string | object
The saw's kerf, charged on every piece (both ways on a sheet). Left out, the material's: 3 mm or 1/8 in for a saw, none for a bar shear or a board knife.
minOffcut
number | string | object
linear: the shortest offcut worth keeping; shorter ones count as waste. sheet: the smallest offcut (either way round) listed for reuse; left out, 300 mm (12 in) square.
trim
number | string | object
sheet: cut off every sheet edge before nesting (a factory edge that is not clean). Left out, none.
mode
any
sheet: guillotine (the default), every cut edge to edge for a panel or track saw, with the cuts in order; free, also layouts needing plunge cuts (CNC).
bandAllowance
number | string | object
sheet: tape added to every banded edge for trimming flush. Left out, none.
rotate
boolean
sheet: whether pieces may turn a quarter (no grain or strength axis to keep). Left out: yes for plasterboard and tiles, no for plywood and OSB.
system
string
The unit system inputs left out open in, and the one the page link opens in. The answer comes in both.
inputUnits
string
Send "base" to pass bare numbers on dimensioned inputs in base units (m, m², L, kg …), as the published test vectors are written. Without it a length, area or volume must carry its unit.
Compare two options on one job, with the crossover
Works both sides of a comparison page (LVP vs tile, paint vs wallpaper …) on one job: each side's quantity in both unit systems, allowance, weight and person-hours, the difference, and the crossover as one job figure is swept. Each calculator runs as its page runs it. No prices. Stateless: the request arrives and the answer goes back; nothing is stored. The body is at most 65,536 bytes (413 above it).
A comparison page's slug, such as lvp-vs-tile or paint-vs-wallpaper.
job
object
The job's figures by field id, each length or area with its unit ("14 ft", {"value": 4.2, "unit": "m"}), a count or pitch as a number, a choice as its option value. Fields left out open at the page's own figure.
sweep
string
The job field the crossover chart sweeps; the page's own when left out.
points
integer
Sample points across the swept field's range.
system
string
The unit system inputs left out open in, and the one the page link opens in. The answer comes in both.
market
string
Optional. A market whose own opening choice some inputs take (a UK reader's code, an IEC motor), and whose currency symbol prints the caller's own money figures.
inputUnits
string
Send "base" to pass bare numbers on dimensioned inputs in base units (m, m², L, kg …), as the published test vectors are written. Without it a length, area or volume must carry its unit.
Run a guide's "Try the calculation" with your figures
Runs a how-to guide's "Try the calculation" block on the figures given: each step's calculator in the guide's order, what to buy with waste and order quantities, both unit systems, person-hours, and the guide's link opening the block on these figures. No prices; nothing sized. Stateless: the request arrives and the answer goes back; nothing is stored. The body is at most 65,536 bytes (413 above it).
A guide's slug whose page has a "Try the calculation" block, such as how-to-board-a-loft-over-insulation.
measurements
object
Measurement id → value, each length, area or volume with its unit; counts as numbers. Any left out opens at the guide's own figure.
system
string
The unit system inputs left out open in, and the one the page link opens in. The answer comes in both.
market
string
Optional. A market whose own opening choice some inputs take (a UK reader's code, an IEC motor), and whose currency symbol prints the caller's own money figures.
inputUnits
string
Send "base" to pass bare numbers on dimensioned inputs in base units (m, m², L, kg …), as the published test vectors are written. Without it a length, area or volume must carry its unit.
Lays out a flight as built: risers, goings, pitch, 2R+G, the floor opening for a headroom, the stringer as cut, timber and fixings (straight, landing or winders), or concrete and bars, or steel mass; both systems, limits read against a named code, a canvas link. Not sized. Stateless: the request arrives and the answer goes back; nothing is stored. The body is at most 65,536 bytes (413 above it).
straight: one timber flight; turned: an L or U on a landing or winders; concrete: a cast flight; steel: steel stringers with treads.
inputs
object
The stair page's inputs by id (totalRise, targetRiser, going, buildingCode …), each length with its unit; any left out opens at the page's own figure.
system
string
The unit system inputs left out open in, and the one the page link opens in. The answer comes in both.
market
string
Optional. A market whose own opening choice some inputs take (a UK reader's code, an IEC motor), and whose currency symbol prints the caller's own money figures.
inputUnits
string
Send "base" to pass bare numbers on dimensioned inputs in base units (m, m², L, kg …), as the published test vectors are written. Without it a length, area or volume must carry its unit.
Work a takeoff (measurements in the query, build-up choices as v.{choice})
The same query the takeoff page's own link carries: each measurement under its id, written with its unit; each build-up choice as v.{choice}={option}.
Parámetro
En
Tipo
Descripción
idobligatorio
path
string
system
query
string
The unit system inputs left out open in, and the one the page link opens in. The answer comes in both.Uno de: metric, imperialPredeterminado: metric
market
query
string
Optional. A market whose own opening choice some inputs take (a UK reader's code, an IEC motor), and whose currency symbol prints the caller's own money figures.Uno de: US, CA, UK, AU, INTL
inputUnits
query
string
Send "base" to pass bare numbers on dimensioned inputs in base units (m, m², L, kg …), as the published test vectors are written. Without it a length, area or volume must carry its unit.Uno de: base
Measurement id → value, each length, area or volume with its unit ("12 ft", {"value": 3.6, "unit": "m"}); counts as numbers. Ids are those of the takeoff; any left out opens at the page's own figure.
selection
object
Build-up choice id → option id, the takeoff's own (a stud size, an insulation, a cladding). Choices left out take the page's own for the system.
allowances
object
Row → an allowance the reader sets: a percentage (cutting waste, overlap), or the option an allowance follows (a lay pattern). Row names are the takeoff's steps (the calculator slug, or the step key where one runs twice).
leaveOut
array of string
Rows the reader leaves out of the job: still worked and shown, not put in the project or counted in labour.
addOns
array of string
Optional add-on rows to turn on (gutters on a roof job). Add-ons are off unless named here; an add-on's own followers (downspouts with the gutters) come in with it.
supplyOwnFixings
boolean
True leaves every accessory row (fixings, sealants, trims, tapes, primers…) out of the job: still worked and shown, not put in the project or counted in labour.
system
string
The unit system inputs left out open in, and the one the page link opens in. The answer comes in both.
market
string
Optional. A market whose own opening choice some inputs take (a UK reader's code, an IEC motor), and whose currency symbol prints the caller's own money figures.
inputUnits
string
Send "base" to pass bare numbers on dimensioned inputs in base units (m, m², L, kg …), as the published test vectors are written. Without it a length, area or volume must carry its unit.
The one-page job sheet a takeoff page prints for the van: the job's picture as SVG, key dimensions in metric and imperial, the build-up, each line going in with what to buy, labour hours by trade, and the link reopening the page on these figures. Words and figures for the PDF; no prices. Stateless: the request arrives and the answer goes back; nothing is stored. The body is at most 65,536 bytes (413 above it).
The takeoff's id, such as concrete-slab or stud-wall.
measurements
object
Measurement id → value, each length, area or volume with its unit ("12 ft", {"value": 3.6, "unit": "m"}); counts as numbers. Ids are those of the takeoff; any left out opens at the page's own figure.
selection
object
Build-up choice id → option id, the takeoff's own (a stud size, an insulation, a cladding). Choices left out take the page's own for the system.
leaveOut
array of string
Rows the reader leaves out of the job: still worked and shown, not put in the project or counted in labour.
addOns
array of string
Optional add-on rows to turn on (gutters on a roof job). Add-ons are off unless named here; an add-on's own followers (downspouts with the gutters) come in with it.
supplyOwnFixings
boolean
True leaves every accessory row (fixings, sealants, trims, tapes, primers…) out of the job: still worked and shown, not put in the project or counted in labour.
paper
any
The sheet's paper; the market's when left out.
system
string
The unit system inputs left out open in, and the one the page link opens in. The answer comes in both.
market
string
Optional. A market whose own opening choice some inputs take (a UK reader's code, an IEC motor), and whose currency symbol prints the caller's own money figures.
inputUnits
string
Send "base" to pass bare numbers on dimensioned inputs in base units (m, m², L, kg …), as the published test vectors are written. Without it a length, area or volume must carry its unit.
Take off plan sheets: counts, lengths, areas per layer
Totals a set of drawing sheets as the plan takeoff does: each sheet with its own scale (from a known line, or pixels per mm), counts, lengths and areas read off them in the sheet's pixels, layers adding up across the sheets; returns each layer's total and each sheet's share in metric and US units, unscaled marks left out and named. Points in, no picture; not sized. Stateless: the request arrives and the answer goes back; nothing is stored.
The sheets, each with its scale and its marks. At most 500 marks and 20,000 points in all.
system
string
The system lengths are read in (both are returned).
inputUnits
string
Send "base" to pass bare numbers on dimensioned inputs in base units (m, m², L, kg …), as the published test vectors are written. Without it a length, area or volume must carry its unit.
Re-runs a worked example with the job's figures changed: each change follows down every step that reads it, each step beside its published figure with the difference, both unit systems, the project lines with offered hours, and a link reopening it. A modelled job; no prices. Stateless: the request arrives and the answer goes back; nothing is stored. The body is at most 65,536 bytes (413 above it).
A worked example's slug, such as attached-deck-built.
figures
object
The job's own figures by id (a deck's length, a room's height), each length or area with its unit; a count as a number. They follow down every step that reads them.
inputs
object
One step's own input, keyed "<step index>.<input id>" ("3.wastePercent"), each with its unit where it has one.
inputUnits
string
Send "base" to pass bare numbers on dimensioned inputs in base units (m, m², L, kg …), as the published test vectors are written. Without it a length, area or volume must carry its unit.
The kind of space: a room or a bathroom (from its size, doors and windows), or a slab, deck, driveway, fence, loft, retaining wall, exterior wall, stair, patio, lawn, raised bed (garden-bed), pergola, garden wall, shed, gutter run, partition wall, basement wall, kitchen run, pitched roof, garage floor, closet, strip footing, pond or swimming pool (pool).
figuresobligatorio
object
The space's figures, by the planner's ids, each a length with its unit (a room: length, width, height, wallThickness; a fence: length, height; a stair: totalRise, width …).
doors
object
windows
object
finishes
object
Surface role → finish id, by the planner's ids.
scope
object
Scope question name → answer value, by the planner's ids.
intent
string
A trade, or everything.
leaveOut
array of string
Branch ids to leave out.
inputs
object
Branch id → { calculator input id: value in its base unit }.
name
string
system
string
The unit system inputs left out open in, and the one the page link opens in. The answer comes in both.
inputUnits
string
Send "base" to pass bare numbers on dimensioned inputs in base units (m, m², L, kg …), as the published test vectors are written. Without it a length, area or volume must carry its unit.
The unit system inputs left out open in, and the one the page link opens in. The answer comes in both.
inputUnits
string
Send "base" to pass bare numbers on dimensioned inputs in base units (m, m², L, kg …), as the published test vectors are written. Without it a length, area or volume must carry its unit.
Measure a sketched room from its corners, and its materials
Measures a room drawn as a polygon of corners (any shape: L, U, angled walls) with its doors, windows and ceiling height, as the Sketch-to-Takeoff page does: floor and ceiling area, perimeter, each wall's length, gross and net wall area, in metric and imperial; a link that opens it drawn on the site; and, for four to eight square corners, the room planner's material lines (paint, flooring, skirting, plasterboard). Quantities only: no prices. Stateless: the request arrives and the answer goes back; nothing is stored.
The room's corners in order round the room, in `unit` (walls run corner to corner and back to the first). Example, a 4 × 3 m room: [{x:0,y:0},{x:4,y:0},{x:4,y:3},{x:0,y:3}].
unit
any
The unit of every coordinate, the height and the openings: m for metric and ft for imperial when left out.
yAxis
any
down (the default): y grows down the page, as a screen draws it; up: as a drawing's grid. Only the drawing's mirror changes, not a figure.
height
number
The ceiling height in `unit` (2.5 m or 8 ft when left out).
openings
array of object
Doors and windows, each on one wall.
finish
object
What the room planner works out for the room, as the sketch page's own finish choices.
materials
boolean
Also run the room planner on the room (four to eight square corners) for every material line. false: the measurements only.
system
string
The unit system inputs left out open in, and the one the page link opens in. The answer comes in both.
The House Estimator and the Construction Canvas: a drawn house and everything it is built from, a sketch measured from its points, a drawing as DXF and SVG, and a reinforcement layout.
GET/v1/house
Estimate a house (example, system and figures in the query)
Every parameter other than example, system, storeys, family, pitch, roofFamily and inputUnits is a figure of the form, written with its unit.
Parámetro
En
Tipo
Descripción
example
query
string
system
query
string
The unit system inputs left out open in, and the one the page link opens in. The answer comes in both.Uno de: metric, imperialPredeterminado: metric
storeys
query
integer
Uno de: 1, 2
family
query
string
Uno de: wall.framed-exterior, wall.masonry, wall.sip
Start from one of the site's example houses (its slug) in place of the estimator's opening house.
values
object
The form's figures, each length with its unit: length, width, storeyHeight, eaveOverhang, rakeOverhang, slabThickness, footingWidth, footingDepth, trenchDepth, windowWidth, windowHeight, doorWidth, doorHeight ("12 m", "40 ft"); and the counts partitions, windows, outsideDoors, interiorDoors, iceDamEaves. Any left out opens where the page opens it.
storeys
integer
family
string
selection
object
The exterior wall's build-up choices.
pitch
string
Roof pitch, rise in 12.
roofFamily
string
roofSelection
object
system
string
The unit system inputs left out open in, and the one the page link opens in. The answer comes in both.
inputUnits
string
Send "base" to pass bare numbers on dimensioned inputs in base units (m, m², L, kg …), as the published test vectors are written. Without it a length, area or volume must carry its unit.
Exactly one of house, commands or document. Returns the canvas document, everything the canvas lists for it, and a My Project file carrying the drawing.
The House Estimator's form: the house drawn as the estimator draws it.
commands
array of object
Drawing commands, in order, on the canvas's blank drawing (one storey; the wall, partition, window and door types). The whole request is at most 64 KiB.
document
object
A Construction Canvas document (schema 1 to the canvas's current), opened and checked by the canvas's own opener.
shapes
array of object
Simple shapes the assistant has read from the reader's words — a room, a deck, a patio, a bed, a path, a fence of legs and turns — compiled into the canvas's own commands. Every length with its unit.
layout
object
Rooms by name, size and which room each stands against, laid out on a grid: shared walls drawn once as partitions, every snap or move reported, and each room checked to close.
template
string
A Construction Canvas template's slug (the template index lists them: single-room, deck, two-car-garage …): the drawing its page shows, in the reader's system, with a link that opens it.
variant
string
With template: one of its two "what changes if" variants, by id; a wrong one is refused with the template's own list.
name
string
The project's name in the file.
system
string
The unit system inputs left out open in, and the one the page link opens in. The answer comes in both.
inputUnits
string
Send "base" to pass bare numbers on dimensioned inputs in base units (m, m², L, kg …), as the published test vectors are written. Without it a length, area or volume must carry its unit.
Areas, perimeters and lengths from points read off a plan, sketch or photo, scaled by one known reference
Points in the image's pixels and one reference; no image is sent. Returns the figures in both systems with an uncertainty band, closure and crossing checks, and a link that opens the scaled shapes on the canvas.
The outlines and lines read off the image, in its pixels.
referenceobligatorio
object
ONE known size in the same image: a figured dimension, or an object of known size by its four corners.
pixelError
number
How far any point may be off, in pixels: it sets the band.
system
string
The unit system inputs left out open in, and the one the page link opens in. The answer comes in both.
inputUnits
string
Send "base" to pass bare numbers on dimensioned inputs in base units (m, m², L, kg …), as the published test vectors are written. Without it a length, area or volume must carry its unit.
A Construction Canvas drawing as DXF (CQ-* layers) and SVG plan files
The drawing as create_drawing takes it; one file per drawn level, by the canvas's own plan painters. A file too large to return inline is rebuilt from the drawing's link.
The House Estimator's form: the house drawn as the estimator draws it.
commands
array of object
Drawing commands, in order, on the canvas's blank drawing (one storey; the wall, partition, window and door types). The whole request is at most 64 KiB.
document
object
A Construction Canvas document (schema 1 to the canvas's current), opened and checked by the canvas's own opener.
shapes
array of object
Simple shapes the assistant has read from the reader's words — a room, a deck, a patio, a bed, a path, a fence of legs and turns — compiled into the canvas's own commands. Every length with its unit.
layout
object
Rooms by name, size and which room each stands against, laid out on a grid: shared walls drawn once as partitions, every snap or move reported, and each room checked to close.
template
string
A Construction Canvas template's slug (the template index lists them: single-room, deck, two-car-garage …): the drawing its page shows, in the reader's system, with a link that opens it.
variant
string
With template: one of its two "what changes if" variants, by id; a wrong one is refused with the template's own list.
system
string
The unit system inputs left out open in, and the one the page link opens in. The answer comes in both.
inputUnits
string
Send "base" to pass bare numbers on dimensioned inputs in base units (m, m², L, kg …), as the published test vectors are written. Without it a length, area or volume must carry its unit.
formats
array of any
dxf, svg, ifc (openBIM IFC4: one file for the whole drawing, every level, with quantity sets), or several; left out, dxf and svg.
level
string
One level by its id or name; left out, every level with something on its plan.
A bar layout drawing and counts for a rectangular slab or footing, from the bar size, spacing and cover given
A quantity layout, not a design: the engineer chooses bar size, spacing and cover. Counts by the site's Rebar Calculator's method inside the cover; weight by its Rebar Weight Calculator where it carries the size.
A slab, or a pad or strip footing, as a rectangle on plan.
lengthobligatorio
number | string | object
Along x, with its unit.
widthobligatorio
number | string | object
Along y, with its unit.
coverobligatorio
number | string | object
The cover to the bars on plan, as the engineer gives it.
barSizeobligatorio
string
As the engineer gives it: #4, 15M, N12, H12, T12 or 12 mm.
spacing
number | string | object
The spacing both ways, as the engineer gives it.
lengthwise
object
The bars running along the length (spaced across the width): a spacing of their own, or a count.
widthwise
object
The bars running along the width (spaced along the length): a spacing of their own, or a count.
mats
any
One mat, or two (top and bottom) laid out alike.
lapPercent
number
The lap-splice allowance on the total; left out, the Rebar Calculator's own default.
lapLength
number | string | object
The lap length at each splice, as the engineer gives it, for the bar schedule's laps bar by bar (a bar longer than the stock length is joined). Left out, the schedule counts the laps but adds no length for them.
chairs
object
Count the bar supports too, from the supplier's support spacing.
formats
array of any
The drawing's files: svg, dxf or both (the default).
system
string
The unit system inputs left out open in, and the one the page link opens in. The answer comes in both.
inputUnits
string
Send "base" to pass bare numbers on dimensioned inputs in base units (m, m², L, kg …), as the published test vectors are written. Without it a length, area or volume must carry its unit.
Edit a canvas drawing: move walls, add doors and windows
Changes a Construction Canvas drawing (its link, its document or any form a new drawing takes) by simple edits through the canvas's own commands: move a wall (joined walls follow), set a length, add a door or window, set properties or type, remove, add, set a level; returns the drawing, its revision, the link, the diff and the quantities that changed. baseRev refuses a stale drawing. Not sized. Stateless: the request arrives and the answer goes back; nothing is stored.
A Construction Canvas drawing link (https://craftquantities.com/construction-canvas/#d=…, as the engine and the canvas's Share give it), or its code.
document
object
A Construction Canvas document (schema 1 to the canvas's current), opened by the canvas's own opener. Its JSON Schema: https://craftquantities.com/schemas/canvas-drawing-5.json.
drawing
object
A drawing in any form the engine draws from: house, commands, document, shapes, layout or template.
operationsobligatorio
array of object
The edits, in order, each through the canvas's own commands. One that the canvas refuses refuses the whole request, with every problem: nothing is half-applied.
system
string
The system lengths are read in and the quantities listed in (both are listed); default the drawing's own.
inputUnits
string
Send "base" to pass bare numbers on dimensioned inputs in base units (m, m², L, kg …), as the published test vectors are written. Without it a length, area or volume must carry its unit.
baseRev
string
The revision the edits are meant for (a rev or baseRev an earlier answer gave). When the drawing sent is not that revision (somebody changed it since), the request is refused with 409 and nothing is applied, as an If-Match.
Measurement id → value, each length, area or volume with its unit ("12 ft", {"value": 3.6, "unit": "m"}); counts as numbers. Ids are those of the takeoff; any left out opens at the page's own figure.
selection
object
Build-up choice id → option id, the takeoff's own (a stud size, an insulation, a cladding). Choices left out take the page's own for the system.
system
string
The unit system inputs left out open in, and the one the page link opens in. The answer comes in both.
market
string
Optional. A market whose own opening choice some inputs take (a UK reader's code, an IEC motor), and whose currency symbol prints the caller's own money figures.
inputUnits
string
Send "base" to pass bare numbers on dimensioned inputs in base units (m, m², L, kg …), as the published test vectors are written. Without it a length, area or volume must carry its unit.
Optional. A market whose own opening choice some inputs take (a UK reader's code, an IEC motor), and whose currency symbol prints the caller's own money figures.
The currency prices are asked in; left out, the market's.
market
string
Optional. A market whose own opening choice some inputs take (a UK reader's code, an IEC motor), and whose currency symbol prints the caller's own money figures.
note
string
A note to the merchants: delivery address area, dates, access.
curl
curl -s -X POST "https://api.craftquantities.com/v1/supplier-quote-request" \
-H "Content-Type: application/json" \
-d '{"project":"Garage slab","market":"UK","items":[{"description":"Ready-mix concrete, C25/30","quantity":2.64,"unit":"m³","notes":"Pump access from the drive"},{"description":"Rebar, 12 mm, 12 m lengths","quantity":11,"unit":"sticks"},{"description":"Formwork boards, 2.4 m","quantity":10,"unit":"boards"}]}'
Levels two to six contractors' quotes for one job against the job's own lines: per line, whether each includes it (its quantity against the job's range, both systems), leaves it out, excludes it or offers an alternative; what each adds; questions to ask. Money is taken out: no total, no ranking. Stateless: the request arrives and the answer goes back; nothing is stored. The body is at most 69,632 bytes (413 above it).
The job the quotes are for: a quote check (bathroom-quote, plastering-quote, concrete-slab-quote …) or a takeoff id that has one.
measurements
object
Measurement id → value, each length, area or volume with its unit ("12 ft", {"value": 3.6, "unit": "m"}); counts as numbers. Ids are those of the takeoff; any left out opens at the page's own figure.
selection
object
Build-up choice id → option id, the takeoff's own (a stud size, an insulation, a cladding). Choices left out take the page's own for the system.
quotesobligatorio
array of object
Two to six quotes for the same job. Money in them is taken out before reading.
system
string
The unit system inputs left out open in, and the one the page link opens in. The answer comes in both.
market
string
Optional. A market whose own opening choice some inputs take (a UK reader's code, an IEC motor), and whose currency symbol prints the caller's own money figures.
inputUnits
string
Send "base" to pass bare numbers on dimensioned inputs in base units (m, m², L, kg …), as the published test vectors are written. Without it a length, area or volume must carry its unit.
A My Project file the reader restores on the site. Nothing is stored.
POST/v1/my-project-file
A My Project file from calculators and takeoffs
Returns the file in `file.content`; with ?download=1, the file itself as an attachment. The reader imports it in My Project with Restore from a backup.
The unit system inputs left out open in, and the one the page link opens in. The answer comes in both.
market
string
Optional. A market whose own opening choice some inputs take (a UK reader's code, an IEC motor), and whose currency symbol prints the caller's own money figures.
calculators
array of object
takeoffs
array of object
houses
array of object
plan
object
One planned space as plan_room takes it, or a whole project (spaces, roof) as plan_project takes it.
drawing
object
A drawing as create_drawing takes it; the file carries the drawing itself, which the canvas reopens.
A build programme from a project's labour hours: tasks by trade, stage and level, working days, CSV and calendar
Stateless: the project comes as a state token, a My Project file, takeoffs or a drawing. Durations are the labour hours over the crew and working day given; no dates without a start date; hours and days only.
A project state token (cqp1.…) from a project-file answer or an update: the project whose lines are put in order.
file
object
A My Project file (the backup a project-file answer returns, or one the reader exported): its active project's lines and any hours typed on them.
takeoffs
array of object
Whole-job takeoffs, each an id and its measurements, as a project file takes them.
drawing
object
A Construction Canvas drawing (a template, a house form, shapes, drawing commands or a canvas document), as a project file takes it; its levels set the level-by-level order.
system
string
The unit system inputs left out open in, and the one the page link opens in. The answer comes in both.
market
string
Optional. A market whose own opening choice some inputs take (a UK reader's code, an IEC motor), and whose currency symbol prints the caller's own money figures.
crew
integer
People in each trade's crew, unless named in crews.
crews
object
People in a trade's crew, by trade id (carpentry, drywall, electrical, roofing …).
hoursPerDay
number
Working hours in a crew's day.
startDate
string
Optional first day (YYYY-MM-DD): the working days are then given dates and a calendar file is returned. No date is assumed without it.
workDays
array of integer
The days of the week worked, 1 Monday to 7 Sunday.
daysOff
array of string
Dates not worked (holidays, a shutdown), YYYY-MM-DD.
Estimated person-hours on each line of a project, as My Project shows them: hours typed on the line, else a production rate's band for its quantity, else the reason for none; with the project's crew-days. From a token, a file, calculators, takeoffs or a drawing. Hours only: no prices. Stateless: the request arrives and the answer goes back; nothing is stored. The body is at most 65,536 bytes (413 above it).
A project state token (cqp1.…) from a project-file answer or an update.
file
object
A My Project file (the backup a project-file answer returns, or one the reader exported): its active project's lines, with any hours and rates typed on them.
calculators
array of object
Calculator lines, each a slug and its inputs, as a project file takes them.
takeoffs
array of object
Whole-job takeoffs, each an id and its measurements, as a project file takes them.
drawing
object
A Construction Canvas drawing (a template, a house form, shapes, drawing commands or a canvas document), as a project file takes it.
system
string
The unit system inputs left out open in, and the one the page link opens in. The answer comes in both.
market
string
Optional. A market whose own opening choice some inputs take (a UK reader's code, an IEC motor), and whose currency symbol prints the caller's own money figures.
Variation (change order) between two versions of a project
Writes the variation (change order) between an agreed and a proposed version of a project: each line added, removed or changed, its quantity in metric and imperial, the labour hours, and the signed document as My Project prints it. Money only from the reader's own rates; with none, unpriced. Stateless: the request arrives and the answer goes back; nothing is stored. The body is at most 69,632 bytes (413 above it).
The agreed version: one of token, file, calculators, takeoffs or drawing.
afterobligatorio
object
The proposed version, given the same ways.
rates
object
The reader's own unit rates (the site holds no price), by line id or calculator slug: a number, or { low, high }. A line's own rate in a file stays unless its id is named here.
currency
string
The label the reader's rates are in ("$", "£", "lei"); the market's when left out. A label only: no currency is converted.
name
string
The project's name on the document.
reason
string
Why the job changed, in the reader's words.
number
string
The variation's number (V-0003).
preparedBy
string
client
string
paymentTerms
string
system
string
The unit system inputs left out open in, and the one the page link opens in. The answer comes in both.
market
string
Optional. A market whose own opening choice some inputs take (a UK reader's code, an IEC motor), and whose currency symbol prints the caller's own money figures.
curl
curl -s -X POST "https://api.craftquantities.com/v1/variation" \
-H "Content-Type: application/json" \
-d '{"name":"Garage slab","system":"metric","market":"UK","before":{"calculators":[{"slug":"concrete-calculator","inputs":{"slabLength":"6 m","slabWidth":"4 m","slabThickness":"100 mm"}}]},"after":{"calculators":[{"slug":"concrete-calculator","inputs":{"slabLength":"7 m","slabWidth":"4 m","slabThickness":"100 mm"}}]},"rates":{"concrete-calculator":120},"reason":"Slab extended by 1 m for a workbench bay."}'
Client proposal from a project, unpriced unless rates given
Writes the client proposal My Project prints: scope by line or trade division, quantities in metric and imperial, assumptions, exclusions, terms, payment stages and the signature block. From a token, a file, calculators, takeoffs or a drawing. "Not priced" unless the reader's own rates are given. Stateless: the request arrives and the answer goes back; nothing is stored. The body is at most 69,632 bytes (413 above it).
A project state token (cqp1.…) from a project-file answer or an update.
file
object
A My Project file (the backup a project-file answer returns, or one the reader exported): its active project's lines, with any hours and rates typed on them.
calculators
array of object
Calculator lines, each a slug and its inputs, as a project file takes them.
takeoffs
array of object
Whole-job takeoffs, each an id and its measurements, as a project file takes them.
drawing
object
A Construction Canvas drawing (a template, a house form, shapes, drawing commands or a canvas document), as a project file takes it.
rates
object
The reader's own unit rates (the site holds no price), by line id or calculator slug: a number, or { low, high }. A line's own rate in a file stays unless its id is named here.
currency
string
The label the reader's rates are in ("$", "£", "lei"); the market's when left out. A label only: no currency is converted.
name
string
The project's name on the document.
reference
string
companyName
string
The contractor's name for the letterhead; blank prints none.
preparedBy
string
client
string
intro
string
A covering note in the contractor's words.
terms
string
exclusions
string
validUntil
string
The date the proposal is valid until, as it is to print.
paymentSchedule
array of object
Stages of payment as the reader sets them; none is suggested.
groupByDivision
boolean
Group the scope by MasterFormat division.
includeNotes
boolean
showQuantities
boolean
system
string
The unit system inputs left out open in, and the one the page link opens in. The answer comes in both.
market
string
Optional. A market whose own opening choice some inputs take (a UK reader's code, an IEC motor), and whose currency symbol prints the caller's own money figures.
Scope of work from a project (three-part template)
Writes My Project's scope of work: Part 1 General (scope, work not included, submittals, the documents the lines' calculators cite in the market, site), Part 2 Products by trade with quantities, Part 3 Execution in the takeoffs' order with notices and inspections. A template for the parties; no prices. Stateless: the request arrives and the answer goes back; nothing is stored. The body is at most 69,632 bytes (413 above it).
A project state token (cqp1.…) from a project-file answer or an update.
file
object
A My Project file (the backup a project-file answer returns, or one the reader exported): its active project's lines, with any hours and rates typed on them.
calculators
array of object
Calculator lines, each a slug and its inputs, as a project file takes them.
takeoffs
array of object
Whole-job takeoffs, each an id and its measurements, as a project file takes them.
drawing
object
A Construction Canvas drawing (a template, a house form, shapes, drawing commands or a canvas document), as a project file takes it.
name
string
The project's name on the document.
takeoff
string
One takeoff of the project (its name or id): the scope of that job alone. Left out: the whole project.
style
any
The headings: csi (North American three-part section format) or nbs (UK and Australian practice). The market's when left out.
reference
string
siteAddress
string
system
string
The unit system inputs left out open in, and the one the page link opens in. The answer comes in both.
market
string
Optional. A market whose own opening choice some inputs take (a UK reader's code, an IEC motor), and whose currency symbol prints the caller's own money figures.
Share a project as a link (no account, nothing uploaded)
Makes a share link to a whole project, as My Project's Share key does: https://craftquantities.com/project/shared/#s=… opens every line, quantity, unit, calculator, takeoff setup and planned room for anyone, without an account; the project rides in the link's fragment, so no server receives it. From a token, a project file, calculators, takeoffs or a drawing. No prices travel, nor the client's name and address. Stateless: the request arrives and the answer goes back; nothing is stored.
A project state token (cqp1.…) from a project-file answer or an update.
file
object
A My Project file (the backup a project-file answer returns, or one the reader exported): its active project's lines, with any hours and rates typed on them.
calculators
array of object
Calculator lines, each a slug and its inputs, as a project file takes them.
takeoffs
array of object
Whole-job takeoffs, each an id and its measurements, as a project file takes them.
drawing
object
A Construction Canvas drawing (a template, a house form, shapes, drawing commands or a canvas document), as a project file takes it.
mode
any
view (the default) opens the read-only summary; edit offers the reader a copy to change first. Either way the reader may take a copy: a link is not a permission.
name
string
The project's name as the link shows it.
system
string
The unit system inputs left out open in, and the one the page link opens in. The answer comes in both.
market
string
Optional. A market whose own opening choice some inputs take (a UK reader's code, an IEC motor), and whose currency symbol prints the caller's own money figures.
Reads a Craft Quantities share link someone pasted — a shared project (/project/shared/#s=…), a planner's plan (/plan/<kind>/#s=p…) or a sketched room (/plan/sketch/#s=…) — and returns what it holds: the project's lines with quantities, units and calculators; the plan's spaces; or the room measured (areas, perimeter, walls). Decoded here and stored nowhere; prices in a link are not read out. Stateless: the request arrives and the answer goes back; nothing is stored.
A Craft Quantities share link as the reader pasted it: a project (/project/shared/#s=v1… or #s=e1…), a planner's plan (/plan/<kind>/#s=p1…) or a sketch (/plan/sketch/#s=…). The fragment alone (#s=…) is read too.
system
string
Only for a sketch: the system its figures print first in (the sketch's own when left out).
A Solve Backwards page's slug, such as wall-paint, drywall-sheets, bricks, concrete-bags, ready-mix-concrete.
query
string
Or what the reader has, in words ("sheets of drywall", "bags of concrete"), when the slug is not known.
haveobligatorio
number | string | object
How much the reader has: a count for counted things (20, "20 sheets"); a measure with its unit for paint, concrete, soil ("24 gal", "2 m3", {"value": 90, "unit": "L"}).
system
string
The page's system; it sets the market's product (a 4 × 8 ft sheet in imperial). Left out: the unit's system, else metric.
settings
object
Optional: another calculator input, with its unit (a slab's thickness "4 in", coats 3). The inputs the page grows cannot be set.
Faults by symptom, the documents each market uses, and trade words across markets.
GET/v1/diagnose
Diagnosis pages that match a symptom, with candidate causes and how to tell them apart
Parámetro
En
Tipo
Descripción
symptomobligatorio
query
string
What the reader sees, hears or smells, in their own words: "my breaker keeps tripping when the kettle is on".
market
query
string
Optional. A market whose own opening choice some inputs take (a UK reader's code, an IEC motor), and whose currency symbol prints the caller's own money figures.Uno de: US, CA, UK, AU, INTL
limit
query
integer
How many diagnoses at most. Left out: one when the match is clear, up to three when it is not.
What the reader sees, hears or smells, in their own words: "my breaker keeps tripping when the kettle is on".
market
string
Optional. A market whose own opening choice some inputs take (a UK reader's code, an IEC motor), and whose currency symbol prints the caller's own money figures.
limit
integer
How many diagnoses at most. Left out: one when the match is clear, up to three when it is not.
A trade word in each market's usage, with the false-friend warning
Parámetro
En
Tipo
Descripción
termobligatorio
query
string
A trade word or phrase as one market says it, a brand name said for the product, or a misspelling: "plasterboard", "gyprock", "casing", "skirting", "eavestrough", "a yard of concrete".
from
query
string
The market whose word it is, where known.Uno de: US, CA, UK, AU
The runs, 1 to 25, each one calculator and its inputs; answered in the same order.
system
string
The unit system for every run that does not name its own.
market
string
The market for every run that does not name its own.
inputUnits
string
Send "base" to pass bare numbers on dimensioned inputs in base units (m, m², L, kg …), as the published test vectors are written. Without it a length, area or volume must carry its unit.
Open a job or worked example on the Construction Canvas
Draws a whole-job takeoff or a worked example at the figures given as a Construction Canvas drawing and returns the link that opens it; the drawing rides in the link's fragment, so nothing is uploaded. Says what the drawing cannot carry. For quantities, not a construction drawing. Stateless: the request arrives and the answer goes back; nothing is stored. The body is at most 65,536 bytes (413 above it).
A takeoff the canvas draws, such as concrete-slab, stud-wall or asphalt-shingle-roof.
measurements
object
Measurement id → value, each length, area or volume with its unit ("12 ft", {"value": 3.6, "unit": "m"}); counts as numbers. Ids are those of the takeoff; any left out opens at the page's own figure.
selection
object
Build-up choice id → option id, the takeoff's own (a stud size, an insulation, a cladding). Choices left out take the page's own for the system.
example
string
Or a worked example the canvas draws, such as attached-deck-built.
figures
object
The job's own figures by id (a deck's length, a room's height), each length or area with its unit; a count as a number. They follow down every step that reads them.
inputs
object
One step's own input, keyed "<step index>.<input id>" ("3.wastePercent"), each with its unit where it has one.
includeDocument
boolean
Also return the canvas document itself (JSON).
system
string
The unit system inputs left out open in, and the one the page link opens in. The answer comes in both.
market
string
Optional. A market whose own opening choice some inputs take (a UK reader's code, an IEC motor), and whose currency symbol prints the caller's own money figures.
inputUnits
string
Send "base" to pass bare numbers on dimensioned inputs in base units (m, m², L, kg …), as the published test vectors are written. Without it a length, area or volume must carry its unit.
Topic illustration (SVG) of a guide, comparison or page
Returns the topic illustration a page of the site carries: the SVG's address, its subject in words and its licence. One per guide, comparison, diagnosis, example, category, material and solve-backwards question; a shared plate for the glossary, methods, policies, standards and tools. Stateless: the request arrives and the answer goes back; nothing is stored. The body is at most 65,536 bytes (413 above it).
Look up a construction formula: equation, symbols, units
Reads the open formula library (/formulas/): volume, area, coverage and spread rate, spacing and count, bulking, stairs, roof pitch and slope, unit conversions. Each formula's equation, every symbol with its meaning and unit in both systems, the calculators it is bound to and the test vectors it reproduces; find one by id, words or a calculator's slug, and work it on your own values. Arithmetic, not a design. Stateless: the request arrives and the answer goes back; nothing is stored.
A formula id (cylinder-volume, riser-count …) or a family id (volume-from-geometry, stairs …). Left out with no calculator and no query: the library's families and their formulas.
calculator
string
A calculator's slug: the formulas it runs.
query
string
Words to find a formula by ("volume of a cylinder", "roof pitch to degrees").
values
object
With a formula id: each input variable's value, by its id, in the unit of `system` (metric column when left out), to evaluate the equation.
system
string
The column `values` are read in, and the evaluated answer printed first; both are returned.
Finds the site's how-to guides (how to pour a slab, frame a wall, tile a floor, insulate a loft …) by words, slug or calculator: each guide's title, summary, trade, address, the link to its full text as Markdown, and the calculators it works its figures with. It finds and links; it computes nothing. Stateless: the request arrives and the answer goes back; nothing is stored.
Corner trim on the reader's saw, a room's trim plan, the scribe template and the other full-size templates, a panel or worktop fitted to walls that are not square, and the mitre saw chart: cutting geometry and quantities, never sized.
POST/v1/trim-corner
Corner trim on your saw: mitre, bevel, stops and the gap
Cuts one corner of skirting, casing or crown molding on a named saw: per piece the mitre and bevel as its dials read, the stop each sits on, how the piece lies, which side to keep, whether the saw can make it; cope or mitre, and the gap a 45° cut leaves. No sizing. Stateless: the request arrives and the answer goes back; nothing is stored.
skirting (baseboard), casing (architrave, a frame corner) or crown (cornice).
corner
object
The corner as measured. For casing, the frame corner (90 for a square opening); its kind is ignored.
throughRoom
number
In place of corner: the angle read through the room (under 180 inside, over 180 outside), as the miter-angle calculator takes it.
method
any
How the piece goes on the saw: skirting and casing upright (against the fence) or flat (on the table); crown nested (upside down against the fence) or flat. Left out, the trim's usual one.
saw
any
The saw from the site's library (each with its scale, its stops and its capacity); custom with customSaw. Left out, the 12-in double-bevel slider (DWS779 figures).
customSaw
object
With saw custom: the saw's own limits.
spring
number
Crown only: its spring angle from the wall, degrees (38 for 38/52, 45 for 45/45). Left out, 38.
depth
number | string | object
The depth the joint runs across in the plane of the turn: a skirting's thickness, a casing's face width, a crown's projection. Left out: 18 mm, 70 mm or 75 mm (3/4, 2 3/4 or 3 in).
height
number | string | object
Skirting only: its height, for the saw's upright capacity. Left out, 120 mm (4 3/4 in).
buildUp
number | string | object
Plaster or compound built up in the corner (it changes the angle the trim meets). Left out, none.
feather
number | string | object
The distance that build-up is feathered over along each wall. Left out, 150 mm (6 in).
system
string
The unit system inputs left out open in, and the one the page link opens in. The answer comes in both.
inputUnits
string
Send "base" to pass bare numbers on dimensioned inputs in base units (m, m², L, kg …), as the published test vectors are written. Without it a length, area or volume must carry its unit.
Room trim plan: every piece, its ends and the stock
Plans trim round a room, piece by piece, from its corners, door openings and built-ins (or a drawn room): each piece in fitting order with its long and short point lengths, each end's cope, mitre, butt or scarf with its saw settings, the cut list and the trim lengths to buy. Stateless: the request arrives and the answer goes back; nothing is stored.
The walls in order round the room, up to 40, each with its length along the wall face (corner to corner).
corners
array of object
corners[i] is at the end of walls[i], where it meets the next wall (one per wall; the last closes the room).
direction
any
cw (the default): facing each wall from the room, working left to right. ccw: the canvas's order.
drawing
object
In place of walls and corners: a Construction Canvas drawing in any form the drawing tool takes ({ document }, { commands }, { template }, { house }, { shapes }, { layout }); the room's inside faces, corners and doors are read from it as the canvas's Trim plan reads them.
room
string
With drawing: the room's id (R1 …). Left out, the drawing's only room.
trim
any
Left out, skirting.
method
any
How the piece goes on the saw: skirting and casing upright (against the fence) or flat (on the table); crown nested (upside down against the fence) or flat. Left out, the trim's usual one.
saw
any
The saw profile the room plan's settings are read on (as the plan on the page): a mitre saw that tilts both ways (the default), one that tilts left only, or a mitre box with 90° at square.
spring
number
Crown only: its spring angle from the wall, degrees (38 for 38/52, 45 for 45/45). Left out, 38.
depth
number | string | object
The trim's depth across the joint (skirting thickness, crown projection). Left out, 18 mm (3/4 in) or 75 mm (3 in) for crown.
buildUp
number | string | object
Plaster built up in the corners. Left out, none.
casing
number | string | object
The door casing's width a skirting butts to beside a door. Left out, none (it butts to the opening's edge).
start
integer
The wall fitted first (index). Left out, 0.
insideJoint
any
Inside corners coped (the default) or mitred.
stock
array of number | string | object
The stock lengths on offer, with units. Left out, the market's usual trim lengths.
kerf
number | string | object
The saw's kerf. Left out, 3 mm (1/8 in).
minOffcut
number | string | object
Offcuts at least this long are kept.
studs
object
system
string
The unit system inputs left out open in, and the one the page link opens in. The answer comes in both.
inputUnits
string
Send "base" to pass bare numbers on dimensioned inputs in base units (m, m², L, kg …), as the published test vectors are written. Without it a length, area or volume must carry its unit.
Scribe template: the scribe line full size, SVG and DXF
Turns gaps measured off a straight line into a scribe line for an uneven surface: the widest and narrowest gap, the width to start from, the strip to cut away, the line as full-size SVG and DXF, and its print layout on A4, Letter or a roll. A pattern, not a fit. Stateless: the request arrives and the answer goes back; nothing is stored.
The gaps measured from a straight reference line to the wall: up to 200 stations, each where it is along the line and the gap there.
shape
object
allowance
number | string | object
Board left beyond the widest gap. Left out, 10 mm (3/8 in).
paper
any
The paper the full-size template is tiled on. Left out, A4 for metric and Letter for imperial.
rollWidth
number | string | object
With paper roll: the roll's width.
overlap
number | string | object
Between adjacent sheets. Left out, the tiler's own.
orientation
any
formats
array of any
The drawings to return. Left out, both.
system
string
The unit system inputs left out open in, and the one the page link opens in. The answer comes in both.
inputUnits
string
Send "base" to pass bare numbers on dimensioned inputs in base units (m, m², L, kg …), as the published test vectors are written. Without it a length, area or volume must carry its unit.
Fit a worktop, shelf or panel to walls that are not square
The true shape of a worktop, shelf or panel between walls that are not square: front and back lengths, setbacks, diagonals and the blank with scribe and bow, then the blank and any other parts nested on stock: part ids, grain, cut order, offcuts and edge banding. Geometry only. Stateless: the request arrives and the answer goes back; nothing is stored.
worktop (the default): worktop lengths. shelf: shelf boards. board: full sheets of plywood or board.
spanobligatorio
number | string | object
Wall to wall (or to the free end), along the back wall, or along the front line with measuredAt front.
leftAngle
number
The room's inside angle between the back wall and the left wall, degrees; 90 square. Left out, 90.
rightAngle
number
leftEnd
any
open: a free end, cut square.
rightEnd
any
measuredAt
any
backWall
boolean
Is there a wall along the back? Left out, yes.
depth
number | string | object
The finished depth, front edge to back wall. Left out, the kind's usual.
scribe
number | string | object
Left on every edge that meets a wall, to scribe off in place. Left out, the kind's usual.
gap
number | string | object
Left clear at each wall end. Left out, the kind's usual.
bow
number | string | object
The back wall's greatest departure from straight. Left out, none.
count
integer
How many of the fitted piece. Left out, 1.
label
string
parts
array of object
Other parts nested on the same boards (a carcass's sides and shelves).
stock
integer
An index into the kind's stock sizes for the market (listed in the answer's stockOffered). Left out, the size that buys least.
sheet
object
kerf
number | string | object
The saw's kerf. Left out, 3 mm (1/8 in).
trim
number | string | object
Cut off every board edge before nesting. Left out, the kind's own (10 mm on a full sheet).
mode
any
guillotine (the default): every cut edge to edge, for a panel or track saw. free: also layouts needing plunge cuts (CNC).
grain
boolean
Hold the grain or decor along the run (the default).
bandFront
boolean
Band the front edge of the fitted piece.
bandAllowance
number | string | object
Tape added to every banded edge for trimming flush.
minOffcut
number | string | object
An offcut is listed for reuse when it is at least this big either way.
system
string
The unit system inputs left out open in, and the one the page link opens in. The answer comes in both.
inputUnits
string
Send "base" to pass bare numbers on dimensioned inputs in base units (m, m², L, kg …), as the published test vectors are written. Without it a length, area or volume must carry its unit.
Worktop run round corners: pieces, joints and lengths
A worktop along several wall faces, as the Construction Canvas cuts it: each piece's true shape at the room's real angles, butt or mitre joints at corners, long straights joined, the front run and free ends, and the blanks nested on worktop lengths with the cut order and banding. Not sized. Stateless: the request arrives and the answer goes back; nothing is stored.
The wall faces the run follows, in order, each with its length along the wall.
corners
array of object
Between face i and face i + 1 (one fewer than the faces): inside or outside, the room's inside angle, and how the pieces meet.
start
object
finish
object
depth
number | string | object
The finished depth, front edge to back wall. Left out, the kind's usual.
scribe
number | string | object
Left on every edge that meets a wall, to scribe off in place. Left out, the kind's usual.
gap
number | string | object
Left clear at each wall end. Left out, the kind's usual.
bow
number | string | object
The back wall's greatest departure from straight. Left out, none.
jointAt
number | string | object
Where a straight longer than the stock is joined, along its back from its start. Left out, an even split.
jointsAt
array of number | string | object
A joint position per straight, in run order (faces in line make one straight): where that straight is joined, along its back from its start, if it is longer than the stock. "0 mm" splits it evenly; a straight past the end of the list takes jointAt.
stock
integer
An index into the kind's stock sizes for the market (listed in the answer's stockOffered). Left out, the size that buys least.
kerf
number | string | object
The saw's kerf. Left out, 3 mm (1/8 in).
grain
boolean
Hold the grain or decor along the run (the default).
bandFront
boolean
Band the front edge of the fitted piece.
bandAllowance
number | string | object
Tape added to every banded edge for trimming flush.
system
string
The unit system inputs left out open in, and the one the page link opens in. The answer comes in both.
inputUnits
string
Send "base" to pass bare numbers on dimensioned inputs in base units (m, m², L, kg …), as the published test vectors are written. Without it a length, area or volume must carry its unit.
The mitre saw chart for trim corners: per corner angle the mitre each piece takes, the outside corner read through the room, the gap a 45° cut leaves on 18 mm and 3/4 in trim and where it opens, crown laid flat (38/52 and 45/45) mitre and bevel, and the handing table. Any corners on request. Stateless: the request arrives and the answer goes back; nothing is stored.
The full-size template a calculator page prints: a stair stringer or step gauge, rafter cuts, a cone or frustum pattern, an arch's centring or voussoirs, an anchor bolt setting jig or plate, a curved plate, a spiral stair's tread, winder blanks, a housed or ladder stringer, a split stair's stringers, a handrail gooseneck; lines as SVG and DXF, its checks and omissions, its tiling on paper. Stateless: the request arrives and the answer goes back; nothing is stored.
The calculator whose page offers the template: a stair stringer and step gauge, a rafter, a cone or frustum pattern, a curved wall's plate, an anchor bolt setting board or plate, an arch's centring or voussoirs; a spiral stair's tread or landing, a turn's winder blanks, a housed string or ship's ladder stringer, a split stair's stringers, a handrail's gooseneck.
inputs
object
The calculator's own inputs by id, with their units, as its page takes them; left out, the values its page opens on.
kind
string
Which of the family's two templates: stringer gauge or whole; rafter cuts or whole; cone whole or half; arch centring or voussoirs; bolts setting or plate; plate segment or whole; spiral tread or landing; winders each or turn; housed and ladder gauge or whole; split first, return or gauge; gooseneck turn or pieces. Left out, the first.
fields
object
The template's own figures by id (a stringer's board depth and tread thickness, a cone's lap …), with units; left out, the page's defaults for the system (or the calculator's own figure where the page opens on it). The answer lists them.
paper
any
Left out, A4 for metric and Letter for imperial.
rollWidth
number | string | object
With paper roll: the roll's width.
overlap
number | string | object
Between adjacent sheets. Left out, 10 mm.
orientation
any
formats
array of any
The drawings to return. Left out, both.
system
string
The unit system inputs left out open in, and the one the page link opens in. The answer comes in both.
inputUnits
string
Send "base" to pass bare numbers on dimensioned inputs in base units (m, m², L, kg …), as the published test vectors are written. Without it a length, area or volume must carry its unit.
Roof framing: rafter lengths, cuts, birdsmouth and templates
Lays out a gable or hip roof (optionally a gable wing with valleys) from the caller's own sizes: each common, hip, valley and jack rafter's length along the line, birdsmouth and HAP, plumb and cheek cuts as saw settings, hip backing, a cut list on the caller's stock, and a member's full-size template as SVG and DXF; both systems. Geometry only: it does not size structure. Stateless: the request arrives and the answer goes back; nothing is stored.
Building width across the ridge, outside faces of the wall plates ("24 ft", "8 m").
length
number | string | object
Building length along the ridge.
pitch
number
Rise per 12 of run (6 for 6/12). Or give pitchDegrees.
pitchDegrees
number
The pitch in degrees, as an alternative to pitch.
overhang
number | string | object
Level, from the wall's outer face to the tail's plumb cut.
rake
number | string | object
Gable ends (and a wing's gable end): how far the roof runs past the gable wall.
rafterDepth
number | string | object
Actual depth of the commons and jacks (a 2×8 is "7.25 in").
rafterThickness
number | string | object
Actual thickness of the commons and jacks ("1.5 in", "45 mm").
hipDepth
number | string | object
Actual depth of the hips and valleys.
hipThickness
number | string | object
Actual thickness of the hips and valleys.
ridgeThickness
number | string | object
The ridge board's thickness.
plateWidth
number | string | object
The wall plate's width (the seat bears on it).
heightAbovePlate
number | string | object
The commons' height above the plate (HAP); left out, the seat bears on the whole plate.
hipTop
any
Drop the hips and leave them square (default), or back them.
spacing
number | string | object
Rafter centres along the plate ("16 in", "600 mm").
fasciaThickness
number | string | object
The fascia board's thickness.
wing
object
An equal-pitch gable wing on the front wall: gives the valleys, valley jacks and cripples.
stock
array of number | string | object
The stock lengths the caller can buy, each with its unit; left out, the page's list for the system.
kerf
number | string | object
Saw kerf, charged on every cut (default 1/8 in or 3 mm).
template
object
One member as a full-size template (1:1, millimetres).
system
string
The system figures are read in and printed first (both are returned).
inputUnits
string
Send "base" to pass bare numbers on dimensioned inputs in base units (m, m², L, kg …), as the published test vectors are written. Without it a length, area or volume must carry its unit.