---
id: "gtin"
kind: "datatype"
status: "stable"
is_pii: false
categories: ["industry", "objectids", "gs1"]
langs: ["common"]
quality: 95
url: "http://registry.apicrafter.io/datatype/gtin"
---

# Global Trade Item Number 14 (`gtin`)

Global Trade Item Number (GTIN-14) written as a GS1 element string with Application Identifier (01): '01' followed by the 14 digits of the GTIN. GS1 GTINs identify trade items and are read from barcodes.

- Personal data (PII): no
- Categories: Industry (industry), Objects identifiers (objectids), GS1 standards (gs1)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^01(\d{14})$
```

## Examples

- `0109506000134352` — GS1's example GTIN 09506000134352
- `0109528765000123` — Synthetic value with the GS1 demonstration prefix 952
- `010950600013435` (invalid example) — Thirteen-digit GTIN

## Mappings

- autotype: `gtin`
- gs1_ai: `01`

## Metacrafter rules

8 rules: 2 match the field name, 6 match values.

- `gtin12value` (data, `common/gs1.yaml`)
- `gtin13value` (data, `common/gs1.yaml`)
- `gtin14value` (data, `common/gs1.yaml`)
- `gtin8value` (data, `common/gs1.yaml`)
- `gtinfield` (field, `common/gs1.yaml`)
- `gtinwithai01value` (data, `common/gs1.yaml`)
- `gtinvalue` (data, `common/objects.yaml`)
- `objects_gtinfield` (field, `common/objects.yaml`)

## Supported by tools

- `autotype`
- `greatexpectations`
- `metacrafter`
- `pythonstdnum`

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Global_Trade_Item_Number>
- schema.org: <https://schema.org/gtin14>
- other: <https://www.gs1.org/standards/barcodes/application-identifiers/01>

## Quality

Score 95/100. Missing: translation.

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