54 countries · 127 indicators · 45 sourcesLiveGet API key

Demographics · North Africa

Libya Median Age

28 yearsas of 2026+1.1% vs 2025

Median age of the population, in years. Source: UN World Population Prospects. Updated March 7, 2026.

Trend

20002026 · UN

History

most recent 12 periods
PeriodMedian Age
202628 years
202527.7 years
202427.5 years
202327.2 years
202226.9 years
202126.7 years
202026.5 years
201926.2 years
201826 years
201725.8 years
201625.6 years
201525.4 years

Get this via API

GET /v1/data

The series above is served by the /v1/data endpoint. With a free key you get JSON for every country and indicator on this site.

curl "https://api.africa-api.com/v1/data?country_code=LY&metric_key=median_age_years" \
  -H "Authorization: Bearer $AFRICA_API_KEY"

Median Age across Africa

Rank all 54 ->
CountryMedian AgePeriod
Nigeria18.3 years2026
Kenya20.3 years2026
South Africa28.9 years2026
Egypt24.7 years2026
Ghana21.6 years2026
Ethiopia19.3 years2026

Frequently asked questions

What is Libya's median age?

Libya's median age is 28 years as of 2026, according to UN World Population Prospects.

What is the source for this figure?

The figure comes from UN World Population Prospects and is republished by the Africa API with the retrieval date shown on this page.

How do I get Libya Median Age data via API?

Call GET /v1/data?country_code=LY&metric_key=median_age_years with a free Africa API key to receive the full time series as JSON.

More Libya demographics data