{
  "id": "device_type",
  "kind": "datatype",
  "status": "draft",
  "name": "Device type (desktop, phone, tablet)",
  "doc": "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": "category",
  "is_pii": false,
  "categories": [
    "internet"
  ],
  "langs": [
    "en"
  ],
  "classification": "categorical",
  "examples": [
    {
      "value": "Desktop",
      "valid": true
    },
    {
      "value": "Phone",
      "valid": true
    },
    {
      "value": "Tablet",
      "valid": true
    },
    {
      "value": "Mobile",
      "valid": true
    },
    {
      "value": "iPhone 12",
      "description": "a device model",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Browser_detection_using_the_user_agent"
    }
  ],
  "translations": {
    "ru": {
      "name": "Тип устройства (компьютер, телефон, планшет)"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "devicetypebyname",
        "type": "field",
        "match": "regex",
        "file": "common/survey.yaml"
      }
    ]
  },
  "quality": {
    "score": 70,
    "missing": [
      "regexp",
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/any/internet/device_type.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/internet/device_type.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/internet/device_type.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/device_type",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/device_type.json"
  }
}