# Population Data API

> A country population and demographic data API. Look up any country by ISO code to get its population data, with total population, world population rank and share, growth rate, density, urban/rural breakdown, and life expectancy on paid plans.

**Endpoint:** `GET https://api.apiverve.com/v1/population`  
**Category:** Finance  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/population

## Overview

Population API provides detailed demographic data from the World Bank for every country. Send a two- or three-letter country code and get the latest year on record, or retrieve data for a specific year dating back to 1960.

Each record holds total population as an exact count and a readable string such as 341.78 million, the annual growth rate, population density per square kilometre, the share of people living in urban areas, and life expectancy at birth. It also ranks the country by population among all countries for that year, with the number of countries ranked and its percentage of world population. It suits country profile pages, per-capita calculations, market sizing, education apps and demographic research.

The Free plan resolves the country and returns the latest year available for it. Paid plans return the figures themselves, the population count, world rank and share, growth rate, density, urban share and life expectancy, and add lookups for any year from 1960 onward.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/population?country=US&year=2023" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `country` | string | Yes | ISO 2 or 3-letter country code (e.g., US, USA, GB, GBR). UK is accepted for GB. length 2-3 |
| `year` | integer | No | Specific year to retrieve data for (1960-present). Returns latest if not specified.. range 1960-2030. Premium field |

## Response fields

- `country` — string · ISO 2-letter country code for the country
- `countryName` — string · Full name of the country in English
- `year` — number · Year of the population data retrieved
- `count` — number · Number of historical records returned
  - `historical.0.year` — number · Year the figures in this entry describe
  - `historical.0.population` — number · Total population count for the country · (premium)
  - `historical.0.populationFormatted` — string · Population count in human-readable format · (premium)
  - `historical.0.growthRate` — number · Annual population growth rate as percentage · (premium)
  - `historical.0.urbanPercent` — number · Percentage of population living in urban areas · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "country": "US",
    "countryName": "United States",
    "year": 2025,
    "count": 1,
    "historical": [
      {
        "year": 2025,
        "population": 341784857,
        "populationFormatted": "341.78 million",
        "growthRate": 0.52,
        "urbanPercent": 80.19
      }
    ]
  }
}
```

## Use cases

- **Market Expansion Sizing** — When evaluating entry into emerging markets, retail planners pull total population and urban percentage to gauge addressable customer density.
- **Demographic Trend Modeling** — Academic research tools query historical growth rates and life expectancy across decades to model regional aging patterns.
- **Broadband Network Planning** — Telecom planners cross-reference population density and urban shares to prioritize where to deploy new broadband fiber networks.
- **Sovereign ESG Scoring** — To assess national health and development indicators, sovereign ESG platforms fetch country life expectancy and population growth figures.

## SDKs

- **npm** — `npm install @apiverve/population` (https://www.npmjs.com/package/@apiverve/population)
- **NuGet** — `dotnet add package APIVerve.API.PopulationData` (https://www.nuget.org/packages/APIVerve.API.PopulationData)
- **Source** — https://github.com/apiverve/population-api

## More

- Full reference: https://docs.apiverve.com/ref/population
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
