| Key | Value (string) |
|---|---|
| inch->mm | 25.4 (exact) |
| foot->m | 0.3048 (exact) |
| yard->m | 0.9144 (exact) |
| mile->km | 1.609344 (exact) |
| nautical-mile->km | 1.852 (exact) |
| ounce->g | 28.349523125 (exact) |
| pound->kg | 0.45359237 (exact) |
| stone->kg | 6.35029318 (exact) |
| short-ton->kg | 907.18474 (exact) |
| long-ton->kg | 1016.0469088 (exact) |
| gallon-us->L | 3.785411784 (exact) |
| gallon-uk->L | 4.54609 (exact) |
| quart-us->L | 0.946352946 (exact) |
| pint-us->L | 0.473176473 (exact) |
| cup-us->mL | 236.5882365 (exact) |
| floz-us->mL | 29.5735295625 (exact) |
| tbsp-us->mL | 14.78676478125 (exact) |
| tsp-us->mL | 4.92892159375 (exact) |
| cal->J | 4.184 (exact) |
| kcal->kJ | 4.184 (exact) |
| kWh->MJ | 3.6 (exact) |
| btu->J | 1055.05585262 (exact) |
| eV->J | 1.602176634E-19 (exact) |
| mph->kmh | 1.609344 (exact) |
| knot->kmh | 1.852 (exact) |
| mps->kmh | 3.6 (exact) |
| fps->mps | 0.3048 (exact) |
| sqft->m2 | 0.09290304 (exact) |
| sqmi->km2 | 2.589988110336 (exact) |
| hectare->m2 | 10000 (exact) |
| atm->kPa | 101.325 (exact) |
| bar->kPa | 100 (exact) |
| psi->kPa | 6.894757 (rounded) |
| mmHg->Pa | 133.322387415 (exact) |
| hp->W | 745.6999 (rounded) |
| celsius->kelvin | add 273.15 (exact) |
| celsius->fahrenheit | multiply by 9/5, then add 32 (exact) |
| fahrenheit->celsius | subtract 32, then multiply by 5/9 (exact) |
{ "collection": "unit-conversions", "type": "string", "count": 38, "items": [ { "key": "inch->mm", "value": "25.4 (exact)" }, { "key": "foot->m", "value": "0.3048 (exact)" }, { "key": "yard->m", "value": "0.9144 (exact)" } ] }
const res = await fetch( 'https://collections.rest/api/v1/collection/unit-conversions.json' ); const { items } = await res.json(); // values are typed: integers are numbers, not strings
curl https://collections.rest/api/v1/\
collection/unit-conversions.csv