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-10-21T18:00:07.494Z",
  "created_at": "2024-10-21T18:00:07.494Z",
  "error": "cl",
  "id": "7faa1f75-5f06-46d9-9182-897d743782a9",
  "input": 5,
  "input_unit": "usgal",
  "output": 14,
  "output_unit": "ml",
  "started_at": "2024-10-21T18:00:07.494Z",
  "status": "completed",
  "updated_at": "2024-10-21T18:00:07.494Z",
  "user_id": "b6bfe74b-9d2d-4b00-811a-e1c834701638"
}