curl --request GET \
--url https://api.addressy.com/GovernmentData/Postzon/RetrieveByPostcode/v1.50/json6.ws{
"Items": [
{
"Easting": "517292",
"Northing": "208276",
"Latitude": "51.7608",
"Longitude": "-0.3019",
"OsGrid": "TL 17292 08276",
"CountryCode": "064",
"NewCountryCode": "E92000001",
"CountryName": "England",
"CountyCode": "26",
"NewCountyCode": "E10000015",
"CountyName": "Hertfordshire",
"DistrictCode": "26UG",
"NewDistrictCode": "E07000240",
"DistrictName": "St Albans",
"WardCode": "26UGGH",
"NewWardCode": "E05004795",
"WardName": "Marshalswick North",
"NhsShaCode": "",
"NewNhsShaCode": "E19000001",
"NhsShaName": "",
"NhsPctCode": "5P4",
"NewNhsPctCode": "E18000006",
"NhsPctName": "West Hertfordshire PCT",
"LeaCode": "919",
"LeaName": "Hertfordshire",
"GovernmentOfficeCode": "G",
"GovernmentOfficeName": "East of England",
"WestminsterConstituencyCode": "382",
"WestminsterConstituencyName": "St. Albans",
"WestminsterMP": "Anne Main",
"WestminsterParty": "Conservative",
"WestminsterConstituencyCode2010": "382",
"WestminsterConstituencyName2010": "St. Albans",
"LSOACode": "E01023712",
"LSOAName": "St Albans 008D",
"MSOACode": "E02004931",
"MSOAName": "St Albans 008",
"CCGCode": "06N",
"CCGName": "NHS Herts Valleys CCG",
"CCGAreaCode": "Q58",
"CCGAreaName": "Hertfordshire and the South Midlands Area Team",
"CCGRegionCode": "Y55",
"CCGRegionName": "Midlands and East of England Commissioning Region"
}
]
}Get comprehensive UK government data for any postcode. Returns coordinates, ONS codes, NHS areas, constituencies, wards, and council information.
curl --request GET \
--url https://api.addressy.com/GovernmentData/Postzon/RetrieveByPostcode/v1.50/json6.ws{
"Items": [
{
"Easting": "517292",
"Northing": "208276",
"Latitude": "51.7608",
"Longitude": "-0.3019",
"OsGrid": "TL 17292 08276",
"CountryCode": "064",
"NewCountryCode": "E92000001",
"CountryName": "England",
"CountyCode": "26",
"NewCountyCode": "E10000015",
"CountyName": "Hertfordshire",
"DistrictCode": "26UG",
"NewDistrictCode": "E07000240",
"DistrictName": "St Albans",
"WardCode": "26UGGH",
"NewWardCode": "E05004795",
"WardName": "Marshalswick North",
"NhsShaCode": "",
"NewNhsShaCode": "E19000001",
"NhsShaName": "",
"NhsPctCode": "5P4",
"NewNhsPctCode": "E18000006",
"NhsPctName": "West Hertfordshire PCT",
"LeaCode": "919",
"LeaName": "Hertfordshire",
"GovernmentOfficeCode": "G",
"GovernmentOfficeName": "East of England",
"WestminsterConstituencyCode": "382",
"WestminsterConstituencyName": "St. Albans",
"WestminsterMP": "Anne Main",
"WestminsterParty": "Conservative",
"WestminsterConstituencyCode2010": "382",
"WestminsterConstituencyName2010": "St. Albans",
"LSOACode": "E01023712",
"LSOAName": "St Albans 008D",
"MSOACode": "E02004931",
"MSOAName": "St Albans 008",
"CCGCode": "06N",
"CCGName": "NHS Herts Valleys CCG",
"CCGAreaCode": "Q58",
"CCGAreaName": "Hertfordshire and the South Midlands Area Team",
"CCGRegionCode": "Y55",
"CCGRegionName": "Midlands and East of England Commissioning Region"
}
]
}The key to use to authenticate to the service.
The Postcode to use to search with.
The username associated with the Royal Mail license (not required for click licenses).
Success
Show child attributes
The easting coordinate of the location. Represents a distance in meters east from the most south westerly position of the GB mapping grid.
The northing coordinate of the location. Represents a distance in meters north from the most south westerly position of the GB mapping grid.
The WGS84 latitude coordinate of the location.
The WGS84 longitude coordinate of the location.
The OS grid reference for the location.
The ONS country code for the location.
The new ONS country code for the location.
The name corresponding to CountryCode.
The ONS county code for the location. For locations without 2 tier local administration, this will be 00.
The ONS new county code for the location. For locations without 2 tier local administration, this will be 00.
The name corresponding to CountyCode.
The ONS district code for the location.
The new ONS district code for the location.
The name corresponding to DistrictCode.
The ONS ward code for the location.
The new ONS ward code for the location.
The name corresponding to WardCode.
The ONS code for the NHS Strategic Health Authority for the location.
The new ONS code for the NHS Strategic Health Authority for the location.
The name corresponding to NhsShaCode.
The ONS code for the NHS Primary Care Trust for the location.
The new ONS code for the NHS Primary Care Trust for the location.
The name corresponding to NhsPctCode.
The ONS code for the Local Education Authority for the location.
The name corresponding to LeaCode.
The ONS code for the Government Office for the location.
The name corresponding to GovernmentOfficeCode.
The ONS code for the Westminster parliamentary constituency for the location.
The name corresponding to WestminsterConstituencyCode.
The name of the Westminster Member of Parliament for the location.
The party for WestminsterMP.
The ONS code (or temporary if > 900) for the Westminster parliamentary constituency for the location in 2010.
The name corresponding to WestminsterConstituencyCode2010.
The LSOA code for this area.
The LSOA name for this area.
The MSOA code for this area.
The MSOA name for this area.
The Clinical Commissioning Group code for this area.
The Clinical Commissioning Group name for this area.
The Clinical Commissioning Group area code for this area.
The Clinical Commissioning Group area name for this area.
The Clinical Commissioning Group region code for this area.
The Clinical Commissioning Group region name for this area.
Was this page helpful?