Length of residence
Description
This method returns Census 2021 estimates that classify usual residents by their length of residence in the UK.
The length of residence in the UK is derived from the date that a person most recently arrived to live in the UK. It does not include returning from a holiday or short stay outside the UK.
Length of residence is only applicable to usual residents who were not born in the UK. It does not include usual residents born in the UK who have emigrated and since returned - these are recorded in the category "born in the UK".
Length of residence is split into 6 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. Postcode with or without space. This argument is case-insensitive. |
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.
|
{
"data": {
"residents": {
"Total": 195,
"Born in the UK": 101,
"10 years or more": 73,
"5 years or more, but less than 10 years": 4,
"2 years or more, but less than 5 years": 12,
"Less than 2 years": 5
},
"rank": {
"Born in the UK": 3,
"10 years or more": 9,
"5 years or more, but less than 10 years": 3,
"2 years or more, but less than 5 years": 5,
"Less than 2 years": 3
}
},
"dataDate": "2021-03-21",
"refreshedDate": "2021-03-21"
}
{
"error": "No such API key or it is not valid anymore."
}
{
"error": "You have exhausted the available calls provided by your package."
}
{
"error": "API key is invalid for the given action."
}
{
"error": "Can't find such location."
}
{
"error": "Too many requests have been sent in one second."
}
{
"error": "We have already started working on a resolution!"
}