Docsv1Volume

Volume

volume

Converts between different units of volume.

Supported Units
The following units of volume are supported:

Metric units:
mL, milliliter, milliliters L, liter, liters , cubic meter, cubic meters cubic metre, cubic metres

Imperial units:
fl oz, fluid ounce, fluid ounces cup, cups pt, pint, pints qt, quart, quarts gal, gallon, gallons tsp, teaspoon, teaspoons tbsp, tablespoon, tablespoons

US units:
US teaspoon, US teaspoons US tablespoon, US tablespoons US fluid ounce, US fluid ounces US cup, US cups US pint, US pints US quart, US quarts US gallon, US gallons US bushel, US bushels US peck, US pecks

Other units:
stere, steres cubic mile, cubic miles acre-foot, acre-feet cubic yard, cubic yards cubic foot, cubic feet board foot, board feet cubic inch, cubic inches measurement ton, measurement tons imperial barrel, imperial barrels imperial bushel, imperial bushels imperial peck, imperial pecks

Request
URL:

https://api.convert.com.de/v1/volume

Method: POST
Headers: Content-Type: application/json

Body

{
  "access_token": "YOUR_LICENSE_KEY",
  "text": "1",
  "from": "L",
  "to": "gal"
}

Response

{
  "status_code": 200,
    "data": {
        "value": 1,
        "c_value": 0.26417205235814876
    }
}