ONS UK Population Estimates
ons.stats.populationRetrieve mid-year population estimates for the UK, England, Wales, or local authorities from the ONS. Annual estimates of usual resident population as at 30 June, by area, age group, and sex. Default returns total population for England and Wales (all ages, all sexes). Use geography parameter with ONS geography codes (K02000001=UK, K04000001=England & Wales, E92000001=England, W92000004=Wales) and age parameter for single-year-of-age breakdowns. Source: ONS mid-year population estimates, OGL v3.0.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| age | No | Age filter. Default "total" (all ages combined). Use a single year of age (e.g. "0", "25", "90") to get population for that age group only. | |
| sex | No | Sex breakdown. Default "all" (total population). Options: "male", "female". | |
| geography | No | ONS geography code for the area. Default "K04000001" (England and Wales). Other codes: "E92000001" (England), "W92000004" (Wales). Use the ONS geography portal to find codes for specific regions or local authorities. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. | |
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. |