---
id: "uk_country_gss_code"
kind: "datatype"
status: "draft"
is_pii: false
name: "UK country GSS code"
regexp: "^(?:[EWSN]92|K0[2-4])\\d{6}$"
categories: ["geo"]
country: ["GB"]
langs: ["en"]
quality: 85
url: "https://registry.apicrafter.io/datatype/uk_country_gss_code"
---

# UK country GSS code (`uk_country_gss_code`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

GSS code of a country of the United Kingdom (entity codes E92 England, W92 Wales, S92 Scotland, N92 Northern Ireland) or of a group of them (K02 United Kingdom, K03 Great Britain, K04 England and Wales).

- Parent datatype: [`ukgsscode`](https://registry.apicrafter.io/datatype/ukgsscode.md)
- Personal data (PII): no
- Categories: Geographic identifiers (geo)
- Countries: United Kingdom (GB)
- Languages: English (en)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^(?:[EWSN]92|K0[2-4])\d{6}$
```

## Examples

- `E92000001` — England
- `W92000004` — Wales
- `S92000003` — Scotland
- `N92000002` — Northern Ireland
- `K02000001` — United Kingdom
- `E12000001` (invalid example) — A region code

## Metacrafter rules

1 rules: 0 match the field name, 1 match values.

- `ukcountrygsscodevalue` (data, `gb/gb_geo.yaml`)

## Supported by tools

- [`metacrafter`](https://registry.apicrafter.io/tool/metacrafter.md)

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Countries_of_the_United_Kingdom>
- wikipedia: <https://en.wikipedia.org/wiki/ONS_coding_system>
- doc: <https://www.ons.gov.uk/methodology/geography/geographicalproducts/namescodesandlookups/codehistorydatabasechd>

## Quality

Score 85/100. Missing: mapping (Wikidata, Schema.org, ...), translation.

JSON: <https://registry.apicrafter.io/api/v1/datatypes/uk_country_gss_code.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/GB/geo/uk_country_gss_code.yaml>
