{"openapi":"3.1.0","info":{"title":"DNS Lookup, Email Security & SSL Checker","description":"DNS records of any domain, an email security audit (SPF, DMARC, DKIM, MTA-STS, BIMI) with a grade, and SSL certificate details and expiry.","version":"v1"},"servers":[{"url":"https://dns-lookup-email-security-ssl-checker.p.rapidapi.com","description":"RapidAPI"}],"paths":{"/v1/dns/records":{"get":{"tags":["DNS Records"],"summary":"DNS records of a domain","description":"Records with their TTL (and priority for MX), from public resolvers. 1 credit.","operationId":"getDnsRecords","parameters":[{"name":"domain","in":"query","required":true,"schema":{"type":"string","maxLength":300,"description":"Domain or hostname (or any URL of it).","examples":["github.com"],"title":"Domain"},"description":"Domain or hostname (or any URL of it)."},{"name":"types","in":"query","required":false,"schema":{"type":"string","maxLength":100,"description":"Comma-separated types. Default: A, AAAA, CNAME, MX, NS, TXT, SOA, CAA. Also SRV, PTR.","examples":["A,MX,TXT"],"title":"Types"},"description":"Comma-separated types. Default: A, AAAA, CNAME, MX, NS, TXT, SOA, CAA. Also SRV, PTR."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordsResponse"},"examples":{"Get DNS Records":{"summary":"Get DNS Records","value":{"records":{}}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"The AI provider failed (`ai_error`) or capacity is temporarily exhausted (`capacity_exhausted`); retry. Not billed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"Get DNS Records"}},"/v1/dns/email":{"get":{"tags":["Email Security"],"summary":"Email security audit: SPF, DMARC, DKIM, MX, MTA-STS, BIMI, grade","description":"Grade A-F and score 0-100, mail provider, each check (pass / warn /\nfail) with its explanation, and the fixes to make. 1 credit.","operationId":"auditEmailSecurity","parameters":[{"name":"domain","in":"query","required":true,"schema":{"type":"string","maxLength":300,"description":"Domain or hostname (or any URL of it).","examples":["github.com"],"title":"Domain"},"description":"Domain or hostname (or any URL of it)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailSecurity"},"examples":{"Audit Email Security":{"summary":"Audit Email Security (real response)","value":{"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."]}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"The AI provider failed (`ai_error`) or capacity is temporarily exhausted (`capacity_exhausted`); retry. Not billed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"Audit Email Security"}},"/v1/dns/ssl":{"get":{"tags":["SSL"],"summary":"SSL/TLS certificate of a website","description":"Validity (trusted chain, name, dates) and the reason when invalid,\nissuer, names covered, validity dates and days remaining, key, signature,\nTLS version and cipher. 1 credit.","operationId":"getSslCertificate","parameters":[{"name":"domain","in":"query","required":true,"schema":{"type":"string","maxLength":300,"description":"Domain or hostname (or any URL of it).","examples":["github.com"],"title":"Domain"},"description":"Domain or hostname (or any URL of it)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Certificate"},"examples":{"Get SSL Certificate":{"summary":"Get SSL Certificate (real response)","value":{"domain":"expired.badssl.com","host":"expired.badssl.com:443","valid":false,"error":"certificate has expired","issuer":"COMODO RSA Domain Validation Secure Server CA","names":["*.badssl.com","badssl.com"],"valid_until":"2015-04-12T23:59:59Z","days_remaining":-4238,"key":"RSA 2048","protocol":"TLSv1.2"}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"The AI provider failed (`ai_error`) or capacity is temporarily exhausted (`capacity_exhausted`); retry. Not billed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"Get SSL Certificate"}}},"components":{"schemas":{"Certificate":{"properties":{"domain":{"type":"string","title":"Domain"},"host":{"type":"string","title":"Host"},"valid":{"type":"boolean","title":"Valid","description":"Trusted chain, matching name, not expired."},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"Why it is not valid."},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"issuer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issuer","examples":["Let's Encrypt"]},"issuer_organization":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issuer Organization"},"names":{"items":{"type":"string"},"type":"array","title":"Names","description":"Subject alternative names."},"valid_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Valid From"},"valid_until":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Valid Until"},"days_remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days Remaining"},"serial":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Serial"},"signature_algorithm":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signature Algorithm"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key","examples":["EC 256"]},"protocol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Protocol","examples":["TLSv1.3"]},"cipher":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cipher"}},"type":"object","required":["domain","host","valid"],"title":"Certificate"},"Check":{"properties":{"status":{"type":"string","enum":["pass","warn","fail"],"title":"Status"},"message":{"type":"string","title":"Message"}},"type":"object","required":["status","message"],"title":"Check"},"Dkim":{"properties":{"selectors_found":{"items":{"type":"string"},"type":"array","title":"Selectors Found","examples":[["google"]]},"check":{"$ref":"#/components/schemas/Check"}},"type":"object","required":["check"],"title":"Dkim"},"Dmarc":{"properties":{"record":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Record"},"policy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy","examples":["reject"]},"subdomain_policy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subdomain Policy"},"pct":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pct"},"rua":{"items":{"type":"string"},"type":"array","title":"Rua","description":"Aggregate report addresses."},"check":{"$ref":"#/components/schemas/Check"}},"type":"object","required":["check"],"title":"Dmarc"},"EmailSecurity":{"properties":{"domain":{"type":"string","title":"Domain"},"grade":{"type":"string","enum":["A","B","C","D","F"],"title":"Grade","examples":["A"]},"score":{"type":"integer","title":"Score","description":"0-100.","examples":[95]},"mx":{"items":{"$ref":"#/components/schemas/Record"},"type":"array","title":"Mx"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider","examples":["Google Workspace"]},"mx_check":{"$ref":"#/components/schemas/Check"},"spf":{"$ref":"#/components/schemas/Spf"},"dmarc":{"$ref":"#/components/schemas/Dmarc"},"dkim":{"$ref":"#/components/schemas/Dkim"},"mta_sts":{"$ref":"#/components/schemas/Check"},"bimi":{"$ref":"#/components/schemas/Check"},"recommendations":{"items":{"type":"string"},"type":"array","title":"Recommendations"}},"type":"object","required":["domain","grade","score","mx","mx_check","spf","dmarc","dkim","mta_sts","bimi","recommendations"],"title":"EmailSecurity"},"ErrorBody":{"properties":{"status":{"type":"integer","title":"Status","examples":[400]},"code":{"type":"string","title":"Code","examples":["invalid_url"]},"message":{"type":"string","title":"Message","examples":["A website URL is required."]}},"type":"object","required":["status","code","message"],"title":"ErrorBody"},"ErrorEnvelope":{"properties":{"error":{"$ref":"#/components/schemas/ErrorBody"}},"type":"object","required":["error"],"title":"ErrorEnvelope"},"Record":{"properties":{"value":{"type":"string","title":"Value","examples":["140.82.121.4"]},"ttl":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ttl","examples":[60]},"priority":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Priority","description":"MX and SRV only."}},"type":"object","required":["value"],"title":"Record"},"RecordsResponse":{"properties":{"domain":{"type":"string","title":"Domain"},"records":{"additionalProperties":{"items":{"$ref":"#/components/schemas/Record"},"type":"array"},"type":"object","title":"Records","description":"Record type -> records (empty list when none)."}},"type":"object","required":["domain","records"],"title":"RecordsResponse"},"Spf":{"properties":{"record":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Record"},"all":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"All","description":"-all, ~all, ?all or +all.","examples":["~all"]},"includes":{"items":{"type":"string"},"type":"array","title":"Includes","examples":[["_spf.google.com"]]},"lookups":{"type":"integer","title":"Lookups","description":"DNS-lookup mechanisms counted (10 at most allowed).","default":0},"check":{"$ref":"#/components/schemas/Check"}},"type":"object","required":["check"],"title":"Spf"}},"securitySchemes":{"RapidAPIKey":{"type":"apiKey","in":"header","name":"X-RapidAPI-Key"},"RapidAPIHost":{"type":"apiKey","in":"header","name":"X-RapidAPI-Host"}}},"tags":[{"name":"DNS Records","description":"A, AAAA, MX, NS, TXT, CAA and other records of a domain."},{"name":"Email Security","description":"SPF, DMARC, DKIM, MTA-STS and BIMI audit with a grade."},{"name":"SSL","description":"SSL/TLS certificate details and expiry."}],"security":[{"RapidAPIKey":[],"RapidAPIHost":[]}]}