census_2018_age_sex_eth_urban_rural
2018 Census population by age, sex, and ethnic group cross-classified with urban/rural classification.
From Stats NZ.
Source: Stats NZ ↗ ·Last updated: 2026-06-13 ·Updated static ·722 rows
install.packages("eolas", repos = c("https://phildonovan.r-universe.dev", "https://cloud.r-project.org"))
library(eolas)
eolas_key("your_key")
df <- eolas_get("census_2018_age_sex_eth_urban_rural", start = "2020-01-01")
# pip install eolas-data
from eolas_data import Client
df = Client("your_key").get("census_2018_age_sex_eth_urban_rural", start="2020-01-01")
curl "https://api.eolas.nz/v1/datasets/census_2018_age_sex_eth_urban_rural/data?start=2020-01-01" \
-H "X-API-Key: your_key"
No card needed. The trial covers this dataset through the API. Bulk Parquet/CSV downloads need Pro.
Centroids only — full geometry available via the API or CSV download.
| Column | Type | Description |
|---|---|---|
| urban_rural_code_2018 | string | Urban rural code 2018 |
| urban_rural_name_2018 | string | Urban rural name 2018 |
| indicative_urban_rural_code_2018 | string | Indicative urban rural code 2018 |
| indicative_urban_rural_name_2018 | string | Indicative urban rural name 2018 |
| sex_male_2006 | long | Sex male 2006 |
| sex_female_2006 | long | Sex female 2006 |
| sex_total_2006 | long | Sex total 2006 |
| sex_male_2013 | long | Sex male 2013 |
| sex_female_2013 | long | Sex female 2013 |
| sex_total_2013 | long | Sex total 2013 |
| sex_male_2018 | long | Sex male 2018 |
| sex_female_2018 | long | Sex female 2018 |
| sex_total_2018 | long | Sex total 2018 |
| ethnicity_l1_european_2006 | long | Ethnicity l1 european 2006 |
| ethnicity_l1_maori_2006 | long | Ethnicity l1 maori 2006 |
| ethnicity_l1_pacific_ppls_2006 | long | Ethnicity l1 pacific ppls 2006 |
| ethnicity_l1_asian_2006 | long | Ethnicity l1 asian 2006 |
| ethnicity_l1_melaa_2006 | long | Ethnicity l1 melaa 2006 |
| ethnicity_l1_other_2006 | long | Ethnicity l1 other 2006 |
| ethnicity_l1_total_stated_2006 | long | Ethnicity l1 total stated 2006 |
| c08_ethnicity_l1_nei | long | C08 ethnicity l1 nei |
| ethnicity_total_2006 | long | Ethnicity total 2006 |
| ethnicity_l1_european_2013 | long | Ethnicity l1 european 2013 |
| ethnicity_l1_maori_2013 | long | Ethnicity l1 maori 2013 |
| ethnicity_l1_pacific_ppls_2013 | long | Ethnicity l1 pacific ppls 2013 |
| ethnicity_l1_asian_2013 | long | Ethnicity l1 asian 2013 |
| ethnicity_l1_melaa_2013 | long | Ethnicity l1 melaa 2013 |
| ethnicity_l1_other_2013 | long | Ethnicity l1 other 2013 |
| ethnicity_l1_total_stated_2013 | long | Ethnicity l1 total stated 2013 |
| ethnicity_l1_nei_2013 | long | Ethnicity l1 nei 2013 |
| ethnicity_total_2013 | long | Ethnicity total 2013 |
| ethnicity_l1_european_2018 | long | Ethnicity l1 european 2018 |
| ethnicity_l1_maori_2018 | long | Ethnicity l1 maori 2018 |
| ethnicity_l1_pacific_ppls_2018 | long | Ethnicity l1 pacific ppls 2018 |
| ethnicity_l1_asian_2018 | long | Ethnicity l1 asian 2018 |
| ethnicity_l1_melaa_2018 | long | Ethnicity l1 melaa 2018 |
| ethnicity_l1_other_2018 | long | Ethnicity l1 other 2018 |
| ethnicity_l1_total_stated_2018 | long | Ethnicity l1 total stated 2018 |
| ethnicity_l1_nei_2018 | long | Ethnicity l1 nei 2018 |
| ethnicity_total_2018 | long | Ethnicity total 2018 |
| agelifecycle_0_15_years_2006 | long | Agelifecycle 0 15 years 2006 |
| agelifecycle_15_29_years_2006 | long | Agelifecycle 15 29 years 2006 |
| agelifecycle_30_64_years_2006 | long | Agelifecycle 30 64 years 2006 |
| agelifecycle_65_years_and_over_2006 | long | Agelifecycle 65 years and over 2006 |
| agelifecycle_total_2006 | long | Agelifecycle total 2006 |
| agelifecycle_0_15_years_2013 | long | Agelifecycle 0 15 years 2013 |
| agelifecycle_15_29_years_2013 | long | Agelifecycle 15 29 years 2013 |
| agelifecycle_30_64_years_2013 | long | Agelifecycle 30 64 years 2013 |
| agelifecycle_65_years_and_over_2013 | long | Agelifecycle 65 years and over 2013 |
| agelifecycle_total_2013 | long | Agelifecycle total 2013 |
| agelifecycle_0_15_years_2018 | long | Agelifecycle 0 15 years 2018 |
| agelifecycle_15_29_years_2018 | long | Agelifecycle 15 29 years 2018 |
| agelifecycle_30_64_years_2018 | long | Agelifecycle 30 64 years 2018 |
| agelifecycle_65_years_and_over_2018 | long | Agelifecycle 65 years and over 2018 |
| agelifecycle_total_2018 | long | Agelifecycle total 2018 |
| shape_length | double | Geometry length/perimeter (source projection units) |
| shape_area | double | Polygon area (source projection units) |
| geometry_wkt | string | Geometry as WKT (WGS84) — MULTIPOLYGON/POINT/LINESTRING |
install.packages("eolas", repos = c("https://phildonovan.r-universe.dev", "https://cloud.r-project.org"))
library(eolas)
eolas_key("your_key_here")
df <- eolas_get("census_2018_age_sex_eth_urban_rural")
head(df)
df <- eolas_get("census_2018_age_sex_eth_urban_rural", start = "2020-01-01", end = "2024-12-31")
head(df)
df <- eolas_get("census_2018_age_sex_eth_urban_rural")
write.csv(df, "census_2018_age_sex_eth_urban_rural.csv", row.names = FALSE)
geometry_wkt
— fetch via the API or download CSV to get the full data.| Urban Rural Code 2018 | Urban Rural Name 2018 | Indicative Urban Rural Code 2018 | Indicative Urban Rural Name 2018 | Sex Male 2006 | Sex Female 2006 | Sex Total 2006 | Sex Male 2013 | Sex Female 2013 | Sex Total 2013 | Sex Male 2018 | Sex Female 2018 | Sex Total 2018 | Ethnicity L1 European 2006 | Ethnicity L1 Maori 2006 | Ethnicity L1 Pacific Ppls 2006 | Ethnicity L1 Asian 2006 | Ethnicity L1 Melaa 2006 | Ethnicity L1 Other 2006 | Ethnicity L1 Total Stated 2006 | C08 Ethnicity L1 Nei | Ethnicity Total 2006 | Ethnicity L1 European 2013 | Ethnicity L1 Maori 2013 | Ethnicity L1 Pacific Ppls 2013 | Ethnicity L1 Asian 2013 | Ethnicity L1 Melaa 2013 | Ethnicity L1 Other 2013 | Ethnicity L1 Total Stated 2013 | Ethnicity L1 Nei 2013 | Ethnicity Total 2013 | Ethnicity L1 European 2018 | Ethnicity L1 Maori 2018 | Ethnicity L1 Pacific Ppls 2018 | Ethnicity L1 Asian 2018 | Ethnicity L1 Melaa 2018 | Ethnicity L1 Other 2018 | Ethnicity L1 Total Stated 2018 | Ethnicity L1 Nei 2018 | Ethnicity Total 2018 | Agelifecycle 0 15 Years 2006 | Agelifecycle 15 29 Years 2006 | Agelifecycle 30 64 Years 2006 | Agelifecycle 65 Years And Over 2006 | Agelifecycle Total 2006 | Agelifecycle 0 15 Years 2013 | Agelifecycle 15 29 Years 2013 | Agelifecycle 30 64 Years 2013 | Agelifecycle 65 Years And Over 2013 | Agelifecycle Total 2013 | Agelifecycle 0 15 Years 2018 | Agelifecycle 15 29 Years 2018 | Agelifecycle 30 64 Years 2018 | Agelifecycle 65 Years And Over 2018 | Agelifecycle Total 2018 | Shape Length | Shape Area |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1108 | Auckland | 11 | Major urban area | 550,731 | 582,876 | 1,133,607 | 593,388 | 630,363 | 1,223,748 | 665,202 | 680,886 | 1,346,091 | 569,496 | 120,531 | 173,619 | 228,240 | 18,006 | 80,022 | 1,075,992 | 57,615 | 1,133,607 | 628,329 | 123,822 | 189,348 | 298,749 | 23,997 | 12,315 | 1,150,629 | 73,122 | 1,223,748 | 647,811 | 154,620 | 235,086 | 424,917 | 33,672 | 13,914 | 1,346,091 | 0 | 1,346,091 | 250,485 | 262,842 | 513,279 | 106,998 | 1,133,607 | 256,821 | 281,277 | 553,458 | 132,195 | 1,223,748 | 269,367 | 320,181 | 605,823 | 150,720 | 1,346,091 | 740,717.2467 | 608,650,405.6298 |
| 1180 | Hamilton | 11 | Major urban area | 62,247 | 67,344 | 129,588 | 67,812 | 73,800 | 141,612 | 78,354 | 82,554 | 160,911 | 80,862 | 24,603 | 5,142 | 13,071 | 1,848 | 13,131 | 123,699 | 5,892 | 129,588 | 93,315 | 28,605 | 6,795 | 18,477 | 2,628 | 2,163 | 134,211 | 7,401 | 141,612 | 102,282 | 38,112 | 9,741 | 29,718 | 3,606 | 1,992 | 160,911 | 0 | 160,911 | 28,329 | 34,176 | 53,943 | 13,143 | 129,588 | 30,378 | 36,042 | 59,037 | 16,155 | 141,612 | 34,413 | 40,293 | 67,197 | 19,005 | 160,911 | 74,549.9098 | 110,371,885.5106 |
| 1239 | Tauranga | 11 | Major urban area | 49,650 | 54,225 | 103,872 | 54,378 | 60,405 | 114,783 | 65,868 | 70,845 | 136,713 | 75,084 | 16,581 | 1,839 | 3,447 | 378 | 13,830 | 100,722 | 3,150 | 103,872 | 91,452 | 18,678 | 2,589 | 6,108 | 744 | 1,908 | 109,533 | 5,250 | 114,783 | 111,759 | 24,912 | 3,984 | 10,401 | 1,416 | 1,512 | 136,713 | 0 | 136,713 | 21,651 | 17,985 | 46,161 | 18,078 | 103,872 | 23,628 | 19,026 | 50,019 | 22,113 | 114,783 | 27,564 | 23,235 | 58,938 | 26,979 | 136,713 | 175,320.0766 | 135,432,363.1440 |
| 1399 | Lower Hutt | 11 | Major urban area | 47,220 | 49,536 | 96,759 | 47,088 | 50,232 | 97,317 | 50,892 | 52,650 | 103,545 | 61,149 | 16,197 | 10,089 | 8,331 | 1,056 | 9,489 | 94,494 | 2,265 | 96,759 | 65,238 | 15,798 | 10,254 | 10,854 | 1,062 | 1,494 | 92,169 | 5,148 | 97,317 | 69,744 | 19,152 | 11,976 | 15,840 | 1,659 | 1,431 | 103,545 | 0 | 103,545 | 22,131 | 19,152 | 44,898 | 10,575 | 96,759 | 20,829 | 18,765 | 45,222 | 12,498 | 97,317 | 20,940 | 20,538 | 47,958 | 14,112 | 103,545 | 108,142.0296 | 78,644,173.6738 |
| 1402 | Wellington | 11 | Major urban area | 86,529 | 92,166 | 178,695 | 92,046 | 98,061 | 190,104 | 98,346 | 103,440 | 201,786 | 120,690 | 13,269 | 8,916 | 22,845 | 3,609 | 18,273 | 172,230 | 6,468 | 178,695 | 138,363 | 14,370 | 8,904 | 28,518 | 4,488 | 3,342 | 181,320 | 8,784 | 190,104 | 149,319 | 17,313 | 10,374 | 37,128 | 6,126 | 2,877 | 201,786 | 0 | 201,786 | 31,605 | 47,781 | 84,333 | 14,979 | 178,695 | 32,805 | 50,160 | 89,001 | 18,141 | 190,104 | 32,697 | 54,822 | 93,165 | 21,105 | 201,786 | 119,121.6363 | 112,422,455.3511 |
Showing 5 sample rows. Get an API key to access the full dataset.
No card needed. The trial covers this dataset through the API. Bulk Parquet/CSV downloads need Pro.
Start 14-day trial