Whois API Documentation

Everything you need to integrate the WhoisJsonAPI endpoints.

Our Hosted Whois API Web Service provides registration details, also known as WHOIS Records, of a domain names.

Whoisjsonapi.com provides a RESTful API to get access to the whois data. It is designed for server-to-server communication between your system and the whoisjsonapi.com network using HTTPs protocol. Query responses are delivered in JSON format based on your requests which are made via GET method.

To begin, you must have a developer's account on whoisjsonapi.com, and an authentication token is necessary for each API usage.

The following data is included:

  • Important Dates (i.e. Expiration, Creation)
  • Owner and contact information if available
  • Nameservers
  • Registrar information
We store the WHOIS record in cache for a maximum of 24 hours. When you submit a query, we initially verify if the cached WHOIS record is older than 24 hours. If it is, we retrieve the most recent information in real time.

Single domain request

By making a single domain request, you can obtain only the whois information for the specific domain you are querying. This request operates swiftly as it doesn't necessitate additional resources.

API endpoint
GET https://whoisjsonapi.com/v1/{domain}
Input parameters: required
apiToken Get your personal API TOKEN on the Dashboard page.
domainName The domain for which WHOIS data is requested.
Example
curl --location 'https://whoisjsonapi.com/v1/twitter.com' \
--header 'Authorization: Bearer {your-api-token}'

Bulk request

Bulk WHOIS API gives you parsed domain WHOIS ownership information for a list of domains

The list of requested domains is limited. You can request a maximum of 20 domains at once
API endpoint
GET https://whoisjsonapi.com/v1/domains?d={domain1},{domain2},{domain3},...{domain20}
Input parameters: required
apiToken Get your personal API TOKEN on the Dashboard page.
domainNames Comma separated list of domain names. You must specify at least one domain.
Example
curl --location 'https://whoisjsonapi.com/v1/domains?d=facebook.com,twitter.com,bbc.com' \
--header 'Authorization: Bearer {your-api-token}'

Domain availability

The domain availability method checks the availability status of a single domain name. It accepts one argument: domain

The response will contain a JSON array of status objects with keys: domain and status*. The status key contains the status for the given domain.

There are two statuses provided by the API: active and inactive. INACTIVE domains indicate that they are available for purchase.

API endpoint
GET https://whoisjsonapi.com/v1/status/{domainName}
Input parameters: required
apiToken Get your personal API TOKEN on the Dashboard page.
domainName The domain for which status is requested.
Example
curl --location 'https://whoisjsonapi.com/v1/status/whois.com' \
--header 'Authorization: Bearer {your-api-token}'
Response
{
    "domain": "whois.com",
    "status": "active"
}

DNS records

The DNS records endpoint returns grouped DNS records for a hostname. It is available to Premium and Enterprise plans and uses the same shared request allowance as WHOIS: each accepted DNS lookup consumes one request, regardless of the number of requested record types.

Send your API token in the Authorization header using the bearer token scheme. Successful responses include X-Requests-Remaining when the shared allowance value is available.

API endpoint
GET https://whoisjsonapi.com/v1/dns/{domainName}
Input parameters
Parameter Required Description
domainName Yes The hostname to look up. Invalid hostnames return DNS_INVALID_DOMAIN.
types No Comma-separated record types. Omit it, or pass it blank, to request the default set: A, AAAA, MX, NS, TXT, CNAME, SOA, CAA.
Supported record types are exactly A, AAAA, MX, NS, TXT, CNAME, SOA, and CAA. Duplicate values, unsupported values, or empty items in a comma-separated list return DNS_INVALID_TYPES.
Default lookup example
curl --location 'https://whoisjsonapi.com/v1/dns/example.com' \
--header 'Authorization: Bearer {your-api-token}'
Type-filtered lookup example
curl --location 'https://whoisjsonapi.com/v1/dns/example.com?types=A,MX,TXT' \
--header 'Authorization: Bearer {your-api-token}'
Response fields
Field Description
domain Normalized hostname used for the lookup.
domain_ascii Lowercase ASCII or punycode hostname.
status One of success, no_data, nxdomain, or partial.
resolver_policy Resolver policy used for the lookup. The current public value is default.
requested_types Normalized record types returned in canonical order.
fetched_at Timestamp when the DNS data was fetched, or null when unavailable.
expires_at Timestamp when the returned DNS data expires, or null when unavailable.
records Object grouped by requested record type. Requested types without records are returned as empty arrays.
warnings Array of sanitized lookup warnings, if any.
Success response example
{
    "domain": "example.com",
    "domain_ascii": "example.com",
    "status": "success",
    "resolver_policy": "default",
    "requested_types": [
        "A",
        "AAAA",
        "MX",
        "NS",
        "TXT",
        "CNAME",
        "SOA",
        "CAA"
    ],
    "fetched_at": "2026-07-01T12:00:00+00:00",
    "expires_at": "2026-07-01T12:05:00+00:00",
    "records": {
        "A": [
            {
                "name": "example.com.",
                "type": "A",
                "ttl": 120,
                "value": "93.184.216.34"
            }
        ],
        "AAAA": [
            {
                "name": "example.com.",
                "type": "AAAA",
                "ttl": 120,
                "value": "2606:2800:220:1:248:1893:25c8:1946"
            }
        ],
        "MX": [
            {
                "name": "example.com.",
                "type": "MX",
                "ttl": 300,
                "priority": 10,
                "exchange": "mail.example.com."
            }
        ],
        "NS": [
            {
                "name": "example.com.",
                "type": "NS",
                "ttl": 86400,
                "target": "a.iana-servers.net."
            }
        ],
        "TXT": [],
        "CNAME": [],
        "SOA": [
            {
                "name": "example.com.",
                "type": "SOA",
                "ttl": 3600,
                "mname": "ns.icann.org.",
                "rname": "noc.dns.icann.org.",
                "serial": 2026070101,
                "refresh": 7200,
                "retry": 3600,
                "expire": 1209600,
                "minimum": 3600
            }
        ],
        "CAA": []
    },
    "warnings": []
}
Status and error behavior
Value HTTP status Meaning
success 200 The lookup completed and at least one requested record set is available.
no_data 200 The hostname exists, but no records were found for the requested types.
nxdomain 200 DNS reports that the hostname does not exist.
partial 200 A usable partial response was returned with warnings.
DNS_INVALID_DOMAIN 400 The hostname is invalid.
DNS_INVALID_TYPES 400 The type list contains a duplicate, empty, or unsupported value.
DNS_TIMEOUT 504 The DNS lookup timed out before a usable response was available.
DNS_LOOKUP_UNAVAILABLE 503 The DNS lookup service is temporarily unavailable.

Authentication, subscription access, feature access, and quota failures use the standard API error behavior for authenticated endpoints.


WHOIS history

The WHOIS history endpoint returns a timeline of changes to a domain's public registration data: registrar, creation, update and expiration dates, nameservers, status codes and DNSSEC. The timeline is built from WHOIS/RDAP observations we have saved for the domain. If we have none, we make a one-time request to a historical WHOIS archive. Contact details and raw WHOIS text are not included.

WHOIS history is available on Premium and Enterprise plans. Send your API token in the Authorization header using the bearer token scheme.

Every successful response (HTTP 2xx) consumes 50 requests from your plan allowance. This includes each page fetched with cursor. Error responses consume nothing. A request is accepted only when at least 50 requests remain; otherwise it returns HTTP 429.
API endpoint
GET https://whoisjsonapi.com/v1/{domainName}/history
Input parameters
Parameter Required Description
domainName Yes The domain to look up. A subdomain is resolved to its registrable domain, for example www.example.com becomes example.com.
limit No Maximum number of change events on one page, from 1 to 100. Default: 20.
from No Only return observations from this time onward. Use an ISO 8601 timestamp with a timezone, for example 2020-01-01T00:00:00Z. When you use a numeric offset, URL-encode + as %2B.
to No Only return observations up to this time. Same format as from. When both are given, from must be earlier than to.
cursor No The pagination.next_cursor value from the previous page. A cursor is valid for 24 hours. It must be sent with the same limit, from and to values as the request that returned it.

Offset-based pagination is not supported. Requests that include offset or page return WHOIS_HISTORY_INVALID_QUERY.

Example
curl --location 'https://whoisjsonapi.com/v1/example.com/history' \
--header 'Authorization: Bearer {your-api-token}'
Filtered example
curl --location 'https://whoisjsonapi.com/v1/example.com/history?from=2020-01-01T00:00:00Z&to=2026-01-01T00:00:00Z&limit=50' \
--header 'Authorization: Bearer {your-api-token}'
Next page example
curl --location 'https://whoisjsonapi.com/v1/example.com/history?limit=50&cursor={next_cursor}' \
--header 'Authorization: Bearer {your-api-token}'
Response fields
Field Description
domain Registrable domain in lowercase ASCII or punycode.
history_status records_available when observations exist, or no_records_confirmed when the archive confirmed it has no records for the domain.
page_status Describes this page. See the table below.
events Detected changes, newest first. Each event compares one observation with the observation before it.
observation On a first page without change events, the newest observation that matched your filters, with an explanation of why no change was reported. Otherwise null.
coverage Summary of all retained observations for the domain, regardless of filters: observation_count, unreadable_observation_count, first_observed_at, last_observed_at, archive_checked_at (when the archive was last checked) and empty_valid_until (how long a confirmed empty archive result is reused).
pagination limit, has_more and next_cursor. Request the next page while has_more is true.
Page status values
Value Meaning
changes The page contains at least one change event.
observation No changes were found. observation shows the newest matching record.
no_matching_records The domain has history, but no observation matched your from/to range.
scan_limited Up to 500 observations were checked without finding a change, and more remain. Continue with next_cursor.
exhausted A continuation page found no further changes.
no_history The archive confirmed that no history exists for the domain.
Change events

Each event contains source and previous_source, observed_at and previous_observed_at, and a changes array. A source of native means a lookup made by WhoisJsonAPI; other values identify the historical archive provider. observed_at is when a record was seen, not the exact moment it changed: the change happened between the two observation times.

Each change has a path and its before and after values. Only these paths are compared:

Path Value
registrar.name Registrar name. Differences in capitalization alone are not reported as changes.
domain.created_date, domain.updated_date, domain.expiration_date UTC timestamp. Archive records are date-only and use midnight UTC; when an archive record is compared, only the calendar date counts.
domain.name_servers Sorted list of lowercase nameserver hostnames.
domain.status Sorted list of lowercase status codes, for example clienttransferprohibited.
domain.dnssec true or false. Archive records do not provide DNSSEC.

A value is either {"state": "present", "value": ...} or {"state": "unavailable", "reason": ...}. Reasons are provider_not_supplied, not_recorded, unsupported_value and conflicting_values. Changes are reported only when both sides are present, so a missing value is never treated as a change.

Response example
{
    "domain": "example.com",
    "history_status": "records_available",
    "page_status": "changes",
    "events": [
        {
            "source": "native",
            "previous_source": "whoxy",
            "observed_at": "2026-03-14T09:21:07.512Z",
            "previous_observed_at": "2025-11-02T14:05:31.000Z",
            "changes": [
                {
                    "path": "registrar.name",
                    "before": { "state": "present", "value": "Example Registrar, Inc." },
                    "after": { "state": "present", "value": "Another Registrar LLC" }
                },
                {
                    "path": "domain.name_servers",
                    "before": { "state": "present", "value": ["ns1.old-dns.example", "ns2.old-dns.example"] },
                    "after": { "state": "present", "value": ["a.new-dns.example", "b.new-dns.example"] }
                }
            ]
        },
        {
            "source": "whoxy",
            "previous_source": "whoxy",
            "observed_at": "2025-11-02T14:05:31.000Z",
            "previous_observed_at": "2024-10-28T08:40:12.000Z",
            "changes": [
                {
                    "path": "domain.expiration_date",
                    "before": { "state": "present", "value": "2025-12-01T00:00:00.000Z" },
                    "after": { "state": "present", "value": "2026-12-01T00:00:00.000Z" }
                }
            ]
        }
    ],
    "observation": null,
    "coverage": {
        "scope": "retained_domain_observations",
        "observation_count": 14,
        "unreadable_observation_count": 0,
        "first_observed_at": "2014-06-09T08:12:44.000Z",
        "last_observed_at": "2026-03-14T09:21:07.512Z",
        "archive_checked_at": "2026-03-01T10:00:02.118Z",
        "empty_valid_until": null
    },
    "pagination": {
        "limit": 20,
        "has_more": false,
        "next_cursor": null
    }
}
Observation without changes

When the first page finds no change, observation shows the newest matching record. Its comparison.state is one of not_available (the earliest retained record, with nothing to compare against), no_public_changes, unknown_fields or ambiguous_order.

{
    "source": "native",
    "observed_at": "2026-03-14T09:21:07.512Z",
    "last_checked_at": "2026-03-14T09:21:07.512Z",
    "values": {
        "registrar.name": { "state": "present", "value": "Example Registrar, Inc." },
        "domain.created_date": { "state": "present", "value": "1995-08-14T04:00:00.000Z" },
        "domain.updated_date": { "state": "present", "value": "2025-08-14T07:01:31.000Z" },
        "domain.expiration_date": { "state": "present", "value": "2026-08-13T04:00:00.000Z" },
        "domain.name_servers": { "state": "present", "value": ["a.iana-servers.net", "b.iana-servers.net"] },
        "domain.status": { "state": "present", "value": ["clientdeleteprohibited", "clienttransferprohibited"] },
        "domain.dnssec": { "state": "present", "value": true }
    },
    "comparison": {
        "state": "no_public_changes",
        "message": "No changes were found in the comparable public fields."
    }
}
Errors

Errors use the format {"error": true, "message": "...", "code": "..."} and do not consume requests.

Code HTTP status Meaning
WHOIS_HISTORY_INVALID_DOMAIN 400 The domain name is invalid.
WHOIS_HISTORY_INVALID_QUERY 400 limit, from or to is invalid, or offset/page was sent.
WHOIS_HISTORY_INVALID_CURSOR 400 The cursor is invalid, has expired, or was sent with different limit, from or to values. Start again without cursor.
WHOIS_HISTORY_SOURCE_UNAVAILABLE 503 The history archive is temporarily unavailable or busy. Retry after the number of seconds in the Retry-After header, when present.
WHOIS_HISTORY_EVIDENCE_UNAVAILABLE 503 Saved history for the domain cannot be read right now.
WHOIS_HISTORY_UNAVAILABLE 503 History is temporarily unavailable.

Authentication, subscription access, feature access, and quota failures use the standard API error behavior for authenticated endpoints. History responses are sent with Cache-Control: private, no-store.


Authorization

When making a request to our REST API, send your API token in the Authorization header using the bearer token scheme. Keep API tokens out of URLs, browser code, public repositories, and logs.

Example: API key in headers
curl --location 'https://whoisjsonapi.com/v1/whois.com' \
--header 'Authorization: Bearer {your-api-token}'

Response

Query responses are delivered in JSON format.

Note: some fields may be missing due to incomplete data provided by the whois providers.

Domain

Field Type Example value
id String 2320948_DOMAIN_COM-VRSN
domain String facebook.com
name String facebook
extension String com
whois_server String whois.registrarsafe.com
status Array ["clientdeleteprohibited", "clienttransferprohibited"]
name_servers Array ["a.ns.facebook.com", "b.ns.facebook.com"]
created_date String 1997-03-29T05:00:00Z
updated_date String 2022-01-26T16:45:06Z
expiration_date String 2031-03-30T04:00:00Z

Registrar

Field Type Example value
id String 3237
name String RegistrarSafe, LLC
phone String +1.6513097004
email String [email protected]

Registrant

Field Type Example value
name String Domain Admin
organization String Meta Platforms, Inc.
street String 1601 Willow Rd
city String Menlo Park
province String CA
postal_code String 94025
country String US
phone String +1.6515434890
email [email protected]

Administrative

Field Type Example value
name String Domain Admin
organization String Meta Platforms, Inc.
street String 1601 Willow Rd
city String Menlo Park
province String CA
postal_code String 94025
country String US
phone String +1.6515434890
email [email protected]

Technical

Field Type Example value
name String Domain Admin
organization String Meta Platforms, Inc.
street String 1601 Willow Rd
city String Menlo Park
province String CA
postal_code String 94025
country String US
phone String +1.6515434890
email [email protected]
Response example
{
    "domain": {
        "id": "2320948_DOMAIN_COM-VRSN",
        "domain": "facebook.com",
        "punycode": "facebook.com",
        "name": "facebook.com",
        "extension": "com",
        "whois_server": "whois.registrarsafe.com",
        "status": [
            "clientdeleteprohibited",
            "clienttransferprohibited",
            "clientupdateprohibited",
            "serverdeleteprohibited",
            "servertransferprohibited",
            "serverupdateprohibited"
        ],
        "name_servers": [
            "d.ns.facebook.com",
            "a.ns.facebook.com",
            "b.ns.facebook.com",
            "c.ns.facebook.com"
        ],
        "created_date": "1997-03-29T05:00:00Z",
        "created_date_in_time": "1997-03-29T05:00:00Z",
        "updated_date": "2023-04-26T19:04:19Z",
        "updated_date_in_time": "2023-04-26T19:04:19Z",
        "expiration_date": "2032-03-30T04:00:00Z",
        "expiration_date_in_time": "2032-03-30T04:00:00Z"
    },
    "registrar": {
        "name": "RegistrarSafe, LLC",
        "phone": "+1.6503087004",
        "email": "[email protected]",
        "referral_url": "https://www.registrarsafe.com"
    },
    "registrant": {
        "name": "Domain Admin",
        "organization": "Meta Platforms, Inc.",
        "street": "1601 Willow Rd",
        "city": "Menlo Park",
        "province": "CA",
        "postal_code": "94025",
        "country": "US",
        "phone": "+1.6505434800",
        "email": "[email protected]"
    }
}

Domain monitoring

Domain Monitoring watches configured domains for WHOIS/RDAP and/or DNS changes over time. It is a signed-in, owner-scoped Dashboard feature, not a bearer-token REST API endpoint or a whoisphp feature. Available monitoring capacity, imports, and webhooks depend on your plan and permissions.

Open Domain Monitoring in the Dashboard. Sign in first; the Dashboard confirms whether monitoring is available for your account.

Quick start

  1. Open Dashboard → Monitoring and select Add monitor.
  2. Enter a valid domain and, if useful, an optional recognizable monitor name.
  3. Choose WHOIS/RDAP, DNS, or both, then configure whether email alerts are enabled.
  4. Save the monitor. Its first check establishes or loads a baseline asynchronously, so current data and change history may not be available immediately.
  5. Open the monitor detail page to review its health, current data, and detected changes.

Manage monitors

Use the monitor list to search by domain or name and filter by status, source, change state, tag, or severity. Each monitor has Overview, Changes, Current data, and Settings tabs.

A monitor can be active, initializing, paused, have a problem, or be removed. Run now requests a refresh for the enabled sources; it does not promise an immediately completed result. You can pause, resume, or remove a monitor. Removed monitors leave the normal list and stop normal monitoring, while their history remains available to the owner. We do not make a retention-duration promise.

One account can have one monitor for each normalized domain. Duplicate active monitors for the same normalized domain are not created; a monitor that was previously removed can be reactivated.

Alerts and change history

The change timeline records customer-facing events for enabled sources. Events show the source, severity, summary, detected time, and, when available, a previous/current delta. Disabling email alerts does not disable detection or timeline entries.

Your account email is the default alert recipient. A custom recipient must be verified before it can receive alerts; an unverified address receives no alert. Eligible alerts are sent immediately—there is no daily or weekly digest setting. Choose Critical and important changes to limit notifications or All changes to receive every eligible alert. Notifications contain a concise summary and Dashboard link, not raw WHOIS/RDAP or DNS source data.

Bulk import

Bulk import is available only when your plan enables it. On the Import page, paste comma-separated rows or upload a .csv file. CSV-file uploads may include the optional header below; pasted rows must omit the header and use the five columns in this order:

domain,monitor_name,tags,alert_level,email_mode
example.com,Primary domain,"production, customer",important_only,immediate
example.net,,security,all,immediate
Column Use
domain Required domain to monitor.
monitor_name Optional recognizable name.
tags Optional comma-separated tags; quote the field when a tag list contains commas.
alert_level important_only for critical and important changes, or all for all changes.
email_mode Currently supports immediate.

Omitted optional values use the Dashboard defaults. Notification recipients follow the account or monitor email settings; there is no per-row recipient field. Rows are processed independently, so review the results for created, reactivated, duplicate, invalid, over-limit, or other error rows.

Webhooks

An entitled account can configure one account-level endpoint for events from its monitored domains in Dashboard → Monitoring → Webhook. Webhooks are outbound-only and are not a public configuration API. Use an HTTPS endpoint, save and enable it, store its generated signing secret securely, send a test delivery, and review delivery history from the Dashboard.

The Dashboard normally masks the signing secret. Explicitly reveal or copy it only when needed, never put it in a URL or logs, and rotate the secret in your receiver at the same time as you rotate it in the Dashboard. You can enable or disable the endpoint and use test delivery without creating a real monitoring event.

Outbound request

POST https://customer.example/monitoring-webhook
Content-Type: application/json
User-Agent: WhoisJsonAPI/Monitoring-Webhooks/1.0
X-WhoisJsonAPI-Event-Id: <event UUID or test>
X-WhoisJsonAPI-Delivery-Id: <delivery ID>
X-WhoisJsonAPI-Signature-SHA256: <base64 HMAC-SHA256>

Values in this example are placeholders. A representative payload contains only customer-safe event details; test distinguishes a test delivery from a monitoring event.

{
  "event_id": "<event UUID>",
  "event_type": "record_changed",
  "source": "dns",
  "severity": "important",
  "domain": "example.com",
  "detected_at": "<ISO 8601 timestamp>",
  "monitor": {
    "id": "<monitor ID>",
    "name": "Primary domain",
    "tags": ["production"]
  },
  "change": {
    "summary": "A monitored value changed.",
    "previous": "<previous customer-facing value>",
    "current": "<current customer-facing value>"
  },
  "links": {
    "dashboard": "https://whoisjsonapi.com/dashboard/monitoring/<monitor ID>"
  },
  "test": false
}

Verify signatures and process deliveries

Verify every request before processing it. Calculate HMAC-SHA256 over the exact received request-body bytes with your stored signing secret, Base64-encode the binary digest, and compare it with X-WhoisJsonAPI-Signature-SHA256 using a timing-safe comparison. Do not parse and re-serialize the body before verifying it.

$expected = base64_encode(hash_hmac(
    'sha256',
    $rawRequestBody,
    '<stored webhook signing secret>',
    true
));

if (!hash_equals($expected, $requestSignature)) {
    // Reject the request.
}

Delivery is at least once. Deduplicate with both X-WhoisJsonAPI-Event-Id and X-WhoisJsonAPI-Delivery-Id, or with an equivalent idempotency policy. Automatic retries retain the delivery identity and body. A manual resend creates a separate manual delivery.

Current retry policy

Transport errors, timeouts, and HTTP 408, 409, 425, 429, 500, 502, 503, and 504 are retryable. The current backoff is 1 minute, 5 minutes, 30 minutes, and 2 hours, with terminal failure after attempt five. Successful responses, redirects, and HTTP 400, 401, 403, 404, 410, and 422 are not retried. This is the current delivery policy, not a delivery-time guarantee.


Rate limits

A rate limit is the number of API calls an app or user can make within a given time period. If this limit is exceeded or if CPU or total time limits are exceeded, the app or user may be throttled. API requests made by a throttled user or app will fail.

Platform rate limits

Each endpoint is subject to a rate limit of 50 requests per second. Once this limit is reached, the system will respond with a 429 status code.

Errors

When you request information about a domain, you may receive a message that the domain was not found. This means that the domain has not yet been registered and might be available for purchase.

Code Examples

curl --location \
--request GET 'https://whoisjsonapi.com/v1/youtube.com' \
--header 'Authorization: Bearer {your token}'