---
title: USBDevice.vendorId
slug: Web/API/USBDevice/vendorID
tags:
  - API
  - Property
  - Reference
  - USB
  - USBDevice
  - WebUSB
  - WebUSB API
  - vendorID
browser-compat: api.USBDevice.vendorId
---
{{SeeCompatTable}}{{APIRef("WebUSB API")}}

The **`vendorId`** read only property of the
{{domxref("USBDevice")}} interface is the official usg.org-assigned vendor ID.

## Syntax

```js
var serialNumber = USBDevice.vendorId
```

### Value

The official usg.org-assigned vendor ID.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
