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-12-19T17:50:12.833Z",
  "created_at": "2024-12-19T17:50:12.833Z",
  "error": "FA4VWlyY5VkghDcC6lKMcpdYts",
  "id": "e00fd0b2-734b-4c0d-95f2-238282c3a5d6",
  "input": 3,
  "input_unit": "microwatts",
  "output": 11,
  "output_unit": "milliwatts",
  "started_at": "2024-12-19T17:50:12.833Z",
  "status": "in_progress",
  "updated_at": "2024-12-19T17:50:12.833Z",
  "user_id": "d3d69016-f25a-459b-999f-dc652de65b20"
}