API → Unit → Convert temperature units
Parameters
Name
Type
Req.
Possible values
celsius
: Celsius <https://en.wikipedia.org/wiki/Celsius>fahrenheit
: Fahrenheit <https://en.wikipedia.org/wiki/Fahrenheit>kelvin
: Kelvin <https://en.wikipedia.org/wiki/Kelvin>rankine
: Rankine <https://en.wikipedia.org/wiki/Rankine_scale>
Possible values
celsius
: Celsius <https://en.wikipedia.org/wiki/Celsius>fahrenheit
: Fahrenheit <https://en.wikipedia.org/wiki/Fahrenheit>kelvin
: Kelvin <https://en.wikipedia.org/wiki/Kelvin>rankine
: Rankine <https://en.wikipedia.org/wiki/Rankine_scale>
Returns
- 200 OK
successful operation
Name
Type
Req.
body
objectoptionalObject Properties
Possible values
celsius
: Celsius <https://en.wikipedia.org/wiki/Celsius>fahrenheit
: Fahrenheit <https://en.wikipedia.org/wiki/Fahrenheit>kelvin
: Kelvin <https://en.wikipedia.org/wiki/Kelvin>rankine
: Rankine <https://en.wikipedia.org/wiki/Rankine_scale>
Possible values
celsius
: Celsius <https://en.wikipedia.org/wiki/Celsius>fahrenheit
: Fahrenheit <https://en.wikipedia.org/wiki/Fahrenheit>kelvin
: Kelvin <https://en.wikipedia.org/wiki/Kelvin>rankine
: Rankine <https://en.wikipedia.org/wiki/Rankine_scale>
Possible values
queued
: The async API call is queued.uploaded
: The async API call was uploaded to be converted.in_progress
: The async API call is in progress.completed
: The async API call has completed.failed
: The async API call has failed.
get
/unit/conversion/temperature/{input_unit}/{output_unit}$ curl "https://api.zoo.dev/unit/conversion/temperature/{input_unit}/{output_unit}" \
--header "Authorization: Bearer $TOKEN"
200 OK
Response{
"completed_at": "2024-07-27T01:16:21.179Z",
"created_at": "2024-07-27T01:16:21.179Z",
"error": "oS",
"id": "d71187c7-7606-4d39-af67-fe3c41a07ecc",
"input": 27,
"input_unit": "celsius",
"output": 30,
"output_unit": "rankine",
"started_at": "2024-07-27T01:16:21.179Z",
"status": "in_progress",
"updated_at": "2024-07-27T01:16:21.179Z",
"user_id": "c6aa6e53-d7e2-4cad-8124-aac6bf3e3a9e"
}