NS-SeC (Occupation types, Affluence)

England
Wales
gethttps://crystalroof.co.uk/customer-api/work-and-travel/ns-sec-occupation-types-affluence/postcode/v1/{location}

Description

This method returns Census 2021 estimates that classify usual residents aged 16 years and over by National Statistics Socio-economic Classification (NS-SEC).

The National Statistics Socio-economic Classification (NS-SEC) indicates a person's socio-economic position based on their occupation and other job characteristics.

It is an Office for National Statistics standard classification. NS-SEC categories are assigned based on a person's occupation, whether employed, self-employed, or supervising other employees.

Full-time students are recorded in the "full-time students" category regardless of whether they are economically active.

The estimates are as at Census Day, 21 March 2021.

Parameters

NameDescription
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.

  • oa - Output area (OA), the smallest geographical area used in the census, comprises 25-40 households and a population of 100-625 persons.
  • lsoa - Lower layer Super Output Area (LSOA), a small geographical area used in the census, comprises 400-1200 households and a population of 1000-3000 persons. Lower layer Super Output Areas (LSOAs) are made up of groups of OAs, usually four or five.
  • msoa - Middle layer Super Output Area (MSOA), a small geographical area used in the census, comprises 2,000-6,000 households and a population of 5,000 and 15,000 persons. MSOAs are made up of groups of LSOAs, usually four or five. MSOAs fit within local authorities.
  • lad - Local Authority District. There are a total of 296 districts in England made up of 36 metropolitan boroughs, 32 London boroughs, 164 two-tier non-metropolitan districts and 62 unitary authorities, City of London district and Isles of Scilly district. In Wales, there are 22 local authorities, which are named principal areas..
  • region - nine regions of England (London, the North East, North West, Yorkshire, East Midlands, West Midlands, South East, East of England and the South West) and Wales as a whole.
  • country - constituent countries of the UK: England, Scotland, Wales and Northern Ireland.
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/work-and-travel/ns-sec-occupation-types-affluence/postcode/v1/W60WW?api_key=DEMO
Possible responses with examples
Code
Description
200
Success
{
  "data": {
    "residents": {
      "Total": 157,
      "L1, L2 and L3 Higher managerial, administrative and professional occupations": 25,
      "L4, L5 and L6 Lower managerial, administrative and professional occupations": 42,
      "L7 Intermediate occupations": 10,
      "L8 and L9 Small employers and own account workers": 12,
      "L10 and L11 Lower supervisory and technical occupations": 6,
      "L12 Semi-routine occupations": 16,
      "L13 Routine occupations": 10,
      "L14.1 and L14.2 Never worked and long-term unemployed": 19,
      "L15 Full-time students": 17,
      "L1, L2, L3, L4, L5 and L6 Managerial, administrative, and professional occupations": 67,
      "L7, L8, and L9 Intermediate occupations": 22,
      "L10, L11, L12, and L13 Routine and manual occupations": 32
    },
    "rank": {
      "L1, L2 and L3 Higher managerial, administrative and professional occupations": 5,
      "L4, L5 and L6 Lower managerial, administrative and professional occupations": 7,
      "L7 Intermediate occupations": 2,
      "L8 and L9 Small employers and own account workers": 3,
      "L10 and L11 Lower supervisory and technical occupations": 3,
      "L12 Semi-routine occupations": 4,
      "L13 Routine occupations": 2,
      "L14.1 and L14.2 Never worked and long-term unemployed": 5,
      "L15 Full-time students": 4,
      "L1, L2, L3, L4, L5 and L6 Managerial, administrative, and professional occupations": 7,
      "L7, L8, and L9 Intermediate occupations": 3,
      "L10, L11, L12, and L13 Routine and manual occupations": 3
    }
  },
  "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!"
} 
Cookies
This site uses cookies for purposes including analytics, personalization and advertising. By continuing to browse this website you agree to this use. For more information see our Privacy Policy