API → UnitConvert power units

Parameters

Name

Type

Req.

  • input_unit

    string
    required
    Possible values
    • btu_per_minute:  British thermal units (BTU) per minute <https://en.wikipedia.org/wiki/British_thermal_unit>
    • horsepower:  Horsepower (hp) <https://en.wikipedia.org/wiki/Horsepower>
    • kilowatts:  Kilowatts <https://en.wikipedia.org/wiki/Kilowatt>
    • metric_horsepower:  Metric horsepower (PS) <https://en.wikipedia.org/wiki/Horsepower#Metric_horsepower>
    • microwatts:  Microwatts <https://en.wikipedia.org/wiki/Microwatt>
    • milliwatts:  Millwatts <https://en.wikipedia.org/wiki/Milliwatt>
    • watts:  Watts <https://en.wikipedia.org/wiki/Watt>
  • output_unit

    string
    required
    Possible values
    • btu_per_minute:  British thermal units (BTU) per minute <https://en.wikipedia.org/wiki/British_thermal_unit>
    • horsepower:  Horsepower (hp) <https://en.wikipedia.org/wiki/Horsepower>
    • kilowatts:  Kilowatts <https://en.wikipedia.org/wiki/Kilowatt>
    • metric_horsepower:  Metric horsepower (PS) <https://en.wikipedia.org/wiki/Horsepower#Metric_horsepower>
    • microwatts:  Microwatts <https://en.wikipedia.org/wiki/Microwatt>
    • milliwatts:  Millwatts <https://en.wikipedia.org/wiki/Milliwatt>
    • watts:  Watts <https://en.wikipedia.org/wiki/Watt>
  • 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
      • btu_per_minute:  British thermal units (BTU) per minute <https://en.wikipedia.org/wiki/British_thermal_unit>
      • horsepower:  Horsepower (hp) <https://en.wikipedia.org/wiki/Horsepower>
      • kilowatts:  Kilowatts <https://en.wikipedia.org/wiki/Kilowatt>
      • metric_horsepower:  Metric horsepower (PS) <https://en.wikipedia.org/wiki/Horsepower#Metric_horsepower>
      • microwatts:  Microwatts <https://en.wikipedia.org/wiki/Microwatt>
      • milliwatts:  Millwatts <https://en.wikipedia.org/wiki/Milliwatt>
      • watts:  Watts <https://en.wikipedia.org/wiki/Watt>
    • output

      number
      optional
    • output_unit

      string
      optional
      Possible values
      • btu_per_minute:  British thermal units (BTU) per minute <https://en.wikipedia.org/wiki/British_thermal_unit>
      • horsepower:  Horsepower (hp) <https://en.wikipedia.org/wiki/Horsepower>
      • kilowatts:  Kilowatts <https://en.wikipedia.org/wiki/Kilowatt>
      • metric_horsepower:  Metric horsepower (PS) <https://en.wikipedia.org/wiki/Horsepower#Metric_horsepower>
      • microwatts:  Microwatts <https://en.wikipedia.org/wiki/Microwatt>
      • milliwatts:  Millwatts <https://en.wikipedia.org/wiki/Milliwatt>
      • watts:  Watts <https://en.wikipedia.org/wiki/Watt>
    • 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/power/{input_unit}/{output_unit}
$ curl "https://api.zoo.dev/unit/conversion/power/{input_unit}/{output_unit}" \
	--header "Authorization: Bearer $TOKEN"
200 OK
Response
{
  "completed_at": "2024-11-20T19:31:06.890Z",
  "created_at": "2024-11-20T19:31:06.890Z",
  "error": "SmRBXQGGxW9",
  "id": "19a2dcdb-0015-4343-af90-d1f40bd4b3a7",
  "input": 27,
  "input_unit": "watts",
  "output": 25,
  "output_unit": "kilowatts",
  "started_at": "2024-11-20T19:31:06.890Z",
  "status": "uploaded",
  "updated_at": "2024-11-20T19:31:06.890Z",
  "user_id": "a2044598-ed8f-4fa8-94d0-803d62ebb1af"
}