---
id: "us_nyc_dbn"
kind: "datatype"
status: "draft"
is_pii: false
name: "New York City school code (DBN, district borough number)"
regexp: "^\\d{2}[KMQRX]\\d{3}$"
categories: ["education", "identifiers"]
country: ["US"]
langs: ["en"]
quality: 90
url: "https://registry.apicrafter.io/datatype/us_nyc_dbn"
---

# New York City school code (DBN, district borough number) (`us_nyc_dbn`)

> **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 school of the New York City Department of Education: the two-digit district, a borough letter (M Manhattan, X Bronx, K Brooklyn, Q Queens, R Staten Island) and the three-digit school number, such as 01M015. Districts 01 to 32 are the community school districts; 75, 79 and 84 are citywide districts.

- Personal data (PII): no
- Categories: Education (education), Universal unique identifiers (identifiers)
- Countries: United States (US)
- Languages: English (en)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^\d{2}[KMQRX]\d{3}$
```

## Examples

- `01M015` — District 1, Manhattan, school 015
- `24Q600` — District 24, Queens
- `02M630`
- `01A015` (invalid example) — A is not a borough letter
- `1M015` (invalid example) — The district has two digits

## Metacrafter rules

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

- `usnycdbnbyname` (field, `us/us_nyc.yaml`)
- `usnycdbnvalue` (data, `us/us_nyc.yaml`)

## Supported by tools

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

## Translations

- ru: Код школы Нью-Йорка (DBN)

## Sources

- doc: <https://data.cityofnewyork.us/Education/2019-2020-School-Locations/wg9x-4ke6>

## Quality

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

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