---
id: "th_school_code"
kind: "datatype"
status: "draft"
is_pii: false
name: "Thai school code (10 digits)"
regexp: "^\\d{10}$"
categories: ["education", "government"]
country: ["TH"]
langs: ["common"]
quality: 75
url: "https://registry.apicrafter.io/datatype/th_school_code"
---

# Thai school code (10 digits) (`th_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.

Ten-digit code of a school or college in the registers of the Thai Ministry of Education, as in 1310016101. The lists of colleges of the Office of the Vocational Education Commission give it in columns named รหัสสถานศึกษา (institution code) and รหัสโรงเรียน (school code); in them the codes start with 13 and the province code (th_province_code).

- Personal data (PII): no
- Categories: Education (education), Government related (government)
- Countries: Thailand (TH)
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^\d{10}$
```

## Examples

- `1310016101` — a public vocational college in Bangkok
- `1310100545` — a private vocational college in Bangkok
- `131001610` (invalid example) — nine digits

## Metacrafter rules

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

- `thschoolcodebyname` (field, `th/th_codes.yaml`)

## Supported by tools

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

## Translations

- th: รหัสสถานศึกษา
- ru: Код учебного заведения Таиланда

## Quality

Score 75/100. Missing: source link, mapping (Wikidata, Schema.org, ...).

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