---
id: "fr_canton_code"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["geo", "government"]
country: ["FR"]
langs: ["fr"]
quality: 90
url: "https://registry.apicrafter.io/datatype/fr_canton_code"
---

# French canton code (INSEE) (`fr_canton_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.

Code of a canton in the INSEE Official Geographic Code (COG) - the department code followed by two digits, 4 characters in metropolitan France and 5 in overseas departments. The COG also lists pseudo-cantons (canton-ville) that group whole communes, numbered from 99 downwards, and fictitious cantons for communes nouvelles, numbered from 89 downwards.

- Personal data (PII): no
- Categories: Geographic identifiers (geo), Government related (government)
- Countries: France (FR)
- Languages: French (fr)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^(?:\d{2}|2[AB]|97[1-6])\d{2}$
```

## Examples

- `0101` — Ambérieu-en-Bugey
- `2A01` — Ajaccio-1
- `97101` — Les Abymes-1
- `7599` — Paris (pseudo-canton)
- `01-01` (invalid example) — separator is not used

## Mappings

- wikidata: `P2506`

## Translations

- fr: Code canton
- ru: Код кантона Франции (INSEE)

## Sources

- wikidata: <https://www.wikidata.org/wiki/Property:P2506>
- doc: <https://www.insee.fr/fr/metadonnees/definition/c1725>
- doc: <https://www.insee.fr/fr/information/8740222>

## Quality

Score 90/100. Missing: detector coverage.

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