Get Your API Key
To start using Fraudiant, you’ll need an API key:
Get Your API Key
After logging in, navigate to the API Keys section in your dashboard and copy your key.
Make Your First Request
Use the example below to validate your first email address.
Keep your API key secure! Never expose it in client-side code or public repositories.
Make Your First Request
Here’s a simple example to check if an email address is disposable:
curl -X GET "https://api.fraudiant.com/email/[email protected]" \
-H "Authorization: Bearer YOUR_API_KEY"
const response = await fetch('https://api.fraudiant.com/email/[email protected]', {
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
});
const data = await response.json();
console.log(data);
import requests
headers = {
'Authorization': 'Bearer YOUR_API_KEY'
}
response = requests.get(
'https://api.fraudiant.com/email/[email protected]',
headers=headers
)
data = response.json()
print(data)
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.fraudiant.com/email/[email protected]');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: Bearer YOUR_API_KEY'
]);
$response = curl_exec($ch);
curl_close($ch);
$data = json_decode($response, true);
print_r($data);
?>
Example Response
{
"status": 200,
"email": "[email protected]",
"normalized_email": "[email protected]",
"domain": "tempmail.com",
"domain_age_in_days": 1234,
"mx": true,
"mx_records": ["mx1.tempmail.com"],
"disposable": true,
"disposable_provider": "tempmail.com",
"public_domain": false,
"relay_domain": false,
"role_account": false,
"did_you_mean": null,
"blocklisted": false,
"spam": true
}
In this example, disposable: true indicates that the email is from a temporary email provider and should likely be blocked.
Next Steps
Authentication
Learn about secure authentication methods
Email Endpoint
Explore the email validation endpoint
Domain Endpoint
Check domain reputation and validity
Rate Limits
Understand API rate limits and quotas