Code
Given an area type / area code combination, produces the names, codes, and centroids for the ancestors of the area - i.e. larger, more general areas of which the requested area is a member.
get/code/{area_type}/{area_code}
Path parameters
area_type'nation' | 'region' | 'utla' | 'ltla' | 'msoa' | 'postcode' | 'nhsRegion' | 'nhsTrust' required
Type of the area whose ancestors are being requested.
area_codestring required
Code of the area whose ancestors are being requested.
Headers
Accept'application/json' required
Accept-Encoding'deflate' | 'gzip' | 'br'
Response
Returns ancestors of the area code.