---
id: "inseecode"
kind: "datatype"
status: "stable"
is_pii: false
categories: ["geo"]
country: ["FR"]
langs: ["fr"]
quality: 80
url: "http://registry.apicrafter.io/datatype/inseecode"
---

# INSEE code (`inseecode`)

The INSEE code is a numerical indexing code used by the French National Institute for Statistics and Economic Studies (INSEE) to identify various entities, including communes and départements.

- Personal data (PII): no
- Categories: Geographic identifiers (geo)
- Countries: France (FR)
- Languages: French (fr)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
\d[0-9AB][0-9P]\d\d
```

## Examples

- `75056` — Paris
- `48095` — Mende

## Mappings

- fta: `STATE_PROVINCE.INSEE_CODE_FR`
- wikidata: `P374`

## Metacrafter rules

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

- `frinseecodebyknown` (field, `fr/fr_geo.yaml`)

## Supported by tools

- `csvdetective`
- `fta`
- `metacrafter`
- `talend`

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/INSEE_code>
- wikidata: <https://www.wikidata.org/wiki/Property:P374>

## Quality

Score 80/100. Missing: anchored regexp, negative example, translation.

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