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

# Mastodon address (`mastodon_address`)

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

Address of an account on Mastodon or another fediverse server: user@server, sometimes written with a leading @.

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

## Detection

Regular expression (Python `re`):

```
^@?[A-Za-z0-9_](?:[A-Za-z0-9_.]*[A-Za-z0-9_])?@(?:[A-Za-z0-9-]+\.)+[A-Za-z]{2,}$
```

## Examples

- `libreoffice@fosstodon.org` — LibreOffice

## Mappings

- bioregistry: `mastodon`
- dpv: `pd:Username`
- wikidata: `P4033`

## Sources

- wikidata: <https://www.wikidata.org/wiki/Property:P4033>

## Quality

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

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