---
id: "jp_prefecture_code"
kind: "pattern"
status: "draft"
is_pii: false
categories: ["geo"]
country: ["JP"]
quality: 100
url: "http://registry.apicrafter.io/datatype/jp_prefecture_code"
---

# Japanese prefecture code (JIS X 0401) (`jp_prefecture_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.

Two-digit code of a Japanese prefecture from JIS X 0401, from 01 (Hokkaido) to 47 (Okinawa), for example 13 for Tokyo. ISO 3166-2:JP uses the same number after JP-.

- Pattern of: `prefecture`
- Personal data (PII): no
- Categories: Geographic identifiers (geo)
- Countries: Japan (JP)
- Classification: identifier

## Detection

Regular expression (Python `re`):

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

## Examples

- `01` — Hokkaido
- `13` — Tokyo
- `27` — Osaka
- `48` (invalid example)

## Mappings

- fta: `STATE_PROVINCE.PREFECTURE_CODE_JA`

## Supported by tools

- `fta`

## Translations

- ru: Код префектуры Японии (JIS X 0401)

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Prefectures_of_Japan>
- other: <https://github.com/tsegall/fta/blob/main/SemanticTypes.md>

## Quality

Score 100/100.

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