Faostat Dimensions
faostat_dimensionsThe valid codes for one dimension of one FAOSTAT domain — the country/area codes, element codes (production quantity, area harvested, yield, import value, ...), item codes (wheat, cattle, nitrogen fertiliser, ...) or years a domain actually carries. Call this BEFORE faostat_data: FAOSTAT codes are numeric and domain-specific, so guessing them returns nothing rather than an error. Example: domain "QCL" dimension "element" lists production quantity (5510), area harvested (5312) and yield (5412); domain "QCL" dimension "item" lists the 278 crops and livestock products.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max codes to return (default 50, max 1000). | |
| search | No | Case-insensitive substring filter on the code label, e.g. "wheat". | |
| dimension | Yes | Which dimension to list: "area" (countries and territories), "areagroup" (regional aggregates), "element" (the measured quantity), "item" (the commodity), "itemsgroup" (commodity aggregates), "year", "flag" (data-quality flags) or "unit". | |
| domain_code | Yes | FAOSTAT domain code from faostat_domains, e.g. "QCL". |