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)"'