National Statistics Postcode Lookup UK
This dataset provides the National Statistics Postcode Lookup (NSPL) for the United Kingdom, linking current postcodes to a range of statutory administrative, electoral, health and other statistical geographies through 'best-fit' allocation based on 2021 Census output areas. It enables the production of area-based statistics from postcoded data, supporting analysis across administrative and statistical boundaries. The NSPL is produced by ONS Geography, the unit that provides geographic support to the Office for National Statistics and geographic services used by other public bodies. The dataset is published here by the London Borough of Camden, with national geographic scope and free, unauthenticated access.This dataset contains the National Statistics Postcode Lookup (NSPL) for the United Kingdom. The NSPL relates current postcodes to a range of current statutory administrative, electoral, health and other statistical geographies via ‘-fit’ allocation from the 2021 Census output areas. It supports the production of area based statistics from postcoded data. The NSPL is produced by ONS Geography, which provides geographic support to the Office for National Statistics (ONS) and geographic services used by other organisations.
Trust score
How is this computed?Weighted across five axes. Tap a ring for what it measures.
Data schema (36 fields)
Click a field to see example values.
| Field | Type | Description |
|---|---|---|
| Postcode 1Postcode 1 | text | Postcode without internal spacing.Postcode without internal spacing. |
| Postcode 2Postcode 2 | text | Postcode formatted with standard spacing.Postcode formatted with standard spacing. |
| Postcode 3Postcode 3 | text | Postcode formatted with standard 8-character spacing.Postcode formatted with standard 8-character spacing. |
| Date IntroducedDate introduced | int | Year and month the postcode was first introduced.Year and month the postcode was first introduced. |
| User TypeUser type | int | Code indicating whether postcode is small or large user type.Code indicating whether postcode is small or large user type. |
| Easting | int | Ordnance Survey National Grid easting coordinate.Ordnance Survey National Grid easting coordinate. |
| Northing | int | Ordnance Survey National Grid northing coordinate.Ordnance Survey National Grid northing coordinate. |
| Positional QualityPositional quality | int | Code indicating the precision level of the grid reference.Code indicating the precision level of the grid reference. |
| County CodeCounty code | text | ONS code for the county containing the postcode.ONS code for the county containing the postcode. |
| County NameCounty name | text | Name of the county containing the postcode.Name of the county containing the postcode. |
| Local Authority CodeLocal authority code | text | ONS code for the local authority district.ONS code for the local authority district. |
| Local Authority NameLocal authority name | text | Name of the local authority district.Name of the local authority district. |
| Ward CodeWard code | text | ONS code for the electoral ward.ONS code for the electoral ward. |
| Ward NameWard name | text | Name of the electoral ward.Name of the electoral ward. |
| Country CodeCountry code | text | ONS code for the UK constituent country.ONS code for the UK constituent country. |
| Country NameCountry name | text | Name of the UK constituent country.Name of the UK constituent country. |
| Region CodeRegion code | text | ONS code for the region.ONS code for the region. |
| Region NameRegion name | text | Name of the region.Name of the region. |
| Parliamentary Constituency CodeParliamentary constituency code | text | ONS code for the Westminster parliamentary constituency.ONS code for the Westminster parliamentary constituency. |
| Parliamentary Constituency NameParliamentary constituency name | text | Name of the Westminster parliamentary constituency.Name of the Westminster parliamentary constituency. |
| European Electoral Region CodeEuropean electoral region code | text | Code for the former European electoral region, now obsolete.Code for the former European electoral region, now obsolete. |
| European Electoral Region NameEuropean electoral region name | text | Name of the former European electoral region, now obsolete.Name of the former European electoral region, now obsolete. |
| Primary Care Trust CodePrimary care trust code | text | Code for the former primary care trust, now obsolete.Code for the former primary care trust, now obsolete. |
| Primary Care Trust NamePrimary care trust name | text | Name of the former primary care trust, now obsolete.Name of the former primary care trust, now obsolete. |
| Lower Super Output Area CodeLower super output area code | text | ONS code for the Lower Super Output Area.ONS code for the Lower Super Output Area. |
| Lower Super Output Area NameLower super output area name | text | Name of the Lower Super Output Area.Name of the Lower Super Output Area. |
| Middle Super Output Area CodeMiddle super output area code | text | ONS code for the Middle Super Output Area.ONS code for the Middle Super Output Area. |
| Middle Super Output Area NameMiddle super output area name | text | Name of the Middle Super Output Area.Name of the Middle Super Output Area. |
| Output Area Classification CodeOutput area classification code | text | Census output area classification code for the postcode.Census output area classification code for the postcode. |
| Output Area Classification NameOutput area classification name | text | Descriptive label for the census output area classification.Descriptive label for the census output area classification. |
| LongitudeLongitude | number | Longitude coordinate of the postcode location.Longitude coordinate of the postcode location. |
| LatitudeLatitude | number | Latitude coordinate of the postcode location.Latitude coordinate of the postcode location. |
| Spatial AccuracySpatial accuracy | text | Description of the precision level of the coordinates.Description of the precision level of the coordinates. |
| Last UploadedLast uploaded | text | Date the record was last uploaded to the dataset.Date the record was last uploaded to the dataset. |
| Location | text | Geographic point coordinates of the postcode.Geographic point coordinates of the postcode. |
| Socrata IDSocrata id | int | Internal record identifier.Internal record identifier. |
Schema inferred from the distribution file's first records 22 days ago. Column types are sampled estimates, not source-declared.
Query the data
Pick columns and a sort, then fetch a live preview straight from the source. Choose an API-filterable column (marked ▾) under “Where” to pick from its list of values.
Sample data (5 records)
Record 1Easting: · Latitude: 100
{
"Easting": "",
"Latitude": "100",
"Location": "POINT (0 100)",
"Northing": "",
"Longitude": "0",
"User Type": "1",
"Ward Code": "",
"Ward Name": "",
"Postcode 1": "AB559AA",
"Postcode 2": "AB55 9AA",
"Postcode 3": "AB55 9AA",
"Socrata ID": "16753",
"County Code": "",
"County Name": "",
"Region Code": "",
"Region Name": "",
"Country Code": "",
"Country Name": "",
"Last Uploaded": "22/06/2026",
"Date Introduced": "201906",
"Spatial Accuracy": "Postcode Level",
"Positional Quality": "9",
"Local Authority Code": "",
"Local Authority Name": "",
"Primary Care Trust Code": "obsolete",
"Primary Care Trust Name": "obsolete",
"Lower Super Output Area Code": "",
"Lower Super Output Area Name": "",
"Middle Super Output Area Code": "",
"Middle Super Output Area Name": "",
"European Electoral Region Code": "obsolete",
"European Electoral Region Name": "obsolete",
"Output Area Classification Code": "",
"Output Area Classification Name": "",
"Parliamentary Constituency Code": "",
"Parliamentary Constituency Name": ""
}Record 2Easting: 512145 · Latitude: 51.706436
{
"Easting": "512145",
"Latitude": "51.706436",
"Location": "POINT (-0.378405 51.706436)",
"Northing": "202099",
"Longitude": "-0.378405",
"User Type": "0",
"Ward Code": "E05013965",
"Ward Name": "St Stephen",
"Postcode 1": "AL2 3UF",
"Postcode 2": "AL2 3UF",
"Postcode 3": "AL2 3UF",
"Socrata ID": "20103",
"County Code": "E10000015",
"County Name": "Hertfordshire",
"Region Code": "E12000006",
"Region Name": "East of England",
"Country Code": "E92000001",
"Country Name": "England",
"Last Uploaded": "22/06/2026",
"Date Introduced": "199301",
"Spatial Accuracy": "Postcode Level",
"Positional Quality": "1",
"Local Authority Code": "E07000240",
"Local Authority Name": "St Albans",
"Primary Care Trust Code": "obsolete",
"Primary Care Trust Name": "obsolete",
"Lower Super Output Area Code": "E01023732",
"Lower Super Output Area Name": "St Albans 020D",
"Middle Super Output Area Code": "E02004943",
"Middle Super Output Area Name": "St Albans 020",
"European Electoral Region Code": "obsolete",
"European Electoral Region Name": "obsolete",
"Output Area Classification Code": "5B1",
"Output Area Classification Name": "Urbanites;Ageing urban living;Delayed retirement",
"Parliamentary Constituency Code": "E14001507",
"Parliamentary Constituency Name": "St Albans"
}Record 3Easting: 403033 · Latitude: 52.54067
{
"Easting": "403033",
"Latitude": "52.54067",
"Location": "POINT (-1.956706 52.54067)",
"Northing": "293645",
"Longitude": "-1.956706",
"User Type": "0",
"Ward Code": "E05001271",
"Ward Name": "Newton",
"Postcode 1": "B43 5DU",
"Postcode 2": "B43 5DU",
"Postcode 3": "B43 5DU",
"Socrata ID": "42627",
"County Code": "E11000005",
"County Name": "West Midlands",
"Region Code": "E12000005",
"Region Name": "West Midlands",
"Country Code": "E92000001",
"Country Name": "England",
"Last Uploaded": "22/06/2026",
"Date Introduced": "198001",
"Spatial Accuracy": "Postcode Level",
"Positional Quality": "1",
"Local Authority Code": "E08000028",
"Local Authority Name": "Sandwell",
"Primary Care Trust Code": "obsolete",
"Primary Care Trust Name": "obsolete",
"Lower Super Output Area Code": "E01010014",
"Lower Super Output Area Name": "Sandwell 012D",
"Middle Super Output Area Code": "E02002054",
"Middle Super Output Area Name": "Sandwell 012",
"European Electoral Region Code": "obsolete",
"European Electoral Region Name": "obsolete",
"Output Area Classification Code": "5B1",
"Output Area Classification Name": "Urbanites;Ageing urban living;Delayed retirement",
"Parliamentary Constituency Code": "E14001574",
"Parliamentary Constituency Name": "West Bromwich"
}Record 4Easting: 393178 · Latitude: 52.30369
{
"Easting": "393178",
"Latitude": "52.30369",
"Location": "POINT (-2.101464 52.30369)",
"Northing": "267289",
"Longitude": "-2.101464",
"User Type": "0",
"Ward Code": "E05015446",
"Ward Name": "Dodderhill",
"Postcode 1": "B61 7EP",
"Postcode 2": "B61 7EP",
"Postcode 3": "B61 7EP",
"Socrata ID": "48036",
"County Code": "E10000034",
"County Name": "Worcestershire",
"Region Code": "E12000005",
"Region Name": "West Midlands",
"Country Code": "E92000001",
"Country Name": "England",
"Last Uploaded": "22/06/2026",
"Date Introduced": "198001",
"Spatial Accuracy": "Postcode Level",
"Positional Quality": "1",
"Local Authority Code": "E07000238",
"Local Authority Name": "Wychavon",
"Primary Care Trust Code": "obsolete",
"Primary Care Trust Name": "obsolete",
"Lower Super Output Area Code": "E01034326",
"Lower Super Output Area Name": "Wychavon 001F",
"Middle Super Output Area Code": "E02006748",
"Middle Super Output Area Name": "Wychavon 001",
"European Electoral Region Code": "obsolete",
"European Electoral Region Name": "obsolete",
"Output Area Classification Code": "1B1",
"Output Area Classification Name": "Rural residents;Rural tenants;Rural life",
"Parliamentary Constituency Code": "E14001441",
"Parliamentary Constituency Name": "Redditch"
}Record 5Easting: 399031 · Latitude: 52.454266
{
"Easting": "399031",
"Latitude": "52.454266",
"Location": "POINT (-2.015681 52.454266)",
"Northing": "284033",
"Longitude": "-2.015681",
"User Type": "0",
"Ward Code": "E05015912",
"Ward Name": "Halesowen South",
"Postcode 1": "B62 0DU",
"Postcode 2": "B62 0DU",
"Postcode 3": "B62 0DU",
"Socrata ID": "48503",
"County Code": "E11000005",
"County Name": "West Midlands",
"Region Code": "E12000005",
"Region Name": "West Midlands",
"Country Code": "E92000001",
"Country Name": "England",
"Last Uploaded": "22/06/2026",
"Date Introduced": "198001",
"Spatial Accuracy": "Postcode Level",
"Positional Quality": "1",
"Local Authority Code": "E08000027",
"Local Authority Name": "Dudley",
"Primary Care Trust Code": "obsolete",
"Primary Care Trust Name": "obsolete",
"Lower Super Output Area Code": "E01009802",
"Lower Super Output Area Name": "Dudley 036B",
"Middle Super Output Area Code": "E02002035",
"Middle Super Output Area Name": "Dudley 036",
"European Electoral Region Code": "obsolete",
"European Electoral Region Name": "obsolete",
"Output Area Classification Code": "6B1",
"Output Area Classification Name": "Suburbanites;Semi-detached suburbia;Multi-ethnic suburbia",
"Parliamentary Constituency Code": "E14001261",
"Parliamentary Constituency Name": "Halesowen"
}Live sample captured at profiling time — values may have changed upstream.
Verification Status
Using the API
Query examples
curl -sL 'https://opendata.camden.gov.uk/api/views/tr8t-gqz7/rows.csv?accessType=DOWNLOAD' -o data.csvFull csv file download — the schema shown was inferred from the file's first records.
Dataset
Volume & freshness
Coverage
- First published
- 2025-12-30
License
No license declared upstream.