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-26T17:03:35.800Z",
  "created_at": "2024-04-26T17:03:35.800Z",
  "error": "ato89YR0t",
  "id": "23fa9d16-35bb-4364-aa6a-c453a214657a",
  "input": 18,
  "input_unit": "microwatts",
  "output": 26,
  "output_unit": "milliwatts",
  "started_at": "2024-04-26T17:03:35.800Z",
  "status": "failed",
  "updated_at": "2024-04-26T17:03:35.800Z",
  "user_id": "5aaf5e04-6b30-4776-a1dc-0284ccfca048"
}