Demographic Data API

Fertility, births, population, projections and migration — by country, region, state and city — in one consistent JSON API. Every value carries its source, licence and coverage, and gaps stay gaps.

57
indicators
575,393
data points served
4
indicators below country level
11
licensed sources

Built for teams that need to trust the number

  • One schema for every source. World Bank, UN, Eurostat, the US Census and more, normalised to the same geography ids, units and years.
  • Provenance on every response. Source, licence and the attribution line you must show — per value, not per dataset.
  • Honest coverage. Each series lists the years it is missing. We never interpolate or fill gaps, and forecasts are marked as projections.
  • Licence-safe by default. Values whose licence forbids resale are withheld and counted, so you see the gap instead of inheriting a legal problem.
  • Bulk files and time series. Pull one country's history or every value of an indicator as CSV.

Built for market sizing, actuarial and pension models, school and maternity-care planning, academic research and newsroom data desks.

curl "https://birthrate.io/api/v1/data?indicator=fertility-rate&id=JPN,KOR&from=2015" \
  -H "X-API-Key: $BIRTHRATE_KEY"
{
  "data": [{
    "geography": { "level": "country", "id": "JPN", "name": "Japan" },
    "coverage": { "from": 2015, "to": …, "observations": …, "missingYears": [] },
    "observations": [{ "year": 2015, "value": …, "kind": "estimate", "source": "WORLD_BANK" }, …]
  }, …],
  "meta": {
    "indicator": { "slug": "fertility-rate", "unit": "births per woman", … },
    "availability": { "geographies": 2, "values": …, "withheld": [] },
    "sources": [{ "code": "WORLD_BANK", "license": "CC BY 4.0", "attribution": "World Bank, …" }],
    "apiVersion": "2026-10-24", "citation": "birthrate.io (2026), compiled from the sources listed."
  }
}

What's in it

Foreign Citizenship Share of Prisonerscountry 2008–2024
Intentional Homicide Ratecountry 1990–2023
City Median Household Incomecity 2024–2024
Exports of Goods and Services (% of GDP)country 1960–2025
Female Labour Force Participationcountry 1990–2025
GDP (current US$)country 1960–2025
GDP Growthcountry 1961–2025
GDP per Capita (current US$)country 1960–2025
GDP per Capita, PPP (current international $)country 1990–2025
GDP per Capita, PPP (constant 2021 international $)country 1990–2025
GDP per Capita (constant 2015 US$)country 1960–2025
GDP (constant 2015 US$)country 1960–2025
Gini Indexcountry 1963–2025
GNI per Capita, Atlas Method (current US$)country 1962–2025
Inflation, Consumer Pricescountry 1960–2025
Unemployment Ratecountry 1991–2025
Government Expenditure on Education (% of GDP)country 1970–2025
Adult Literacy Ratecountry 1970–2024
School Enrollment, Secondary (% gross)country 1970–2025
School Enrollment, Tertiary (% gross)country 1970–2025
Adolescent Fertility Ratecountry 1960–2024
Crude Birth Ratecountry 1960–2024
Contraceptive Prevalence, Any Methodcountry 1961–2024
Total Fertility Rateadmin1 2002–2024 · country 1960–2024
Health Expenditure (% of GDP)country 2000–2024
Hospital Bedscountry 1960–2023
Estimated Irregular Migrant Stockcountry 2001–2023
Labour-force Participation — Foreign Citizenscountry 1995–2025
Labour-force Participation — Nationalscountry 1995–2025
Foreign-born Populationcountry 1990–2024
Foreign-born Population (% of total)country 1990–2024
Net Migrationcountry 1960–2025
Third-country Nationals Ordered to Leavecountry 2008–2025
Return Rate After Order to Leavecountry 2008–2025
Third-country Nationals Returned After Ordercountry 2008–2025
Under-five Mortality Ratecountry 1751–2024
Crude Death Ratecountry 1960–2024
Infant Mortality Ratecountry 1960–2024
Life Expectancy at Birthcountry 1960–2024
Life Expectancy at Birth, Femalecountry 1960–2024
Life Expectancy at Birth, Malecountry 1960–2024
Maternal Mortality Ratiocountry 1985–2023
Suicide Mortality Ratecountry 2000–2021
Age Dependency Ratiocountry 1960–2025
Urban Agglomeration Populationcity 1975–2050
Female Share of Populationcountry 1960–2025
Population Ages 0–14 (% of total)country 1960–2025
Population Ages 15–64 (% of total)country 1960–2025
Population Ages 65+ (% of total)country 1960–2025
Total Populationadmin1 1990–2025 · country 1960–2025
Population Densitycountry 1961–2024
Population Growthcountry 1961–2025
Rural Population (% of total)country 1960–2025
Urban Populationcountry 1960–2025
Urban Population Growthcountry 1961–2025
Access to Electricitycountry 1990–2024
Individuals Using the Internetcountry 1990–2025

The full, live list with coverage is at /api/v1/indicators.

Pricing

The website stays free. Plans are for programmatic and bulk access.

Free

$0

No key, no sign-up

  • 200 requests a day per IP
  • Up to 1,000 values per request
  • Every endpoint except bulk
  • For trying it out and light personal use
Try it now

Pro

$100/month

14-day free trial, cancel any time

  • 100,000 requests a month
  • Up to 50,000 values per request
  • Bulk CSV/JSON downloads
  • Commercial use with attribution
  • Email support
Request access

Enterprise

Custom

Invoiced annually

  • Higher or unmetered quotas
  • Several keys and team billing
  • Uptime commitment and named support
  • Help licensing withheld sources directly
Talk to us

Prices in US dollars; tax is added at checkout where it applies. Charts, maps and downloads on birthrate.io itself stay free.

Licences and what we withhold

You can use what the API returns commercially, provided you show the attribution in meta.sources. We only serve values whose source licence allows redistribution: Eurostat, Gapminder Foundation, birthrate.io demographic model, Our World in Data, United Nations, U.S. Bureau of Justice Statistics / FBI, U.S. Census Bureau, World Bank, Irregular migrant stock estimates.

Some data on the website comes from sources that forbid resale (for example the Human Fertility Database, which is non-commercial) or whose terms we have not yet cleared for it (some national offices, OECD, UNHCR). The API withholds those values and reports how many in meta.availability.withheld, so you know exactly what is missing and where to get it. The full table is at /api/v1/sources.

Terms in brief

  • Show the attribution from each response wherever you publish the data.
  • Values are reproduced as published by each source; many international series are themselves modelled estimates. We correct ingestion errors when found but give no warranty of fitness for a purpose.
  • Don't resell the raw API output as a competing data feed; building products and analysis on it is fine.
  • One key per organisation on Pro; keep it secret (rotate it from the docs if it leaks).
  • Questions: birthrateio@proton.me.