API → UnitConvert volume units

Parameters

Name

Type

Req.

  • input_unit

    string
    required
    Possible values
    • cm3:  Cubic centimeters (cc or cm³) <https://en.wikipedia.org/wiki/Cubic_centimeter>
    • ft3:  Cubic feet (ft³) <https://en.wikipedia.org/wiki/Cubic_foot>
    • in3:  Cubic inches (cu in or in³) <https://en.wikipedia.org/wiki/Cubic_inch>
    • m3:  Cubic meters (m³) <https://en.wikipedia.org/wiki/Cubic_meter>
    • yd3:  Cubic yards (yd³) <https://en.wikipedia.org/wiki/Cubic_yard>
    • usfloz:  US Fluid Ounces (fl oz) <https://en.wikipedia.org/wiki/Fluid_ounce>
    • usgal:  US Gallons (gal US) <https://en.wikipedia.org/wiki/Gallon>
    • l:  Liters (l) <https://en.wikipedia.org/wiki/Litre>
    • ml:  Milliliters (ml) <https://en.wikipedia.org/wiki/Litre>
  • output_unit

    string
    required
    Possible values
    • cm3:  Cubic centimeters (cc or cm³) <https://en.wikipedia.org/wiki/Cubic_centimeter>
    • ft3:  Cubic feet (ft³) <https://en.wikipedia.org/wiki/Cubic_foot>
    • in3:  Cubic inches (cu in or in³) <https://en.wikipedia.org/wiki/Cubic_inch>
    • m3:  Cubic meters (m³) <https://en.wikipedia.org/wiki/Cubic_meter>
    • yd3:  Cubic yards (yd³) <https://en.wikipedia.org/wiki/Cubic_yard>
    • usfloz:  US Fluid Ounces (fl oz) <https://en.wikipedia.org/wiki/Fluid_ounce>
    • usgal:  US Gallons (gal US) <https://en.wikipedia.org/wiki/Gallon>
    • l:  Liters (l) <https://en.wikipedia.org/wiki/Litre>
    • ml:  Milliliters (ml) <https://en.wikipedia.org/wiki/Litre>
  • 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
      • cm3:  Cubic centimeters (cc or cm³) <https://en.wikipedia.org/wiki/Cubic_centimeter>
      • ft3:  Cubic feet (ft³) <https://en.wikipedia.org/wiki/Cubic_foot>
      • in3:  Cubic inches (cu in or in³) <https://en.wikipedia.org/wiki/Cubic_inch>
      • m3:  Cubic meters (m³) <https://en.wikipedia.org/wiki/Cubic_meter>
      • yd3:  Cubic yards (yd³) <https://en.wikipedia.org/wiki/Cubic_yard>
      • usfloz:  US Fluid Ounces (fl oz) <https://en.wikipedia.org/wiki/Fluid_ounce>
      • usgal:  US Gallons (gal US) <https://en.wikipedia.org/wiki/Gallon>
      • l:  Liters (l) <https://en.wikipedia.org/wiki/Litre>
      • ml:  Milliliters (ml) <https://en.wikipedia.org/wiki/Litre>
    • output

      number
      optional
    • output_unit

      string
      optional
      Possible values
      • cm3:  Cubic centimeters (cc or cm³) <https://en.wikipedia.org/wiki/Cubic_centimeter>
      • ft3:  Cubic feet (ft³) <https://en.wikipedia.org/wiki/Cubic_foot>
      • in3:  Cubic inches (cu in or in³) <https://en.wikipedia.org/wiki/Cubic_inch>
      • m3:  Cubic meters (m³) <https://en.wikipedia.org/wiki/Cubic_meter>
      • yd3:  Cubic yards (yd³) <https://en.wikipedia.org/wiki/Cubic_yard>
      • usfloz:  US Fluid Ounces (fl oz) <https://en.wikipedia.org/wiki/Fluid_ounce>
      • usgal:  US Gallons (gal US) <https://en.wikipedia.org/wiki/Gallon>
      • l:  Liters (l) <https://en.wikipedia.org/wiki/Litre>
      • ml:  Milliliters (ml) <https://en.wikipedia.org/wiki/Litre>
    • 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/volume/{input_unit}/{output_unit}
$ curl "https://api.zoo.dev/unit/conversion/volume/{input_unit}/{output_unit}" \
	--header "Authorization: Bearer $TOKEN"
200 OK
Response
{
  "completed_at": "2024-04-26T17:03:39.590Z",
  "created_at": "2024-04-26T17:03:39.590Z",
  "error": "AfivbjnrrDgEIz0NgLkP8e2LqZ6C",
  "id": "2643d1ef-b2df-4837-832a-32ebbdafb551",
  "input": 3,
  "input_unit": "cm3",
  "output": 11,
  "output_unit": "yd3",
  "started_at": "2024-04-26T17:03:39.590Z",
  "status": "failed",
  "updated_at": "2024-04-26T17:03:39.590Z",
  "user_id": "edb976bd-88e6-40c5-8355-b15602d1c32d"
}