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

# FAOSTAT item code (`faostat_item_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 a commodity or other item in FAOSTAT (the Item Code column of its downloads): 15 wheat, 56 maize, 3010 total population in the population domain.

- 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{0,4}$
```

## Examples

- `15` — Wheat
- `56` — Maize
- `3010` — Population
- `0111` (invalid example) — A CPC code with a leading zero

## Metacrafter rules

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

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

## Supported by tools

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

## Translations

- ru: Код показателя (item) 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_item_code.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/agriculture/faostat_item_code.yaml>
