---
id: "dz_wilaya_code"
kind: "datatype"
status: "draft"
is_pii: false
name: "Algerian province code (code wilaya)"
regexp: "^(?:0?[1-9]|[1-4]\\d|5[0-8])$"
categories: ["geo", "government"]
country: ["DZ"]
langs: ["fr", "ar"]
quality: 90
url: "https://registry.apicrafter.io/datatype/dz_wilaya_code"
---

# Algerian province code (code wilaya) (`dz_wilaya_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.

Number of an Algerian province: 01 Adrar to 48 Relizane in the alphabetical order of 1984, and 49 to 58 for the provinces created in 2019. It is 16 for Alger and 31 for Oran, and it starts postal codes and vehicle registration numbers. Tables drop the leading zero.

- Personal data (PII): no
- Categories: Geographic identifiers (geo), Government related (government)
- Countries: Algeria (DZ)
- Languages: French (fr), Arabic (ar)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^(?:0?[1-9]|[1-4]\d|5[0-8])$
```

## Examples

- `16` — Alger
- `31` — Oran
- `06` — Béjaïa
- `59` (invalid example) — There are 58 provinces
- `0` (invalid example) — Numbers start at 1

## Metacrafter rules

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

- `dzwilayacodebyname` (field, `dz/dz_geo.yaml`)

## Supported by tools

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

## Translations

- ru: Код вилайета Алжира

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Provinces_of_Algeria>

## Quality

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

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