# MAC Address Lookup API

> MAC Address Lookup validates any MAC address and converts it across standard colon, dash, dot, and raw hex formats. Add addressing=true to read whether it is unicast, multicast or broadcast, and on paid plans whether it is universal or locally administered (the mark of a randomized private address). On paid plans it also becomes a MAC vendor lookup API, adding the device hardware vendor and OUI identifier.

**Endpoint:** `GET https://api.apiverve.com/v1/macaddresslookup`  
**Category:** Networking  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/macaddresslookup

## Overview

Pass a MAC address in any common notation. The endpoint checks validity, normalizes the address, and produces colon, dash, Cisco dot, and delimiter-free raw string representations. If an address is invalid, the formats object returns null. Set addressing=true to read the address type from its first octet: on paid plans whether it is unicast, multicast or broadcast and whether it is universally assigned or locally administered, as the randomized private addresses used by phones and laptops are. Paid plans also return the hardware vendor and registered OUI prefix, with records refreshed weekly.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/macaddresslookup?mac=00-B0-D0-63-C2-26&addressing=true" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `mac` | string | Yes | The MAC address for which you want to get the data (e.g., 00-B0-D0-63-C2-26) |
| `addressing` | boolean | No | Include the address type decoded from the first octet: unicast, multicast or broadcast, and universal or locally administered. default false |

## Response fields

- `mac` — string · The MAC address in standard colon-separated format
- `isValid` — boolean · Whether the input is a well-formed 48-bit MAC address
- `vendor` — string · Manufacturer of the device with this MAC address · (premium)
- `oui` — string · Organizationally Unique Identifier (manufacturer code) · (premium)
- `formats` — object · The MAC address in common notations (null when the input is not a valid MAC address)
  - `formats.colon` — string · MAC address formatted with colons (00:B0:D0:63:C2:26)
  - `formats.dash` — string · MAC address formatted with dashes (00-B0-D0-63-C2-26)
  - `formats.dot` — string · MAC address in Cisco dotted notation (00B0.D063.C226)
  - `formats.raw` — string · MAC address formatted without separators (00B0D063C226)
- `addressing` — object · Address type decoded from the first octet (only with addressing=true; null when the input is not a valid MAC address)
  - `addressing.castType` — string · unicast, multicast or broadcast (FF:FF:FF:FF:FF:FF) · (premium)
  - `addressing.isMulticast` — boolean · Whether the I/G bit is set, so the frame goes to a group rather than one interface (true for broadcast too) · (premium)
  - `addressing.isBroadcast` — boolean · Whether this is the all-ones broadcast address · (premium)
  - `addressing.administration` — string · universal (assigned by the manufacturer from an IEEE OUI) or local (set by software) · (premium)
  - `addressing.isLocallyAdministered` — boolean · Whether the U/L bit is set. Randomized private addresses on phones and laptops, and many virtual machines, use locally administered addresses, which never match a manufacturer OUI, so vendor is null for them · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "mac": "00:B0:D0:63:C2:26",
    "isValid": true,
    "vendor": "Dell Inc.",
    "oui": "00B0D0",
    "formats": {
      "colon": "00:B0:D0:63:C2:26",
      "dash": "00-B0-D0-63-C2-26",
      "dot": "00B0.D063.C226",
      "raw": "00B0D063C226"
    },
    "addressing": {
      "castType": "unicast",
      "isMulticast": false,
      "isBroadcast": false,
      "administration": "universal",
      "isLocallyAdministered": false
    }
  }
}
```

## Use cases

- **Network Asset Inventory** — When scanning local subnets, parse raw ARP table entries into uniform colon notation to catalog connected hardware.
- **Rogue Device Detection** — Flag unrecognized hardware on corporate Wi-Fi by checking incoming MAC prefixes against approved vendor lists on paid tiers.
- **Switch Configuration Generation** — Sysadmins convert colon-delimited MAC addresses into Cisco dotted format to paste directly into port security ACL rules.
- **Packet Capture Inspection** — Security analysts normalize hex strings extracted from PCAP network traces into dashed or colon formats for log correlation.

## SDKs

- **npm** — `npm install @apiverve/macaddresslookup` (https://www.npmjs.com/package/@apiverve/macaddresslookup)
- **NuGet** — `dotnet add package APIVerve.API.MACAddressLookup` (https://www.nuget.org/packages/APIVerve.API.MACAddressLookup)
- **Source** — https://github.com/apiverve/macaddresslookup-api

## More

- Full reference: https://docs.apiverve.com/ref/macaddresslookup
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
