---
id: "gb_county_code"
kind: "datatype"
status: "draft"
is_pii: false
name: "County of England code (GSS)"
regexp: "^E1[01]\\d{6}$"
categories: ["geo"]
country: ["GB"]
langs: ["en"]
quality: 85
url: "https://registry.apicrafter.io/datatype/gb_county_code"
---

# County of England code (GSS) (`gb_county_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 county of England: a non-metropolitan (shire) county, entity code E10, or a metropolitan county, E11. Unitary authorities have district codes (E06) instead.

- 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`):

```
^E1[01]\d{6}$
```

## Examples

- `E10000002` — Buckinghamshire (county until 2020)
- `E10000003` — Cambridgeshire
- `E11000001` — Greater Manchester (metropolitan county)
- `E06000001` (invalid example) — A unitary authority code

## Metacrafter rules

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

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

## Supported by tools

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

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Metropolitan_and_non-metropolitan_counties_of_England>
- 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/gb_county_code.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/GB/geo/gb_county_code.yaml>
