# Measure unit and price support in API

URL: https://shoptet.dev/news/api/measure-unit-and-price-support-in-api

July 22, 2020 · One min read
Pavel Husa

Measure units and prices are used to compare similar goods with variable package sizes. For example you might sell a chocolate of 50 g weight, as well as 100 g or 200 g. To make the price comparison easier, the measure price expresses price value converted to a predefined weigth, for example 100 g. See more at [Support Pages](https://podpora.shoptet.cz/hc/cs/articles/360003141812-M%C4%9Brn%C3%A9-ceny) .

We have extended the [Product Detail](https://api.docs.shoptet.com/shoptet-api/openapi/products/getproductdetail) to show attributes related to Measure price. To display them you need to call the endpoint with `?include=measureUnit` parameter. Also, the corresponding module must be active in the eshop. The attributes are located in `data.variants[].measureUnits` object.

Additionally, there is a new endpoint [List of product measure units](https://api.docs.shoptet.com/shoptet-api/openapi/measure-units/getlistofproductsmeasureunits) , which provides the complete list of measure units and possible conversions and ratios between the units.

**Tags:**
- [API](/news/tags/api/)
