Temperature Conversion
The /convert endpoint allows you to convert multiple temperature units between each other. You need to provide a value to convert, a source unit, and the unit you want to convert to.
gethttps://api.moxon.dev /v3/convert
valuestringrequiredThe value to convert
fromstringrequiredThe source unit (
celsius,fahrenheit,kelvin)tostringrequiredThe target unit (
celsius,fahrenheit,kelvin)
| Unit | Description |
|---|---|
celsius | Celsius degrees |
fahrenheit | Fahrenheit degrees |
kelvin | Kelvin |
GET /v3/convert?value=30&from=celsius&to=kelvin{
"from": "celsius",
"to": "kelvin",
"value": 30,
"result": 303.15
}curl -X GET "https://api.moxon.dev/v3/convert?value=30&from=celsius&to=kelvin"If parameters are missing or invalid, the API will return an error:
- 400
Please provide a valid value (?value={value})Thevalueparameter is missing or invalid - 400
Please provide a valid source unit (&from={unit})Thefromparameter is missing or invalid - 400
Please provide a valid target unit (&to={unit})Thetoparameter is missing or invalid
Last updated on April 8, 2026