Legal partnership status
England
Wales
gethttps://crystalroof.co.uk/customer-api/demographics-and-migration/legal-partnership-status/postcode/v1/{location}
Description
This method returns Census 2021 estimates that classify usual residents aged 16 years and over according to their legal marital or registered civil partnership status.
Legal partnership status is split into 18 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.
|
Request URL:
https://crystalroof.co.uk/customer-api/demographics-and-migration/legal-partnership-status/postcode/v1/W60WW?api_key=DEMO
Possible responses with examples
Code
Description
200
Success
{
"data": {
"residents": {
"Total": 153,
"Never married and never registered a civil partnership": 75,
"Married or in a registered civil partnership": 48,
"Married or in a registered civil partnership: Married": 44,
"Married or in a registered civil partnership: Married: Opposite sex": 44,
"Married or in a registered civil partnership: Married: Same sex": 0,
"Married or in a registered civil partnership: In a registered civil partnership": 4,
"Married or in a registered civil partnership: In a registered civil partnership: Opposite sex": 0,
"Married or in a registered civil partnership: In a registered civil partnership: Same sex": 4,
"Separated, but still legally married or still legally in a civil partnership": 6,
"Separated, but still legally married or still legally in a civil partnership: Separated, but still married": 6,
"Separated, but still legally married or still legally in a civil partnership: Separated, but still in a registered civil partnership": 0,
"Divorced or civil partnership dissolved": 19,
"Divorced or civil partnership dissolved: Divorced": 19,
"Divorced or civil partnership dissolved: Formerly in a civil partnership now legally dissolved": 0,
"Widowed or surviving civil partnership partner": 5,
"Widowed or surviving civil partnership partner: Widowed": 5,
"Widowed or surviving civil partnership partner: Surviving partner from civil partnership": 0
},
"rank": {
"Never married and never registered a civil partnership": 7,
"Married or in a registered civil partnership": 3,
"Married or in a registered civil partnership: Married": 3,
"Married or in a registered civil partnership: Married: Opposite sex": 3,
"Married or in a registered civil partnership: Married: Same sex": 1,
"Married or in a registered civil partnership: In a registered civil partnership": 8,
"Married or in a registered civil partnership: In a registered civil partnership: Opposite sex": 1,
"Married or in a registered civil partnership: In a registered civil partnership: Same sex": 8,
"Separated, but still legally married or still legally in a civil partnership": 6,
"Separated, but still legally married or still legally in a civil partnership: Separated, but still married": 6,
"Separated, but still legally married or still legally in a civil partnership: Separated, but still in a registered civil partnership": 1,
"Divorced or civil partnership dissolved": 6,
"Divorced or civil partnership dissolved: Divorced": 6,
"Divorced or civil partnership dissolved: Formerly in a civil partnership now legally dissolved": 1,
"Widowed or surviving civil partnership partner": 2,
"Widowed or surviving civil partnership partner: Widowed": 2,
"Widowed or surviving civil partnership partner: Surviving partner from civil partnership": 1
}
},
"dataDate": "2021-03-21",
"refreshedDate": "2021-03-21"
}
401
Unauthorized
{
"error": "No such API key or it is not valid anymore."
}
402
Payment Required
{
"error": "You have exhausted the available calls provided by your package."
}
403
Forbidden
{
"error": "API key is invalid for the given action."
}
404
Not Found
{
"error": "Can't find such location."
}
429
Too Many Requests
{
"error": "Too many requests have been sent in one second."
}
500
Internal Server Error
{
"error": "We have already started working on a resolution!"
}