---
id: "osm_uid"
kind: "datatype"
status: "draft"
is_pii: true
categories: ["pii", "useraccounts"]
langs: ["common"]
quality: 70
url: "http://registry.apicrafter.io/datatype/osm_uid"
---

# OpenStreetMap user ID (`osm_uid`)

> **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.

Numeric ID of an OpenStreetMap account. Unlike the display name (osm_user) it never changes. The OpenStreetMap API returns it as the uid attribute of each element version, and osm2pgsql writes it to an osm_uid column.

- Parent datatype: `userid`
- Personal data (PII): yes
- Categories: Personally identifiable information (pii), User accounts in products and services (useraccounts)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^[1-9][0-9]{0,18}$
```

## Mappings

- wikidata: `P8754`

## Translations

- fr: Identifiant d'utilisateur OpenStreetMap
- ru: Идентификатор пользователя OpenStreetMap

## Sources

- wikidata: <https://www.wikidata.org/wiki/Property:P8754>
- doc: <https://wiki.openstreetmap.org/wiki/Elements>

## Quality

Score 70/100. Missing: examples, negative example, detector coverage.

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