Convert mass units
Path parameters
/{input_unit}
"g"+2▾- //Grams <https://en.wikipedia.org/wiki/Gram>
"g" - //Kilograms <https://en.wikipedia.org/wiki/Kilogram>
"kg" - //Pounds <https://en.wikipedia.org/wiki/Pound_(mass)>
"lb"
///{output_unit}
"g"+2▾- //Grams <https://en.wikipedia.org/wiki/Gram>
"g" - //Kilograms <https://en.wikipedia.org/wiki/Kilogram>
"kg" - //Pounds <https://en.wikipedia.org/wiki/Pound_(mass)>
"lb"
//
Query string parameters
?value=
double//
Response
- 200 OK
- //
completed_at:
stringISO-8601,//created_at:
stringISO-8601,//error:
string,//id:
stringUUID,//input:
numberdouble,//output:
numberdouble,//started_at:
stringISO-8601,//updated_at:
stringISO-8601,//user_id:
stringUUID,//input_unit:
,"g"+2▾- //Grams <https://en.wikipedia.org/wiki/Gram>
"g" - //Kilograms <https://en.wikipedia.org/wiki/Kilogram>
"kg" - //Pounds <https://en.wikipedia.org/wiki/Pound_(mass)>
"lb"
//output_unit:
,"g"+2▾- //Grams <https://en.wikipedia.org/wiki/Gram>
"g" - //Kilograms <https://en.wikipedia.org/wiki/Kilogram>
"kg" - //Pounds <https://en.wikipedia.org/wiki/Pound_(mass)>
"lb"
//status:
"queued"+4▾- //The async API call is queued.
"queued" - //The async API call was uploaded to be converted.
"uploaded" - //The async API call is in progress.
"in_progress" - //The async API call has completed.
"completed" - //The async API call has failed.
"failed"
//
}
Examples
get
/unit/conversion/mass/{input_unit}/{output_unit}200 OK
Response