---
id: "ph_psgc"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["geo"]
country: ["PH"]
langs: ["common"]
quality: 80
url: "http://registry.apicrafter.io/datatype/ph_psgc"
---

# Philippine Standard Geographic Code (PSGC) (`ph_psgc`)

> **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 region, province, city, municipality or barangay of the Philippines assigned by the Philippine Statistics Authority: nine digits in the older form and ten digits in the current one.

- Personal data (PII): no
- Categories: Geographic identifiers (geo)
- Countries: Philippines (PH)
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^(?:\d{9}|\d{10})$
```

## Examples

- `175307000` — Busuanga
- `129804000` — Cotabato City
- `071246023` — Humayhumay

## Mappings

- wikidata: `P988`

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Philippine_Standard_Geographic_Code>
- doc: <https://psa.gov.ph/classification/psgc>
- wikidata: <https://www.wikidata.org/wiki/Property:P988>

## Quality

Score 80/100. Missing: negative example, translation, detector coverage.

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