WH

WhoisXML API

global API

WhoisXML API

Type: domain
Module: WhoisXml

Capabilities

WHOIS Lookup DNS Intelligence Reverse WHOIS Domain Availability IP Geolocation Subdomain Discovery

Try WhoisXML API

API Endpoint

Results

Overview

WhoisXML API provides enterprise-grade domain and IP intelligence through a comprehensive suite of over 50 APIs and data feeds. The platform maintains one of the largest WHOIS databases globally, with over 7 billion historical WHOIS records spanning more than a decade, covering all gTLDs and over 1,000 ccTLDs. The service aggregates WHOIS registration data, DNS records, IP geolocation, subdomain intelligence, domain reputation, and website categorization into a unified API platform that powers security operations, brand protection, law enforcement investigations, and competitive intelligence research.

For OSINT investigators, WhoisXML API provides the foundational domain and infrastructure intelligence needed for any internet-focused investigation. The platform's reverse WHOIS capability -- searching for all domains registered by a specific person, email, or organization -- is particularly powerful for mapping an entity's complete domain portfolio. Combined with DNS intelligence, subdomain discovery, and IP geolocation, WhoisXML API enables comprehensive infrastructure mapping from a single starting point.

WhoisXML API distinguishes itself through the breadth of its product suite and the depth of its historical data. While many providers offer individual WHOIS or DNS lookup services, WhoisXML API provides an integrated platform that covers the full spectrum of domain and IP intelligence. The historical dimension is particularly valuable: even after GDPR-mandated WHOIS redaction reduced the availability of current registrant data, WhoisXML API's historical database retains pre-GDPR registration information that can still provide investigative leads.

The platform serves as a data provider to many downstream security products and services. Its APIs are integrated into SIEMs, SOARs, threat intelligence platforms, and investigation tools across the security industry, making WhoisXML API a foundational data layer for internet intelligence operations.

Data Sources and Coverage

WhoisXML API aggregates intelligence from multiple data collection systems across the global internet infrastructure.

ProductDescriptionCoverage
WHOIS APIReal-time and parsed WHOIS registration dataAll gTLDs, 1,000+ ccTLDs
WHOIS History APIHistorical WHOIS records with change tracking7B+ records, 10+ years
DNS Lookup APIAll DNS record types with propagation checkingGlobal DNS infrastructure
Reverse WHOIS APISearch by registrant name, email, organizationAll indexed domains
Reverse DNS APIDomains resolving to a specific IPComprehensive coverage
Reverse MX APIDomains using specific mail serversAll indexed MX records
Reverse NS APIDomains using specific nameserversAll indexed NS records
Subdomain Lookup APIPassive subdomain enumerationMillions of domains
Domain Reputation APIThreat scoring and categorizationReal-time scoring
Website CategorizationContent classification for domains70+ categories
IP Geolocation APIPhysical and network location dataAll IPv4 and IPv6
IP Netblocks APINetwork block ownership and allocationAll RIR data
Email Verification APIDeliverability and existence checkingAny email address
Website Contact APIContact information extractionCrawled websites
Domain Availability APIReal-time registration statusAll gTLDs
Newly Registered DomainsDaily feed of new registrationsAll gTLDs
Dropped DomainsDaily feed of expired/dropped domainsAll gTLDs

WHOIS Data Coverage

RegiongTLD CoverageccTLD CoverageHistorical Depth
Global (gTLDs).com, .net, .org, .info, .biz, 1500+ new gTLDsComplete10+ years
Europe.de, .uk, .fr, .nl, .cz, .euMost major ccTLDs5-10 years
Americas.us, .ca, .br, .mx, .coMajor ccTLDs5-10 years
Asia-Pacific.cn, .jp, .au, .in, .krMajor ccTLDs5-10 years
Other.ru, .za, .ae, .il, .ngGrowing coverageVaries

API Integration

WhoisXML API provides REST APIs with JSON responses. Authentication uses API key as a query parameter or header.

Core API Endpoints

EndpointMethodDescription
/WhoisService/WhoisServiceGETWHOIS lookup with parsed output
/WhoisHistoryService/WhoisHistoryServiceGETHistorical WHOIS records
/ReverseWhoisService/ReverseWhoisServicePOSTReverse WHOIS search
/DNSService/DNSServiceGETDNS record lookup (all types)
/ReverseDNSService/ReverseDNSServiceGETReverse DNS by IP
/ReverseMXService/ReverseMXServiceGETReverse MX lookup
/ReverseNSService/ReverseNSServiceGETReverse NS lookup
/SubdomainsLookup/SubdomainsLookupServiceGETSubdomain enumeration
/DomainReputation/DomainReputationServiceGETDomain threat scoring
/WebsiteCategorization/WebsiteCategorizationServiceGETContent categorization
/GeoIPService/GeoIPServiceGETIP geolocation
/EmailVerification/EmailVerificationServiceGETEmail validation

Rate Limits by Plan

PlanCredits/MonthDRS QueriesFeaturesPrice
Free500100Basic lookups, limited history$0
Starter5,0001,000Full API, parsed output$29/mo
Professional25,0005,000All APIs, bulk queries$99/mo
EnterpriseCustomCustomDedicated support, SLACustom

Query Examples

curl Examples

# WHOIS lookup with parsed output
curl "https://www.whoisxmlapi.com/whoisserver/WhoisService?domainName=example.com&outputFormat=JSON&apiKey=YOUR_KEY"

# Historical WHOIS records
curl "https://whois-history.whoisxmlapi.com/api/v1?domainName=example.com&apiKey=YOUR_KEY&mode=purchase"

# Reverse WHOIS - find all domains by registrant
curl -X POST "https://reverse-whois.whoisxmlapi.com/api/v2" \
  -H "Content-Type: application/json" \
  -d '{"apiKey": "YOUR_KEY", "searchType": "current", "mode": "purchase", "basicSearchTerms": {"include": ["john@example.com"]}}'

# DNS lookup (all record types)
curl "https://www.whoisxmlapi.com/whoisserver/DNSService?domainName=example.com&type=_all&outputFormat=JSON&apiKey=YOUR_KEY"

# Reverse DNS - domains on an IP
curl "https://dns-history.whoisxmlapi.com/api/v1?apiKey=YOUR_KEY&ip=1.2.3.4"

# Subdomain enumeration
curl "https://subdomains.whoisxmlapi.com/api/v1?domainName=example.com&apiKey=YOUR_KEY&outputFormat=JSON"

# Domain reputation scoring
curl "https://domain-reputation.whoisxmlapi.com/api/v1?domainName=example.com&apiKey=YOUR_KEY"

# IP geolocation
curl "https://ip-geolocation.whoisxmlapi.com/api/v1?ipAddress=1.2.3.4&apiKey=YOUR_KEY"

# Email verification
curl "https://emailverification.whoisxmlapi.com/api/v3?emailAddress=test@example.com&apiKey=YOUR_KEY"

# Website categorization
curl "https://website-categorization.whoisxmlapi.com/api/v3?domainName=example.com&apiKey=YOUR_KEY"

# Reverse MX - domains using specific mail server
curl "https://reverse-mx.whoisxmlapi.com/api/v1?mx=mx.google.com&apiKey=YOUR_KEY"

Elixir Integration

# WHOIS lookup with full parsed data
{:ok, whois} = PrismaticOsint.WhoisXml.lookup("example.com")
# => %{
#   domain: "example.com",
#   registrar: "Namecheap, Inc.",
#   created: ~D[2010-01-15],
#   updated: ~D[2025-06-01],
#   expires: ~D[2027-01-15],
#   registrant: %{
#     name: "Domain Admin",
#     organization: "Example Corp",
#     email: "admin@example.com",
#     country: "US"
#   },
#   nameservers: ["ns1.cloudflare.com", "ns2.cloudflare.com"],
#   status: ["clientTransferProhibited"]
# }

# Historical WHOIS - track ownership changes
{:ok, history} = PrismaticOsint.WhoisXml.history("example.com")
# => %{
#   domain: "example.com",
#   records_count: 15,
#   records: [
#     %{date: ~D[2025-06-01], registrant: "Example Corp", registrar: "Namecheap"},
#     %{date: ~D[2022-03-15], registrant: "Previous Owner LLC", registrar: "GoDaddy"},
#     %{date: ~D[2018-01-01], registrant: "Original Corp", registrar: "Name.com"}
#   ]
# }

# Reverse WHOIS - find all domains by registrant
{:ok, domains} = PrismaticOsint.WhoisXml.reverse("admin@example.com",
  search_type: :current
)
# => %{
#   total: 47,
#   domains: ["example.com", "example.org", "example-shop.com",
#     "corporate-site.com", "product-landing.io"]
# }

# Subdomain discovery
{:ok, subs} = PrismaticOsint.WhoisXml.subdomains("example.com")
# => %{
#   domain: "example.com",
#   subdomains: ["www", "mail", "cdn", "api", "dev", "staging",
#     "vpn", "admin", "blog", "shop"]
# }

# Domain reputation scoring
{:ok, reputation} = PrismaticOsint.WhoisXml.reputation("suspicious-domain.com")
# => %{
#   domain: "suspicious-domain.com",
#   reputation_score: 23.5,  # 0-100, lower is worse
#   warnings: [
#     %{type: "malware", source: "Google Safe Browsing"},
#     %{type: "newly_registered", days_old: 15}
#   ]
# }

# IP geolocation with network details
{:ok, geo} = PrismaticOsint.WhoisXml.geolocate("1.2.3.4")
# => %{
#   ip: "1.2.3.4",
#   country: "US", region: "California", city: "San Francisco",
#   lat: 37.7749, lng: -122.4194,
#   isp: "Cloudflare, Inc.", organization: "Cloudflare",
#   asn: "AS13335", connection_type: "Corporate"
# }

# Comprehensive domain investigation pipeline
{:ok, investigation} = PrismaticOsint.Pipeline.domain_investigation("example.com",
  sources: [:whoisxml, :securitytrails, :crtsh, :shodan],
  include: [:whois_history, :subdomains, :reverse_whois, :dns_history, :reputation]
)

Data Schema

FieldTypeDescription
domainNamestringQueried domain name
registrarNamestringDomain registrar
registrarIANAIDstringIANA registrar identifier
createdDateNormalizeddateDomain creation date
updatedDateNormalizeddateLast WHOIS update date
expiresDateNormalizeddateDomain expiration date
registrant.namestringRegistrant contact name
registrant.organizationstringRegistrant organization
registrant.emailstringRegistrant email
registrant.countrystringRegistrant country
administrativeContactobjectAdministrative contact details
technicalContactobjectTechnical contact details
nameServersarrayNameserver hostnames
statusarrayDomain status codes (EPP)
domainAvailabilitystringRegistration status
reputation.reputationScorefloatDomain reputation (0-100)
reputation.warningsarrayThreat indicators
geoLocation.countrystringIP country code
geoLocation.citystringIP city
geoLocation.ispstringInternet Service Provider
geoLocation.as.asnintegerAutonomous System Number
subdomainsarrayDiscovered subdomains

Use Cases

Domain Portfolio Mapping

Reverse WHOIS is the primary tool for discovering an organization's complete domain portfolio. By searching for registrant name, email, or organization, analysts discover all domains registered by a target entity, including brands, product domains, campaign-specific domains, and potentially sensitive internal domains.

Infrastructure Attribution

WHOIS history combined with DNS intelligence enables attribution of internet infrastructure to specific entities. Even when current WHOIS data is redacted due to GDPR, historical records may reveal previous registrant information, providing investigative leads for infrastructure ownership determination.

Brand Protection

WhoisXML API's newly registered domains feed enables proactive monitoring for domains that may infringe on organizational brands. By monitoring new registrations containing brand keywords, typosquatting variations, or homograph characters, organizations detect and respond to phishing campaigns and brand abuse early.

Threat Investigation

Domain reputation scoring, combined with DNS intelligence and WHOIS data, enables rapid assessment of suspicious domains encountered during security investigations. The platform's comprehensive data model provides the context needed to determine whether a domain is associated with malicious activity.

Attack Surface Discovery

Subdomain enumeration combined with reverse DNS and reverse NS lookups maps the complete domain infrastructure of a target organization. This feeds into External Attack Surface Management (EASM) workflows alongside data from SecurityTrails and Shodan.

Fraud Investigation

Historical WHOIS data reveals domain ownership changes, registration patterns, and contact information associated with fraudulent operations. Combined with email verification and website categorization, WhoisXML API supports fraud investigation and evidence gathering.

Limitations

LimitationImpactMitigation
GDPR WHOIS redactionCurrent WHOIS for EU domains increasingly redactedUse historical records; combine with reverse WHOIS techniques
Credit-based pricingEach API call consumes credits; complex investigations use manyMonitor credit consumption; cache results aggressively
ccTLD coverage variesSome country-code TLDs have limited WHOIS dataSupplement with regional WHOIS services for specific ccTLDs
Subdomain completenessPassive enumeration may miss some subdomainsCombine with crt.sh and SecurityTrails
Reputation score contextDomain reputation is automated and may lack contextUse reputation as one signal among many; validate manually
Rate limits on free tier500 credits/month limits investigation scopeUse paid plans for production; implement intelligent caching

WHOIS Data Access: WHOIS data is traditionally publicly available through the WHOIS protocol. WhoisXML API aggregates this publicly accessible data. However, GDPR has restricted access to registrant personal data for European domains since 2018.

Reverse WHOIS Ethics: Reverse WHOIS searches can reveal an individual's or organization's complete domain portfolio. Use this capability responsibly, particularly when investigating individuals, and ensure activities comply with applicable privacy regulations.

Historical Data and Privacy: Historical WHOIS records may contain personal data that registrants later chose to redact. While historical data is legally collected, responsible use includes considering the privacy implications of de-redacting information that registrants intentionally concealed.

Data Retention: Organizations using WhoisXML API data should establish data retention policies that comply with applicable regulations, particularly for personal data extracted from WHOIS records.

Integration with Prismatic Platform

Within the Prismatic Platform, WhoisXML API serves as the primary WHOIS and domain registration intelligence source.

  • Domain Investigation: WhoisXML API provides the WHOIS foundation for all domain-focused investigations, including current records, historical changes, and reverse lookups.
  • Attack Surface Mapping: Subdomain discovery and reverse DNS feed into Prismatic Perimeter alongside SecurityTrails and crt.sh for comprehensive domain infrastructure mapping.
  • Entity Resolution: Reverse WHOIS searches map domain portfolios to entities in the platform's knowledge graph, connecting organizational identities to their internet infrastructure.
  • Brand Monitoring: Newly registered domain feeds are monitored for brand-relevant registrations, triggering alerts for potential phishing or brand abuse.
  • Reputation Scoring: Domain reputation data feeds into the platform's entity risk scoring for assessed organizations and their infrastructure.
  • Cross-Source Validation: WhoisXML API data is cross-referenced with SecurityTrails, RiskIQ, and PassiveDNS for multi-source domain intelligence.

Best Practices

  1. Start with reverse WHOIS: When investigating an entity, begin with reverse WHOIS to discover their complete domain portfolio before investigating individual domains.

  2. Check historical WHOIS: Even if current WHOIS is redacted, historical records often contain unredacted registrant data that provides investigative leads.

  3. Use bulk queries: For investigations involving many domains, use batch/bulk query capabilities to maximize credit efficiency.

  4. Cache aggressively: WHOIS data changes infrequently. Cache results for days to weeks to minimize credit consumption.

  5. Combine with DNS intelligence: WHOIS tells you who registered a domain; DNS tells you where it points. Use both for complete infrastructure mapping.

  6. Monitor domain feeds: Set up monitoring for newly registered domains matching brand keywords or investigation-relevant patterns.

  7. Verify email contacts: Use the email verification API to validate discovered email addresses before using them in outreach or investigations.

  8. Use reputation scoring for triage: Domain reputation provides a quick initial assessment. High-risk scores warrant deeper investigation; clean scores may deprioritize a domain in triage.

  • SecurityTrails - DNS history and domain intelligence
  • RiskIQ - Passive DNS with host pairs and web crawling
  • PassiveDNS - Historical DNS resolution databases
  • Censys - Certificate-based domain discovery
  • DNSDumpster - Free DNS reconnaissance
  • crt.sh - Certificate transparency logs
  • Shodan - IP-level service discovery
  • Hunter.io - Email discovery for discovered domains

Connect & Contribute

Created by Tomáš Korcak (korczis) | Open Source under GHL