National Statistics Postcode Lookup UK
query.geojson
This dataset provides the National Statistics Postcode Lookup (NSPL) for the United Kingdom, produced by ONS Geography, which supplies geographic support to the Office for National Statistics and geographic services for other organisations. It relates current postcodes to statutory administrative, electoral, health and other statistical geographies, using a 'best-fit' allocation based on 2021 Census output areas. The lookup supports the production of area-based statistics from postcoded data, enabling users to aggregate postcode-level information to various geographic units used across UK official statistics.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 quality
Data schema (36 fields)
Dictionary: 36 of 36 labelled · 35 described · 0 with a unit · 36 with example values
Click a field to see example values.
| Field | Type | Description |
|---|---|---|
| postcode_1 | string | Postcode with no spaces.All current ('live') postcodes within the United Kingdom, the Channel Islands and the Isle of Man, received monthly from Royal Mail. Also, all terminated ('closed') postcodes that have not been subsequently re-used by Royal Mail within the United Kingdom and by the postal administrations in the Ch |
| postcode_2 | string | Postcode formatted with fixed-width spacing.As above, except: 2, 3 or 4-character outward code - left aligned; 3-character inward code - right aligned; 5th character always blank and 3rd and 4th characters may be blank |
| postcode_3 | string | Postcode with standard single-space formatting.2, 3 or 4-character outward code; Single space; 3-character inward code |
| date_introduced | string | Year and month the postcode was first introduced.The most recent occurrence of the postcode's date of introduction. |
| user_type | number | Code indicating whether the postcode is small or large user type.Shows whether the postcode is a small or large user. 0 = small user; 1 = large user |
| easting | number | National grid easting coordinate of the postcode.The OS grid reference Easting to 1 metre resolution; blank for postcodes in the Channel Islands and the Isle of Man. Grid references for postcodes in Northern Ireland relate to the Irish National Grid. |
| northing | number | National grid northing coordinate of the postcode.The OS grid reference Northing to 1 metre resolution; blank for postcodes in the Channel Islands and the Isle of Man. Grid references for postcodes in Northern Ireland relate to the Irish National Grid. |
| positional_quality | number | Code indicating the accuracy grade of the postcode's coordinates.Shows the status of the assigned grid reference. 1 = within the building of the matched address closest to the postcode mean; 2 = as for status value 1, except by visual inspection of Landline maps (Scotland only); 3 = approximate to within 50 metres; 4 = postcode unit mean (mean of matched addresse |
| county_code | string | Code identifying the county containing the postcode.The current county to which the postcode has been assigned. Pseudo codes are included for English UAs, Wales, Scotland, Northern Ireland, Channel Islands and Isle of Man. The field will otherwise be blank for postcodes with no OA code |
| county_name | string | Name of the county containing the postcode.Name of the county containing the postcode. |
| local_authority_code | string | Code identifying the local authority district containing the postcode.The current district/UA to which the postcode has been assigned. Pseudo codes are included for Channel Islands and Isle of Man. The field will otherwise be blank for postcodes with no OA code. |
| local_authority_name | string | Name of the local authority district containing the postcode.Name of the local authority district containing the postcode. |
| ward_code | string | Code identifying the electoral ward containing the postcode.The current administrative/electoral area to which the postcode has been assigned. Pseudo codes are included for Channel Islands and Isle of Man. The field will otherwise be blank for postcodes with no OA code. |
| ward_name | string | Name of the electoral ward containing the postcode.Name of the electoral ward containing the postcode. |
| country_code | string | Code identifying the UK country containing the postcode.The code for the appropriate country (i.e. one of the four constituent countries of the UK or Crown dependencies - the Channel Islands or the Isle of Man) to which each postcode is assigned. |
| country_name | string | Name of the UK country containing the postcode.Name of the UK country containing the postcode. |
| region_code | string | Code identifying the region containing the postcode.The region code for each postcode. Pseudo codes are included for Wales, Scotland, Northern Ireland, Channel Island and Isle of Man. The field will otherwise be blank for postcodes with no OA code. |
| region_name | string | Name of the region containing the postcode.Name of the region containing the postcode. |
| parliamentary_constituency_code | string | Code identifying the Westminster parliamentary constituency.The Westminster parliamentary constituency code for each postcode. Pseudo codes are included for Channel Islands and Isle of Man. The field will otherwise be blank for postcodes with no OA code. |
| parliamentary_constituency_name | string | Name of the Westminster parliamentary constituency.Name of the Westminster parliamentary constituency. |
| european_electoral_region_code | string | Code identifying the former European electoral region; now obsolete.The European Electoral Region code for each postcode. A pseudo code is included for Channel Islands and Isle of Man. The field will otherwise be blank for postcodes with no OA code. |
| european_electoral_region_name | string | Name of the former European electoral region; now obsolete.Name of the former European electoral region; now obsolete. |
| primary_care_trust_code | string | Code identifying the former primary care trust; now obsolete.The code for the PCT/CT areas in England, LHBs in Wales, CHPs in Scotland, LCG in Northern Ireland and PHD in the Isle of Man. A pseudo code is included for Channel Islands. The field will otherwise be blank for postcodes with no OA code. |
| primary_care_trust_name | string | Name of the former primary care trust; now obsolete.Name of the former primary care trust; now obsolete. |
| lsoa_codeLower Super Output Area Code | string | Code identifying the Lower Layer Super Output Area.The 2011 Census LSOA code for England and Wales, SOA code for Northern Ireland and DZ code for Scotland. Pseudo codes are included for Channel Islands and Isle of Man. The field will otherwise be blank for postcodes with no OA code. N.B. NI SOAs remain unchanged from 2001. |
| lower_super_output_areaLower Super Output Area Name | string | Name of the Lower Layer Super Output Area.Name of the Lower Layer Super Output Area. |
| msoa_codeMiddle Super Output Area Code | string | Code identifying the Middle Layer Super Output Area.The 2011 Census MSOA code for England and Wales and IZ code for Scotland. Pseudo codes are included for Northern Ireland, Channel Islands and Isle of Man. The field will otherwise be blank for postcodes with no OA code. |
| middle_super_output_areaMiddle Super Output Area Name | string | Name of the Middle Layer Super Output Area.Name of the Middle Layer Super Output Area. |
| output_area_classification_code | string | Code for the 2021 Census output area classification.Code for the 2021 Census output area classification. |
| output_area_classification_name | string | Descriptive label for the 2021 Census output area classification.Descriptive label for the 2021 Census output area classification. |
| longitude | number | Longitude coordinate of the postcode centroid.The postcode coordinates in degrees longitude to six decimal places; 0.000000 for postcodes in the Channel Islands and the Isle of Man, and for postcodes with no grid reference. |
| latitude | number | Latitude coordinate of the postcode centroid.The postcode coordinates in degrees latitude to six decimal places; 99.999999 for postcodes in the Channel Islands and the Isle of Man, and for postcodes with no grid reference. |
| spatial_accuracy | string | Description of the precision level of the postcode's location.Description of the precision level of the postcode's location. |
| last_uploaded | date | Timestamp when the source data was last uploaded.Timestamp when the source data was last uploaded. |
| location | point | — |
| socrata_id | number | Identifier assigned by the Socrata publishing platform.Identifier assigned by the Socrata publishing platform. |
Schema captured from socrata 4 days ago.
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: 407611 · latitude: 52.571443
{
"easting": "407611",
"latitude": "52.571443",
"location": {
"type": "Point",
"coordinates": [
-1.889128,
52.571443
]
},
"northing": "297073",
"longitude": "-1.889128",
"lsoa_code": "E01010391",
"msoa_code": "E02002141",
"user_type": "0",
"ward_code": "E05016451",
"ward_name": "Streetly",
"postcode_1": "B74 2AE",
"postcode_2": "B74 2AE",
"postcode_3": "B74 2AE",
"socrata_id": "55811",
"county_code": "E11000005",
"county_name": "West Midlands",
"region_code": "E12000005",
"region_name": "West Midlands",
"country_code": "E92000001",
"country_name": "England",
"last_uploaded": "2026-09-08T10:25:10.000",
"date_introduced": "200502",
"spatial_accuracy": "Postcode Level",
"positional_quality": "1",
"local_authority_code": "E08000030",
"local_authority_name": "Walsall",
"lower_super_output_area": "Walsall 032D",
"primary_care_trust_code": "obsolete",
"primary_care_trust_name": "obsolete",
"middle_super_output_area": "Walsall 032",
"european_electoral_region_code": "obsolete",
"european_electoral_region_name": "obsolete",
"output_area_classification_code": "5a3",
"output_area_classification_name": "currently unavailable",
"parliamentary_constituency_code": "E14001064",
"parliamentary_constituency_name": "Aldridge-Brownhills"
}Record 2easting: 408446 · latitude: 52.578973
{
"easting": "408446",
"latitude": "52.578973",
"location": {
"type": "Point",
"coordinates": [
-1.876786,
52.578973
]
},
"northing": "297912",
"longitude": "-1.876786",
"lsoa_code": "E01010385",
"msoa_code": "E02002137",
"user_type": "0",
"ward_code": "E05016451",
"ward_name": "Streetly",
"postcode_1": "B74 2LU",
"postcode_2": "B74 2LU",
"postcode_3": "B74 2LU",
"socrata_id": "55935",
"county_code": "E11000005",
"county_name": "West Midlands",
"region_code": "E12000005",
"region_name": "West Midlands",
"country_code": "E92000001",
"country_name": "England",
"last_uploaded": "2026-09-08T10:25:10.000",
"date_introduced": "199912",
"spatial_accuracy": "Postcode Level",
"positional_quality": "1",
"local_authority_code": "E08000030",
"local_authority_name": "Walsall",
"lower_super_output_area": "Walsall 028A",
"primary_care_trust_code": "obsolete",
"primary_care_trust_name": "obsolete",
"middle_super_output_area": "Walsall 028",
"european_electoral_region_code": "obsolete",
"european_electoral_region_name": "obsolete",
"output_area_classification_code": "5a2",
"output_area_classification_name": "currently unavailable",
"parliamentary_constituency_code": "E14001064",
"parliamentary_constituency_name": "Aldridge-Brownhills"
}Record 3easting: 407279 · latitude: 52.495968
{
"easting": "407279",
"latitude": "52.495968",
"location": {
"type": "Point",
"coordinates": [
-1.894209,
52.495968
]
},
"northing": "288677",
"longitude": "-1.894209",
"lsoa_code": "E01008910",
"msoa_code": "E02001876",
"user_type": "1",
"ward_code": "E05011156",
"ward_name": "Newtown",
"postcode_1": "B99 1DN",
"postcode_2": "B99 1DN",
"postcode_3": "B99 1DN",
"socrata_id": "67045",
"county_code": "E11000005",
"county_name": "West Midlands",
"region_code": "E12000005",
"region_name": "West Midlands",
"country_code": "E92000001",
"country_name": "England",
"last_uploaded": "2026-09-08T10:25:11.000",
"date_introduced": "200710",
"spatial_accuracy": "Postcode Level",
"positional_quality": "1",
"local_authority_code": "E08000025",
"local_authority_name": "Birmingham",
"lower_super_output_area": "Birmingham 050A",
"primary_care_trust_code": "obsolete",
"primary_care_trust_name": "obsolete",
"middle_super_output_area": "Birmingham 050",
"european_electoral_region_code": "obsolete",
"european_electoral_region_name": "obsolete",
"output_area_classification_code": "4c1",
"output_area_classification_name": "currently unavailable",
"parliamentary_constituency_code": "E14001096",
"parliamentary_constituency_name": "Birmingham Ladywood"
}Record 4easting: 383082 · latitude: 53.789075
{
"easting": "383082",
"latitude": "53.789075",
"location": {
"type": "Point",
"coordinates": [
-2.258273,
53.789075
]
},
"northing": "432558",
"longitude": "-2.258273",
"lsoa_code": "E01024907",
"msoa_code": "E02005185",
"user_type": "0",
"ward_code": "E05005163",
"ward_name": "Trinity",
"postcode_1": "BB114BD",
"postcode_2": "BB11 4BD",
"postcode_3": "BB11 4BD",
"socrata_id": "85200",
"county_code": "E10000017",
"county_name": "Lancashire",
"region_code": "E12000002",
"region_name": "North West",
"country_code": "E92000001",
"country_name": "England",
"last_uploaded": "2026-09-08T10:25:13.000",
"date_introduced": "201505",
"spatial_accuracy": "Postcode Level",
"positional_quality": "1",
"local_authority_code": "E07000117",
"local_authority_name": "Burnley",
"lower_super_output_area": "Burnley 010D",
"primary_care_trust_code": "obsolete",
"primary_care_trust_name": "obsolete",
"middle_super_output_area": "Burnley 010",
"european_electoral_region_code": "obsolete",
"european_electoral_region_name": "obsolete",
"output_area_classification_code": "6b3",
"output_area_classification_name": "currently unavailable",
"parliamentary_constituency_code": "E14001142",
"parliamentary_constituency_name": "Burnley"
}Record 5easting: 376459 · latitude: 53.752560
{
"easting": "376459",
"latitude": "53.752560",
"location": {
"type": "Point",
"coordinates": [
-2.358488,
53.75256
]
},
"northing": "428524",
"longitude": "-2.358488",
"lsoa_code": "E01025068",
"msoa_code": "E02005215",
"user_type": "0",
"ward_code": "E05005217",
"ward_name": "Peel",
"postcode_1": "BB5 6RS",
"postcode_2": "BB5 6RS",
"postcode_3": "BB5 6RS",
"socrata_id": "92310",
"county_code": "E10000017",
"county_name": "Lancashire",
"region_code": "E12000002",
"region_name": "North West",
"country_code": "E92000001",
"country_name": "England",
"last_uploaded": "2026-09-08T10:25:13.000",
"date_introduced": "198001",
"spatial_accuracy": "Postcode Level",
"positional_quality": "1",
"local_authority_code": "E07000120",
"local_authority_name": "Hyndburn",
"lower_super_output_area": "Hyndburn 004G",
"primary_care_trust_code": "obsolete",
"primary_care_trust_name": "obsolete",
"middle_super_output_area": "Hyndburn 004",
"european_electoral_region_code": "obsolete",
"european_electoral_region_name": "obsolete",
"output_area_classification_code": "6b3",
"output_area_classification_name": "currently unavailable",
"parliamentary_constituency_code": "E14001299",
"parliamentary_constituency_name": "Hyndburn"
}Live sample captured at profiling time — values may have changed upstream.
Verification Status
Requests to opendata.camden.gov.uk through this register, last 30 days
Day by day on the status pageUsing the API
Configuration
- Base URL
- https://opendata.camden.gov.uk
- Format
- rest
License
- ✓ Redistributable
- ✓ Attribution required
Query examples
curl -s 'https://opendata.camden.gov.uk/resource/tr8t-gqz7.json?$limit=20' -H 'Accept: application/json'Rows of the dataset as JSON; filter with $where (SoQL), sort with $order, page with $limit and $offset.
Dataset
Volume & freshness
License
No license declared upstream.
Source: socrata