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-11-20T19:31:06.184Z",
"created_at": "2024-11-20T19:31:06.184Z",
"error": "4A",
"id": "14929602-8678-47da-ba01-a4f5ef4ef4cf",
"input": 30,
"input_unit": "rankine",
"output": 30,
"output_unit": "celsius",
"started_at": "2024-11-20T19:31:06.184Z",
"status": "failed",
"updated_at": "2024-11-20T19:31:06.184Z",
"user_id": "c8ce1a5d-94b2-40bc-b402-5a452fc68cc9"
}