{
  "openapi": "3.0.3",
  "info": {
    "title": "MacVendorCheck MAC Vendor Lookup API",
    "description": "Free MAC address vendor lookup against the IEEE OUI registry. Accepts any common MAC notation. Keyless use is limited per IP per day; a free IPNOVA API key raises the limit and works across all IPNOVA APIs.",
    "version": "1.0.0",
    "contact": { "url": "https://macvendorcheck.com/mac-address-lookup-api" }
  },
  "servers": [{ "url": "https://macvendorcheck.com" }],
  "paths": {
    "/api/mac/{mac}": {
      "get": {
        "summary": "Look up the vendor of a MAC address",
        "operationId": "macLookup",
        "parameters": [
          {
            "name": "mac",
            "in": "path",
            "required": true,
            "description": "MAC address or prefix in any common notation (colons, dashes, dots or bare hex)",
            "schema": { "type": "string", "example": "44:38:39:ff:ef:57" }
          }
        ],
        "security": [{}, { "apiKey": [] }],
        "responses": {
          "200": {
            "description": "Vendor found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": { "type": "boolean", "example": true },
                    "mac": { "type": "string", "example": "44:38:39:FF:EF:57" },
                    "oui": { "type": "string", "example": "443839" },
                    "vendor": { "type": "string", "example": "Cumulus Networks, inc" },
                    "registry": { "type": "string", "example": "MA-L" },
                    "country": { "type": "string", "example": "US" },
                    "page": { "type": "string" },
                    "attribution": { "type": "string" }
                  }
                }
              }
            }
          },
          "400": { "$ref": "#/components/responses/Error" },
          "404": { "$ref": "#/components/responses/Error" },
          "429": { "$ref": "#/components/responses/Error" }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "apiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Api-Key",
        "description": "Free IPNOVA API key from https://api.ipnova.com; one key works on every IPNOVA API"
      }
    },
    "responses": {
      "Error": {
        "description": "Error with a machine-readable reason (invalid_input, not_found, rate_limit, daily_limit)",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": { "type": "boolean", "example": false },
                "error": { "type": "boolean", "example": true },
                "reason": { "type": "string", "example": "not_found" },
                "message": { "type": "string" },
                "docs": { "type": "string" }
              }
            }
          }
        }
      }
    }
  }
}
