NSW Government Secondary Students by Age and Year Level, 2011-2024
A small register of 82 rows showing how many boys and girls in NSW government secondary schools fall into each single year of age, broken down by school year (Years 7 to 12). Each row is one age band in one collection year, with totals for boys, girls and all secondary students.
Endpoints
NSW Government Secondary Students by Age and Year Level, 2011-2024: search
/v1/records/nsw-government-secondary-students-age-year-level/search10¢ per callServed by /v1/records/{slug}/search, which documents every parameter, the response shape and errors, and has a live playground.
| Query parameter | Description |
|---|---|
q | Words to find (prefix match, all must appear) in: collection year, age band (years-months), year 10 boys, year 10 girls. |
where | Exact-match filter `field:value`, repeatable, on: `y11_boys`, `y12_boys`, `y12_girls`. |
fields | Comma-separated field slugs (below). Omit for all. |
limit | Records per page, 1 to 50 (default 25). |
offset | Items to skip, for the next page (`next_offset`). |
curl -X GET 'https://api.microburbs.com.au/v1/records/nsw-government-secondary-students-age-year-level/search?q=2022' \
-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 Secondary Students by Age and Year Level, 2011-2024: one record
/v1/records/nsw-government-secondary-students-age-year-level/{record_key}5¢ per callServed by /v1/records/{slug}/{record_key}, which documents every parameter, the response shape and errors, and has a live playground.
| Query parameter | Description |
|---|---|
record_key | The record's record id. |
fields | Comma-separated field slugs (below). Omit for all. |
curl -X GET 'https://api.microburbs.com.au/v1/records/nsw-government-secondary-students-age-year-level/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, state level only, with no breakdown by region, LGA or school. The register has 82 rows. Collection years run from 2011, and the profile shows year values up to 2022 even though the stated period runs to 2024. Current to 2026-03-01; refreshed yearly.
What it is
This dataset is an age-by-grade distribution of secondary students in NSW government schools. Each row gives counts of boys and girls in Years 7 to 12 for one age band (for example 14-14:11) in one collection year. Row totals for boys, girls and all secondary students are included.
What it shows
It shows how student ages spread across school years, including how many students are older or younger than the typical age for their grade. It also shows the gender split at each age and year level, and how these counts change over time.
Why use it
Analysts use it to study age-grade alignment, late starters, early entrants and students repeating or accelerating. It also helps with enrolment planning, equity analysis by gender and checking the make-up of secondary cohorts across NSW.
How it is built
We take the published tables and load them as one row per age band per year. Counts were collected mid-year, on the first Friday in August. From 2020, students in mainstream support classes are counted by their underlying grade; earlier years leave them out. Students in schools for specific purposes are excluded, while distance education, opportunity class and Intensive English Centre students are included. Small numbers of students in atypical ages under 18 are folded into the nearest band and marked with an asterisk, so row sums may not match totals.
Shortcomings
- Many grade columns are text, not numbers. Some values carry asterisks (for example 545*) or thousands commas (22,797), so you must clean them before doing arithmetic.
- Blank cells are common: Year 7 and 8 columns are empty in over half of rows, and Years 10 and 11 in roughly 30 to 37 percent. Blanks mean the data is not given for that row, and we cannot say whether the true count is zero.
- The years_months column also holds a title-like row (Age-grade distribution of students in NSW government schools). Rows like this are not real age bands and should be filtered out.
- The counting basis changed in 2020 when mainstream support class students were added, so earlier and later years are not strictly comparable. Government schools only, so non-government students are not covered.
Fields
| Field | Unit | Description |
|---|---|---|
record_idRecord ID | Identifier for the row in the register, used to fetch a single record. | |
secondary_totalSecondary total | count | Total secondary students (boys and girls) in the age band for that year. |
total_boysTotal boys | count | Total boys across Years 7 to 12 in the age band for that year. |
total_girlsTotal girls | count | Total girls across Years 7 to 12 in the age band for that year. |
y10_boysYear 10 boys | Number of boys in Year 10 in the age band; stored as text and may include an asterisk or commas. | |
y10_girlsYear 10 girls | Number of girls in Year 10 in the age band; stored as text and may include an asterisk or commas. | |
y11_boysYear 11 boys | Number of boys in Year 11 in the age band; stored as text and may include an asterisk or commas. | |
y11_girlsYear 11 girls | Number of girls in Year 11 in the age band; stored as text and may include an asterisk or commas. | |
y12_boysYear 12 boys | Number of boys in Year 12 in the age band; stored as text and may include an asterisk or commas. | |
y12_girlsYear 12 girls | Number of girls in Year 12 in the age band; stored as text and may include an asterisk or commas. | |
y7_boysYear 7 boys | Number of boys in Year 7 in the age band; stored as text and may include an asterisk or commas. | |
y7_girlsYear 7 girls | Number of girls in Year 7 in the age band; stored as text and may include an asterisk or commas. | |
y8_boysYear 8 boys | Number of boys in Year 8 in the age band; stored as text and may include an asterisk or commas. | |
y8_girlsYear 8 girls | Number of girls in Year 8 in the age band; stored as text and may include an asterisk or commas. | |
y9_boysYear 9 boys | Number of boys in Year 9 in the age band; stored as text and may include an asterisk or commas. | |
y9_girlsYear 9 girls | Number of girls in Year 9 in the age band; stored as text and may include an asterisk or commas. | |
years_monthsAge band (years-months) | Age band label such as 14-14:11, meaning ages 14 years 0 months to 14 years 11 months; some rows hold a title instead. | |
yearCollection year | year | Calendar year in which the mid-year student count was taken. |
Data source: NSW Government
