curl --request GET \
--url https://api.addressy.com/GovernmentData/Postzon/RetrieveByPostcodeOrPlace/v1.00/json6.ws{
"Items": [
{
"Location": "",
"Easting": "517200",
"Northing": "208200",
"Latitude": "51.7602",
"Longitude": "-0.3032",
"OsGrid": "TL 17200 08200",
"CountryCode": "064",
"CountryName": "England",
"CountyCode": "26",
"CountyName": "Hertfordshire",
"DistrictCode": "26UG",
"DistrictName": "St Albans",
"WardCode": "26UGGH",
"WardName": "Marshalswick North",
"NhsShaCode": "Y51",
"NhsShaName": "North, Midlands and the East Programme for IT (NMEPFiT)",
"NhsPctCode": "5P4",
"NhsPctName": "West Hertfordshire PCT",
"LeaCode": "919",
"LeaName": "Hertfordshire",
"GovernmentOfficeCode": "G",
"GovernmentOfficeName": "East of England",
"WestminsterConstituencyCode": "218",
"WestminsterConstituencyName": "Hitchin and Harpenden",
"WestminsterMP": "Rt Hon Peter Lilley",
"WestminsterParty": "Conservative",
"WestminsterConstituencyCode2010": "382",
"WestminsterConstituencyName2010": "St Albans"
}
]
}Search UK government data by postcode or place name. Returns coordinates, ONS codes, NHS areas, constituencies, and local authority information.
curl --request GET \
--url https://api.addressy.com/GovernmentData/Postzon/RetrieveByPostcodeOrPlace/v1.00/json6.ws{
"Items": [
{
"Location": "",
"Easting": "517200",
"Northing": "208200",
"Latitude": "51.7602",
"Longitude": "-0.3032",
"OsGrid": "TL 17200 08200",
"CountryCode": "064",
"CountryName": "England",
"CountyCode": "26",
"CountyName": "Hertfordshire",
"DistrictCode": "26UG",
"DistrictName": "St Albans",
"WardCode": "26UGGH",
"WardName": "Marshalswick North",
"NhsShaCode": "Y51",
"NhsShaName": "North, Midlands and the East Programme for IT (NMEPFiT)",
"NhsPctCode": "5P4",
"NhsPctName": "West Hertfordshire PCT",
"LeaCode": "919",
"LeaName": "Hertfordshire",
"GovernmentOfficeCode": "G",
"GovernmentOfficeName": "East of England",
"WestminsterConstituencyCode": "218",
"WestminsterConstituencyName": "Hitchin and Harpenden",
"WestminsterMP": "Rt Hon Peter Lilley",
"WestminsterParty": "Conservative",
"WestminsterConstituencyCode2010": "382",
"WestminsterConstituencyName2010": "St Albans"
}
]
}The key to use to authenticate to the service.
The postcode or place name to use to search with.
The username associated with the Royal Mail license (not required for click licenses).
Success
Show child attributes
The name of the location.
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 name corresponding to CountryCode.
The ONS 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 name corresponding to DistrictCode.
The ONS ward code for the location.
The name corresponding to WardCode.
The 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 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.
Was this page helpful?