🚀 Experience the new and improved APIVoid! Check out what's new

DMARC Validator API: Check and validate DMARC record

A JSON API to check if the DMARC record is present and valid. Use this API to verify the DMARC record configuration, ensuring your DMARC record is correctly configured and enforced.

Consumes 5 credits per API call

# Example Curl request from the command line:
                          
curl -X POST "https://api.apivoid.com/v2/dmarc-validator" \
     -H "Content-Type: application/json" \
     -H "X-API-Key: YOUR_API_KEY_HERE" \
     -d '{"host": "paypal.com"}'

# Example JSON output for a 200 HTTP status code:

{
    "host": "paypal.com",
    "dmarc_host": "_dmarc.paypal.com",
    "cname_target": "",
    "has_dmarc_record": true,
    "dmarc_record": "v=DMARC1; p=reject; rua=mailto:d@rua.agari.com; ruf=mailto:d@ruf.agari.com",
    "dmarc_records_count": 1,
    "domain_policy": "reject",
    "subdomain_policy": "",
    "dmarc_enforced": true,
    "rua_emails": [
        {
            "email": "d@rua.agari.com",
            "domain": "rua.agari.com",
            "has_mx_records": true
        }
    ],
    "ruf_emails": [
        {
            "email": "d@ruf.agari.com",
            "domain": "ruf.agari.com",
            "has_mx_records": true
        }
    ],
    "version": "DMARC1",
    "issues_found": [],
    "valid": true,
    "elapsed_ms": 78
}
Code analysis

Key Features

Conduct a thorough DMARC record lookup and verification

Businesses and startups use this DMARC Validator API to lookup and test DMARC record of domains, check if DMARC is correctly configured or if there are warnings or errors that should be fixed.

Check DMARC Configuration

This API performs an analysis of the DMARC record and highlights any misconfiguration found.

Check DMARC Format

Ensure the DMARC record contains all required parameters and all is correctly configured.

Detailed Report

The API returns accurate and complete information about a domain's DMARC record.

Throubleshoot with Ease

Easily troubleshoot DMARC records using our API—verify and correct misconfigured entries.

Common Use Cases

Take a look at some real-world use cases of this API service

Our API can be used in many ways, from cybersecurity tasks to domain analysis/research tasks. Here we showcase the most popular use cases according to our customers usage:

Perform DMARC Tests

Test the DMARC record of your domains, verify that all is configured correctly, and fix any issue found.

Monitor Your Customers

With this API you can monitor the DMARC record of your customers for misconfigurations and improvements.

Better Risk Assessment

Ensure a company's domain has a properly configured DMARC record with enforcement enabled.

Domain Analysis Tasks

Scan a list of domains to identify those with correctly configured DMARC records for research purposes.

Use cases

EVERYTHING YOU GET

Do it all with one DMARC lookup

One request resolves the DMARC record, tells you whether the policy is actually enforced, and checks that every reporting address can receive mail.

DMARC record lookup

  • Full DMARC host queried
  • Raw DMARC record as published
  • Record present or missing
  • Number of records found
  • DMARC version tag
  • CNAME target when delegated

Policy and enforcement

  • Domain policy: none, quarantine or reject
  • Separate subdomain policy
  • Single dmarc_enforced flag
  • Spot p=none records that do nothing
  • Every issue found, with a message
  • Single valid verdict

Reporting addresses

  • All aggregate report (RUA) addresses
  • All forensic report (RUF) addresses
  • Reporting domain for each address
  • MX check on every reporting domain
  • Catch reports going nowhere
  • Response time in milliseconds

USAGE EXAMPLE

Learn how seamless it is to add and use DMARC Validator API anywhere you want

All it takes is a HTTPS POST request with JSON payload to our endpoint, and you’ll receive the response within seconds, usually within 1-5 seconds. Here are a few code examples to use the API:

$host = 'paypal.com';

$apiUrl = 'https://api.apivoid.com/v2/dmarc-validator';
$apiKey = 'your_api_key_here';

$ch = curl_init($apiUrl);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json', 'X-API-Key: ' . $apiKey]);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(['host' => $host]));
$response = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

if ($httpCode === 200) {
    $responseData = json_decode($response, true);

    print_r($responseData);
} else {
    print_r('An error occurred: '.$response);
}

Start using our API services, it takes just a few minutes

Create your account, pick a subscription plan, and make your first API call instantly with your API key, simple as that!

Get started now