---
id: "weight"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["values", "common"]
langs: ["common"]
quality: 100
url: "http://registry.apicrafter.io/datatype/weight"
---

# Weight (mass) (`weight`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Weight of a person, an animal or a product, measured as mass in kilograms, grams, pounds or ounces. Datasets store it as a number, with the unit either in the value, such as "95 lbs.", or in the column name or metadata. The regular expression recognizes only values that carry one of these unit symbols.

- Parent datatype: `numeric`
- Personal data (PII): no
- Categories: All measurable values (percentage, amount and e.t.c) (values), Common (common)
- Countries: global
- Languages: Common to most languages (common)

## Detection

Regular expression (Python `re`):

```
^\d+(?:[.,]\d+)?\s?(?:kg|g|mg|lbs?|oz)\.?$
```

## Examples

- `95 lbs.` — pounds, abbreviation with a dot
- `72.5 kg` — kilograms
- `250g` — grams without a space
- `12 oz` — ounces
- `kg` (invalid example) — unit without a number
- `5 km` (invalid example) — unit of length

## Mappings

- schema_org: `weight`
- sherlock: `weight`
- wikidata: `P2067`

## Supported by tools

- `doduo`
- `sato`
- `sherlock`

## Translations

- ru: Вес (масса)

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Mass>
- wikidata: <https://www.wikidata.org/wiki/Property:P2067>
- schema.org: <https://schema.org/weight>

## Quality

Score 100/100.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/weight.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/values/weight.yaml>
