Skip to content
WhoisFreaksPublic

About

WHOIS API: live, historical, reverse and bulk WHOIS lookups as normalized JSON for 1,529+ TLDs. REST examples in cURL, Python, Node.js and Go. 500 free credits, no credit card.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

WHOIS API: Live, Historical, Reverse and Bulk WHOIS Lookups

Look up the WHOIS record of any domain with the WhoisFreaks WHOIS API, a REST API you can call from any language. Every lookup queries WHOIS servers and RDAP live, across 1,529+ TLDs, and returns one normalized JSON format: the same field names, date format and registrar names whichever registry the domain belongs to.

The same API key also covers WHOIS history (every ownership change since 1986), reverse WHOIS (every domain tied to a keyword, email or company across 4.5B+ records) and bulk WHOIS (up to 100 domains per request). This page shows each one over plain HTTP and with the official Python SDK. Ready-to-run scripts in cURL, Python, Node.js and Go are in examples/. New accounts get 500 free credits that never expire, with no credit card, and free keys can be used commercially.

A live WHOIS lookup for whoisfreaks.com returns this (trimmed; the full record is below):

{
  "status": true,
  "domain_name": "whoisfreaks.com",
  "domain_registered": "yes",
  "create_date": "2019-03-19",
  "update_date": "2026-02-17",
  "expiry_date": "2027-03-19",
  "domain_registrar": {
    "iana_id": "1068",
    "registrar_name": "NAMECHEAP INC",
    "normalized_name": "namecheap, inc."
  },
  "registrant_contact": {
    "company": "Privacy service provided by WITHHELD FOR PRIVACY LLC",
    "city": "Lewes",
    "state": "Delaware",
    "country_code": "US"
  },
  "name_servers": ["albert.ns.cloudflare.com", "sue.ns.cloudflare.com"],
  "domain_status": ["clienttransferprohibited"]
}
Full response: every field, including the admin, technical and registry records

Only the two raw WHOIS text fields, whois_raw_domain and registry_data.whois_raw_registery, are shortened here.

{
  "status": true,
  "domain_name": "whoisfreaks.com",
  "query_time": "2026-10-13 11:55:56",
  "domain_registered": "yes",
  "create_date": "2019-03-19",
  "update_date": "2026-02-17",
  "expiry_date": "2027-03-19",
  "domain_registrar": {
    "iana_id": "1068",
    "status": "accredited",
    "registrar_name": "NAMECHEAP INC",
    "normalized_name": "namecheap, inc.",
    "rdap_server": "https://rdap.namecheap.com/",
    "website_url": "http://www.namecheap.com",
    "email_address": "support@namecheap.com",
    "phone_number": "+16613102107"
  },
  "reseller_contact": {
    "name": "NAMECHEAP INC"
  },
  "registrant_contact": {
    "name": "Redacted for Privacy Purposes",
    "company": "Privacy service provided by WITHHELD FOR PRIVACY LLC",
    "street": "16192 Coastal Highway",
    "city": "Lewes",
    "state": "Delaware",
    "zip_code": "19958",
    "country_name": "United States",
    "country_code": "US",
    "email_address": "b8e54d7b11b347b285b60992e0889dde.protect@withheldforprivacy.com",
    "phone": "+13022061391"
  },
  "administrative_contact": {
    "name": "Redacted for Privacy Purposes",
    "company": "Privacy service provided by WITHHELD FOR PRIVACY LLC",
    "street": "16192 Coastal Highway",
    "city": "Lewes",
    "state": "Delaware",
    "zip_code": "19958",
    "country_name": "United States",
    "country_code": "US",
    "email_address": "b8e54d7b11b347b285b60992e0889dde.protect@withheldforprivacy.com",
    "phone": "+13022061391"
  },
  "technical_contact": {
    "name": "Redacted for Privacy Purposes",
    "company": "Privacy service provided by WITHHELD FOR PRIVACY LLC",
    "street": "16192 Coastal Highway",
    "city": "Lewes",
    "state": "Delaware",
    "zip_code": "19958",
    "country_name": "United States",
    "country_code": "US",
    "email_address": "b8e54d7b11b347b285b60992e0889dde.protect@withheldforprivacy.com",
    "phone": "+13022061391"
  },
  "name_servers": [
    "albert.ns.cloudflare.com",
    "sue.ns.cloudflare.com"
  ],
  "domain_status": [
    "clienttransferprohibited"
  ],
  "whois_raw_domain": "Domain name: whoisfreaks.com\nRegistry Domain ID: 2370976244_DOMAIN_COM-VRSN\nRegistrar WHOIS Server: whois.namecheap.com\nRegistrar URL: http://www.namecheap.com\n...",
  "registry_data": {
    "domain_name": "WHOISFREAKS.COM",
    "query_time": "2026-10-13 11:55:54",
    "whois_server": "",
    "domain_registered": "yes",
    "create_date": "2019-03-19",
    "update_date": "2026-02-17",
    "expiry_date": "2027-03-19",
    "domain_registrar": {
      "iana_id": "1068",
      "registrar_name": "NameCheap, Inc",
      "website_url": "http://www.namecheap.com"
    },
    "name_servers": [
      "albert.ns.cloudflare.com",
      "sue.ns.cloudflare.com"
    ],
    "domain_status": [
      "clienttransferprohibited"
    ],
    "whois_raw_registery": "Domain Name: WHOISFREAKS.COM\n   Registry Domain ID: 2370976244_DOMAIN_COM-VRSN\n   Registrar WHOIS Server: whois.namecheap.com\n   Registrar URL: http://www.namecheap.com\n..."
  }
}

Contents

Quick start

No SDK needed. The API is a plain HTTPS GET with your key in the apiKey parameter:

curl "https://api.whoisfreaks.com/v2.0/whois/live?domainName=whoisfreaks.com&apiKey=$WHOISFREAKS_API_KEY"

The same call in Node.js and Go is in examples/. For Python, the SDK adds typed responses and error handling:

1. Install the SDK (Python 3.8 or later):

pip install "whoisfreaks>=0.23.0"

2. Get an API key. Create a free account at billing.whoisfreaks.com/signup. New accounts get 500 free credits with no credit card, enough for 500 live WHOIS lookups.

3. Keep the key out of your code. Export it as an environment variable:

export WHOISFREAKS_API_KEY="your_api_key"

4. Configure the client once. Every example below starts from this setup:

import os
import whoisfreaks

config = whoisfreaks.Configuration()
config.api_key["ApiKeyAuth"] = os.environ["WHOISFREAKS_API_KEY"]

WHOIS lookup

A live lookup reads the current record from the registry and registrar, not from a cache, so recent changes show up in the response.

with whoisfreaks.ApiClient(config) as client:
    whois = whoisfreaks.WHOISApi(client)
    record = whois.whois_live("whoisfreaks.com")

    print(record.domain_registered)                 # yes
    print(record.create_date, record.expiry_date)   # 2019-03-19 2027-03-19
    print(record.domain_registrar.registrar_name)   # NAMECHEAP INC
    print(record.name_servers)                      # ['albert.ns.cloudflare.com', 'sue.ns.cloudflare.com']

The same request over plain HTTP:

curl "https://api.whoisfreaks.com/v2.0/whois/live?domainName=whoisfreaks.com&apiKey=$WHOISFREAKS_API_KEY"

In Node.js 18 or later, with no dependencies (save it as a .mjs file):

const url = new URL("https://api.whoisfreaks.com/v2.0/whois/live");
url.search = new URLSearchParams({
  domainName: "whoisfreaks.com",
  apiKey: process.env.WHOISFREAKS_API_KEY,
});

const record = await (await fetch(url)).json();
console.log(record.domain_registrar?.normalized_name, record.expiry_date);

Add format="xml" (or &format=xml) if you need XML instead of JSON.

What the response contains

Registries and registrars publish WHOIS data in different layouts. The API parses all of them into one structure, so a .com, a .de and a .io record can be compared field by field.

Field What it holds Example
status Whether the lookup succeeded true
domain_name, query_time The domain and when it was looked up whoisfreaks.com, 2026-10-13 11:55:56
domain_registered Whether the domain is registered yes
create_date, update_date, expiry_date Dates in one format, YYYY-MM-DD 2019-03-19
domain_registrar Registrar: iana_id, status, registrar_name, normalized_name, rdap_server, website_url, email_address, phone_number 1068, NAMECHEAP INC
domain_registrar.normalized_name One registrar name, however it is spelled namecheap, inc. for both NAMECHEAP INC and NameCheap, Inc
reseller_contact The reseller, when there is one NAMECHEAP INC
registrant_contact, administrative_contact, technical_contact, billing_contact Parsed contacts: name, company, street, city, state, zip_code, country_name, country_code, email_address, phone Lewes, Delaware, US
name_servers Name servers albert.ns.cloudflare.com
domain_status EPP status codes clienttransferprohibited
whois_raw_domain The registrar's raw WHOIS text
registry_data The registry's own record: domain_name, query_time, whois_server, domain_registered, dates, domain_registrar (as the registry spells it), name_servers, domain_status and the raw text in whois_raw_registery NameCheap, Inc

Some registries return more: secure_dns (DNSSEC), domain_handle, eligibility_info and abuse_contact appear when the registry provides them, and contacts are left out when it doesn't.

Many registrants use privacy services, so contact fields often contain the privacy provider rather than the owner, as in the example above. Registrar, dates, name servers and status codes are usually public.

registrant = record.registrant_contact

print(record.domain_registrar.normalized_name)   # namecheap, inc.
print(registrant.city, registrant.state)         # Lewes Delaware
print(registrant.country_code)                   # US

WHOIS history API

The WHOIS history API returns every distinct WHOIS record captured for a domain since 1986, in a single response. A new entry is stored only when the registration data actually changed, so you get a clean ownership timeline instead of thousands of identical snapshots.

Use it to see who owned a domain before you buy it, when a domain changed registrar, or when an expired domain was re-registered by someone else.

with whoisfreaks.ApiClient(config) as client:
    history = whoisfreaks.WHOISApi(client).whois_history("whoisfreaks.com")

    print(history.total_records, "records")
    for entry in history.whois_domains_historical or []:
        registrar = entry.domain_registrar.registrar_name if entry.domain_registrar else None
        print(entry.query_time, entry.create_date, entry.expiry_date, registrar)

Each entry has the same fields as a live lookup, plus num (its position in the history) and query_time (when the record was captured). One request returns the full history, with no pagination, and costs 2 credits.

Example response: whoisfreaks.com has 410 historical records; the first is shown
{
  "status": true,
  "whois": "historical",
  "total_records": "410",
  "whois_domains_historical": [
    {
      "num": 1,
      "status": true,
      "domain_name": "whoisfreaks.com",
      "query_time": "2022-04-05 11:35:45",
      "whois_server": "",
      "create_date": "2019-03-19",
      "update_date": "2022-02-17",
      "expiry_date": "2023-03-19",
      "domain_registrar": {
        "iana_id": "1068",
        "registrar_name": "namecheap, inc",
        "website_url": "http://www.namecheap.com"
      },
      "registrant_contact": {
        "name": "redacted for privacy",
        "company": "privacy service provided by withheld for privacy ehf",
        "city": "Reykjavik",
        "state": "Capital Region",
        "zip_code": "101",
        "country_name": "Iceland",
        "country_code": "IS",
        "email_address": "b8e54d7b11b347b285b60992e0889dde.protect@withheldforprivacy.com",
        "phone": "+3544212434"
      },
      "administrative_contact": {
        "name": "Redacted for Privacy",
        "company": "Privacy service provided by Withheld for Privacy ehf",
        "city": "Reykjavik",
        "state": "Capital Region",
        "zip_code": "101",
        "country_name": "Iceland",
        "country_code": "IS",
        "email_address": "b8e54d7b11b347b285b60992e0889dde.protect@withheldforprivacy.com",
        "phone": "+3544212434"
      },
      "technical_contact": {
        "name": "Redacted for Privacy",
        "company": "Privacy service provided by Withheld for Privacy ehf",
        "city": "Reykjavik",
        "state": "Capital Region",
        "zip_code": "101",
        "country_name": "Iceland",
        "country_code": "IS",
        "email_address": "b8e54d7b11b347b285b60992e0889dde.protect@withheldforprivacy.com",
        "phone": "+3544212434"
      },
      "name_servers": [
        "dns8.cloudns.net",
        "dns4.cloudns.net",
        "dns3.cloudns.net",
        "dns7.cloudns.net"
      ],
      "domain_status": [
        "clienttransferprohibited"
      ]
    }
  ]
}

Reverse WHOIS API

The reverse WHOIS API searches the WHOIS database backward: give it a keyword and get every domain whose WHOIS record matches, across 4.5B+ records. Brand teams use it to find lookalike registrations, investigators use it to map every domain owned by one company, and sales teams use it to size a prospect's domain portfolio.

with whoisfreaks.ApiClient(config) as client:
    matches = whoisfreaks.WHOISApi(client).whois_reverse("whoisfreaks", page=1)

    print(matches.total_result, "domains on", matches.total_pages, "pages")
    for domain in matches.whois_domains_historical or []:
        print(domain.domain_name, domain.create_date, domain.expiry_date)

The API also searches by registrant email, owner name or company name. The Python SDK currently exposes keyword search; the other searches use the same endpoint with email, owner or company instead of keyword:

curl "https://api.whoisfreaks.com/v2.0/whois/reverse?email=admin@example.com&apiKey=$WHOISFREAKS_API_KEY"

Each page costs 5 credits. See the reverse WHOIS documentation for the mode and exact options.

Example response: "whoisfreaks" matches 6 domains; one is shown
{
  "total_Result": 6,
  "total_Pages": 1,
  "current_Page": 1,
  "whois_domains_historical": [
    {
      "num": 2,
      "status": true,
      "domain_name": "whoisfreaks.org",
      "query_time": "2026-09-13 06:37:54",
      "whois_server": "",
      "create_date": "2026-09-03",
      "update_date": "2026-09-08",
      "expiry_date": "2027-09-03",
      "domain_registrar": {
        "iana_id": "3862",
        "registrar_name": "Spaceship, Inc",
        "website_url": "http://www.spaceship.com/",
        "email_address": "abuse@spaceship.com",
        "phone_number": "+16613102107"
      },
      "registrant_contact": {
        "handle": "01a06623b93c79eb993c83c24c6de988-Spacesh",
        "company": "Privacy service provided by WITHHELD FOR PRIVACY LLC",
        "city": "Lewes",
        "state": "Delaware",
        "zip_code": "19958",
        "country_name": "United States",
        "country_code": "US",
        "phone": "+13022061391"
      },
      "technical_contact": {
        "handle": "01a06623b93c79eb993c83c24c6de988-Spacesh",
        "company": "Privacy service provided by WITHHELD FOR PRIVACY LLC",
        "city": "Lewes",
        "state": "Delaware",
        "zip_code": "19958",
        "country_name": "United States",
        "country_code": "US",
        "phone": "+13022061391"
      },
      "name_servers": [
        "amit.ns.cloudflare.com",
        "grace.ns.cloudflare.com"
      ],
      "domain_status": [
        "clienttransferprohibited"
      ]
    }
  ]
}

Bulk WHOIS API

Send up to 100 domains in one request and get a full WHOIS record for each, in the same normalized format as a live lookup. You pay 1 credit per domain that returns a record. For larger lists, the Bulk WHOIS API also accepts file uploads of up to 3M domains.

with whoisfreaks.ApiClient(config) as client:
    request = whoisfreaks.BulkWhoisRequest(
        domain_names=["whoisfreaks.com", "example.com", "github.com"]
    )
    result = whoisfreaks.WHOISApi(client).bulk_whois(request)

    for item in result.bulk_whois_response or []:
        print(item.domain_name, item.expiry_date)

Each item has the same fields as a live lookup, plus status, and error when a domain could not be looked up.

Example response: three records come back; github.com is shown
{
  "bulk_whois_response": [
    {
      "status": true,
      "domain_name": "github.com",
      "query_time": "2026-10-13 11:56:11",
      "domain_registered": "yes",
      "create_date": "2007-10-09",
      "update_date": "2026-09-07",
      "expiry_date": "2028-10-09",
      "domain_registrar": {
        "iana_id": "292",
        "status": "accredited",
        "registrar_name": "MarkMonitor, Inc",
        "normalized_name": "markmonitor",
        "rdap_server": "https://rdap.markmonitor.com/rdap/",
        "website_url": "http://www.markmonitor.com",
        "email_address": "abusecomplaints@markmonitor.com",
        "phone_number": "+12086851750"
      },
      "registrant_contact": {
        "company": "GitHub, Inc",
        "country_name": "United States",
        "country_code": "US",
        "email_address": "Select Request Email Form at https://domains.markmonitor.com/whois/github.com"
      },
      "technical_contact": {
        "email_address": "Select Request Email Form at https://domains.markmonitor.com/whois/github.com"
      },
      "name_servers": [
        "ns-1707.awsdns-21.co.uk",
        "ns-520.awsdns-01.net",
        "ns-1283.awsdns-32.org",
        "dns4.p08.nsone.net",
        "dns1.p08.nsone.net",
        "dns2.p08.nsone.net",
        "ns-421.awsdns-52.com",
        "dns3.p08.nsone.net"
      ],
      "domain_status": [
        "clientupdateprohibited",
        "clienttransferprohibited",
        "clientdeleteprohibited"
      ],
      "whois_raw_domain": "Domain Name: github.com\nRegistry Domain ID: 1264983250_DOMAIN_COM-VRSN\nRegistrar WHOIS Server: whois.markmonitor.com\nRegistrar URL: http://www.markmonitor.com\n...",
      "registry_data": {
        "domain_name": "GITHUB.COM",
        "query_time": "2026-10-13 11:56:09",
        "whois_server": "",
        "domain_registered": "yes",
        "create_date": "2007-10-09",
        "update_date": "2026-09-07",
        "expiry_date": "2028-10-09",
        "domain_registrar": {
          "iana_id": "292",
          "registrar_name": "MarkMonitor Inc",
          "website_url": "http://www.markmonitor.com"
        },
        "name_servers": [
          "ns-1707.awsdns-21.co.uk",
          "ns-520.awsdns-01.net",
          "ns-1283.awsdns-32.org",
          "dns4.p08.nsone.net",
          "dns1.p08.nsone.net",
          "dns2.p08.nsone.net",
          "ns-421.awsdns-52.com",
          "dns3.p08.nsone.net"
        ],
        "domain_status": [
          "clientupdateprohibited",
          "clientdeleteprohibited",
          "clienttransferprohibited"
        ],
        "whois_raw_registery": "Domain Name: GITHUB.COM\n   Registry Domain ID: 1264983250_DOMAIN_COM-VRSN\n   Registrar WHOIS Server: whois.markmonitor.com\n   Registrar URL: http://www.markmonitor.com\n..."
      }
    }
  ]
}

For a file upload, use the Bulk WHOIS tool: send a text file with one domain per line, and the results are emailed to you as a compressed CSV.

Recipes

Find domains that expire soon. Look up a portfolio in one bulk request and sort it by expiry date. Dates come back as YYYY-MM-DD, so they sort as plain strings.

portfolio = ["whoisfreaks.com", "example.com", "github.com"]

with whoisfreaks.ApiClient(config) as client:
    result = whoisfreaks.WHOISApi(client).bulk_whois(
        whoisfreaks.BulkWhoisRequest(domain_names=portfolio)
    )
records = [r for r in result.bulk_whois_response or [] if r.expiry_date]

for r in sorted(records, key=lambda r: r.expiry_date):
    print(r.expiry_date, r.domain_name)

Group domains by registrar. Using records from the previous example: normalized_name gives one value for a registrar however it is spelled, for example namecheap, inc. for both "NAMECHEAP INC" and "NameCheap, Inc", so the grouping holds across TLDs.

from collections import defaultdict

by_registrar = defaultdict(list)
for r in records:
    name = r.domain_registrar.normalized_name if r.domain_registrar else "unknown"
    by_registrar[name].append(r.domain_name)

for registrar, domains in by_registrar.items():
    print(registrar, domains)

Errors and rate limits

Failed requests raise ApiException with the HTTP status code and the response body:

from whoisfreaks.rest import ApiException

with whoisfreaks.ApiClient(config) as client:
    try:
        record = whoisfreaks.WHOISApi(client).whois_live("whoisfreaks.com")
    except ApiException as e:
        print(e.status, e.body)
Status Meaning
401 Missing, invalid or suspended API key
404 No WHOIS record found for the domain
429 Rate limit reached for this minute

Rate limits are counted per minute, per endpoint category, and depend on your plan. A request that is throttled does not use a credit. Every response carries three headers: x-ratelimit-allowed-requests, x-ratelimit-remaining-requests and x-ratelimit-remaining-time (time until the window resets, in nanoseconds). The _with_http_info variant of each method returns them:

with whoisfreaks.ApiClient(config) as client:
    response = whoisfreaks.WHOISApi(client).whois_live_with_http_info("whoisfreaks.com")

    print(response.headers.get("x-ratelimit-remaining-requests"))
    record = response.data

On a 429, wait for the reset time before retrying:

import time

def whois_with_retry(api, domain, attempts=3):
    for attempt in range(attempts):
        try:
            return api.whois_live(domain)
        except ApiException as e:
            if e.status != 429 or attempt == attempts - 1:
                raise
            reset_ns = int((e.headers or {}).get("x-ratelimit-remaining-time", 1_000_000_000))
            time.sleep(reset_ns / 1_000_000_000 + 0.25)

with whoisfreaks.ApiClient(config) as client:
    record = whois_with_retry(whoisfreaks.WHOISApi(client), "whoisfreaks.com")

Live status and incident history are on the API status page.

Credits

Request Credits
Live WHOIS 1 per domain
Bulk WHOIS 1 per domain that returns a record
WHOIS history 2 per domain (full history in one request)
Reverse WHOIS 5 per page

Check your remaining credits at any time with whoisfreaks.AccountApi(client).account_usage(). Full pricing: credit usage.

FAQ

Is there a free WHOIS API? Yes. A free WhoisFreaks account includes 500 credits with no credit card, which covers 500 live WHOIS lookups or any mix of the APIs above. The credits never expire, and free keys can be used commercially.

Does the WHOIS API use RDAP? Yes. Each live lookup queries both WHOIS servers and RDAP and returns the result in the same JSON format, so you don't need to handle the two protocols separately.

Which TLDs are supported? 1,529+ TLDs, including generic TLDs such as .com and .org, new gTLDs and country-code TLDs.

How far back does WHOIS history go? To 1986. Only records whose data changed are stored, so every entry in the history is a real change.

Can I get the raw WHOIS text? Yes. whois_raw_domain has the registrar's raw WHOIS text and registry_data.whois_raw_registery has the registry's.

Can I use the WHOIS API without the SDK? Yes. It is a plain HTTPS GET with the key in the apiKey query parameter, as in the curl examples above.

Other languages and related APIs

The WHOIS API has official SDKs for Python, JavaScript, TypeScript, Java, Kotlin, Go, C#, Ruby, PHP and Swift.

Related quick starts with the same API key:

Documentation: live WHOIS, WHOIS history, reverse WHOIS, bulk WHOIS. Questions: support@whoisfreaks.com.

About

WHOIS API: live, historical, reverse and bulk WHOIS lookups as normalized JSON for 1,529+ TLDs. REST examples in cURL, Python, Node.js and Go. 500 free credits, no credit card.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors