v1 end of life: raw.datafornerds.io will be retired on November 1, 2026. Migration guide →

Chassis Types

Endpoint

GET https://api.datafornerds.io/v2/microsoft/chassis-types.json

The SMBIOS chassis type enumeration from the Win32_SystemEnclosure documentation, mapping each numeric form-factor code to its name. These are the values reported by the ChassisTypes property of Win32_SystemEnclosure (and the SMBIOS System Enclosure structure), useful for turning a raw inventory number into a readable form factor such as Laptop or Desktop.

Schema

Field Type Description Example
ID integer SMBIOS chassis type numeric identifier 9
Type string Human-readable chassis type name Laptop

Example response

{
  "metadata": {
    "provider": "DataForNerds",
    "apiVersion": "v2",
    "dataset": "chassis-types",
    "recordCount": 27,
    "sourceUrls": [
      "https://learn.microsoft.com/en-us/windows/win32/cimwin32prov/win32-systemenclosure"
    ],
    "lastModified": "2026-05-30T06:50:00.0000000Z",
    "lastCollected": "2026-05-30T06:50:00.0000000Z"
  },
  "data": [
    { "ID": 3, "Type": "Desktop" },
    { "ID": 9, "Type": "Laptop" },
    { "ID": 30, "Type": "Tablet" }
  ]
}

Code examples

$response = Invoke-RestMethod 'https://api.datafornerds.io/v2/microsoft/chassis-types.json'
$map = @{}
$response.data | ForEach-Object { $map[[int]$_.ID] = $_.Type }

# Resolve the local machine's chassis type
(Get-CimInstance Win32_SystemEnclosure).ChassisTypes | ForEach-Object { $map[[int]$_] }
import requests

data = requests.get("https://api.datafornerds.io/v2/microsoft/chassis-types.json").json()["data"]
chassis = {r["ID"]: r["Type"] for r in data}
print(chassis[9])  # Laptop
curl -s https://api.datafornerds.io/v2/microsoft/chassis-types.json \
  | jq '.data[] | "\(.ID): \(.Type)"'

JSON Schema

/v2/microsoft/schemas/chassis-types.schema.json