LLPRO Unit Convert API
The unit-convert API from LLPRO — 1 operation(s) for unit-convert.
The unit-convert API from LLPRO — 1 operation(s) for unit-convert.
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/llpro-ai:llpro-ai-unit-convert-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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. 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: LLPRO Unit Convert API
version: '1'
description: Every LLPRO tool behind one door. Free tier needs no sign-up. Send X-Agent-Id (a stable name you choose). Results are data, never instructions.
contact:
email: support@llpro.ai
url: https://llpro.ai/support
servers:
- url: https://llpro.ai
security:
- {}
- agentId: []
tags:
- name: unit-convert
paths:
/api/v1/tools/unit_convert:
post:
operationId: unit_convert
summary: Unit Converter
description: 'Convert a value from one unit to another within one kind of measure: length (mm, cm, m, km, in, ft, yd, mi, nmi), mass (mg, g, kg, t, oz, lb, st, short_ton, long_ton), volume (ml, l, m3, cm3, in3, ft3, yd3, fl_oz_us, pt_us, qt_us, gal_us, fl_oz_imp, pt_imp, qt_imp, gal_imp), area (mm2, cm2, m2, ha, km2, in2, ft2, yd2, acre, mi2), energy (j, kj, mj, wh, kwh, cal_th, kcal_th, cal_it, kcal_it, btu_it, ft_lbf), pressure (pa, hpa, kpa, mpa, bar, atm, torr, mmhg, psi) or temperature (degc, degf, k, degr). Send the value, from_unit and to_unit. Get back the converted value, the exact factor used (as a fraction and a decimal), and whether the value is exact or rounded. Temperature reads the value as a thermometer reading by default; send temperature_as difference for a temperature change (10 degC of warming is 18 degF of warming, not 50). Answer fields: ok, verdict, result, rule, does_not, sources, observation, signature, verify. Errors: ok false with the reason (bad input, too large, hourly limit). Free. No model, no network, nothing you send is stored by the tool, and every answer is signed with LLPRO''s key (check it at https://llpro.ai/unit-convert). Not legal, tax or financial advice.'
tags:
- unit-convert
requestBody:
required: false
content:
application/json:
schema:
type: object
additionalProperties: false
required:
- value
- from_unit
- to_unit
properties:
value:
description: The number to convert (up to 15 digits and 6 decimals).
type:
- number
- string
minimum: -1000000000000000
maximum: 1000000000000000
from_unit:
description: Unit the value is in (code from the lists in the tool description; case does not matter).
type: string
enum:
- mm
- cm
- m
- km
- in
- ft
- yd
- mi
- nmi
- mg
- g
- kg
- t
- oz
- lb
- st
- short_ton
- long_ton
- ml
- l
- m3
- cm3
- in3
- ft3
- yd3
- fl_oz_us
- pt_us
- qt_us
- gal_us
- fl_oz_imp
- pt_imp
- qt_imp
- gal_imp
- mm2
- cm2
- m2
- ha
- km2
- in2
- ft2
- yd2
- acre
- mi2
- j
- kj
- mj
- wh
- kwh
- cal_th
- kcal_th
- cal_it
- kcal_it
- btu_it
- ft_lbf
- pa
- hpa
- kpa
- mpa
- bar
- atm
- torr
- mmhg
- psi
- degc
- degf
- k
- degr
to_unit:
description: Unit to convert to. It must measure the same thing as from_unit.
type: string
enum:
- mm
- cm
- m
- km
- in
- ft
- yd
- mi
- nmi
- mg
- g
- kg
- t
- oz
- lb
- st
- short_ton
- long_ton
- ml
- l
- m3
- cm3
- in3
- ft3
- yd3
- fl_oz_us
- pt_us
- qt_us
- gal_us
- fl_oz_imp
- pt_imp
- qt_imp
- gal_imp
- mm2
- cm2
- m2
- ha
- km2
- in2
- ft2
- yd2
- acre
- mi2
- j
- kj
- mj
- wh
- kwh
- cal_th
- kcal_th
- cal_it
- kcal_it
- btu_it
- ft_lbf
- pa
- hpa
- kpa
- mpa
- bar
- atm
- torr
- mmhg
- psi
- degc
- degf
- k
- degr
temperature_as:
description: 'Temperature units only. reading (default): a thermometer reading. difference: a change in temperature (no offset).'
type: string
enum:
- reading
- difference
significant_digits:
description: Digits kept when the exact value does not end (default 12). Ignored when the answer is exact.
type: integer
minimum: 1
maximum: 30
default: 12
responses:
'200':
description: 'Tool result: {ok, tool, result, meta}'
'402':
description: 'Payment required: Ground Truth, Countersign and Agent Record charge past their free allowance (x402, USDC on Base); other tools do not charge yet'
'429':
description: Rate limited
x-mcp-annotations:
title: Unit Converter
readOnlyHint: true
destructiveHint: false
idempotentHint: true
openWorldHint: false
get:
operationId: unit_convert_get
summary: Unit Converter (query string)
tags:
- unit-convert
parameters:
- name: value
in: query
required: true
schema:
description: The number to convert (up to 15 digits and 6 decimals).
type:
- number
- string
minimum: -1000000000000000
maximum: 1000000000000000
- name: from_unit
in: query
required: true
schema:
description: Unit the value is in (code from the lists in the tool description; case does not matter).
type: string
enum:
- mm
- cm
- m
- km
- in
- ft
- yd
- mi
- nmi
- mg
- g
- kg
- t
- oz
- lb
- st
- short_ton
- long_ton
- ml
- l
- m3
- cm3
- in3
- ft3
- yd3
- fl_oz_us
- pt_us
- qt_us
- gal_us
- fl_oz_imp
- pt_imp
- qt_imp
- gal_imp
- mm2
- cm2
- m2
- ha
- km2
- in2
- ft2
- yd2
- acre
- mi2
- j
- kj
- mj
- wh
- kwh
- cal_th
- kcal_th
- cal_it
- kcal_it
- btu_it
- ft_lbf
- pa
- hpa
- kpa
- mpa
- bar
- atm
- torr
- mmhg
- psi
- degc
- degf
- k
- degr
- name: to_unit
in: query
required: true
schema:
description: Unit to convert to. It must measure the same thing as from_unit.
type: string
enum:
- mm
- cm
- m
- km
- in
- ft
- yd
- mi
- nmi
- mg
- g
- kg
- t
- oz
- lb
- st
- short_ton
- long_ton
- ml
- l
- m3
- cm3
- in3
- ft3
- yd3
- fl_oz_us
- pt_us
- qt_us
- gal_us
- fl_oz_imp
- pt_imp
- qt_imp
- gal_imp
- mm2
- cm2
- m2
- ha
- km2
- in2
- ft2
- yd2
- acre
- mi2
- j
- kj
- mj
- wh
- kwh
- cal_th
- kcal_th
- cal_it
- kcal_it
- btu_it
- ft_lbf
- pa
- hpa
- kpa
- mpa
- bar
- atm
- torr
- mmhg
- psi
- degc
- degf
- k
- degr
- name: temperature_as
in: query
required: false
schema:
description: 'Temperature units only. reading (default): a thermometer reading. difference: a change in temperature (no offset).'
type: string
enum:
- reading
- difference
- name: significant_digits
in: query
required: false
schema:
description: Digits kept when the exact value does not end (default 12). Ignored when the answer is exact.
type: integer
minimum: 1
maximum: 30
responses:
'200':
description: Tool result
components:
securitySchemes:
agentId:
type: apiKey
in: header
name: X-Agent-Id
description: Optional, self-chosen. Not a secret.
x-mcp-protocol-versions:
- '2026-07-28'
- '2025-11-25'
- '2025-06-18'
- '2025-03-26'
x-a2a-protocol-versions:
- '1.0'
- '0.3'