Craft Quantities Units API
Conversions by the exact factors the calculators use.
Conversions by the exact factors the calculators use.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/craftquantities-com:craftquantities-com-units-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Craftquantities Com Units API
version: 1.6.0
contact:
url: https://craftquantities.com/api/
license:
name: CC BY 4.0
url: https://creativecommons.org/licenses/by/4.0/
description: 'Operations tagged Units across 2 of this provider''s published API definitions: craftquantities-com-openapi.json, craftquantities-com-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.craftquantities.com/v1
tags:
- name: Units
description: Conversions by the exact factors the calculators use.
paths:
/convert:
get:
operationId: convertUnits
summary: Convert a value between units with the site's exact factors
parameters:
- name: value
in: query
required: true
schema:
type: number
- name: from
in: query
required: true
schema:
type: string
maxLength: 40
- name: to
in: query
required: true
schema:
type: string
maxLength: 40
- name: dimension
in: query
required: false
schema:
type: string
maxLength: 40
- name: detail
in: query
required: false
schema:
type: string
enum:
- full
- summary
default: full
description: 'full (the default): the whole answer. summary: the result lines, the citation line and the page only — fewer tokens to read.'
description: '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.'
- name: format
in: query
required: false
schema:
type: string
enum:
- json
- md
description: 'md: the engine''s Markdown report as text/markdown (or send Accept: text/markdown); json, the default.'
responses:
'200':
description: The converted value and the factor.
content:
application/json:
schema:
type: object
anyOf:
- type: object
required:
- value
- from
- to
- dimension
- factor
properties:
value:
type: number
from:
type: object
required:
- unit
- symbol
- label
properties:
unit:
type: string
symbol:
type: string
label:
type: string
to:
type: object
required:
- unit
- symbol
- label
- value
properties:
unit:
type: string
symbol:
type: string
label:
type: string
value:
type: number
dimension:
type: string
factor:
anyOf:
- type: number
- type: 'null'
- type: object
required:
- detail
- tool
- title
- lines
- notes
- citation
- url
- open
- more
properties:
detail:
const: summary
tool:
type: string
title:
type: string
lines:
type: array
items:
type: object
additionalProperties:
type: string
description: The result lines, as the report's table gives them.
notes:
type: array
items:
type: string
description: 'What a professional must decide, when to call one, a false-friend warning, that adoption is local: kept in every summary.'
citation:
type: string
description: The one citation line, built from the answer's own data.
url:
anyOf:
- type: string
- type: 'null'
open:
anyOf:
- type: string
- type: 'null'
more:
anyOf:
- type: string
- type: 'null'
'400':
description: The request was refused; every problem is listed.
content:
application/problem+json:
schema:
type: object
required:
- title
- status
- problems
properties:
type:
type: string
title:
type: string
status:
type: integer
problems:
type: array
items:
type: object
required:
- input
- problem
properties:
input:
type: string
problem:
type: string
accepted:
type: array
items:
type: string
didYouMean:
type: array
items:
type: string
tags:
- Units
servers:
- url: https://api.craftquantities.com/v1
externalDocs:
url: https://craftquantities.com/api/
description: The API documentation
x-refined-from:
- craftquantities-com-openapi.json
- craftquantities-com-openapi.yml