Household size
Description
This method returns Census 2021 estimates that classify all households by household size.
Household size is the number of people in the household. Visitors staying at an address do not count to that household's size.
Household size is split into 10 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": 88,
"0 people in household": 0,
"1 person in household": 30,
"2 people in household": 27,
"3 people in household": 12,
"4 people in household": 13,
"5 people in household": 4,
"6 people in household": 1,
"7 people in household": 0,
"8 or more people in household": 1
},
"rank": {
"0 people in household": 1,
"1 person in household": 6,
"2 people in household": 5,
"3 people in household": 4,
"4 people in household": 5,
"5 people in household": 4,
"6 people in household": 2,
"7 people in household": 1,
"8 or more people in household": 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!"
}