Email Security DNS Check API
One email-security verdict row per company domain: mail provider, SPF record and its all rule, DMARC policy, percentage and report address, DKIM selectors found, MTA-STS and BIMI. Built from public DNS answers.
$0.50 per 1,000 records
You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.
Data from dns.google/resolve
Get this data
Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.
Try it
Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key
For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
curl -X POST "https://pullrow.dev/v1/apis/email-security-dns-check/run" \
-H "Authorization: Bearer $PULLROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"domains":["shopify.com"]},"max_items":50}'Inputs
Send them as input in the request body. Leave one out to use its default.
What's in each record
12 fields.
Basics
- Domain
The domain checked, lower case.
Example shopify.com
- Mx hosts
Mail server host names from the MX records, best priority first.
Example aspmx.l.google.com, alt2.aspmx.l.google.com
- Spf record
The SPF TXT record, as published.
Example v=spf1 include:_spf.google.com include:mail.zendesk.com include:sendgrid.net ~all
- Spf all mechanism
How SPF ends: -all (reject), ~all (soft fail), ?all (neutral) or +all (allow all).
Example ~all
- Dmarc record
The DMARC TXT record at _dmarc.<domain>.
Example v=DMARC1; p=reject; pct=100; fo=1; rua=mailto:d•••@shopify.com;ruf=mailto:d•••@shopify.com
- Dmarc policy
DMARC policy p: none, quarantine or reject.
Example reject
- Dmarc (%)
Share of mail the DMARC policy applies to; 100 when the record leaves pct out.
Example 100%
- Dmarc rua
Address for DMARC aggregate reports (a business mailbox or a report service).
Example mailto:d•••@shopify.com
- Dkim selectors found
Common DKIM selectors that have a published key.
Example google, mail
- Mta sts
The MTA-STS TXT record at _mta-sts.<domain>.
Example v=STSv1; id=20210803T010101;
- Bimi
The BIMI TXT record at default._bimi.<domain>.
Example v=BIMI1; l=https://vmc.digicert.com/8833b699-1227-41ee-b185-cc2d9a08e213.svg;…
Contact details
- Email provider
Mail provider inferred from the MX hosts, such as Google Workspace or Microsoft 365.
Example Google Workspace
Technical detailsField names and types for developers
Field names and types
The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.
| Field name | Type | Shown on this page as | Filled |
|---|---|---|---|
domain | text | Domain | 3 of 3 |
mx_hosts | list | Mx hosts | 3 of 3 |
email_provider | text | Email provider | 3 of 3 |
spf_record | text | Spf record | 3 of 3 |
spf_all_mechanism | text | Spf all mechanism | 3 of 3 |
dmarc_record | text | Dmarc record | 3 of 3 |
dmarc_policy | text | Dmarc policy | 3 of 3 |
dmarc_pct | number | Dmarc (%) | 3 of 3 |
dmarc_rua | text | Dmarc rua | 3 of 3 |
dkim_selectors_found | list | Dkim selectors found | 2 of 3 |
mta_sts | text | Mta sts | 1 of 3 |
bimi | text | Bimi | 2 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Domain | Mx hosts | Spf record | Spf all mechanism | Dmarc record | Dmarc policy | Dmarc (%) | Dmarc rua | Dkim selectors found | Mta sts | Bimi | Email provider |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | shopify.com | aspmx.l.google.com, alt2.aspmx.l.google.com, alt1.aspmx.l.google.com, alt3.aspmx.l.google.com | v=spf1 include:_spf.google.com include:mail.zendesk.com include:sendgrid.net ~all | ~all | v=DMARC1; p=reject; pct=100; fo=1; rua=mailto:d•••@shopify.com;ruf=mailto:d•••@shopify.com | reject | 100% | mailto:d•••@shopify.com | google, mail | — | v=BIMI1; l=https://vmc.digicert.com/8833b699-1227-41ee-b185-cc2d9a08e213.svg; a=https://vmc.digicert.com/8833b699-1227-41ee-b185-cc2d9a08e213.pem; | Google Workspace |
| 2 | github.com | github-com.mail.protection.outlook.com | v=spf1 ip4:192.30.252.0/22 ip4:172.170.10.240/28 ip4:40.78.162.192/28 ip4:172.170.3.48/28 include:spf.protection.outlook.com include:_netblocks.google.com include:_netblocks2.google.com include:mail.zendesk.com include:_spf.salesforce.com include:servers.mcsv.net… | ~all | v=DMARC1; p=quarantine; sp=reject; pct=100; rua=mailto:d•••@github.com; ruf=mailto:d•••@github.com; fo=1 | quarantine | 100% | mailto:d•••@github.com | google, selector1, k1, s1 | — | — | Microsoft 365 |
| 3 | google.com | smtp.google.com | v=spf1 include:_spf.google.com ~all | ~all | v=DMARC1; p=reject; rua=mailto:m•••@google.com | reject | 100% | mailto:m•••@google.com | — | v=STSv1; id=20210803T010101; | v=BIMI1; l=; a=; lps=googlewallet-noreply-bimi | Google Workspace |
Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.
Reliability
Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.
Incidents and repairs
How it is kept working What a repair can't do
A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.
- You pay only for records returned. A run that returns none costs nothing.
- Reads Google Public DNS (dns.google JSON API), which is free without a key but fair-use limited; each domain needs about 17 lookups, so a run is paced at several domains per second at most.
- DKIM keys live under selector names only the sender knows; the check tries about 12 common selectors (google, selector1, selector2, default, k1, s1, s2, mandrill, dkim and similar), so an empty dkim_selectors_found does not prove DKIM is missing.
- email_provider is inferred from the MX host names (Google Workspace, Microsoft 365, Proofpoint and others) and is null when the MX is not recognised.
- Shows only what DNS publishes now: no mailbox tests, no blocklist checks, and no reading of the DMARC reports. One run takes up to 200 domains.
Version history
A run uses the live version unless the request names another one with version.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.