Population, every country
GET
/v1/populationEvery country's population with women and men, the shares of children, working age and older people, towns, density, growth, life expectancy, births per woman and the year of the latest census. Largest first.
On every plan, Free includedKey requiredJSON or CSVCached until the next release
Parameters
| Name | Type | Description |
|---|---|---|
| limitoptional | integer query | Rows per page, 1 to 1000 e.g. 100 |
| cursoroptional | string query | The next value from the previous page |
Request
# Population and its make-up for every country
curl "https://api.tourismapi.com/v1/population" \
-H "X-API-Key: $TOURISM_API_KEY"const res = await fetch("https://api.tourismapi.com/v1/population", {
headers: { "X-API-Key": process.env.TOURISM_API_KEY }
});
if (!res.ok) throw new Error(`Tourism API ${res.status}`);
const { meta, data } = await res.json();
console.log(meta.data_as_of, data);import os, requests
r = requests.get(
"https://api.tourismapi.com/v1/population",
headers={"X-API-Key": os.environ["TOURISM_API_KEY"]},
timeout=10,
)
r.raise_for_status()
body = r.json()
print(body["meta"]["data_as_of"], body["data"])$ch = curl_init("https://api.tourismapi.com/v1/population");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-API-Key: " . getenv("TOURISM_API_KEY")],
]);
$body = json_decode(curl_exec($ch), true);
print_r($body["data"]);
Example response
{
"meta": {
"request_id": "req_b86ab699af",
"data_as_of": "2026-10-21T17:42:33Z",
"count": 217,
"fields": {
"total": "Population (people)",
"female": "Women and girls (people)",
"male": "Men and boys (people)",
"children_pct": "Children aged 0 to 14, share of the population (percent)",
"working_age_pct": "People aged 15 to 64, share of the population (percent)",
"older_pct": "People aged 65 and over, share of the population (percent)",
"urban_pct": "People living in towns and cities, share (percent)",
"density_per_km2": "People per square kilometre of land (people per km2)",
"growth_pct": "Population growth on a year (percent)",
"life_expectancy": "Life expectancy at birth (years)",
"fertility_rate": "Births per woman (births per woman)"
},
"year": "the year of the population total; each figure is the newest held",
"one_country": "/v1/population/{iso}",
"order": "largest first"
},
"data": [
{
"iso": "IN",
"name": "India",
"year": 2025,
"total": 1463865525,
"female": 709090076,
"male": 754775449,
"children_pct": 24.2,
"working_age_pct": 68.43,
"older_pct": 7.38,
"urban_pct": 35.69,
"density_per_km2": 488.01,
"growth_pct": 0.89,
"life_expectancy": 72.24,
"fertility_rate": 1.96,
"latest_census": 2011
},
{
"iso": "CN",
"name": "China",
"year": 2025,
"total": 1406585000,
"female": 690538986,
"male": 716046014,
"children_pct": 15.41,
"working_age_pct": 69.68,
"older_pct": 14.91,
"urban_pct": 66.34,
"density_per_km2": 150.08,
"growth_pct": -0.17,
"life_expectancy": 78.02,
"fertility_rate": 1.01,
"latest_census": 2020
},
{
"iso": "US",
"name": "United States",
"year": 2025,
"total": 341784857,
"female": 170047087,
"male": 171737770,
"children_pct": 17.1,
"working_age_pct": 64.51,
"older_pct": 18.39,
"urban_pct": 80.19,
"density_per_km2": 37.17,
"growth_pct": 0.52,
"life_expectancy": 78.89,
"fertility_rate": 1.63,
"latest_census": 2020
}
]
}Response fields
| Field | Type | Example |
|---|---|---|
| iso | string | IN |
| name | string | India |
| year | number | 2025 |
| total | number | 1463865525 |
| female | number | 709090076 |
| male | number | 754775449 |
| children_pct | number | 24.2 |
| working_age_pct | number | 68.43 |
| older_pct | number | 7.38 |
| urban_pct | number | 35.69 |
| density_per_km2 | number | 488.01 |
| growth_pct | number | 0.89 |
| life_expectancy | number | 72.24 |
| fertility_rate | number | 1.96 |
| latest_census | number | 2011 |