Domain Security API

API ID 15067

Domain checks in one subscription: DMARC, SPF, DKIM and MX audit with fixes, security headers grade and SSL certificate details, expiry, issuer, TLS versions, WHOIS or RDAP with domain expiry and age, DNS records.

API Documentation

Endpoints

Request
Security Headers & SSL Certificate Checker API. Returns up to 100 results per request as JSON.
Endpoint ID: 39885
GET https://zylalabs.com/api/15067/domain+security+api/39885/security+headers+ssl+certificate+checker+api
INPUT PARAMETERS

Security Headers SSL Certificate Checker API — Endpoint Features

Object Description
hosts Optional Websites to check, up to 50 per run. Bare domains, hosts with a port (:8443) or full URLs are accepted. Only the front page you give is requested; private, local and the addresses are refused and come back as a row with error. Several values: comma separated.
host Optional Optional shortcut for one website, same as a one-entry Hosts list. Handy for API calls with a single value.
url Optional Optional shortcut for one URL. Same as a one-entry Hosts list.
certWarnDays Optional A certificate that expires in fewer days than this is flagged as expiring soon (expiringSoon true, an issue is added, and monitor mode reports it). Between 1 and 365.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

hosts
host
url
certWarnDays
API EXAMPLE RESPONSE
JSON
{
    "count": 1,
    "items": [
        {
            "host": "github.com",
            "url": "https://github.com/",
            "status": "ok",
            "checkedAt": "2026-11-19T03:22:54Z",
            "finalUrl": "https://github.com/",
            "httpStatus": 200,
            "redirects": 0,
            "httpToHttps": {
                "checked": true,
                "redirectsToHttps": true,
                "status": 301,
                "location": "https://github.com/"
            },
            "headers": {
                "strictTransportSecurity": {
                    "present": true,
                    "value": "max-age=31536000; includeSubdomains; preload",
                    "maxAge": 31536000,
                    "includeSubDomains": true,
                    "preload": true,
                    "verdict": "good"
                },
                "contentSecurityPolicy": {
                    "present": true,
                    "value": "default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploa",
                    "reportOnly": false,
                    "directives": 15,
                    "unsafeInline": false,
                    "unsafeEval": false,
                    "wildcardSource": false,
                    "hasScriptOrDefaultSrc": true,
                    "verdict": "good"
                },
                "xFrameOptions": {
                    "present": true,
                    "value": "deny",
                    "verdict": "good"
                },
                "frameAncestors": {
                    "present": true,
                    "value": "'none'"
                },
                "clickjackingProtected": true,
                "xContentTypeOptions": {
                    "present": true,
                    "value": "nosniff",
                    "verdict": "good"
                },
                "referrerPolicy": {
                    "present": true,
                    "value": "origin-when-cross-origin, strict-origin-when-cross-origin",
                    "verdict": "good"
                },
                "permissionsPolicy": {
                    "present": false,
                    "verdict": "missing",
                    "fix": "Permissions-Policy: camera=(), microphone=(), geolocation=()"
                },
                "crossOriginOpenerPolicy": {
                    "present": false,
                    "verdict": "missing",
                    "fix": "Cross-Origin-Opener-Policy: same-origin"
                },
                "crossOriginResourcePolicy": {
                    "present": false,
                    "verdict": "missing",
                    "fix": "Cross-Origin-Resource-Policy: same-site"
                },
                "crossOriginEmbedderPolicy": {
                    "present": false,
                    "verdict": "missing",
                    "fix": "Cross-Origin-Embedder-Policy: require-corp"
                },
                "informationLeaks": {
                    "server": {
                        "value": "github.com",
                        "versionDisclosed": false
                    }
                },
                "deprecated": {
                    "xXssProtection": {
                        "value": "0",
                        "note": "deprecated, ignored by current browsers; use a CSP. Set '0' or remove it."
                    }
                }
            },
            "cookies": {
                "count": 3,
                "secure": 3,
                "httpOnly": 2,
                "sameSite": 3,
                "sameSiteNoneWithoutSecure": 0
            },
            "certificate": {
                "subjectCN": "github.com",
                "subjectOrg": null,
                "issuerCN": "Sectigo Public Server Authentication CA DV E36",
                "issuerOrg": "Sectigo Limited",
                "sanCount": 2,
                "sans": [
                    "github.com",
                    "www.github.com"
                ],
                "notBefore": "2026-10-30T00:00:00Z",
                "notAfter": "2027-01-27T23:59:59Z",
                "daysLeft": 69,
                "expired": false,
                "notYetValid": false,
                "expiringSoon": false,
                "warnDays": 30,
                "hostnameMatch": true,
                "selfSigned": false,
                "trusted": true,
                "verifyError": null,
                "signatureAlgorithm": "ecdsa-with-SHA256",
                "keyType": "EC P-256",
                "keyBits": 256,
                "fingerprintSha256": "7dc4d85cf1e310971225bc9a9257679043a243d70a3cc2a91cc5d389892c2776",
                "port": 443,
                "chain": "not_returned: the Python standard library exposes only the leaf certificate"
            },
            "tls": {
                "negotiated": "TLSv1.3",
                "cipher": "TLS_AES_128_GCM_SHA256",
                "cipherBits": 128,
                "supported": {
                    "TLSv1.0": "rejected",
                    "TLSv1.1": "rejected",
                    "TLSv1.2": "accepted",
                    "TLSv1.3": "accepted"
                }
            },
            "score": 87,
            "grade": "B",
            "issues": [
                {
                    "severity": "low",
                    "area": "permissions-policy",
                    "issue": "Permissions-Policy header is missing.",
                    "fix": "Permissions-Policy: camera=(), microphone=(), geolocation=()",
                    "points": 4
                },
                {
                    "severity": "low",
                    "area": "set-cookie",
                    "issue": "1 of 3 cookies have no HttpOnly flag.",
                    "fix": "Add '; HttpOnly' to cookies that JavaScript does not need to read.",
                    "points": 3
                },
                {
                    "severity": "low",
                    "area": "cross-origin-embedder-policy",
                    "issue": "Cross-Origin-Embedder-Policy header is missing.",
                    "fix": "Cross-Origin-Embedder-Policy: require-corp",
                    "points": 2
                },
                {
                    "severity": "low",
                    "area": "cross-origin-opener-policy",
                    "issue": "Cross-Origin-Opener-Policy header is missing.",
                    "fix": "Cross-Origin-Opener-Policy: same-origin",
                    "points": 2
                },
                {
                    "severity": "low",
                    "area": "cross-origin-resource-policy",
                    "issue": "Cross-Origin-Resource-Policy header is missing.",
                    "fix": "Cross-Origin-Resource-Policy: same-site",
                    "points": 2
                }
            ],
            "issueCount": 5,
            "seconds": 0.12
        }
    ]
}
Security Headers SSL Certificate Checker API — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15067/domain+security+api/39885/security+headers+ssl+certificate+checker+api?hosts=github.com&certWarnDays=30' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Domain WHOIS Lookup - Expiry, SSL Certificate. Returns up to 100 results per request as JSON.
Endpoint ID: 39886
GET https://zylalabs.com/api/15067/domain+security+api/39886/domain+whois+lookup
INPUT PARAMETERS

Domain WHOIS Lookup — Endpoint Features

Object Description
domains Optional Domain names to look up. URLs are accepted too (the host is used). Unregistered names come back as a row with available: true (domain availability check). Use the registered domain, not a subdomain. Several values: comma separated.
includeDns Optional Add A, AAAA, MX, NS, TXT, CAA records plus parsed SPF and DMARC policy for each domain.
includeSsl Optional Connect to port 443 and add the TLS certificate issuer, valid-from and valid-until dates, days left and subject alternative names (SANs).
includeRedirects Optional Follow HTTP redirects from and report the chain and the final URL with status code. Uses an honest User-Agent and only GET requests.
expiringWithinDays Optional Keep only domains whose registration expires within this many days (e.g. 30 or 90) - find domains to renew or that may drop soon. 0 = keep all.
trackIpChanges Optional Off (default): changing A/AAAA IPs are ignored in change detection, because CDNs and load balancers rotate IPs on every run. Turn on to also flag IP changes (DNS hijack watch).

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

domains
includeDns
includeSsl
includeRedirects
expiringWithinDays
trackIpChanges
API EXAMPLE RESPONSE
JSON
{
    "count": 2,
    "items": [
        {
            "domain": "source.com",
            "registered": true,
            "available": false,
            "availabilitySource": "rdap",
            "registrar": "Amazon Registrar, Inc.",
            "registrarIanaId": "468",
            "createdDate": "2009-06-02T17:14:10Z",
            "updatedDate": "2026-05-16T16:53:04Z",
            "expiryDate": "2035-06-02T17:14:10Z",
            "domainAgeDays": 6378,
            "daysToExpiry": 3117,
            "status": [
                "client transfer prohibited"
            ],
            "nameservers": [
                "ns-1225.awsdns-25.org",
                "ns-1928.awsdns-49.co.uk",
                "ns-449.awsdns-56.com",
                "ns-839.awsdns-40.net"
            ],
            "dnssec": true,
            "dns": {
                "A": [
                    "3.164.68.100",
                    "3.164.68.53",
                    "3.164.68.60",
                    "3.164.68.71"
                ],
                "AAAA": [
                    "2600:9000:278c:3200:9:a03e:6540:93a1",
                    "2600:9000:278c:400:9:a03e:6540:93a1",
                    "2600:9000:278c:5400:9:a03e:6540:93a1",
                    "2600:9000:278c:5a00:9:a03e:6540:93a1",
                    "2600:9000:278c:5e00:9:a03e:6540:93a1",
                    "2600:9000:278c:6400:9:a03e:6540:93a1",
                    "2600:9000:278c:6800:9:a03e:6540:93a1",
                    "2600:9000:278c:da00:9:a03e:6540:93a1"
                ],
                "MX": [
                    "1 aspmx.l.google.com.",
                    "10 aspmx2.googlemail.com.",
                    "10 aspmx3.googlemail.com.",
                    "5 alt1.aspmx.l.google.com.",
                    "5 alt2.aspmx.l.google.com."
                ],
                "NS": [
                    "ns-1225.awsdns-25.org.",
                    "ns-1928.awsdns-49.co.uk.",
                    "ns-449.awsdns-56.com.",
                    "ns-839.awsdns-40.net."
                ],
                "TXT": [
                    "aisle-domain-verification-ymx7gd=j3J4hCmXHIc9R0RNQCfa8xdSf",
                    "apple-domain-verification=A4eZHTuAHVZqRimj",
                    "google-site-verification=R_4agUZyHorQrO5QGFa6ZB_o-uDxq82NY-EteDUpPvo",
                    "google-site-verification=XU737OZxx6NvGd3NQK9MRt98qxRMjx3RByq-O0cy16I",
                    "google-site-verification=ZqRh2_YSBHj2bo_KsEdu6MfmTMKJYLpDDL3oPtOrN_A",
                    "google-site-verification=jrECJwBG9eeO_FUrOMhp7JY1oF8JSBxhzmLsLGvrt9s",
                    "hubspot-developer-verification=MzZlYjQwZjktZGQ0ZC00MWVhLWJmNWMtYTY0MDI0MjQzNTI4",
                    "mixpanel-domain-verify=44615d9c-27f2-4587-a781-8a0a1c734e9a",
                    "openai-domain-verification=dv-WTM7Nna92Owwh4sgmDOVUyyt",
                    "tito-domain-verification=pbg2696rvzbax2t4dl7h5ynqm"
                ],
                "CAA": [
                    "0 issue \"amazonaws.com\"",
                    "0 issue \"digicert.com\"",
                    "0 issue \"letsencrypt.org\"",
                    "0 issuewild \"amazonaws.com\"",
                    "0 issuewild \"letsencrypt.org\""
                ],
                "DMARC": [
                    "v=DMARC1; p=reject; sp=reject; pct=100; rua=mailto:[email protected]; ri=604800"
                ],
                "SPF": [
                    "v=spf1 a mx include:_spf.google.com include:mailgun.org include:amazonses.com include:19497222.spf05.hubspotemail.net -all"
                ]
            },
            "ssl": {
                "valid": true,
                "issuer": "Amazon",
                "notBefore": "2026-07-03T00:00:00Z",
                "notAfter": "2027-01-16T23:59:59Z",
                "daysLeft": 58,
                "tlsVersion": "TLSv1.3",
                "san": [
                    "*.apifier.com",
                    "*.source.com",
                    "apifier.com",
                    "source.com"
                ]
            },
            "redirect": {
                "finalStatus": 200,
                "chain": [
                    {
                        "status": 301
                    },
                    {
                        "status": 200
                    }
                ]
            },
            "error": null,
            "scrapedAt": "2026-11-19T03:22:56Z"
        },
        {
            "domain": "github.com",
            "registered": true,
            "available": false,
            "availabilitySource": "rdap",
            "registrar": "MarkMonitor Inc.",
            "registrarIanaId": "292",
            "createdDate": "2007-10-09T18:20:50Z",
            "updatedDate": "2026-09-07T09:22:52Z",
            "expiryDate": "2028-10-09T18:20:50Z",
            "domainAgeDays": 6980,
            "daysToExpiry": 690,
            "status": [
                "client delete prohibited",
                "client transfer prohibited",
                "client update prohibited"
            ],
            "nameservers": [
                "dns1.p08.nsone.net",
                "dns2.p08.nsone.net",
                "dns3.p08.nsone.net",
                "dns4.p08.nsone.net",
                "ns-1283.awsdns-32.org",
                "ns-1707.awsdns-21.co.uk",
                "ns-421.awsdns-52.com",
                "ns-520.awsdns-01.net"
            ],
            "dnssec": false,
            "rdapSource": "https://rdap.verisign.com/com/v1/domain/github.com",
            "dns": {
                "A": [
                    "140.82.121.4"
                ],
                "AAAA": [],
                "MX": [
                    "0 github-com.mail.protection.outlook.com."
                ],
                "NS": [
                    "dns1.p08.nsone.net.",
                    "dns2.p08.nsone.net.",
                    "dns3.p08.nsone.net.",
                    "dns4.p08.nsone.net.",
                    "ns-1283.awsdns-32.org.",
                    "ns-1707.awsdns-21.co.uk.",
                    "ns-421.awsdns-52.com.",
                    "ns-520.awsdns-01.net."
                ],
                "TXT": [
                    "00Dd0000000hHE0=1TBKg000000TN2r",
                    "MS=6BF03E6AF5CB689E315FB6199603BABF2C88D805",
                    "MS=ms44452932",
                    "MS=ms58704441",
                    "TAILSCALE-xOzoDvFUzZr5YYVCQFuD",
                    "adobe-idp-site-verification=b92c9e999aef825edc36e0a3d847d2dbad5b2fc0e05c79ddd7a16139b48ecf4b",
                    "anthropic-domain-verification-4az7qn=if8YWuRRqwLycGJDooumzHtxm",
                    "apple-domain-verification=RyQhdzTl6Z6x8ZP4",
                    "atlassian-domain-verification=jjgw98AKv2aeoYFxiL/VFaoyPkn3undEssTRuMg6C/3Fp/iqhkV4HVV7WjYlVeF8",
                    "calendly-site-verification=at0DQARi7IZvJtXQAWhMqpmIzpvoBNF7aam5VKKxP"
                ],
                "CAA": [
                    "0 issue \"digicert.com\"",
                    "0 issue \"globalsign.com\"",
                    "0 issue \"letsencrypt.org\"",
                    "0 issue \"sectigo.com\"",
                    "0 issuewild \"digicert.com\"",
                    "0 issuewild \"letsencrypt.org\"",
                    "0 issuewild \"sectigo.com\""
                ],
                "DMARC": [
                    "v=DMARC1; p=quarantine; sp=reject; pct=100; rua=mailto:[email protected]; ruf=mailto:[email protected]; fo=1"
                ],
                "SPF": [
                    "v=spf1 ip4:192.30.252.0/22 include:spf.protection.outlook.com include:_netblocks.google.com include:_netblocks2.google.com include:mail.zendesk.com include:_spf.salesforce.com incl"
                ]
            },
            "ssl": {
                "valid": true,
                "issuer": "Sectigo Limited",
                "notBefore": "2026-10-30T00:00:00Z",
                "notAfter": "2027-01-27T23:59:59Z",
                "daysLeft": 69,
                "tlsVersion": "TLSv1.3",
                "san": [
                    "github.com",
                    "www.github.com"
                ]
            },
            "redirect": {
                "finalUrl": "https://github.com/",
                "finalStatus": 200,
                "chain": [
                    {
                        "url": "http://github.com/",
                        "status": 301
                    },
                    {
                        "url": "https://github.com/",
                        "status": 200
                    }
                ]
            },
            "error": null,
            "scrapedAt": "2026-11-19T03:22:55Z"
        }
    ]
}
Domain WHOIS Lookup — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15067/domain+security+api/39886/domain+whois+lookup?domains=apify.com,github.com&includeDns=true&includeSsl=true&includeRedirects=true&expiringWithinDays=OptionaltrackIpChanges=false' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
DMARC SPF MX Lookup API - DNS Security Check. Returns up to 50 results per request as JSON.
Endpoint ID: 39887
GET https://zylalabs.com/api/15067/domain+security+api/39887/dmarc+spf+mx+lookup+api
INPUT PARAMETERS

DMARC SPF MX Lookup API — Endpoint Features

Object Description
domains Optional Domains to check, up to 50 per call, bare names (no https, no mailbox). The API answers 400 above 50 (the API checks the first 50). Each row shows your input and the checked (lowercased) domain; duplicates are checked once and listed in duplicateInputs. Several values: comma separated.
domain Optional Optional: exactly one domain. It is never split: a value with spaces, commas, semicolons or new lines returns one invalid_format row. Use domains for a list.
dkimSelectors Optional Optional. Your own DKIM selector names (the part before._domainkey), up to 20 (the API answers 400 above 20 or for an invalid name), for example s1 or mimecast20240101. They are checked in addition to the common ones: google, selector1, selector2, default, k1, s1, mail.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

domains
domain
dkimSelectors
API EXAMPLE RESPONSE
JSON
{
    "count": 1,
    "items": [
        {
            "input": "google.com",
            "domain": "google.com",
            "status": "ok",
            "checkedAt": "2026-11-19T03:22:56Z",
            "mx": {
                "found": true,
                "nullMx": false,
                "records": [
                    {
                        "host": "smtp.google.com",
                        "priority": 10,
                        "resolves": true,
                        "isCname": false
                    }
                ]
            },
            "spf": {
                "found": true,
                "record": "v=spf1 include:_spf.google.com ~all",
                "qualifierAll": "softfail",
                "mechanisms": [
                    {
                        "qualifier": "pass",
                        "mechanism": "include",
                        "value": "_spf.google.com"
                    },
                    {
                        "qualifier": "softfail",
                        "mechanism": "all",
                        "value": null
                    }
                ],
                "dnsLookups": 1,
                "lookupLimit": 10,
                "lookupLimitExceeded": false,
                "includes": [
                    "_spf.google.com"
                ],
                "errors": []
            },
            "dmarc": {
                "found": true,
                "record": "v=DMARC1; p=reject; rua=mailto:[email protected]",
                "policy": "reject",
                "subdomainPolicy": null,
                "pct": 100,
                "rua": [
                    "mailto:[email protected]"
                ],
                "ruf": [],
                "adkim": "r",
                "aspf": "r",
                "source": "_dmarc.google.com",
                "inheritedFrom": null
            },
            "dkim": {
                "found": false,
                "selectorsChecked": [
                    "google",
                    "selector1",
                    "selector2",
                    "default",
                    "k1",
                    "s1",
                    "mail"
                ],
                "keys": []
            },
            "mtaSts": {
                "txtFound": true,
                "id": "20210803T010101",
                "policyFetched": true,
                "mode": "enforce",
                "maxAge": 86400,
                "mx": [
                    "smtp.google.com",
                    "aspmx.l.google.com",
                    "*.aspmx.l.google.com"
                ],
                "error": null
            },
            "tlsRpt": {
                "found": true,
                "record": "v=TLSRPTv1;rua=mailto:[email protected]",
                "rua": [
                    "mailto:[email protected]"
                ]
            },
            "bimi": {
                "found": true,
                "record": "v=BIMI1; l=; a=; lps=googlewallet-noreply-bimi",
                "logoUrl": null,
                "vmcUrl": null
            },
            "score": 100,
            "grade": "A",
            "issues": [
                {
                    "severity": "info",
                    "area": "mx",
                    "issue": "Only one MX record, so there is no backup mail server.",
                    "fix": "Add a second MX with a higher priority number if your provider offers one."
                },
                {
                    "severity": "info",
                    "area": "spf",
                    "issue": "SPF ends with '~all' (softfail). This is common and acceptable when DMARC is enforced.",
                    "fix": "Use '-all' once you are sure every sender is listed."
                },
                {
                    "severity": "info",
                    "area": "dkim",
                    "issue": "No DKIM key found for the common selectors (google, selector1, selector2, default, k1, s1, mail). A domain can use any selector name, so this does not prove DKIM is missing.",
                    "fix": "Pass your selector in dkimSelectors to check it."
                }
            ],
            "issueCount": 0,
            "normalized": false
        }
    ]
}
DMARC SPF MX Lookup API — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15067/domain+security+api/39887/dmarc+spf+mx+lookup+api?domains=google.com' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
One call, one domain, every check: DMARC or SPF or DKIM or MX score with the exact DNS records to fix, security headers grade and SSL certificate days left, WHOIS or RDAP age, expiry and registrar, plus a merged top-issues list. ~1-2 s.
Endpoint ID: 39888
GET https://zylalabs.com/api/15067/domain+security+api/39888/domain+security+report
INPUT PARAMETERS

Domain Security Report — Endpoint Features

Object Description
domain Optional Domain (domain value)

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

domain
API EXAMPLE RESPONSE
JSON
{
    "count": 1,
    "items": [
        {
            "domain": "github.com",
            "checkedAt": "2026-11-19T03:22:57Z",
            "emailScore": 88,
            "emailGrade": "B",
            "webGrade": "B",
            "webScore": 87,
            "sslDaysLeft": 69,
            "domainAgeDays": 6980,
            "daysToExpiry": 690,
            "registrar": "MarkMonitor Inc.",
            "topIssues": [
                "email: SPF uses 10 of 10 allowed DNS lookups, so one more in",
                "email: DKIM key for selector selector1 is 1024 bits; 2048 is",
                "email: DKIM key for selector k1 is 1024 bits; 2048 is the cu"
            ],
            "email": {
                "input": "github.com",
                "domain": "github.com",
                "status": "ok",
                "mx": {
                    "found": true,
                    "nullMx": false,
                    "records": [
                        {
                            "host": "github-com.mail.protection.outlook.com",
                            "priority": 0,
                            "resolves": true,
                            "isCname": false
                        }
                    ]
                },
                "spf": {
                    "found": true,
                    "record": "v=spf1 ip4:192.30.252.0/22 include:spf.protection.outlook.co",
                    "qualifierAll": "softfail",
                    "mechanisms": [
                        {
                            "qualifier": "pass",
                            "mechanism": "ip4",
                            "value": "192.30.252.0/22"
                        },
                        {
                            "qualifier": "pass",
                            "mechanism": "include",
                            "value": "spf.protection.outlook.com"
                        },
                        {
                            "qualifier": "pass",
                            "mechanism": "include",
                            "value": "_netblocks.google.com"
                        }
                    ],
                    "dnsLookups": 10,
                    "lookupLimit": 10,
                    "lookupLimitExceeded": false,
                    "includes": [
                        "spf.protection.outlook.com",
                        "_netblocks.google.com",
                        "_netblocks2.google.com"
                    ],
                    "errors": []
                },
                "dmarc": {
                    "found": true,
                    "record": "v=DMARC1; p=quarantine; sp=reject; pct=100; rua=mailto:dmarc",
                    "policy": "quarantine",
                    "subdomainPolicy": "reject",
                    "pct": 100,
                    "rua": [
                        "mailto:[email protected]"
                    ],
                    "ruf": [
                        "mailto:[email protected]"
                    ],
                    "adkim": "r",
                    "aspf": "r",
                    "source": "_dmarc.github.com",
                    "inheritedFrom": null
                },
                "dkim": {
                    "found": true,
                    "selectorsChecked": [
                        "google",
                        "selector1",
                        "selector2"
                    ],
                    "keys": [
                        {
                            "selector": "google",
                            "keyType": "rsa",
                            "keyBits": 2048,
                            "revoked": false,
                            "testMode": false,
                            "keyFingerprint": "1fcee30be96781c5"
                        },
                        {
                            "selector": "selector1",
                            "keyType": "rsa",
                            "keyBits": 1024,
                            "revoked": false,
                            "testMode": false,
                            "keyFingerprint": "74695ba48e84f277"
                        },
                        {
                            "selector": "k1",
                            "keyType": "rsa",
                            "keyBits": 1024,
                            "revoked": false,
                            "testMode": false,
                            "keyFingerprint": "cf73ac5d54e4f91a"
                        }
                    ]
                },
                "mtaSts": {
                    "txtFound": false,
                    "id": null,
                    "policyFetched": false,
                    "mode": null,
                    "maxAge": null,
                    "mx": [],
                    "error": null
                },
                "tlsRpt": {
                    "found": false,
                    "record": null,
                    "rua": []
                },
                "bimi": {
                    "found": false,
                    "record": null,
                    "logoUrl": null,
                    "vmcUrl": null
                },
                "score": 88,
                "grade": "B"
            }
        }
    ]
}
Domain Security Report — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15067/domain+security+api/39888/domain+security+report?domain=github.com' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Domain Security API simply include your bearer token in the Authorization header.

Headers
Header Description
Authorization Required Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

No long-term commitment. Upgrade, downgrade, or cancel anytime.

Starts at
$10,000/Year


  • Custom Volume
  • Custom Rate Limit
  • Specialized Customer Support
  • Real-Time API Monitoring

Overview

Domain checks in one subscription: DMARC, SPF, DKIM and MX audit with fixes, security headers grade and SSL certificate details, expiry, issuer, TLS versions, WHOIS or RDAP with domain expiry and age, DNS records.

Domain Security API FAQs

Domain checks in one subscription: DMARC, SPF, DKIM and MX audit with fixes, security headers grade and SSL certificate details (expiry, issuer, TLS versions), WHOIS/RDAP with domain expiry and age, DNS records. Bulk input, answers in about 1 second.

Up to 100 results per request, depending on the endpoint.

Every request collects live data from the public source. Identical requests may be served from a cache for up to 6 hours.

List parameters accept several values separated by commas, for example: london,paris.

The endpoint accepts these query parameters, all optional: hosts, host, url, certWarnDays. Hosts: Websites to check, up to 50 per run. Bare domains, hosts with a port (:8443) or full URLs are accepted. Only the front page you give is requested; private, local and the addresses are refused and come back as a row with error. Several values: comma separated. Host: Optional shortcut for one website, same as a one-entry Hosts list. Handy for API calls with a single value. Url: Optional shortcut for one URL. Same as a one-entry Hosts list.

The endpoint accepts these query parameters, all optional: domains, includeDns, includeSsl, includeRedirects, expiringWithinDays, trackIpChanges. Domains: Domain names to look up. URLs are accepted too (the host is used). Unregistered names come back as a row with available: true (domain availability check). Use the registered domain, not a subdomain. Several values: comma separated. IncludeDns: Add A, AAAA, MX, NS, TXT, CAA records plus parsed SPF and DMARC policy for each domain. IncludeSsl: Connect to port 443 and add the TLS certificate issuer, valid-from and valid-until dates, days left and subject alternative names (SANs).

The endpoint accepts these query parameters, all optional: domains, domain, dkimSelectors. Domains: Domains to check, up to 50 per call, bare names (no https, no mailbox). The API answers 400 above 50 (the API checks the first 50). Each row shows your input and the checked (lowercased) domain; duplicates are checked once and listed in duplicateInputs. Several values: comma separated. Domain: Optional: exactly one domain. It is never split: a value with spaces, commas, semicolons or new lines returns one invalid_format row. Use domains for a list. DkimSelectors: Optional.

The endpoint accepts these query parameters, all optional: domain. Domain: Domain (domain value)

General FAQs

To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.

You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.

The free trial lasts for 7 days and allows you to make up to 50 API requests.

No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.

Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.

Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world's most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.
The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.
Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]
Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.
API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.
Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.
To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.
To check how many API calls you have left for the current month, refer to the 'X-Zyla-API-Calls-Monthly-Remaining' field in the response header. For example, if your plan allows 1,000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.

You can monitor your API usage through the response headers included with every request:

x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.

The 'X-Zyla-RateLimit-Reset' header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3,600, it means 3,600 seconds are left until the limit resets.

Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.

Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it's important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.
When you subscribe to an API free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.
You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

Please have a look at our Refund Policy: https://zylalabs.com/terms#refund


Related APIs