---
id: "device_type"
kind: "datatype"
status: "draft"
is_pii: false
name: "Device type (desktop, phone, tablet)"
categories: ["internet"]
langs: ["en"]
quality: 70
url: "https://registry.apicrafter.io/datatype/device_type"
---

# Device type (desktop, phone, tablet) (`device_type`)

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

Class of the device a person used to open a web page, an application or a survey: Desktop, Phone (or Mobile, Smartphone), Tablet, and sometimes TV, Console or Bot. Web analytics and survey platforms derive it from the user agent (user_agent) and keep it beside the browser (web_browser) and the operating system (operating_system), in fields named DeviceType, device_category or device. The model of the device (iPhone 12) is not this type.

- Parent datatype: [`category`](https://registry.apicrafter.io/datatype/category.md)
- Personal data (PII): no
- Categories: Internet (internet)
- Countries: global
- Languages: English (en)
- Classification: categorical

## Examples

- `Desktop`
- `Phone`
- `Tablet`
- `Mobile`
- `iPhone 12` (invalid example) — a device model

## Metacrafter rules

1 rules: 1 match the field name, 0 match values.

- `devicetypebyname` (field, `common/survey.yaml`)

## Supported by tools

- [`metacrafter`](https://registry.apicrafter.io/tool/metacrafter.md)

## Translations

- ru: Тип устройства (компьютер, телефон, планшет)

## Sources

- doc: <https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Browser_detection_using_the_user_agent>

## Quality

Score 70/100. Missing: regexp, mapping (Wikidata, Schema.org, ...).

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