{
  "openapi": "3.1.0",
  "info": {
    "title": "Disposable Email Checker API",
    "version": "1.0.0",
    "description": "Check an email or domain against 12,000 disposable mail providers, subdomains included.\n\nDetect disposable and temporary email providers. Checks an email address or bare domain against a regularly refreshed blocklist of 8,700+ disposable domains, including subdomain matches — ideal for signup anti-abuse.",
    "contact": {
      "name": "Data and APIs",
      "url": "https://dataandapis.com/contact"
    },
    "termsOfService": "https://dataandapis.com/terms-of-service",
    "license": {
      "name": "Data and APIs Terms of Service",
      "url": "https://dataandapis.com/terms-of-service"
    },
    "x-logo": {
      "url": "https://dataandapis.com/images/disposable-email.webp"
    }
  },
  "externalDocs": {
    "description": "Documentation, live tester and pricing",
    "url": "https://dataandapis.com/apis/disposable-email-checker"
  },
  "servers": [
    {
      "url": "https://api-disposable-email.dataandapis.com"
    }
  ],
  "tags": [
    {
      "name": "Tools",
      "description": "Disposable Email Checker API belongs to the Tools category of the Data and APIs catalog."
    }
  ],
  "paths": {
    "/v1/check": {
      "get": {
        "operationId": "checkDisposable",
        "summary": "Check Disposable",
        "description": "Check Disposable endpoint of the Disposable Email Checker API. Costs 1 token per call.",
        "externalDocs": {
          "url": "https://dataandapis.com/apis/disposable-email-checker/check-disposable"
        },
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "mailinator.com"
          },
          {
            "name": "email",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "foo@mailinator.com"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "ok": true,
                  "input": "foo@mailinator.com",
                  "domain": "mailinator.com",
                  "is_disposable": true,
                  "matched_blocklist_domain": "mailinator.com",
                  "list_size": 8742
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key"
          },
          "402": {
            "description": "Subscription past due; the response carries a payment_url"
          },
          "429": {
            "description": "Monthly token allowance exhausted"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Api-Key",
        "description": "Create a free key at https://dataandapis.com/sign-up. 500 tokens a month on the Free plan; this API costs 1 token per call."
      }
    }
  },
  "security": [
    {
      "ApiKey": []
    }
  ]
}