National identity - UK
Description
This method returns Census 2021 estimates that classify usual residents by their national identity.
Someone's national identity is a self-determined assessment of their own identity, it could be the country or countries where they feel they belong or think of as home. It is not dependent on ethnic group or citizenship. Respondents could select more than one national identity.
National identity 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,
"British only identity": 138,
"English only identity": 12,
"English and British only identity": 6,
"Welsh only identity": 0,
"Welsh and British only identity": 0,
"Any other combination of only UK identities": 1,
"Scottish only identity": 0,
"Scottish and British only identity": 0,
"Northern Irish only identity": 0,
"Northern Irish and British only identity": 1,
"Cornish only identity": 0,
"Cornish and British only identity": 0,
"Any other combination of only UK identities ": 0,
"Irish only identity": 4,
"Irish and at least one UK identity": 0,
"Other identity only": 26,
"Other identity and at least one UK identity": 8,
"Non-UK identity only": 30,
"UK identity and non-UK identity": 8
},
"rank": {
"British only identity": 9,
"English only identity": 2,
"English and British only identity": 1,
"Welsh only identity": 1,
"Welsh and British only identity": 1,
"Any other combination of only UK identities": 1,
"Scottish only identity": 1,
"Scottish and British only identity": 1,
"Northern Irish only identity": 1,
"Northern Irish and British only identity": 5,
"Cornish only identity": 1,
"Cornish and British only identity": 1,
"Any other combination of only UK identities ": 1,
"Irish only identity": 6,
"Irish and at least one UK identity": 1,
"Other identity only": 4,
"Other identity and at least one UK identity": 5,
"Non-UK identity only": 5,
"UK identity and non-UK identity": 5
}
},
"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!"
}