Skip to main content

Outward Code Response Schema

The Outcode schema represents geographical and administrative information associated with a UK outward code (the first part of a postcode). This data is returned when using the outcode lookup endpoints.

Example

{
"status": 200,
"result": {
"outcode": "SW1A",
"longitude": -0.13218813888888895,
"latitude": 51.504540465277756,
"northings": 180054,
"eastings": 529731,
"admin_district": [
"Wandsworth",
"Westminster"
],
"parish": [
"Wandsworth, unparished area",
"Westminster, unparished area"
],
"admin_county": [
"(pseudo) England (UA/MD/LB)"
],
"admin_ward": [
"Nine Elms",
"St James's"
],
"country": [
"England"
],
"parliamentary_constituency": [
"Battersea",
"Cities of London and Westminster"
]
}
}

Reference

FieldTypeDescriptionExample
outcodestringThe outward code part of a postcode (2-4 characters). This generally identifies the postal town or district."SW1A"
eastingsinteger | nullOrdnance Survey grid reference easting (X-coordinate) averaged from all postcodes in the outcode. May be null if unavailable.529993
northingsinteger | nullOrdnance Survey grid reference northing (Y-coordinate) averaged from all postcodes in the outcode. May be null if unavailable.179950
longitudenumber | nullWGS84 longitude coordinate (east-west position) averaged from all postcodes in the outcode. May be null if unavailable.-0.132759148
latitudenumber | nullWGS84 latitude coordinate (north-south position) averaged from all postcodes in the outcode. May be null if unavailable.51.50100708
admin_districtstring[]List of administrative districts or unitary authorities that contain postcodes within this outcode.["Westminster", "Camden"]
admin_countystring[]List of administrative counties that contain postcodes within this outcode. May be empty for areas without county-level administration.["(pseudo) England (UA/MD/LB)"]
admin_wardstring[]List of electoral/administrative wards that contain postcodes within this outcode.["St James's", "West End"]
parishstring[]List of civil parishes (England) or communities (Wales) that contain postcodes within this outcode.["Westminster, unparished area"]
countrystring[]List of UK constituent countries that contain postcodes within this outcode.["England"]
parliamentary_constituencystring[]List of UK Parliamentary constituencies (July 2024 boundaries) that contain postcodes within this outcode.["Cities of London and Westminster", "Battersea"]