API → UnitConvert temperature units

Parameters

Name

Type

Req.

  • input_unit

    string
    required
    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>
  • output_unit

    string
    required
    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>
  • value

    number
    required

Returns

  • 200 OK

    successful operation

    Name

    Type

    Req.

    body

    object
    optional
    Object Properties
    • completed_at

      string / ISO-8601
      optional
    • created_at

      string / ISO-8601
      optional
    • error

      string
      optional
    • id

      string / UUID
      optional
    • input

      number
      optional
    • input_unit

      string
      optional
      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>
    • output

      number
      optional
    • output_unit

      string
      optional
      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>
    • started_at

      string / ISO-8601
      optional
    • status

      string
      optional
      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.
    • updated_at

      string / ISO-8601
      optional
    • user_id

      string / UUID
      optional
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-04-18T22:05:34.830Z",
  "created_at": "2024-04-18T22:05:34.830Z",
  "error": "6NiGcRhmV46xcdQIzLGGIO",
  "id": "09ec0d67-c506-4912-8da6-c1e5160c12b1",
  "input": 2,
  "input_unit": "celsius",
  "output": 12,
  "output_unit": "celsius",
  "started_at": "2024-04-18T22:05:34.830Z",
  "status": "failed",
  "updated_at": "2024-04-18T22:05:34.830Z",
  "user_id": "9c5e82df-95fb-486e-82cb-6bbef8b3ddea"
}