Skip to main content

Unit Service

The unit resource lists the units of measure the platform knows, by dimension, with the conversions allowed between them. It is read-only.

Unit REST API​

The Unit REST API is accessed through the following URL:

https://api.opendatadsl.com/api/unit
MethodPathExampleDescription
GETGet the build information for this service
GET{release}v1List the dimensions, for example mass, volume and energy
GET{release}/{dimension}v1/energyList the units of a dimension, or of every dimension with *
GET{release}/{dimension}/{unit}v1/energy/MWhRetrieve a unit

Entities​

Unit​

NameDescriptionType
codeThe unit code, as used in the units of a timeseries or curveString
nameThe unit nameString
dimensionThe dimension of the unitString
factorThe factor that converts the unit to the base unit of its dimensionNumber
metricTrue for a metric unitBoolean
prefixThe metric prefix, if anyString
conversionsThe other dimensions this unit can be converted to, each with the dimension, a unit and the requiredParameter the conversion needs (for example a density to convert mass to volume)Object[]

Use the currency and units query parameters of the Data service to convert timeseries and curves.