Comprehensive email validation and fraud detection
Email Intelligence API
The Email Intelligence API is designed to provide an extensive analysis of email addresses, helping businesses and developers gain deeper insights into the emails they encounter.
This API validates email addresses, checks their domain's DNS records, detects disposable or temporary email addresses, and determines if the domain belongs to a government or educational institution with enterprise-grade accuracy.
Free tier included, no credit card required. One key works across every API.
- Free calls / month
- 200
- Validation Accuracy
- 99.2%
- Data Points
- 25+
- Response Time
- <300ms
200 free calls on the free plan
Key features
- Website Information: Domain validation and SSL verification
- SMTP Provider Details: Mail exchange provider information
- DNS Record Analysis: Comprehensive DNS record verification
- Domain Classification: Government and educational domain detection
- Disposable Email Detection: Identify temporary email addresses
- Email Validation: Advanced format and domain validation
Built for
- Email validation and verification systems
- Fraud prevention and risk assessment
- Lead quality scoring and filtering
- Customer onboarding optimization
- Spam mitigation and content filtering
- Compliance and security auditing
- Marketing campaign optimization
- User registration enhancement
Try it
Build the request for your data
Edit the parameters below and see the exact request and curl command you'd send. No key required to preview.
Parameters
GET /v1/[email protected] HTTP/1.1
Host: api.apicodex.io
X-Api-Key: YOUR_API_KEY
{
"status": true,
"data": {
"email": "[email protected]",
"domain": "gmail.com",
"alias": {
"main": "test",
"alias": "alias"
},
"is_subdomain": false,
"is_valid": true,
"is_temp_email": false,
"is_gov": false,
"is_edu": false,
"has_valid_mx_records": true,
"records": {
"mx": [
{
"exchange": "alt1.aspmx.l.google.com",
"priority": 5
}
],
"spf": "v=spf1 include:_spf.google.com ~all",
"dmarc": "v=DMARC1; p=none; rua=mailto:[email protected]"
},
"smtp": {
"provider": "alt1.aspmx.l.google.com",
"addresses": [
{
"exchange": "alt1.aspmx.l.google.com",
"priority": 5
}
]
},
"email_provider": {
"name": "google",
"provider": "Google"
},
"website": {
"url": "http://gmail.com",
"is_valid": true,
"ssl": true
},
"deliverability_score": 85,
"risk_indicator": "low"
}
}
Documentation
Email Intelligence API Documentation
The Email Intelligence API provides comprehensive analysis and validation of email addresses. This documentation outlines how to effectively integrate and utilize the API in your applications, enabling you to enhance email security, reduce fraud, and improve data quality.
Base URL
https://api.apicodex.io/email-intelligence
Authentication
Authenticate every request with your API key: send it in an X-Api-Key header, or pass it as an ?apikey= query parameter.
{
"X-Api-Key": "YOUR_API_KEY"
}
Request and response
Illustrative values. Confirm current endpoint behavior, quotas, and data freshness in the API documentation before production use.
GET /v1/[email protected] HTTP/1.1
Host: api.apicodex.io
X-Api-Key: YOUR_API_KEY
{
"status": true,
"data": {
"email": "[email protected]",
"domain": "gmail.com",
"alias": {
"main": "test",
"alias": "alias"
},
"is_subdomain": false,
"is_valid": true,
"is_temp_email": false,
"is_gov": false,
"is_edu": false,
"has_valid_mx_records": true,
"records": {
"mx": [
{
"exchange": "alt1.aspmx.l.google.com",
"priority": 5
}
],
"spf": "v=spf1 include:_spf.google.com ~all",
"dmarc": "v=DMARC1; p=none; rua=mailto:[email protected]"
},
"smtp": {
"provider": "alt1.aspmx.l.google.com",
"addresses": [
{
"exchange": "alt1.aspmx.l.google.com",
"priority": 5
}
]
},
"email_provider": {
"name": "google",
"provider": "Google"
},
"website": {
"url": "http://gmail.com",
"is_valid": true,
"ssl": true
},
"deliverability_score": 85,
"risk_indicator": "low"
}
}
Code examples
const axios = require('axios');
const options = {
method: 'GET',
url: 'https://api.apicodex.io/email-intelligence/v1/check',
params: { email: '[email protected]' },
headers: {
'X-Api-Key': 'YOUR_API_KEY'
}
};
try {
const response = await axios.request(options);
// Handle valid email
if (response.data.data.is_valid) {
console.log('Email is valid!');
// Check risk level
if (response.data.data.risk_indicator === 'low') {
// Proceed with low-risk email
} else if (response.data.data.risk_indicator === 'medium') {
// Add additional verification
} else {
// High-risk handling
}
} else {
console.log('Email is invalid');
}
} catch (error) {
console.error('Error validating email:', error);
// Handle rate limiting
if (error.response && error.response.status === 429) {
// Implement retry with exponential backoff
}
}
import requests
import backoff
# Example with exponential backoff for rate limiting
@backoff.on_exception(backoff.expo, requests.exceptions.RequestException, max_tries=5)
def validate_email(email):
url = "https://api.apicodex.io/email-intelligence/v1/check"
querystring = {"email": email}
headers = {
"X-Api-Key": "YOUR_API_KEY"
}
response = requests.get(url, headers=headers, params=querystring)
response.raise_for_status() # Will trigger backoff on 429 errors
data = response.json()
if data['data']['is_valid']:
print(f"Email {email} is valid")
print(f"Deliverability score: {data['data']['deliverability_score']}")
return data['data']
else:
print(f"Email {email} is invalid")
return None
try:
result = validate_email("[email protected]")
except Exception as e:
print(f"Error validating email: {e}")
Coming soon · MCP
Use the Email Intelligence API from your AI agent
The API Codex MCP server will expose this API, and the rest of the catalog, to Claude, Cursor and any MCP client as tools. Same key, same credits, one config entry.
Pricing
Email Intelligence API Pricing
This API costs 5 credits per request. Credits are shared across every API on your plan.
Estimate your monthly cost
Drag the slider to match your expected request volume. We'll recommend the cheapest plan that covers it.
Recommended plan
Starter
$29.99 /month
Free
- All APIs included
- No credit card required
- Full documentation and examples
Starter
Popular- All APIs included
- Email support
- Usage dashboard and analytics
Pro
- All APIs included
- Priority support
- Up to 5 API keys
Need a different plan?
Tell us about your API, volume, or support requirements.
FAQ
Frequently asked questions
Keep building
Related APIs
Analyze SPF, DKIM, and DMARC records in depth to optimize email domain configurations and maximize inbox placement rates.
Query comprehensive DNS records for any domain including MX, TXT, SPF, and DMARC entries used in email validation.
Extract structured data from email messages including headers, content, attachments, and metadata for automated processing.