Browse data › Stats NZ › 2018 Census — Age, Sex & Ethnicity by Urban/Rural

2018 Census — Age, Sex & Ethnicity by Urban/Rural

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.

Cite as: Source: Stats NZ (www.stats.govt.nz), CC-BY 4.0.

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")
Start 14-day trial Log in

No card needed. The trial covers this dataset through the API. Bulk Parquet/CSV downloads need Pro.

Map preview
Showing 200 sample features
CRS
EPSG:4326

Centroids only — full geometry available via the API or CSV download.

Log in to download Start 14-day trial
Dataset ID
census_2018_age_sex_eth_urban_rural
Data source
Stats NZ
Pipeline last ran
2026-06-13
Refresh cadence
static
API endpoint
https://api.eolas.nz/v1/datasets/census_2018_age_sex_eth_urban_rural/data

Columns (58)

schema glossary · auto-generated
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

How to query this dataset

Install the client library
install.packages("eolas", repos = c("https://phildonovan.r-universe.dev", "https://cloud.r-project.org"))
Fetch all data
library(eolas)
eolas_key("your_key_here")
df <- eolas_get("census_2018_age_sex_eth_urban_rural")
head(df)
Filter by date range
df <- eolas_get("census_2018_age_sex_eth_urban_rural", start = "2020-01-01", end = "2024-12-31")
head(df)
Download as CSV
df <- eolas_get("census_2018_age_sex_eth_urban_rural")
write.csv(df, "census_2018_age_sex_eth_urban_rural.csv", row.names = FALSE)

Data preview

Hidden in preview: geometry_wkt — fetch via the API or download CSV to get the full data.
Urban Rural Code 2018Urban Rural Name 2018Indicative Urban Rural Code 2018Indicative Urban Rural Name 2018Sex Male 2006Sex Female 2006Sex Total 2006Sex Male 2013Sex Female 2013Sex Total 2013Sex Male 2018Sex Female 2018Sex Total 2018Ethnicity L1 European 2006Ethnicity L1 Maori 2006Ethnicity L1 Pacific Ppls 2006Ethnicity L1 Asian 2006Ethnicity L1 Melaa 2006Ethnicity L1 Other 2006Ethnicity L1 Total Stated 2006C08 Ethnicity L1 NeiEthnicity Total 2006Ethnicity L1 European 2013Ethnicity L1 Maori 2013Ethnicity L1 Pacific Ppls 2013Ethnicity L1 Asian 2013Ethnicity L1 Melaa 2013Ethnicity L1 Other 2013Ethnicity L1 Total Stated 2013Ethnicity L1 Nei 2013Ethnicity Total 2013Ethnicity L1 European 2018Ethnicity L1 Maori 2018Ethnicity L1 Pacific Ppls 2018Ethnicity L1 Asian 2018Ethnicity L1 Melaa 2018Ethnicity L1 Other 2018Ethnicity L1 Total Stated 2018Ethnicity L1 Nei 2018Ethnicity Total 2018Agelifecycle 0 15 Years 2006Agelifecycle 15 29 Years 2006Agelifecycle 30 64 Years 2006Agelifecycle 65 Years And Over 2006Agelifecycle Total 2006Agelifecycle 0 15 Years 2013Agelifecycle 15 29 Years 2013Agelifecycle 30 64 Years 2013Agelifecycle 65 Years And Over 2013Agelifecycle Total 2013Agelifecycle 0 15 Years 2018Agelifecycle 15 29 Years 2018Agelifecycle 30 64 Years 2018Agelifecycle 65 Years And Over 2018Agelifecycle Total 2018Shape LengthShape Area
1108Auckland11Major urban area550,731582,8761,133,607593,388630,3631,223,748665,202680,8861,346,091569,496120,531173,619228,24018,00680,0221,075,99257,6151,133,607628,329123,822189,348298,74923,99712,3151,150,62973,1221,223,748647,811154,620235,086424,91733,67213,9141,346,09101,346,091250,485262,842513,279106,9981,133,607256,821281,277553,458132,1951,223,748269,367320,181605,823150,7201,346,091740,717.2467608,650,405.6298
1180Hamilton11Major urban area62,24767,344129,58867,81273,800141,61278,35482,554160,91180,86224,6035,14213,0711,84813,131123,6995,892129,58893,31528,6056,79518,4772,6282,163134,2117,401141,612102,28238,1129,74129,7183,6061,992160,9110160,91128,32934,17653,94313,143129,58830,37836,04259,03716,155141,61234,41340,29367,19719,005160,91174,549.9098110,371,885.5106
1239Tauranga11Major urban area49,65054,225103,87254,37860,405114,78365,86870,845136,71375,08416,5811,8393,44737813,830100,7223,150103,87291,45218,6782,5896,1087441,908109,5335,250114,783111,75924,9123,98410,4011,4161,512136,7130136,71321,65117,98546,16118,078103,87223,62819,02650,01922,113114,78327,56423,23558,93826,979136,713175,320.0766135,432,363.1440
1399Lower Hutt11Major urban area47,22049,53696,75947,08850,23297,31750,89252,650103,54561,14916,19710,0898,3311,0569,48994,4942,26596,75965,23815,79810,25410,8541,0621,49492,1695,14897,31769,74419,15211,97615,8401,6591,431103,5450103,54522,13119,15244,89810,57596,75920,82918,76545,22212,49897,31720,94020,53847,95814,112103,545108,142.029678,644,173.6738
1402Wellington11Major urban area86,52992,166178,69592,04698,061190,10498,346103,440201,786120,69013,2698,91622,8453,60918,273172,2306,468178,695138,36314,3708,90428,5184,4883,342181,3208,784190,104149,31917,31310,37437,1286,1262,877201,7860201,78631,60547,78184,33314,979178,69532,80550,16089,00118,141190,10432,69754,82293,16521,105201,786119,121.6363112,422,455.3511

Showing 5 sample rows. Get an API key to access the full dataset.

Related datasets

Questions about this dataset

How often is 2018 Census — Age, Sex & Ethnicity by Urban/Rural updated?
Stats NZ publishes it static. eolas last refreshed it on 2026-06-13.
Can I download the whole table?
Yes, on Pro and above as Parquet or CSV. During the trial you can query it through the API, up to 50,000 rows per request.
Where does the data come from?
Stats NZ. eolas loads it into typed, consistently named columns. See the original at https://datafinder.stats.govt.nz/layer/106052.

Ready to use this data?

No card needed. The trial covers this dataset through the API. Bulk Parquet/CSV downloads need Pro.

Start 14-day trial