Disposable Email Detection API

API to check if email addresses are disposable and validate their MX records

Endpoints

GET /api/detect

Batch email validation via query parameters

Parameters:

Example:

/api/[email protected],[email protected]

POST /api/detect

Single or batch email validation via JSON body

Single email body:

{"email": "[email protected]"}

Batch emails body:

{"emails": ["[email protected]", "[email protected]"]}

GET /health

Health check endpoint - Returns API status and timestamp

GET /api/cache-info

Get information about the disposable domains cache

Returns cache size, last update time, age, and staleness status

POST /api/refresh-cache

Force refresh the disposable domains cache from GitHub

Useful for manual updates or when cache becomes stale

Response Format

Single Email Response

Batch Email Response