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-04-11T21:12:01.932Z",
  "created_at": "2024-04-11T21:12:01.932Z",
  "error": "8ASeRj9pQ3Vv",
  "id": "6353ffcf-de98-4492-b1b6-c96c48427c3e",
  "input": 3,
  "input_unit": "watts",
  "output": 25,
  "output_unit": "milliwatts",
  "started_at": "2024-04-11T21:12:01.932Z",
  "status": "failed",
  "updated_at": "2024-04-11T21:12:01.932Z",
  "user_id": "432e55c8-127e-4c5c-b393-e5d4fb2d8562"
}