API

The power behind our MAC Vendor API is it's simplicity. Get started instantly, no registration required.

Quick Start

No registration or API key is required for up to 50,000 requests per day (for planned higher volume please contact us). All that is required is a simple HTTP GET request. If we find a match, we'll return the vendor name as a string. If no match is found we'll return a 404.

  • cURL
  • PHP
  • NPM
  • Ruby
curl 'http://api.macvendors.com/FC:FB:FB:01:FA:21'
<?php
    $url = "http://api.macvendors.com/FC:FB:FB:01:FA:21";
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

    $vendor = curl_exec($ch);

    if($response) {
        echo $response;
    } else {
        echo "Not Found";
    }
var request = require('request');
request('http://api.macvendors.com/FC:FB:FB:01:FA:21', function (error, response, vendor) {
  if (!error && response.statusCode == 200) {
    console.log(vendor)
  }
})
require 'open-uri'

open 'http://api.macvendors.com/FC:FB:FB:01:FA:21' do |vendor|
  puts vendor.read if vendor.status.first == '200'
end

Introduction

Welcome to the MAC Vendors API! Our goal is to make our data accessible to anyone that wants to use it. In order to achieve that goal, we wanted to make our API as easy to use as possible.

Accepted MAC Address Formats

Send your MAC address in any shape or form and our server should be able to handle it. Separated by periods? Dashes? Slashes? Separated every 2 characters? 4 characters? Not a problem.

Generally, MAC addresses will come in the following shape or form:

  • 00-11-22-33-44-55
  • 00:11:22:33:44:55
  • 00.11.22.33.44.55
  • 001122334455
  • 0011.2233.4455