Skip to main content

lookup_whois

Looks up a domain's registration record through WHOIS or RDAP. It returns the same data as the WHOIS tool on namebeta.com, parsed into fields, plus the raw record.

Schema​

Input

FieldTypeRequiredConstraints
domainstringYes1–253 characters; Matches \.

Output

Returned as structuredContent, and repeated as JSON in a text content block.

FieldTypeRequiredConstraints
domainstringYes
statusstringYesOne of available, taken, unknown, forsale, reserved, tld, sld, publicsuffix
registrarstringNo
registrar_iana_idnumberNo
expirationstringNoFormat date-time
nameserversstring[]No
epp_statusstring[]No
lifecyclestringNoOne of active, autorenew, redemption, pendingdelete
rawstringNo

Behaviour​

  • domain must be a full domain name.

  • Only domain and status are always present. Every other field is included only when the registry's record provides it; for an unregistered domain you typically get status: "available", an empty nameservers array and the registry's "no match" reply in raw.

  • expiration is the registry expiry date in ISO 8601, UTC.

  • epp_status holds the EPP status codes as the registry reports them, such as clientTransferProhibited.

  • lifecycle is the stage of the registration, which matters most around expiry:

    lifecycleMeaning
    activeRegistered and within its term
    autorenewPast its expiration date, in the registrar's grace period
    redemptionDeleted by the registrar; the owner can still restore it, at a fee
    pendingdeleteAbout to be released by the registry; it can no longer be restored
  • raw is the full record as the server returned it. It can be several kilobytes long and includes the registry's terms of use.

  • Many registries redact contact details for privacy, so the record does not include the registrant's name or email.

Example​

Arguments:

{ "domain": "example.com" }

Result, with raw shortened:

{
"domain": "example.com",
"status": "taken",
"registrar": "RESERVED-Internet Assigned Numbers Authority",
"registrar_iana_id": 376,
"expiration": "2027-08-13T04:00:00.000Z",
"nameservers": ["ELLIOTT.NS.CLOUDFLARE.COM", "HERA.NS.CLOUDFLARE.COM"],
"epp_status": [
"clientDeleteProhibited",
"clientTransferProhibited",
"clientUpdateProhibited"
],
"lifecycle": "active",
"raw": " Domain Name: EXAMPLE.COM\r\n Registry Domain ID: 2336799_DOMAIN_COM-VRSN\r\n…"
}

Quota​

WHOIS has the tightest limits of all tools.

ToolBucketFree (hour / day)Pro (hour / day)Business (hour / day)Enterprise (hour / day)
lookup_whois whois5 / 1560 / 200150 / 500Unlimited

Errors​

SituationResult
domain has no dotTool error Input validation error: … (A full domain name is required)
domain is not a valid domainTool error Invalid domain format
The WHOIS or RDAP lookup failsTool error with the reason, for example when the registry does not answer in time
Quota exceededHTTP 429 with Retry-After; see Quotas and errors