> For the complete documentation index see https://domscan.net/llms.txt. Markdown versions of every docs page are available by appending .md to the page URL.

Source: https://domscan.net/docs/mac-lookup

# MAC Address Lookup

DomScan API: Identify network device manufacturers from MAC addresses (OUI lookup). Supports both EUI-48 and EUI-64 addresses in any common format.

Identify network device manufacturers from MAC addresses (OUI lookup). Supports both EUI-48 and EUI-64 addresses in any common format. Returns vendor name, organization, address, country, and device type classification. Useful for network inventory, security auditing, and device identification.

GET /v1/mac

#### Query parameters

| Parameter | Type | Description |
| --- | --- | --- |
| mac required | string | MAC address in any format: `44:38:39:FF:EF:57` ((colon)) `44-38-39-FF-EF-57` ((dash)) `443839FFEF57` ((plain)) |

#### Response fields

| Field | Description |
| --- | --- |
| `mac` | Normalized MAC address |
| `type` | Address type (eui-48 or eui-64) |
| `oui` | Organizationally Unique Identifier (first 3 bytes) |
| `device_id` | Network Interface Controller ID (last 3 bytes) |
| `flags` | multicast, locally_administered, broadcast |
| `vendor.name` | Manufacturer/vendor name |
| `vendor.organization` | Full organization name |
| `vendor.country` | Country of registration |
| `vendor.device_type` | Device category (if known) |

#### Use cases

- Network device inventory

- Identify rogue devices on network

- Asset management and auditing

- IoT device classification

#### Example request

```bash
curl -H "X-API-Key: your-api-key" "https://domscan.net/v1/mac?mac=44:38:39:ff:ef:57"
```

```python
import requests

domscan = requests.Session()
domscan.headers.update({"X-API-Key": "your-api-key"})

response = domscan.get(
    "https://domscan.net/v1/mac",
    params={"mac": "44:38:39:ff:ef:57"}
)
data = response.json()

if data['vendor']['found']:
    print(f"Vendor: {data['vendor']['name']}")
    print(f"Country: {data['vendor']['country']}")
else:
    print("Unknown vendor (not in IEEE registry)")
```

#### Example response

```json
{
  "mac": "44:38:39:FF:EF:57",
  "input": "44:38:39:ff:ef:57",
  "type": "eui-48",
  "oui": "44:38:39",
  "device_id": "FF:EF:57",
  "flags": {
    "multicast": false,
    "locally_administered": false,
    "broadcast": false
  },
  "vendor": {
    "name": "Cumulus Networks, Inc",
    "found": true,
    "organization": "Cumulus Networks, Inc",
    "address": "650 Castro Street, Suite 120-245",
    "country": "US",
    "device_type": "networking",
    "source": "cache",
    "cached": true,
    "cache_age_s": 3600,
    "checked_at": "2025-01-15T12:00:00Z"
  },
  "meta": {
    "served_by": "pop=SJC country=US",
    "latency_ms": 12
  }
}
```

GET /v1/mac/info Credits: 0

#### Response fields

| Field | Type |
| --- | --- |
| `endpoint` | string |
| `description` | string |
| `parameters` | object |
| `example_request` | string |
| `example_response` | object |

#### Example request

```bash
curl -H "X-API-Key: $DOMSCAN_API_KEY" "https://domscan.net/v1/mac/info"
```

```javascript
const response = await fetch("https://domscan.net/v1/mac/info", {
  headers: { "X-API-Key": process.env.DOMSCAN_API_KEY },
});
const data = await response.json();
console.log(data);
```

```python
import os
import requests

response = requests.get(
    "https://domscan.net/v1/mac/info",
    headers={"X-API-Key": os.environ["DOMSCAN_API_KEY"]},
)
print(response.json())
```

```go
package main

import (
	"fmt"
	"io"
	"net/http"
	"os"
)

func main() {
	req, err := http.NewRequest(http.MethodGet, "https://domscan.net/v1/mac/info", nil)
	if err != nil {
		panic(err)
	}
	req.Header.Set("X-API-Key", os.Getenv("DOMSCAN_API_KEY"))

	resp, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer resp.Body.Close()

	data, err := io.ReadAll(resp.Body)
	if err != nil {
		panic(err)
	}
	fmt.Println(resp.Status, string(data))
}
```

```ruby
require "json"
require "net/http"

uri = URI("https://domscan.net/v1/mac/info")
request = Net::HTTP::Get.new(uri)
request["X-API-Key"] = ENV.fetch("DOMSCAN_API_KEY")

response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http|
  http.request(request)
end
puts JSON.pretty_generate(JSON.parse(response.body))
```

#### Example response

```json
{
  "endpoint": "/v1/mac",
  "description": "Lookup MAC address metadata and vendor information.",
  "parameters": {
    "mac": {
      "type": "string",
      "required": true,
      "description": "MAC address string in any common format",
      "example": "44:38:39:ff:ef:57"
    }
  },
  "example_request": "/v1/mac?mac=44:38:39:ff:ef:57",
  "example_response": {
    "mac": "44:38:39:FF:EF:57",
    "type": "eui-48",
    "oui": "44:38:39",
    "device_id": "FF:EF:57",
    "flags": {
      "multicast": false,
      "locally_administered": false,
      "broadcast": false
    },
    "vendor": {
      "name": "Cumulus Networks, Inc",
      "found": true,
      "source": "cache",
      "cached": true
    }
  }
}
```

#### HTTP status codes

- `200` OK
- `401` Unauthorized
- `429` Too Many Requests
