---
title: 'Liquid objects: measurement'
description: |-
  A measurement from one of the following metafield types:

  - `antenna_gain`
  - `area`
  - `battery_charge_capacity`
  - `battery_energy_capacity`
  - `capacitance`
  - `concentration`
  - `data_storage_capacity`
  - `data_transfer_rate`
  - `dimension`
  - `distance`
  - `display_density`
  - `duration`
  - `electric_current`
  - `electrical_resistance`
  - `energy`
  - `frequency`
  - `illuminance`
  - `inductance`
  - `luminous_flux`
  - `mass_flow_rate`
  - `power`
  - `pressure`
  - `resolution`
  - `rotational_speed`
  - `sound_level`
  - `speed`
  - `temperature`
  - `thermal_power`
  - `voltage`
  - `volume`
  - `volumetric_flow_rate`
  - `weight`
source_url:
  html: 'https://shopify.dev/docs/api/liquid/objects/measurement'
  md: 'https://shopify.dev/docs/api/liquid/objects/measurement.md'
api_name: liquid
---

# measurement

A measurement from one of the following metafield types:

* `antenna_gain`
* `area`
* `battery_charge_capacity`
* `battery_energy_capacity`
* `capacitance`
* `concentration`
* `data_storage_capacity`
* `data_transfer_rate`
* `dimension`
* `distance`
* `display_density`
* `duration`
* `electric_current`
* `electrical_resistance`
* `energy`
* `frequency`
* `illuminance`
* `inductance`
* `luminous_flux`
* `mass_flow_rate`
* `power`
* `pressure`
* `resolution`
* `rotational_speed`
* `sound_level`
* `speed`
* `temperature`
* `thermal_power`
* `voltage`
* `volume`
* `volumetric_flow_rate`
* `weight`

***

**Tip:** To learn about metafield types, refer to \<a href="/apps/metafields/types">Metafield types\</a>.

***

## Properties

* * **type**

    [string](https://shopify.dev/docs/api/liquid/basics#string)

  * The measurement type.

  * **unit**

    [string](https://shopify.dev/docs/api/liquid/basics#string)

  * The measurement unit.

  * **value**

    [number](https://shopify.dev/docs/api/liquid/basics#number)

  * The measurement value.

##### Example

```json
{
  "type": "volume",
  "unit": "mL",
  "value": "500.0"
}
```
