WHOIS Lookup

Retrieve comprehensive domain registration information including registrar details, creation and expiration dates, and nameservers.

Authentication

All API requests require authentication using an API key. You can create an API key in your dashboard.

Include your API key in the Authorization header of your requests:

Authorization: Bearer your_api_key

Credit Usage

Each API call consumes credits from your account. This service costs 2 credits per call.

Endpoints

POST/api/v1/whois-lookup2 credits

Retrieve WHOIS information for a specified domain

Example Request

curl -X POST "https://api.goonlinetools.com/api/v1/whois-lookup" \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{"domain": "goonlinetools.com"}'

Example Response

{
  "domain": "goonlinetools.com",
  "registrar": "Cloudflare, Inc.",
  "registrarUrl": "http://www.cloudflare.com",
  "creationDate": "2019-11-20T10:30:03.000Z",
  "expirationDate": "2026-11-20T10:30:03.000Z",
  "lastUpdated": "2025-02-17T05:38:15.000Z",
  "nameservers": [
    "ARYA.NS.CLOUDFLARE.COM",
    "HANK.NS.CLOUDFLARE.COM"
  ],
  "status": [
    "clientTransferProhibited https://icann.org/epp#clientTransferProhibited",
    "clientTransferProhibited https://icann.org/epp#clientTransferProhibited"
  ],
  "registrant": {
    "organization": "Unknown",
    "country": null
  },
  "timestamp": "2025-04-04T07:59:59.824Z"
}

Error Handling

The API uses standard HTTP status codes to indicate the success or failure of a request. Error responses include a JSON object with an error message.

{
  "error": "Error message"
}

Common Errors

Status CodeError MessageDescription
400Missing domain parameterThe domain parameter is required
400Invalid domain formatThe domain name format is invalid
404WHOIS information not foundNo WHOIS information could be found for the domain
429Too many requestsYou've exceeded the rate limit for this API

Implementation Notes

The WHOIS Lookup API retrieves domain registration information from WHOIS databases. The information returned may vary based on the registrar and the domain's registration status.

For privacy reasons, some registrars may redact personal information from WHOIS records. In these cases, the API will return the available public information.

Try Our APIs
Use our API Playground to test and explore our APIs. Make sure you are logged in to access this feature.