API Documentation V2

The MAC Lookup Rest API is available for free and provides a powerful tool for retrieving detailed information about any MAC address or OUI (Organizationally Unique Identifier).

With this API, you can seamlessly integrate MAC address and OUI lookup functionality into your applications, services, or systems.

Key features of our MAC Lookup Rest API include:

  • High Volume Support: Designed to handle a high volume of requests efficiently, our API is suitable for projects of any scale.
  • Low Latency: We prioritize low latency to ensure that you get fast responses to your queries, allowing your applications to perform at their best.
  • Rich Data: Our database contains extensive information about MAC addresses and OUIs, including vendor details, address types, and more.
  • User-Friendly: The API is easy to use and integrate into your applications, with comprehensive documentation and support available.

This documentation is intended for developers who want to query MACLookup API.

The same contract is published as an OpenAPI document, for tools and agents that read a specification rather than a page.

Available API Endpoints
  • Get full info of a MAC
    • Request
    • Response
    • Example
  • Get Company name by MAC
    • Request
    • Example

Response code

Response codeDescription
200 (OK)Indicates that the client’s request was accepted successfully.
400 (Bad Request)It is the generic client-side error status, used when no other 4xx error code is appropriate. Errors can be like malformed request syntax, invalid request message parameters, or deceptive request routing etc. The client SHOULD NOT repeat the request without modifications.
401 (Unauthorized)Bad API Key.
429 (Too Many Requests)The user has sent too many requests in a given amount of time. See Rate limits for more information

Get full info

Retrieve full information by MAC address.

To run a query, you must submit a request, specify a data format and some optional topics, and receive a formatted response in one of the following formats:
  • JSON
  • JSONP
  • XML

This endpoint accepts the entire MAC address or the first six characters. Accepted separators are listed with the request fields below.
A prefix no registrant holds is not an error: the response is a 200 with found set to false and every other field empty.

Request

GEThttps://api.maclookup.app/v2/macs/{mac_address}
FieldDescription
{mac_address}MAC address or MAC prefix, with at least 6 hexadecimal digits. Separators (":", "-", ".", " ") are optional and may be mixed, and input is case-insensitive. Valid MAC addresses are:
  • - 001A2B or 00:1A:2B or 00-1A-2B or 001A.2B
  • - 001A2B3C4D5E or 00:1A:2B:3C:4D:5E or 00-1A-2B-3C-4D-5E or 001A.2B3C.4D5E or 00.1A.2B.3C.4D.5E
Longer input is accepted; only the first 6 hexadecimal digits are matched.
Query parameterDescriptionOptional
formatOutput format.
Default output is json
Valid values:
  • json
  • jsonp
  • xml
Y
callbackfunction which should be executed when the request returns.
If it's not set the default response is "_cb"
Y
apiKeyDeprecated API keys are no longer issued. Existing keys remain valid until April 2027. More info.Y

Response

Query parameter

FieldDescription
successIf the request is valid status is true".
foundWhen a MAC has a vendor, found is true
macPrefixMAC prefix
companyCompany Name
addressCompany Address
blockStartStart MAC range
blockEndEnd MAC range
blockSizeNumber of possible unique MAC for this prefix
blockTypeAssignment Type
MA-L: MAC Address Block Large (previously named OUI). Number of address 2^24 (~16 Million)
MA-M: MAC Address Block Medium. Number of address 2^20 (~1 Million)
MA-S: MAC Address Block Small (previously named OUI-36, encompasses IAB Assignments). Number of address 2^12 (4096)
CID: Company Identifier. This prefix will not be used for globally unique applications. Number of address 2^24 (~16 Million)
updatedWhen MAC information was last updated. Format (YYYY-MM-DD)
isRandThis MAC can be transmitted when a device is not associated with an access point. In this case, it can be considered randomized
isPrivateThe company prevents their name and address from showing up in the public listing

Example

Example:
GEThttps://api.maclookup.app/v2/macs/00:00:00:00:00:00?apiKey=abcdefgh123456780
CodeResponse
200

           {
             "success": true,aaaaaaaaaa
             "found": true,
             "macPrefix": "000000",
             "company": "XEROX CORPORATION",
             "address": "M/S 105-50C, WEBSTER NY 14580, US",
             "country": "US",
             "blockStart": "000000000000",
             "blockEnd": "000000FFFFFF",
             "blockSize": 16777215,
             "blockType": "MA-L",
             "updated": "2015-11-17",
             "isRand": false,
             "isPrivate": false
           }
400

           {
                "success": false,
              "error": "MAC must be greater than 5 chars",
              "errorCode": 101,
              "moreInfo": "https://maclookup.app/api-v2/documentation"
           }
401

           {
                "success": false,
              "error": "Unauthorized",
              "errorCode": 401,
              "moreInfo": "https://maclookup.app/api-v2/profiles"
           }
429

           {
                "success": false,
              "error": "Too Many Requests",
              "errorCode": 429,
              "moreInfo": "https://maclookup.app/api-v2/rate-limits"
                }

Get Company name

Retrieve company name by MAC address.

This endpoint accepts the entire MAC address or the first six characters, with the separators listed with the request fields below. If it is not found, it returns "*NO COMPANY*.

Request

GEThttps://api.maclookup.app/v2/macs/{mac_address}/company/name
FieldDescription
{mac_address}MAC address or MAC prefix, with at least 6 hexadecimal digits. Separators (":", "-", ".", " ") are optional and may be mixed, and input is case-insensitive. Valid MAC addresses are:
  • - 001A2B or 00:1A:2B or 00-1A-2B or 001A.2B
  • - 001A2B3C4D5E or 00:1A:2B:3C:4D:5E or 00-1A-2B-3C-4D-5E or 001A.2B3C.4D5E or 00.1A.2B.3C.4D.5E
Longer input is accepted; only the first 6 hexadecimal digits are matched.
Query parameterDescriptionOptional
apiKeyDeprecated API keys are no longer issued. Existing keys remain valid until April 2027. More info.Y

Example

GEThttps://api.maclookup.app/v2/macs/00:00:00:00:00:00/company/name
CodeResponseNote
200XEROX CORPORATION
200*PRIVATE*The company prevents their name and address from showing up in the public listing
200*NO COMPANY*The MAC does not belong to any company
400MAC must be greater than 5 chars
401Bad APIKey - Unauthorized - more info: https://maclookup.app/api-v2/profiles
409Too Many Requests - more info: https://maclookup.app/api-v2/rate-limits