{
"domain": "example.com",
"exists": true,
"records": {
"A": [
{
"value": "104.20.23.154",
"ttl": 151
},
{
"value": "172.66.147.243",
"ttl": 151
}
],
"AAAA": [
{
"value": "2606:4700:10::6814:179a",
"ttl": 300
},
{
"value": "2606:4700:10::ac42:93f3",
"ttl": 300
}
],
"MX": [
{
"priority": 0,
"host": ".",
"ttl": 292
}
],
"NS": [
{
"value": "elliott.ns.cloudflare.com",
"ttl": 21600
},
{
"value": "hera.ns.cloudflare.com",
"ttl": 21600
}
],
"TXT": [
{
"text": "_k2n1y4vw3qtb4skdx9e7dxt97qrmmq9",
"ttl": 300
},
{
"text": "v=spf1 -all",
"ttl": 300
}
]
},
"status": {
"A": "ok",
"AAAA": "ok",
"MX": "ok",
"NS": "ok",
"TXT": "ok"
}
}
curl --location --request GET 'https://zylalabs.com/api/15049/domain+and+dns+lookup+api/39814/look+up+dns+records?types=A,AAAA,MX,NS,TXT&domain=Required' --header 'Authorization: Bearer YOUR_API_KEY'
{
"domain": "example.com",
"accepts_mail": false,
"mx_hosts": [],
"mail_provider": null,
"spf": {
"present": true,
"record": "v=spf1 -all",
"all_qualifier": "fail"
},
"dmarc": {
"present": true,
"record": "v=DMARC1;p=reject;sp=reject;adkim=s;aspf=s",
"policy": "reject"
},
"spoofing_protection": "protected"
}
curl --location --request GET 'https://zylalabs.com/api/15049/domain+and+dns+lookup+api/39815/check+spf+dmarc+and+mail+setup&domain=Required' --header 'Authorization: Bearer YOUR_API_KEY'
{
"domain": "example.com",
"registered": true,
"registrar": "RESERVED-Internet Assigned Numbers Authority",
"registered_on": "1995-08-14T04:00:00Z",
"expires_on": "2027-08-13T04:00:00Z",
"days_until_expiry": 267,
"last_changed": "2026-08-14T08:01:43Z",
"status": [
"client delete prohibited",
"client transfer prohibited",
"client update prohibited"
],
"name_servers": [
"elliott.ns.cloudflare.com",
"hera.ns.cloudflare.com"
],
"dnssec": true,
"source": "RDAP"
}
curl --location --request GET 'https://zylalabs.com/api/15049/domain+and+dns+lookup+api/39816/domain+registration+details+via+rdap&domain=Required' --header 'Authorization: Bearer YOUR_API_KEY'
{
"domain": "example.com",
"valid": true,
"subject": "example.com",
"issuer": "SSL Corporation",
"issuer_common_name": "Cloudflare TLS Issuing ECC CA 3",
"valid_from": "2026-09-26T22:49:11+00:00",
"valid_until": "2026-12-25T22:56:35+00:00",
"days_until_expiry": 37,
"names": [
"example.com",
"*.example.com"
],
"tls_version": "TLSv1.3",
"cipher": "TLS_AES_256_GCM_SHA384"
}
curl --location --request GET 'https://zylalabs.com/api/15049/domain+and+dns+lookup+api/39817/inspect+the+tls+certificate+of+a+site&domain=Required' --header 'Authorization: Bearer YOUR_API_KEY'
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 and DNS Lookup API simply include your bearer token in the Authorization header.
| 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.
DNS records, domain registration data over RDAP, TLS certificate details and mail security checks.
Live DNS lookups, registry RDAP services and a direct TLS connection to the host.
Registration data depends on the registry offering RDAP (some country-code domains do not) and never includes personal contacts. The TLS check refuses hosts that resolve to private addresses.
Each endpoint returns specific data types: DNS records (A, AAAA, MX, NS, TXT), domain registration details (registrar, dates, status), mail setup checks (SPF, DMARC), and TLS certificate information (issuer, validity).
Key fields include "domain," "exists," "records" for DNS lookups, "registrar" and "expires_on" for registration details, "spf" and "dmarc" for mail checks, and "valid" and "issuer" for TLS certificates.
Response data is structured in JSON format, with nested objects for detailed information. For example, DNS records are categorized by type (A, AAAA, MX) under the "records" key, while registration details are grouped under relevant fields like "registrar" and "status."
The DNS lookup endpoint provides DNS records; the mail setup endpoint checks SPF and DMARC; the RDAP endpoint offers registration details; and the TLS inspection endpoint reports on certificate validity and issuer information.
Users can customize requests by specifying the domain name in the endpoint URL. For example, to check DNS records, append the domain to the endpoint path, like `/dns-lookup/example.com`.
Typical use cases include verifying domain ownership, checking mail security configurations, inspecting TLS certificates for security compliance, and gathering domain registration information for audits or research.
Data accuracy is maintained through real-time lookups from authoritative sources like DNS servers and RDAP registries. Regular updates and checks ensure the information reflects the current state of domains and certificates.
Standard data patterns include structured JSON responses with boolean values (e.g., "exists": true), arrays for multiple records (e.g., "A" records), and nested objects for detailed attributes (e.g., "spf" and "dmarc" records).
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.
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.
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.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund