MicroburbsMicroburbs
Free sandbox: try any request below on the sample suburbs, no signup. For every suburb, create an API key.
Classic docs
Microburbs Property Data API
Dataset · Education

NSW Government Primary School Students by Age and Year Level, 2011-2024

Counts of primary students in New South Wales government schools, broken down by age band, sex and school year (Kindergarten to Year 6) for 2011 to 2024. A caller gets 175 rows, one per age band or subtotal per year, with boys, girls and combined totals.

Endpoints

NSW Government Primary School Students by Age and Year Level, 2011-2024: search

GET/v1/records/nsw-government-primary-students-age-grade-sex/search10¢ per call
Query parameterDescription
qWords to find (prefix match, all must appear) in: year, age band, year 6 girls, year 1 boys.
whereExact-match filter `field:value`, repeatable, on: `years_months`, `year`.
fieldsComma-separated field slugs (below). Omit for all.
limitRecords per page, 1 to 50 (default 25).
offsetItems to skip, for the next page (`next_offset`).
curl -X GET 'https://api.microburbs.com.au/v1/records/nsw-government-primary-students-age-grade-sex/search?q=2024' \
  -H 'Authorization: Bearer test'

test is the public sandbox key: it works only for the sandbox's allowlisted suburbs and addresses. Use your own key for anything else.

NSW Government Primary School Students by Age and Year Level, 2011-2024: one record

GET/v1/records/nsw-government-primary-students-age-grade-sex/{record_key}5¢ per call
Query parameterDescription
record_keyThe record's record id.
fieldsComma-separated field slugs (below). Omit for all.
curl -X GET 'https://api.microburbs.com.au/v1/records/nsw-government-primary-students-age-grade-sex/1' \
  -H 'Authorization: Bearer test'

test is the public sandbox key: it works only for the sandbox's allowlisted suburbs and addresses. Use your own key for anything else.

About this dataset

New South Wales government schools, statewide, for the years 2011 to 2024. The table has 175 rows. There is no breakdown by school, suburb, LGA or region. Current to 2026-03-01; refreshed Yearly, as new collection years are published..

What it is

A statewide table of primary school enrolments in NSW government schools. Each row is an age band (for example Under 5, 5-5:11, 7-7:11) or a subtotal in a given year. Columns give boys and girls for Kindergarten and Years 1 to 6, plus row totals.

What it shows

It shows how students are spread across ages within each school year, and how that has changed from 2011 to 2024. It also shows the boy and girl split. This lets you spot students who are younger or older than the typical age for their grade.

Why use it

Age-for-grade patterns inform school planning, enrolment forecasting and research on school-entry age and delayed starts. Analysts can use the series to compare cohort sizes over time. It is statewide only, so it suits context for area analysis rather than local catchment work.

How it is built

We hold the published table as rows, one per age band or subtotal per year. Counts were collected mid-year, at the first Friday in August. All primary students are treated as full-time. From 2020, students in mainstream support classes are counted by their underlying grade, and earlier years left them out. Special-purpose schools are excluded, while distance education and Opportunity Class students are included in their grade. Some count columns are stored as text, with commas, decimals or asterisks, and need cleaning before use.

Shortcomings

  • Many grade columns are blank for 57% to 60% of rows, so the table is sparse and some years or age bands have only totals.
  • Grade counts are stored as text and mix formats such as '26,393', '518.0' and '13*'. They must be parsed before analysis.
  • Students in atypical age groups are placed in the nearest band, marked with an asterisk, so a row may not sum to its reported total.
  • From 2020 mainstream support class students are included, which creates a series break against 2011-2019. Special-purpose schools and non-government schools are never included.

Fields

FieldUnitDescription
record_id
Record ID
Identifier for the row within this dataset.
k_boys
Kindergarten boys
Number of boys in Kindergarten for the age band and year; often blank and stored as text.
k_girls
Kindergarten girls
Number of girls in Kindergarten for the age band and year; often blank and stored as text.
primary_total
Primary total students
countTotal primary students, boys and girls combined, for the row.
total_boys
Total boys
countTotal boys across Kindergarten to Year 6 for the row.
total_girls
Total girls
countTotal girls across Kindergarten to Year 6 for the row.
y1_boys
Year 1 boys
Number of boys in Year 1 for the age band and year; often blank and stored as text.
y1_girls
Year 1 girls
Number of girls in Year 1 for the age band and year; often blank and stored as text.
y2_boys
Year 2 boys
Number of boys in Year 2 for the age band and year; often blank and stored as text.
y2_girls
Year 2 girls
Number of girls in Year 2 for the age band and year; often blank and stored as text.
y3_boys
Year 3 boys
Number of boys in Year 3 for the age band and year; often blank and stored as text.
y3_girls
Year 3 girls
Number of girls in Year 3 for the age band and year; often blank and stored as text.
y4_boys
Year 4 boys
Number of boys in Year 4 for the age band and year; often blank and stored as text.
y4_girls
Year 4 girls
Number of girls in Year 4 for the age band and year; often blank and stored as text.
y5_boys
Year 5 boys
Number of boys in Year 5 for the age band and year; may carry an asterisk for atypical ages.
y5_girls
Year 5 girls
Number of girls in Year 5 for the age band and year; may carry an asterisk for atypical ages.
y6_boys
Year 6 boys
Number of boys in Year 6 for the age band and year; often blank and stored as text.
y6_girls
Year 6 girls
Number of girls in Year 6 for the age band and year; often blank and stored as text.
years_months
Age band
Age band in years and months, such as 'Under 5' or '7-7:11', or a label such as 'Subtotal'.
year
Year
yearCollection year, from 2011 to 2024.

Data source: NSW Government