Skip to content

Fast Validation

The fast validation endpoint provides optimized real-time validation with minimal checks, perfect for form validation and instant feedback scenarios where speed is critical.

GET

https://valid-mint-e-mail-domain-validator.p.rapidapi.com/v1/fast-validate

ParameterTypeRequiredDescription
domainstringDomain to validate (e.g., “example.com” or “user@example.com”)
{
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"domain": "gmail.com",
"is_valid": true,
"is_disposable": false
}
FieldTypeDescription
request_idstringUnique request identifier
domainstringValidated domain
is_validbooleanBasic format validation result
is_disposablebooleanWhether domain is disposable

Domain Format

✅ RFC-compliant validation

Checks domain format, length, and character validity

Disposable Detection

✅ 60k+ disposable domains

Instant lookup using optimized filters

Not Included

⏭️ For comprehensive checks:

DNS, MX records, SPF/DKIM/DMARC analysis available in /v1/validate

OperationTime
Domain parsing<1ms
Format validation<1ms
Disposable lookup<1ms
Total response~10-20ms
const https = require('https');
const options = {
method: 'GET',
hostname: 'valid-mint-e-mail-domain-validator.p.rapidapi.com',
port: null,
path: '/v1/fast-validate?domain=gmail.com',
headers: {
'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY',
'x-rapidapi-host': 'valid-mint-e-mail-domain-validator.p.rapidapi.com'
}
};
const req = https.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();

Perfect for validating email inputs as users type:

class RealTimeEmailValidator {
constructor(apiKey) {
this.apiKey = apiKey;
this.baseUrl = 'https://valid-mint-e-mail-domain-validator.p.rapidapi.com';
this.cache = new Map();
this.debounceTimeout = null;
}
async validateEmail(email) {
// Check cache first
if (this.cache.has(email)) {
return this.cache.get(email);
}
try {
const response = await fetch(
`${this.baseUrl}/v1/fast-validate?domain=${encodeURIComponent(email)}`,
{
headers: {
'x-rapidapi-key': this.apiKey,
'x-rapidapi-host': 'valid-mint-e-mail-domain-validator.p.rapidapi.com'
}
}
);
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
const result = await response.json();
// Cache result for 5 minutes
this.cache.set(email, result);
setTimeout(() => this.cache.delete(email), 5 * 60 * 1000);
return result;
} catch (error) {
console.error('Validation error:', error);
return { error: error.message };
}
}
setupFormValidation(inputElement, errorElement) {
inputElement.addEventListener('input', (e) => {
const email = e.target.value;
// Clear previous timeout
if (this.debounceTimeout) {
clearTimeout(this.debounceTimeout);
}
// Debounce API calls
this.debounceTimeout = setTimeout(async () => {
if (email && email.includes('@')) {
const result = await this.validateEmail(email);
if (result.error) {
this.showError(errorElement, 'Validation failed. Please check your connection.');
} else if (!result.is_valid) {
this.showError(errorElement, 'Invalid email format');
} else if (result.is_disposable) {
this.showError(errorElement, 'Disposable email addresses are not allowed');
} else {
this.clearError(errorElement);
}
} else {
this.clearError(errorElement);
}
}, 300); // 300ms debounce
});
}
showError(errorElement, message) {
errorElement.textContent = message;
errorElement.style.display = 'block';
errorElement.style.color = 'red';
}
clearError(errorElement) {
errorElement.style.display = 'none';
}
}
// Usage
const validator = new RealTimeEmailValidator('YOUR_RAPIDAPI_KEY');
const emailInput = document.getElementById('email');
const errorDiv = document.getElementById('email-error');
validator.setupFormValidation(emailInput, errorDiv);
{
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"domain": "gmail.com",
"is_valid": true,
"is_disposable": false
}
{
"request_id": "550e8400-e29b-41d4-a716-446655440001",
"domain": "10minutemail.com",
"is_valid": true,
"is_disposable": true
}
{
"request_id": "550e8400-e29b-41d4-a716-446655440002",
"domain": "invalid-domain",
"is_valid": false,
"is_disposable": false
}
{
"error": "Invalid domain format",
"error_code": "INVALID_DOMAIN",
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"timestamp": "2024-01-20T10:30:00Z"
}
{
"error": "Rate limit exceeded. Please retry after 3600 seconds.",
"error_code": "RATE_LIMIT_EXCEEDED",
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"timestamp": "2024-01-20T10:30:00Z"
}

Debounce Input

Add 200-300ms debounce to avoid excessive API calls while users are typing

Cache Results

Cache validation results locally for repeated checks of the same domain

Handle Errors Gracefully

Always implement fallback validation when API calls fail

Progressive Enhancement

Use fast validation for instant feedback, then full validation on form submit

ScenarioRecommended EndpointReason
Real-time form validationFast ValidationSub-20ms response for instant feedback
Email signup formsFast ValidationQuick disposable detection
Email list cleaningFull ValidationComprehensive validation with risk scoring
Final verificationFull ValidationComplete DNS and authentication checks