How to check domain expiry, WHOIS/RDAP and DNS records in bulk
Look up registration and expiry dates, registrar, DNS, email provider, SPF/DMARC, SSL expiry, hosting and tech stack for many domains at once. Uses RDAP with WHOIS fallback, and does not return registrant personal contacts.
To find out when a domain expires, who the registrar is, and what DNS, mail and TLS look like, you do not need a full WHOIS dump — and you should not collect registrant names, emails or phone numbers, which are personal data and are often redacted anyway. A bulk domain check should use RDAP first (the structured successor to WHOIS) with WHOIS as a fallback, then add DNS, SSL and a light homepage fetch. Apizap’s Domain Intelligence API returns that as one JSON row per domain for $1 per 1,000 domains, with no start fee and no registrant contacts.
Use it for portfolio expiry watches, SSL and DMARC reviews, lead enrichment from a public website, or a scheduled audit of every domain your company owns.
What is in one domain row?
You pass domains as hostnames, subdomains or URLs (URLs are reduced to the hostname). By default every check runs. You can limit checks to any of registration, dns, email, ssl, website, tech, hosting.
Registration (RDAP, WHOIS fallback): createdAt, expiresAt, updatedAt, registrar name and IANA id, status flags, nameservers, DNSSEC, and which source succeeded. registered is true, false, or null when a registry simply does not publish dates (some ccTLDs, for example .de, often expose no expiry over RDAP or WHOIS).
DNS: A, AAAA, CNAME, NS, CAA and TXT records, plus a short list of common domain-verification prefixes when they appear in TXT data (Google, Microsoft, and similar site-verification strings — not mailbox contents).
Email: MX hosts, a best-effort provider label (for example Google Workspace or Microsoft 365), SPF record and all policy, DMARC record and policy (none, quarantine, or reject).
SSL: issuer, subject, validity window, days until expiry, whether the certificate covers www, protocol and ALPN.
Website: whether the host answers, the redirect chain from http:// through HTTPS, status code, timing, title, meta description, language, and a small security-header score (HSTS, CSP, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy).
Tech and hosting: technologies fingerprinted from headers, cookies, scripts and HTML (CMS, analytics, chat, payments, CDN, and similar), plus the IP’s registered network from IP RDAP (for example Cloudflare, AWS, Vercel). Tech detection does not execute JavaScript, so tools that load only after interaction or only on other pages may be missed.
A test of eight mixed domains with all checks enabled finished in under three seconds on Apify and billed about $0.008 when we built the actor (eight domain events at $0.001 each, no start fee). Expect roughly one to three seconds per domain at the default concurrency of 10, depending on how slowly a registry or a website answers.
What this will not return
- Registrant or admin names, emails, physical addresses or phone numbers
- Historical WHOIS (previous registrars or past owners)
- Whether a domain is listed for sale, or an appraisal
- Guaranteed dates for registries that do not publish them
If you need those, you are in a different product category (historical WHOIS providers, or a registrar’s own account). This actor is a current, public-data profile.
Step-by-step
1. Make a clean list of registrable domains
Export the list from your registrar, your CRM, or a sitemap. You can paste URLs; they are reduced to the host. For expiry work, use the registrable domain (example.com), not a random subdomain, so the registration object refers to the name you actually renew.
2. Choose the checks you need
Expiry and registrar only: ["registration"]. A security review: ["registration", "dns", "email", "ssl"]. Lead enrichment: leave the default (all checks) so you also get tech stack, mail provider and hosting.
3. Run in bulk with a cap, then sort the results
Set maxItems if the list might contain junk. After the run, sort by registration.expiresAt and by ssl.daysUntilExpiry. Flag DMARC policy missing or none, and certificates with a small daysUntilExpiry.
4. Schedule the same list weekly
Expiry and certificates change slowly, but a weekly run is cheap enough to catch a missed renewal. Store the dataset and compare expiresAt to today plus 30 or 90 days in your own spreadsheet or script.
Working Python example
import os
from datetime import datetime, timezone
from apify_client import ApifyClient
client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("apizap.com/domain-intelligence-api").call(
run_input={
"domains": [
"hubspot.com",
"https://www.shopify.com/pricing",
"apizap.com",
],
"checks": ["registration", "dns", "email", "ssl", "website", "tech", "hosting"],
"maxItems": 100,
}
)
rows = client.dataset(run["defaultDatasetId"]).list_items().items
now = datetime.now(timezone.utc)
for row in rows:
reg = row.get("registration") or {}
ssl = row.get("ssl") or {}
email = row.get("email") or {}
print(
row["domain"],
"expires",
reg.get("expiresAt"),
"ssl days",
ssl.get("daysUntilExpiry"),
"dmarc",
email.get("dmarcPolicy"),
)
Working JavaScript example
import { ApifyClient } from "apify-client";
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor("apizap.com/domain-intelligence-api").call({
domains: ["hubspot.com", "apizap.com", "notion.so"],
checks: ["registration", "dns", "email", "ssl"],
maxItems: 100,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const row of items) {
const exp = row.registration?.expiresAt ?? "unknown";
const sslDays = row.ssl?.daysUntilExpiry ?? "n/a";
console.log(row.domain, "expires", exp, "ssl days", sslDays);
}
Invalid hostnames are skipped and not charged. If registration is empty for a ccTLD, read the note on the row — it usually means the registry does not publish dates, not that the name is free.
What does a run cost?
$0.001 per domain row ($1 per 1,000), with every selected check included in that price, and no start fee. You do not pay extra for SSL, DNS or tech detection.
| Domains returned | Total |
|---|---|
| 1 | $0.001 |
| 10 | $0.01 |
| 100 | $0.10 |
| 1,000 | $1.00 |
| 5,000 | $5.00 |
A weekly watch on 100 company domains is ten cents a week. A one-off enrichment of 1,000 lead websites is one dollar. That is the whole bill for this actor; keep your usual Apify account in mind if you run many other tools.
FAQ
Is this a WHOIS lookup? Does it return the owner’s email?
It prefers RDAP and falls back to WHOIS when a TLD needs it, but it only keeps registrar, dates, status and nameservers. Registrant contacts are omitted on purpose. They are personal data, and many registries redact them.
Why is expiry missing for some domains?
A few registries do not publish creation or expiry dates over RDAP or WHOIS. The row will show registered: null (or an equivalent note) rather than a guessed date. We do not invent expiry dates.
How accurate is the technology list?
It is a fingerprint of the homepage response (headers, cookies, scripts, HTML), without running JavaScript. A pixel or chat widget that appears only after a cookie banner is accepted may be missed. Treat the list as a useful hint, not an inventory of every vendor the company uses.
Can I check whether a domain is available to register?
You can see whether RDAP/WHOIS considers it registered. That is not a registrar “check availability” API, and it is not a guarantee you can register the name. Use your registrar for purchases.
Does this work for internationalized domains and ccTLDs?
Pass the hostname as you would in a browser. Coverage follows what the TLD’s RDAP or WHOIS service publishes. Dates and registrar fields are only as complete as that registry.
Domain Intelligence API on Apify StoreTool page