Age by five-year age bands
England
Wales
gethttps://crystalroof.co.uk/customer-api/demographics-and-migration/age-by-five-year-age-bands/postcode/v1/{location}
Description
This method returns Census 2021 estimates that classify usual residents by five-year age bands.
Age is split into 19 categories including total.
The estimates are as at Census Day, 21 March 2021.
Parameters
Name | Description |
---|---|
location path string | Postcode, coordinates in the lat,long format or UPRN in the uprn12345678 format. |
area_type query enum | Area types used in Census 2021. The method returns results based on the inclusion of the postcode/coordinate/UPRN within the designated geographical area. For instance, when using 'oa' as a parameter, the returned results will be for the Output Area that contains the specified postcode/coordinate/UPRN.
|
api_key query enum | Your API key. DEMO key allows you to test the method in the W6 0 postcode sector, or in the [[51.492, -0.25], [51.502, -0.225]] rectangle. |
Request URL:
https://crystalroof.co.uk/customer-api/demographics-and-migration/age-by-five-year-age-bands/postcode/v1/{location}?api_key=DEMO
Possible responses with examples
Code
Description
200
Success
401
Unauthorized
402
Payment Required
403
Forbidden
429
Too Many Requests
500
Internal Server Error