Web data & tools
DNS Lookup API
DNS records, email security audit (SPF, DMARC, DKIM) with a grade, and SSL certificate expiry.
Base URLhttps://dns-lookup-email-security-ssl-checker.p.rapidapi.com/v1/dnsopenapi.json
- Free plan
- 10 credits a day
- Paid plans
- from $3.99 a month
- One credit
- 1 credit per call.
- Endpoints
- 3, on
/v1/dns
Example call
curl -G "https://dns-lookup-email-security-ssl-checker.p.rapidapi.com/v1/dns/email" \
--data-urlencode "domain=github.com" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: dns-lookup-email-security-ssl-checker.p.rapidapi.com"
import requests
url = "https://dns-lookup-email-security-ssl-checker.p.rapidapi.com/v1/dns/email"
params = {
"domain": "github.com"
}
headers = {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "dns-lookup-email-security-ssl-checker.p.rapidapi.com",
}
r = requests.get(url, params=params, headers=headers)
print(r.json())
const res = await fetch("https://dns-lookup-email-security-ssl-checker.p.rapidapi.com/v1/dns/email?domain=github.com", {
headers: {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "dns-lookup-email-security-ssl-checker.p.rapidapi.com",
},
});
console.log(await res.json());
{
"domain": "github.com",
"grade": "C",
"score": 65,
"mx": [{ "value": "github-com.mail.protection.outlook.com", "ttl": 300, "priority": 0 }],
"provider": "Microsoft 365",
"mx_check": { "status": "pass", "message": "1 mail server(s)." },
"spf": {
"record": "v=spf1 ip4:192.30.252.0/22 include:spf.protection.outlook.com include:_netblocks.google.com ... ~all",
"all": "~all",
"includes": ["spf.protection.outlook.com", "_netblocks.google.com", "_netblocks2.google.com", "mail.zendesk.com", "_spf.salesforce.com", "servers.mcsv.net", "mktomail.com", "sendgrid.net"],
"lookups": 10,
"check": { "status": "warn", "message": "10 DNS lookups out of 10: one more sender breaks SPF." }
},
"dmarc": {
"record": "v=DMARC1; p=quarantine; sp=reject; pct=100; rua=mailto:dmarc@github.com; ruf=mailto:dmarc@github.com; fo=1",
"policy": "quarantine",
"subdomain_policy": "reject",
"pct": 100,
"rua": ["mailto:dmarc@github.com"],
"check": { "status": "pass", "message": "DMARC quarantines spoofed mail (p=quarantine)." }
},
"dkim": { "selectors_found": ["google", "selector1", "k1", "k2", "s1", "s2", "cm"], "check": { "status": "pass", "message": "DKIM key found (google, selector1, k1, k2, s1, s2, cm)." } },
"mta_sts": { "status": "warn", "message": "No MTA-STS: mail to this domain can be downgraded to plain text." },
"bimi": { "status": "warn", "message": "No BIMI logo." },
"recommendations": [
"Bring SPF below 10 DNS lookups: remove senders you no longer use or replace includes with their IP ranges.",
"Enable MTA-STS to enforce encrypted delivery."
]
}
Audit Email Security: GET /v1/dns/email. A real call and its real response, with long values shortened.
What the DNS Lookup API returns
Three checks every domain needs, in one API: DNS records, a graded email security audit (SPF, DMARC, DKIM, MTA-STS, BIMI) with the fixes to make, and the SSL certificate with its expiry and, when invalid, the reason why.
- Records
- A, AAAA, CNAME, MX, NS, TXT, SOA, CAA (+ SRV, PTR) with TTL and MX priority
- Email grade A-F
- And score 0-100, mail provider detected (Google Workspace, Microsoft 365...)
- SPF
- Nested
includelookups counted; warns at 9 of the 10 allowed - DKIM
- 20 common selectors tried, wildcard records ignored
- Recommendations
- In plain English
- SSL
valid+error(expired, self-signed, hostname mismatch...), issuer, names,days_remaining, key, TLS version, cipher
Endpoints
Host dns-lookup-email-security-ssl-checker.p.rapidapi.com, header X-RapidAPI-Key. Parameters and examples for each one are in the API reference.
DNS Records
A, AAAA, MX, NS, TXT, CAA and other records of a domain.
Email Security
SPF, DMARC, DKIM, MTA-STS and BIMI audit with a grade.
SSL
SSL/TLS certificate details and expiry.
Use cases
- Deliverability tools & ESPs. Onboard senders with a clear checklist
- Security audits & MSPs. Scan client domains in bulk
- Monitoring. Alert before certificates expire
- Sales. Spot prospects with weak email security
Tutorial
Web data & tools
Pricing
1 credit per call. Failed calls are never billed.
| Plan | Price | Credits included | Above the quota |
|---|---|---|---|
| BASIC | Free | 10 / day | resets every day |
| PRO | $3.99/mo | 50,000 / month | $0.0008 per credit |
| ULTRA | $9.99/mo | 250,000 / month | $0.0008 per credit |
| MEGA | $29.99/mo | 1,000,000 / month | $0.0008 per credit |
Subscribe on RapidAPI (opens in a new tab)
No code: the Apify actor
The DNS Lookup, Email Security & SSL Checker actor runs the same engine on a list of inputs and exports a table (JSON, CSV, Excel, Google Sheets). It is billed per result; free-plan users get 50 domains per run.
| Event | Charged for | Price |
|---|---|---|
email-audit | Each email-security audit | $0.0012 |
ssl-check | Each SSL certificate check | $0.0005 |
dns-records | Each DNS lookup | $0.0005 |












