# WHOIS Lookup API

> WHOIS Lookup is a domain WHOIS API that reads the registry's RDAP or WHOIS record for any domain and returns the registrar, creation and expiry dates, nameservers, EPP status codes explained in plain English, transfer-lock and privacy flags, the registrant country where it is published, and domain age in days and years.

**Endpoint:** `GET https://api.apiverve.com/v1/whoislookup`  
**Category:** Domain Data  
**Cost:** 8 credits per call  
**Canonical page:** https://apiverve.com/marketplace/whoislookup

## Overview

It doubles as an RDAP API and domain age API, returning the domain registrar, registration dates and the domain expiry date as WHOIS JSON from one REST call. WHOIS Lookup is a WHOIS lookup API and domain lookup API: it queries the registry for a domain name and returns its registration record (registrar, creation, update and expiry dates, EPP status codes and authoritative nameservers) plus domain age computed from the creation date. The Free plan returns that domain record, so you can try the WHOIS API free; paid plans extend it to IP address and ASN WHOIS.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/whoislookup?domain=myspace.com" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `domain` | string | Yes | The domain name for which you want to get the registration data (e.g., myspace.com). domain |

## Response fields

- `domainName` — string · The domain name in uppercase format
- `registryDomainID` — string · Unique registry identifier for the domain · (premium)
- `createdDate` — string · Domain creation date as the registry sends it: ISO 8601 from RDAP, registry formats such as "before Aug-1996" or "1997-08-27 00:00:00" from WHOIS. createdDateISO has it in one format
- `expiryDate` — string · Domain expiration date as the registry sends it (ISO 8601, or e.g. "13-Dec-2034"). expiryDateISO has it in one format
- `updatedDate` — string · Domain last updated date as the registry sends it (ISO 8601, or e.g. "29-Oct-2025"). updatedDateISO has it in one format
- `domainStatus` — array · Array of domain status flags with EPP codes
- `dNSSEC` — string · DNSSEC status (signed or unsigned) · (premium)
- `registrar` — string · Domain registrar company name
- `registrarIANAID` — string · Registrar's IANA ID number · (premium)
- `registrarURL` — string · Registrar's website URL
- `registrarAbuseContactEmail` — string · Registrar abuse contact email address · (premium)
- `registrarAbuseContactPhone` — string · Registrar abuse contact phone number · (premium)
- `nameServers` — array · Array of authoritative nameserver hostnames
  - `statusDetails.0.code` — string · EPP status code in its standard camelCase form, such as clientTransferProhibited
  - `statusDetails.0.setBy` — string · Who controls the status: registrar or registry
  - `statusDetails.0.description` — string · What the status means for the domain
- `isTransferLocked` — boolean · Whether a client or server transfer lock blocks moving the domain to another registrar
- `isOnHold` — boolean · Whether a clientHold or serverHold status keeps the domain out of DNS, so it does not resolve
- `isPendingDelete` — boolean · Whether the domain is in redemption or pending deletion and about to be released
- `registrantOrganization` — string · Registrant organisation as published in the registry or registrar RDAP record; omitted when redacted. Often the name of a privacy service
- `registrantCountry` — string · Registrant country code as published in the RDAP record; omitted when redacted or not published
- `isPrivacyProtected` — boolean · Whether the registrant contact is redacted or replaced by a privacy or proxy service; present only when a registrant record was found
- `domain` — string · Domain name in lowercase format
- `fetchedAtUTC` — string · Timestamp when WHOIS data was retrieved · (premium)
- `tld` — string · Top-level domain extension
- `status` — string · Current domain registration status
- `domainAgeDays` — number · Age of the domain in days, derived from the creation date
- `domainAgeYears` — number · Age of the domain in years (one decimal), derived from the creation date
- `isRecentlyRegistered` — boolean · Whether the domain was registered within the last 90 days — a common fraud/phishing signal · (premium)
- `trustScore` — number · 0-100 trust score derived from domain age, registration recency, expiry runway and DNSSEC · (premium)
- `trustLevel` — string · Categorical trust level (low, medium, high) derived from the trust score · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "domainName": "MYSPACE.COM",
    "registryDomainID": "3877095_DOMAIN_COM-VRSN",
    "createdDate": "1996-02-22T05:00:00Z",
    "expiryDate": "2029-02-23T05:00:00Z",
    "updatedDate": "2023-01-17T00:16:21Z",
    "domainStatus": [
      "client delete prohibited https://icann.org/epp#client delete prohibited",
      "client renew prohibited https://icann.org/epp#client renew prohibited",
      "client transfer prohibited https://icann.org/epp#client transfer prohibited",
      "client update prohibited https://icann.org/epp#client update prohibited"
    ],
    "dNSSEC": "unsigned",
    "registrar": "GoDaddy.com, LLC",
    "registrarIANAID": "146",
    "registrarURL": "http://www.godaddy.com",
    "registrarAbuseContactEmail": "abuse@godaddy.com",
    "registrarAbuseContactPhone": "tel:480-624-2505",
    "nameServers": [
      "ns-cloud-a2.googledomains.com",
      "ns-cloud-a3.googledomains.com",
      "ns-cloud-a4.googledomains.com",
      "ns-cloud-a1.googledomains.com"
    ],
    "statusDetails": [
      {
        "code": "clientDeleteProhibited",
        "setBy": "registrar",
        "description": "The registrar blocks deletion"
      },
      {
        "code": "clientRenewProhibited",
        "setBy": "registrar",
        "description": "The registrar blocks renewal"
      },
      {
        "code": "clientTransferProhibited",
        "setBy": "registrar",
        "description": "The registrar blocks transfer to another registrar"
      },
      {
        "code": "clientUpdateProhibited",
        "setBy": "registrar",
        "description": "The registrar blocks changes to the record"
      }
    ],
    "isTransferLocked": true,
    "isOnHold": false,
    "isPendingDelete": false,
    "registrantOrganization": "Domains By Proxy, LLC",
    "registrantCountry": "US",
    "isPrivacyProtected": true,
    "domain": "myspace.com",
    "fetchedAtUTC": "2025-12-17T01:54:05.069Z",
    "tld": "com",
    "status": "active",
    "domainAgeDays": 11094,
    "domainAgeYears": 30.4,
    "isRecentlyRegistered": false,
    "trustScore": 93,
    "trustLevel": "high"
  }
}
```

## Use cases

- **Domain Portfolio Management** — Domain portfolio managers inspect expiration dates and registrar details to schedule timely renewals before web properties lapse or drop.
- **Phishing Detection** — Security teams flag newly created sender domains during user onboarding by reading domain age in days directly from the registration record.
- **Trademark Infringement Review** — When auditing suspicious brand lookalikes, legal specialists identify the sponsoring registrar and nameserver hosts to route takedown notices accurately.
- **Vendor Infrastructure Auditing** — Evaluate third-party vendor websites by verifying active domain status codes, current registration timelines, and authoritative nameserver delegations.

## SDKs

- **npm** — `npm install @apiverve/whoislookup` (https://www.npmjs.com/package/@apiverve/whoislookup)
- **PyPI** — `pip install apiverve-whoislookup` (https://pypi.org/project/apiverve-whoislookup/)
- **NuGet** — `dotnet add package APIVerve.API.WHOISLookup` (https://www.nuget.org/packages/APIVerve.API.WHOISLookup)
- **Source** — https://github.com/apiverve/whoislookup-api

## More

- Full reference: https://docs.apiverve.com/ref/whoislookup
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
