Endpoint
Parameters
The domain to validate (e.g.,
example.com)Request Example
Response Fields
HTTP status code indicating the result of the request
200: Success400: Invalid domain429: Rate limit exceeded
The normalized form of the input domain
Number of days since the domain was registered. Returns
null if the age is unknown.Indicates whether the domain has valid MX (Mail Exchange) records configured for email delivery
List of MX records for the domain. Empty array if
mx is false.Key Field: Indicates whether the domain is from a temporary or disposable email provider
The provider domain name if disposable, otherwise
nullIndicates whether the domain is a public email service like Gmail, Yahoo, or Outlook
Indicates whether the domain is used for email forwarding services
Suggested correction if there’s a likely typo in the domain name
Indicates whether the domain is on your account’s custom blocklist (Pro feature only)
Indicates whether the domain is associated with spam or abusive activities
Response Examples
Success Response (Valid Domain)
Disposable Domain Detected
Public Email Provider
public_domain: true indicates a well-known email provider. These are generally legitimate but don’t identify the organization.Error Responses
Invalid Domain (400)
Rate Limit Exceeded (429)
Learn About Rate Limits
View rate limit details and upgrade options
Common Use Cases
Block domains without MX records
Block domains without MX records
Detect newly registered domains
Detect newly registered domains
Identify corporate vs personal emails
Identify corporate vs personal emails
Bulk domain validation
Bulk domain validation
Domain vs Email Endpoint
When to use Domain Validation vs Email Validation:
Use Domain Endpoint
- Validating domain-level blocklists
- Checking company email policies
- Bulk domain reputation checks
- Pre-filtering allowed domains
Use Email Endpoint
- Validating specific user emails
- Detecting typos in email addresses
- Checking role-based accounts
- Full email-level validation
Best Practices
Combine with email endpoint for complete validation
Combine with email endpoint for complete validation
Use the domain endpoint for initial filtering, then validate specific emails with the email endpoint for comprehensive checks.
Cache domain results
Cache domain results
Domain reputation doesn’t change frequently. Cache results for 24-48 hours to reduce API calls.
Monitor domain age
Monitor domain age
Newly registered domains (< 30 days old) are often used for spam or fraud. Consider additional verification for young domains.
Handle null values
Handle null values
Some fields like
domain_age_in_days may return null if data is unavailable. Always handle null values gracefully in your code.