Unit conversion
Converts a value between units in one category: length, weight, temperature, volume, or speed. Returns the converted result in the page's display precision, the value in base units, and the conversion rate (null for temperature, which uses an offset scale). Unit codes must belong to the chosen category. Results match the interactive calculator at everycalc.xyz; every response includes a calculator_url deep link to it.
Request
- Base URL: https://everycalc.xyz
- URL: https://everycalc.xyz/api/v1/calculate/unit-converter
- Auth: none declared
Query parameters
Unit category to convert within.
Value to convert.
Unit code to convert from. Must be a unit of the chosen category: length m, km, cm, mi, ft, in; weight kg, g, lb, oz; temperature C, F, K; volume L, mL, gal, floz; speed ms, kmh, mph.
Unit code to convert to. Must be a unit of the chosen category, using the same code lists as from_unit.
Response
Calculation result.
Changes
No recorded changes to this operation across all 1 revision of this API.