Install: see the Swift guide. Set the WHOISFREAKS_API_KEY environment variable and run any file below.
WhoisLive.swift: Live WHOIS Lookup (GET /v2.0/whois/live)BulkWhois.swift: Bulk WHOIS Lookup (POST /v2.0/bulkwhois/live)WhoisHistory.swift: Historical WHOIS records for a domain (GET /v2.0/whois/history)WhoisReverse.swift: Reverse WHOIS lookup by keyword (GET /v2.0/whois/reverse)DnsLive.swift: Live DNS Lookup (GET /v2.0/dns/live)DnsHistorical.swift: Historical DNS Lookup (GET /v2.0/dns/historical)DnsReverse.swift: Reverse DNS Lookup (GET /v2.1/dns/reverse)DnsHistoricalV22.swift: Historical DNS Lookup (v2.2) (GET /v2.2/dns/historical)DnsHistoricalV23.swift: Historical DNS Lookup (v2.3) (GET /v2.3/dns/historical)DnsReverseV22.swift: Reverse DNS Lookup (v2.2) (GET /v2.2/dns/reverse)DnsReverseV23.swift: Reverse DNS Lookup (v2.3) (GET /v2.3/dns/reverse)DnsBulk.swift: Bulk DNS Lookup (POST /v2.0/dns/bulk/live)DomainAvailabilityV2.swift: Domain Availability Check with Suggestions (GET /v2.0/domain/availability)BulkDomainAvailabilityV2.swift: Bulk Domain Availability Check (POST /v2.0/domain/availability)Typosquatting.swift: Typosquatting Lookup (GET /v3.0/domain/typos)SslLookup.swift: SSL Certificate Lookup (GET /v1.0/ssl/live)Geolocation.swift: IP Geolocation Lookup (GET /v1.0/geolocation)BulkGeolocation.swift: Bulk IP Geolocation (POST /v1.0/geolocation)Subdomains.swift: Subdomains Lookup (GET /v1.0/subdomains)IpReputation.swift: IP Reputation Lookup (GET /v1.0/security)BulkIpReputation.swift: Bulk IP Reputation (POST /v1.0/security)IpReputationV2.swift: IP Reputation Lookup (v2.0) (GET /v2.0/security)BulkIpReputationV2.swift: Bulk IP Reputation (v2.0) (POST /v2.0/security)DomainReputation.swift: Domain Reputation Lookup (GET /v1/domain/security)AsnWhois.swift: ASN WHOIS Lookup (GET /v2.0/asn-whois)IpWhois.swift: IP WHOIS Lookup (GET /v1.0/ip-whois)RotateApiKey.swift: Rotate API Key (GET /v1.0/api-key/rotate)AccountUsage.swift: Account Usage (GET /v1.0/whoisapi/usage)DatabaseFileStatus.swift: Database File Status (Public) (GET /v3.4/status)DbNewlyGtld.swift: Newly Registered gTLD (CSV) (GET /v3.1/download/domainer/gtld)DbNewlyCctld.swift: Newly Registered ccTLD (CSV) (GET /v3.1/download/domainer/cctld)DbNewlyGtldCleaned.swift: Newly Registered gTLD Cleaned WHOIS (CSV) (GET /v3.1/download/domainer/gtld/cleaned)DbNewlyCctldCleaned.swift: Newly Registered ccTLD Cleaned WHOIS (CSV) (GET /v3.1/download/domainer/cctld/cleaned)DbNewlyGtldJson.swift: Newly Registered gTLD (JSON) (GET /v3.1/domains/newly/gtld)DbNewlyCctldJson.swift: Newly Registered ccTLD (JSON) (GET /v3.1/domains/newly/cctld)DbNewlyDns.swift: Newly Registered With DNS (GET /v3.1/download/domainer/newly/dns)DbExpired.swift: Expiring Domains (GET /v3.1/download/domainer/expired)DbExpiredCleaned.swift: Expiring Cleaned WHOIS (GET /v3.1/download/domainer/expired/cleaned)DbDropped.swift: Dropped Domains (GET /v3.1/download/domainer/dropped)DbDroppedJson.swift: Dropped Domains (JSON) (GET /v3.1/domains/dropped)DbDroppedBacklinks.swift: Dropped With Backlinks (GET /v3.3/download/domainer/dropped/backlinks)DbWhoisDaily.swift: WHOIS Database Daily (GET /v3.3/download/dbupdate/daily/domains/whois)DbWhoisWeekly.swift: WHOIS Database Weekly (GET /v3.3/download/dbupdate/weekly/domains/whois)DbWhoisMonthly.swift: WHOIS Database Monthly (GET /v3.3/download/dbupdate/monthly/domains/whois)DbDnsDaily.swift: DNS Database Daily (GET /v3.2/download/dbupdate/daily/dns)DbDnsWeekly.swift: DNS Database Weekly (GET /v3.2/download/dbupdate/weekly/dns)DbDnsMonthly.swift: DNS Database Monthly (GET /v3.2/download/dbupdate/monthly/dns)DbSubdomainsDaily.swift: Subdomains Daily (GET /v3.2/download/dbupdate/daily/subdomains)DbSubdomainsWeekly.swift: Subdomains Weekly (GET /v3.2/download/dbupdate/weekly/subdomains)DbSubdomainsMonthly.swift: Subdomains Monthly (GET /v3.2/download/dbupdate/monthly/subdomains)DbIpCountryStatus.swift: IP to Country Snapshot Status (GET /v3.3/status/snapshot/ip/country)DbIpCountry.swift: IP to Country Snapshot (GET /v3.3/download/snapshot/ip/country)DbIpCityStatus.swift: IP to City Snapshot Status (GET /v3.3/status/snapshot/ip/city)DbIpCity.swift: IP to City Snapshot (GET /v3.3/download/snapshot/ip/city)DbAsnWhois.swift: ASN WHOIS Snapshot (GET /v3.3/download/snapshot/asn/whois)DbAsnWhoisStatus.swift: ASN WHOIS Snapshot Status (GET /v3.3/status/snapshot/asn/whois)DbIpWhois.swift: IP WHOIS Snapshot (GET /v3.3/download/snapshot/ip/whois)DbIpWhoisStatus.swift: IP WHOIS Snapshot Status (GET /v3.3/status/snapshot/ip/whois)DbIpSecurity.swift: IP Security Snapshot (GET /v3.3/download/snapshot/ip/security)DbIpSecurityStatus.swift: IP Security Snapshot Status (GET /v3.3/status/snapshot/ip/security)DownloadThreatFeedPhishing.swift: Download the daily phishing threat feed (CSV) (GET /v3.4/download/threat-feed/phishing)DownloadThreatFeedPhishingSample.swift: Download a sample of the phishing threat feed (CSV) (GET /v3.4/download/threat-feed/phishing/sample)DownloadThreatFeedMalware.swift: Download the daily malware threat feed (CSV) (GET /v3.4/download/threat-feed/malware)DownloadThreatFeedMalwareSample.swift: Download a sample of the malware threat feed (CSV) (GET /v3.4/download/threat-feed/malware/sample)DownloadThreatFeedSpam.swift: Download the daily spam threat feed (CSV) (GET /v3.4/download/threat-feed/spam)DownloadThreatFeedSpamSample.swift: Download a sample of the spam threat feed (CSV) (GET /v3.4/download/threat-feed/spam/sample)StreamThreatFeedPhishing.swift: Stream the daily phishing threat feed (CSV) (GET /v3.4/stream/threat-feed/phishing)StreamThreatFeedPhishingSample.swift: Stream a sample of the phishing threat feed (CSV) (GET /v3.4/stream/threat-feed/phishing/sample)StreamThreatFeedMalware.swift: Stream the daily malware threat feed (CSV) (GET /v3.4/stream/threat-feed/malware)StreamThreatFeedMalwareSample.swift: Stream a sample of the malware threat feed (CSV) (GET /v3.4/stream/threat-feed/malware/sample)StreamThreatFeedSpam.swift: Stream the daily spam threat feed (CSV) (GET /v3.4/stream/threat-feed/spam)StreamThreatFeedSpamSample.swift: Stream a sample of the spam threat feed (CSV) (GET /v3.4/stream/threat-feed/spam/sample)StreamDomainerGtld.swift: Stream newly registered gTLD domains (CSV) (GET /v3.3/stream/domainer/gtld)StreamDomainerGtldCleaned.swift: Stream cleaned newly registered gTLD domains (CSV) (GET /v3.3/stream/domainer/gtld/cleaned)StreamDomainerGtldCleanedEmail.swift: Stream cleaned newly registered gTLD domains with an email (CSV) (GET /v3.3/stream/domainer/gtld/cleaned/email)StreamDomainerGtldCleanedPhone.swift: Stream cleaned newly registered gTLD domains with a phone (CSV) (GET /v3.3/stream/domainer/gtld/cleaned/phone)StreamDomainerCctld.swift: Stream newly registered ccTLD domains (CSV) (GET /v3.3/stream/domainer/cctld)StreamDomainerCctldCleaned.swift: Stream cleaned newly registered ccTLD domains (CSV) (GET /v3.3/stream/domainer/cctld/cleaned)StreamDomainerCctldCleanedEmail.swift: Stream cleaned newly registered ccTLD domains with an email (CSV) (GET /v3.3/stream/domainer/cctld/cleaned/email)StreamDomainerCctldCleanedPhone.swift: Stream cleaned newly registered ccTLD domains with a phone (CSV) (GET /v3.3/stream/domainer/cctld/cleaned/phone)StreamDomainerExpired.swift: Stream expiring domains (CSV) (GET /v3.3/stream/domainer/expired)StreamDomainerExpiredCleaned.swift: Stream cleaned expiring domains (CSV) (GET /v3.3/stream/domainer/expired/cleaned)StreamDomainerExpiredCleanedEmail.swift: Stream cleaned expiring domains with an email (CSV) (GET /v3.3/stream/domainer/expired/cleaned/email)StreamDomainerExpiredCleanedPhone.swift: Stream cleaned expiring domains with a phone (CSV) (GET /v3.3/stream/domainer/expired/cleaned/phone)StreamDomainerDropped.swift: Stream dropped domains (CSV) (GET /v3.3/stream/domainer/dropped)StreamDomainerDroppedBacklinks.swift: Stream dropped domains with backlinks (CSV) (GET /v3.3/stream/domainer/dropped/backlinks)StreamDomainerGtldSample.swift: Stream a sample of newly registered gTLD domains (CSV) (GET /v3.3/stream/domainer/sample/gtld)StreamDomainerGtldCleanedSample.swift: Stream a sample of cleaned newly registered gTLD domains (CSV) (GET /v3.3/stream/domainer/sample/gtld/cleaned)StreamDomainerCctldSample.swift: Stream a sample of newly registered ccTLD domains (CSV) (GET /v3.3/stream/domainer/sample/cctld)StreamDomainerCctldCleanedSample.swift: Stream a sample of cleaned newly registered ccTLD domains (CSV) (GET /v3.3/stream/domainer/sample/cctld/cleaned)StreamDomainerExpiredSample.swift: Stream a sample of expiring domains (CSV) (GET /v3.3/stream/domainer/sample/expired)StreamDomainerExpiredCleanedSample.swift: Stream a sample of cleaned expiring domains (CSV) (GET /v3.3/stream/domainer/sample/expired/cleaned)StreamDomainerDroppedSample.swift: Stream a sample of dropped domains (CSV) (GET /v3.3/stream/domainer/sample/dropped)StreamDomainerDroppedBacklinksSample.swift: Stream a sample of dropped domains with backlinks (CSV) (GET /v3.3/stream/domainer/sample/dropped/backlinks)