---
id: "faostat_element_code"
kind: "datatype"
status: "draft"
is_pii: false
name: "FAOSTAT element code"
regexp: "^[1-9]\\d{2,4}$"
categories: ["agriculture"]
langs: ["common"]
quality: 90
url: "https://registry.apicrafter.io/datatype/faostat_element_code"
---

# FAOSTAT element code (`faostat_element_code`)

> **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.

Numeric code of the measured element in FAOSTAT (the Element Code column of its downloads): 5510 production, 5312 area harvested; older extracts use three-digit codes such as 551 and 561 for rural and urban population.

- Personal data (PII): no
- Categories: Agriculture, livestock and food (agriculture)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^[1-9]\d{2,4}$
```

## Examples

- `5510` — Production
- `5312` — Area harvested
- `551` — Rural population in an older extract
- `55` (invalid example) — Two digits

## Metacrafter rules

1 rules: 1 match the field name, 0 match values.

- `faostatelementcodebyname` (field, `common/research_codes.yaml`)

## Supported by tools

- [`metacrafter`](https://registry.apicrafter.io/tool/metacrafter.md)

## Translations

- ru: Код элемента FAOSTAT

## Sources

- doc: <https://www.fao.org/faostat/en/#definitions>

## Quality

Score 90/100. Missing: mapping (Wikidata, Schema.org, ...).

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