← Agent Data Hub · Search endpoints · /llms.txt

Food Security by Country — Hunger, Food Insecurity, Calories per Person, Yearly (FAOSTAT)

FAO's Suite of Food Security Indicators (SOFI 2026 data) for every country, world and region: prevalence and number of undernourished people (SDG 2.1.1), moderate or severe and severe food insecurity (FIES, SDG 2.1.2), dietary energy supply in kcal per person and day, dietary energy adequacy, protein and fat supply, cereal import dependency, food imports, irrigation. Country figures are mostly three-year averages, stored at their middle year (2023-2025 at 2024); single years for the world and regions in the "-annual" measures. Countries below 2.5 % undernourishment have no undernourishment number. Only FAO's own indicators (WHO, UNICEF and World Bank indicators of the suite left out). Options for series: area: afghanistan, albania, algeria, andorra, angola, antigua-and-barbuda, argentina, armenia, australia, austria, azerbaijan, bahamas, bahrain, bangladesh, barbados, belarus, belgium, belize, benin, bhutan, bolivia-plurinational-state-of, bosnia-and-herzegovina, botswana, brazil, brunei-darussalam, bulgaria, burkina-faso, burundi, cabo-verde, cambodia, cameroon, canada, central-african-republic, chad, chile, china, china-hong-kong-sar, china-macao-sar, china-mainland, china-taiwan-province-of, colombia, comoros, congo, cook-islands, costa-rica, cote-d-ivoire, croatia, cuba, cyprus, czechia, democratic-people-s-republic-of-korea, democratic-republic-of-the-congo, denmark, djibouti, dominica, dominican-republic, ecuador, egypt, el-salvador, equatorial-guinea, eritrea, estonia, eswatini, ethiopia, fiji, finland, france, french-polynesia, gabon, gambia, georgia, germany, ghana, greece, grenada, guatemala, guinea, guinea-bissau, guyana, haiti, honduras, hungary, iceland, india, indonesia, iran-islamic-republic-of, iraq, ireland, israel, italy, jamaica, japan, jordan, kazakhstan, kenya, kiribati, kuwait, kyrgyzstan, lao-people-s-democratic-republic, latvia, lebanon, lesotho, liberia, libya, lithuania, luxembourg, madagascar, malawi, malaysia, maldives, mali, malta, marshall-islands, mauritania, mauritius, mexico, micronesia-federated-states-of, mongolia, montenegro, morocco, mozambique, myanmar, namibia, naoero, nepal, netherlands-kingdom-of-the, new-caledonia, new-zealand, nicaragua, niger, nigeria, niue, north-macedonia, norway, oman, pakistan, palau, palestine, panama, papua-new-guinea, paraguay, peru, philippines, poland, portugal, puerto-rico, qatar, republic-of-korea, republic-of-moldova, romania, russian-federation, rwanda, saint-kitts-and-nevis, saint-lucia, saint-vincent-and-the-grenadines, samoa, sao-tome-and-principe, saudi-arabia, senegal, serbia, seychelles, sierra-leone, singapore, slovakia, slovenia, solomon-islands, somalia, south-africa, south-sudan, spain, sri-lanka, sudan, suriname, sweden, switzerland, syrian-arab-republic, tajikistan, thailand, timor-leste, togo, tonga, trinidad-and-tobago, tunisia, turkiye, turkmenistan, tuvalu, uganda, ukraine, united-arab-emirates, united-kingdom-of-great-britain-and-northern-ireland, united-republic-of-tanzania, united-states-of-america, uruguay, uzbekistan, vanuatu, venezuela-bolivarian-republic-of, viet-nam, yemen, zambia, zimbabwe, world, africa, eastern-africa, middle-africa, northern-africa, southern-africa, western-africa, sub-saharan-africa, northern-america-and-europe, northern-america, europe, eastern-europe, northern-europe, southern-europe, western-europe, latin-america-and-the-caribbean, central-america, caribbean, south-america, asia, central-asia, eastern-asia, southern-asia, south-eastern-asia, western-asia, central-asia-and-southern-asia, eastern-asia-and-south-eastern-asia, western-asia-and-northern-africa, oceania, australia-and-new-zealand, melanesia, micronesia, polynesia, oceania-excluding-australia-and-new-zealand, least-developed-countries-ldcs, land-locked-developing-countries-lldcs, small-island-developing-states-sids, low-income-food-deficit-countries-lifdcs, low-income-economies, lower-middle-income-economies, high-income-economies, upper-middle-income-economies; measure: undernourishment, undernourished-people, undernourishment-annual, undernourished-people-annual, food-insecurity, severe-food-insecurity, food-insecure-people, severely-food-insecure-people, food-insecurity-annual, severe-food-insecurity-annual, food-insecure-people-annual, dietary-energy-supply, dietary-energy-adequacy, protein-supply, animal-protein-supply, fat-supply, cereals-roots-share, cereal-import-dependency, food-imports-share, irrigated-arable-land, food-supply-variability.

Call it (no API key)

GET https://api.agentdatahub.de/api/v1/call/food-security-by-country?area=afghanistan&measure=dietary-energy-adequacy&compact=1

Full metadata: verbose=1 · Markdown: format=llm · Only some fields: add &fields=a,b.c · MCP: tool call_api with {"apiId":"food-security-by-country"}

How to fetch it

curl:

curl -s 'https://api.agentdatahub.de/api/v1/call/food-security-by-country?area=afghanistan&measure=dietary-energy-adequacy&compact=1'

Python (standard library only):

import json, urllib.request

url = "https://api.agentdatahub.de/api/v1/call/food-security-by-country?area=afghanistan&measure=dietary-energy-adequacy&compact=1"
with urllib.request.urlopen(url, timeout=30) as r:
    data = json.load(r)
print(json.dumps(data, indent=2)[:2000])

Google Sheets:

=IMPORTDATA("https://api.agentdatahub.de/api/v1/history/food-security-by-country?area=afghanistan&measure=dietary-energy-adequacy&_order=desc&_limit=500&format=csv")

The recorded history of this call as CSV, newest first. Excel: Data → From Web with the same address.

Parameters

areaCountry or region (slug of the FAO name, e.g. world, africa, india, brazil, germany; ISO-2 code also works) (required; several comma-separated to compare, up to 10 series): afghanistan, albania, algeria, andorra, angola, antigua-and-barbuda, argentina, armenia, australia, austria, azerbaijan, bahamas, bahrain, bangladesh, barbados, belarus, belgium, belize, benin, bhutan, bolivia-plurinational-state-of, bosnia-and-herzegovina, botswana, brazil, brunei-darussalam, bulgaria, burkina-faso, burundi, cabo-verde, cambodia, cameroon, canada, central-african-republic, chad, chile, china, china-hong-kong-sar, china-macao-sar, china-mainland, china-taiwan-province-of, colombia, comoros, congo, cook-islands, costa-rica, cote-d-ivoire, croatia, cuba, cyprus, czechia, democratic-people-s-republic-of-korea, democratic-republic-of-the-congo, denmark, djibouti, dominica, dominican-republic, ecuador, egypt, el-salvador, equatorial-guinea, eritrea, estonia, eswatini, ethiopia, fiji, finland, france, french-polynesia, gabon, gambia, georgia, germany, ghana, greece, grenada, guatemala, guinea, guinea-bissau, guyana, haiti, honduras, hungary, iceland, india, indonesia, iran-islamic-republic-of, iraq, ireland, israel, italy, jamaica, japan, jordan, kazakhstan, kenya, kiribati, kuwait, kyrgyzstan, lao-people-s-democratic-republic, latvia, lebanon, lesotho, liberia, libya, lithuania, luxembourg, madagascar, malawi, malaysia, maldives, mali, malta, marshall-islands, mauritania, mauritius, mexico, micronesia-federated-states-of, mongolia, montenegro, morocco, mozambique, myanmar, namibia, naoero, nepal, netherlands-kingdom-of-the, new-caledonia, new-zealand, nicaragua, niger, nigeria, niue, north-macedonia, norway, oman, pakistan, palau, palestine, panama, papua-new-guinea, paraguay, peru, philippines, poland, portugal, puerto-rico, qatar, republic-of-korea, republic-of-moldova, romania, russian-federation, rwanda, saint-kitts-and-nevis, saint-lucia, saint-vincent-and-the-grenadines, samoa, sao-tome-and-principe, saudi-arabia, senegal, serbia, seychelles, sierra-leone, singapore, slovakia, slovenia, solomon-islands, somalia, south-africa, south-sudan, spain, sri-lanka, sudan, suriname, sweden, switzerland, syrian-arab-republic, tajikistan, thailand, timor-leste, togo, tonga, trinidad-and-tobago, tunisia, turkiye, turkmenistan, tuvalu, uganda, ukraine, united-arab-emirates, united-kingdom-of-great-britain-and-northern-ireland, united-republic-of-tanzania, united-states-of-america, uruguay, uzbekistan, vanuatu, venezuela-bolivarian-republic-of, viet-nam, yemen, zambia, zimbabwe, world, africa, eastern-africa, middle-africa, northern-africa, southern-africa, western-africa, sub-saharan-africa, northern-america-and-europe, northern-america, europe, eastern-europe, northern-europe, southern-europe, western-europe, latin-america-and-the-caribbean, central-america, caribbean, south-america, asia, central-asia, eastern-asia, southern-asia, south-eastern-asia, western-asia, central-asia-and-southern-asia, eastern-asia-and-south-eastern-asia, western-asia-and-northern-africa, oceania, australia-and-new-zealand, melanesia, micronesia, polynesia, oceania-excluding-australia-and-new-zealand, least-developed-countries-ldcs, land-locked-developing-countries-lldcs, small-island-developing-states-sids, low-income-food-deficit-countries-lifdcs, low-income-economies, lower-middle-income-economies, high-income-economies, upper-middle-income-economies
measureundernourishment (%), undernourished-people (million), food-insecurity (% moderate or severe), severe-food-insecurity, dietary-energy-supply (kcal/cap/day), protein-supply … ("-annual": single years, world and regions) (required; several comma-separated to compare, up to 10 series): undernourishment, undernourished-people, undernourishment-annual, undernourished-people-annual, food-insecurity, severe-food-insecurity, food-insecure-people, severely-food-insecure-people, food-insecurity-annual, severe-food-insecurity-annual, food-insecure-people-annual, dietary-energy-supply, dietary-energy-adequacy, protein-supply, animal-protein-supply, fat-supply, cereals-roots-share, cereal-import-dependency, food-imports-share, irrigated-arable-land, food-supply-variability
seriesOptional full series key as returned by /ask (instead of the parameters above), comma-separated for several
fromOptional start YYYY, YYYY-MM or YYYY-MM-DD
toOptional end YYYY, YYYY-MM or YYYY-MM-DD
lastNumber of most recent periods when no from/to is given, 1-500 (default: 13)
groupOptional country group instead of area (EU27, EA, OECD, G7, G20, a continent): one row per member, newest value each
periodOnly with group: latest (default) or common (one period across members)

Example response (live, compact)

{
  "apiId": "food-security-by-country",
  "trust": "checked",
  "data_freshness": "cached",
  "data": {
    "area": "afghanistan",
    "measure": "dietary-energy-adequacy",
    "series": "Afghanistan — Average dietary energy supply adequacy (percent) (3-year average)",
    "unit": "%",
    "frequency": "A",
    "latest": {
      "period": "2024",
      "value": 108
    },
    "history": [
      {
        "period": "2012",
        "value": 104
      },
      {
        "period": "2013",
        "value": 106
      },
      {
        "period": "2014",
        "value": 107
      },
      {
        "period": "2015",
        "value": 107
      },
      {
        "period": "2016",
        "value": 107
      },
      {
        "period": "2017",
        "value": 107
      },
      {
        "period": "2018",
        "value": 106
      },
      {
        "period": "2019",
        "value": 106
      },
      {
        "period": "2020",
        "value": 104
      },
      {
        "period": "2021",
        "value": 104
      },
      {
        "period": "2022",
        "value": 103
      },
      {
        "period": "2023",
        "value": 106
      },
      {
        "period": "2024",
        "value": 108
      }
    ],
    "available": {
      "from": "2001",
      "to": "2024",
      "points": 24
    },
    "note": "Three-year average by FAO, stored at its middle year (the value at 2024 is the average of 2023-2025).",
    "verification": {
      "checked_at": "2026-11-29T22:18:47.893Z",
      "checks": []
    },
    "source": {
      "publisher": "FAO (FAOSTAT)",
      "licence": "FAOSTAT, CC BY 4.0 (FAO Database Terms of Use)",
      "licence_url": "https://www.fao.org/contact-us/terms/db-terms-of-use/en/",
      "source_url": "https://www.fao.org/faostat/en/#data/FS",
      "source_url_level": "dataset",
      "series_title": "Afghanistan;Average dietary energy supply adequacy (percent) (3-year average);Value;%"
    },
    "attribution": "Source: FAO. FAOSTAT (CC BY 4.0)"
  },
  "source": "FAO (FAOSTAT)",
  "source_url": "https://www.fao.org/faostat/en/#data/FS",
  "license": "FAOSTAT, CC BY 4.0 (FAO Database Terms of Use)",
  "licence_status": "green",
  "as_of": "2024",
  "checked": "2026-11-29"
}

Recorded history available: /api/v1/history/food-security-by-country?area=afghanistan&measure=dietary-energy-adequacy

Source & license

SourceFAO (FAOSTAT)
LicenseFAOSTAT, CC BY 4.0 (FAO Database Terms of Use)
Source URLhttps://www.fao.org/faostat/en/#data/FS
Termshttps://www.fao.org/contact-us/terms/db-terms-of-use/en/
CategoryGeodata, Weather & Environment › Agriculture & Food (FAO) · more: geo-city-360-briefing · geo-country-profile · geo-geocoding-search