---
id: "ch_egrid"
kind: "datatype"
status: "draft"
is_pii: false
name: "Swiss federal property identifier (E-GRID)"
regexp: "^CH\\d{12}$"
checksum: "ch_egrid"
categories: ["realestate", "government"]
country: ["CH"]
langs: ["common"]
quality: 90
url: "https://registry.apicrafter.io/datatype/ch_egrid"
---

# Swiss federal property identifier (E-GRID) (`ch_egrid`)

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

Identifier of a land register property (a parcel, a building right, a condominium unit) in Switzerland, the same in the land register and in the cadastral survey. It has 14 characters: CH and 12 digits. The last two digits check the ten before them: they are 97 minus the remainder of that ten-digit number divided by 97. CH says that the number comes from the Swiss number pool, not where the property lies.

- Parent datatype: [`id`](https://registry.apicrafter.io/datatype/id.md)
- Personal data (PII): no
- Categories: Real estate (realestate), Government related (government)
- Countries: Switzerland (CH)
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^CH\d{12}$
```

Check digit algorithm: `ch_egrid`

## Examples

- `CH787701897777` — the example of the eGRIS key field specification
- `CH352961700877` — a property in the canton of Basel-Landschaft (open data of data.bl.ch)
- `CH787701897778` (invalid example) — wrong check digits
- `787701897777` (invalid example) — no CH prefix

## Metacrafter rules

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

- `chegridbyname` (field, `ch/ch_codes.yaml`)
- `chegridvalue` (data, `ch/ch_codes.yaml`)

## Supported by tools

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

## Translations

- de: Eidgenössische Grundstücksidentifikation (E-GRID)
- fr: Identificateur fédéral des immeubles (E-GRID)
- ru: Федеральный идентификатор земельного участка Швейцарии (E-GRID)

## Sources

- doc: <https://www.egris.admin.ch/dam/fr/sd-web/2HMfNQ7CRfOR/schluesselfelder-spezifikation-d.pdf>

## Quality

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

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