---
id: "br_inep_school_code"
kind: "datatype"
status: "draft"
is_pii: false
name: "INEP school code (Brazil)"
regexp: "^(1[1-7]|2[1-9]|3[1-35]|4[1-3]|5[0-3])\\d{6}$"
categories: ["education"]
country: ["BR"]
langs: ["pt"]
quality: 90
url: "https://registry.apicrafter.io/datatype/br_inep_school_code"
---

# INEP school code (Brazil) (`br_inep_school_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.

The eight-digit code INEP, the Brazilian institute of educational research, gives each school in the school census (Censo Escolar): the first two digits are the IBGE code of the state (26 Pernambuco, 35 São Paulo; br_state_ibge_code). The school census calls it CO_ENTIDADE; the education departments of states and cities write it as inep_escola, codigo_inep or cod_inep. Higher education institutions have e-MEC codes instead (br_emec_institution_code).

- Parent datatype: [`id`](https://registry.apicrafter.io/datatype/id.md)
- Personal data (PII): no
- Categories: Education (education)
- Countries: Brazil (BR)
- Languages: Portuguese (pt)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^(1[1-7]|2[1-9]|3[1-35]|4[1-3]|5[0-3])\d{6}$
```

## Examples

- `26175347` — a municipal school of Recife
- `26121972` — another municipal school of Recife
- `2617534` (invalid example) — seven digits

## Metacrafter rules

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

- `brinepschoolcodebyname` (field, `br/br_education.yaml`)
- `brinepschoolcodevalue` (data, `br/br_education.yaml`)

## Supported by tools

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

## Translations

- pt: Código INEP da escola
- ru: Код школы INEP (Бразилия)

## Sources

- doc: <https://www.gov.br/inep/pt-br/areas-de-atuacao/pesquisas-estatisticas-e-indicadores/censo-escolar>
- doc: <https://inepdata.inep.gov.br/>

## Quality

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

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