---
id: "unspsc"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["industry", "ecommerce"]
langs: ["common"]
quality: 85
url: "http://registry.apicrafter.io/datatype/unspsc"
---

# United Nations Standard Products and Services Code (UNSPSC) (`unspsc`)

> **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 from the UNSPSC taxonomy of products and services used in e-commerce and procurement. It has eight digits: two each for segment, family, class and commodity. Upper levels have their own codes ending in 00. An optional ninth and tenth digit give the business function, such as retail or wholesale.

- Personal data (PII): no
- Categories: Industry (industry), E-commerce (ecommerce)
- Countries: global
- Languages: Common to most languages (common)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^[1-9]\d{7}(?:\d{2})?$
```

## Examples

- `10101501` — Commodity: cats
- `10101500` — Class: livestock
- `10100000` — Family: live animals
- `25101703` — Commodity: ambulances
- `1010150` (invalid example) — Seven digits

## Mappings

- wikidata: `P2167`

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/UNSPSC>
- wikidata: <https://www.wikidata.org/wiki/Property:P2167>

## Quality

Score 85/100. Missing: translation, detector coverage.

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