Get Unit

POST

Returns information for a unit symbol if available. Returns as empty if the provided symbol cannot be parsed.

Request

This endpoint expects a string.

Response

This endpoint returns an optional object.
symbolstring
systemstring

The units system that the unit is defined in.

namestringOptional

The long form name of a unit.

propertystringOptional

Empty if no property is available. If two units measure different properties, it is not possible to convert between them.

dimensionobjectOptional

The physical dimensions in terms of the base units of the system. It is only possible to convert units if they have the same dimension. Empty if the unit is a base unit.

Built with