Skip to content
OSINTtools.io

WhoisJsonAPI API

Send a domain, get its WHOIS record parsed into JSON; higher plans add bulk WHOIS, live DNS records and WHOIS history.

Base URL
https://whoisjsonapi.com/v1
Sign-in
Bearer token
Format
REST
Endpoints
4

Compiled by OSINTtools.io editors from whoisjsonapi.com · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

WhoisJsonAPI returns parsed WHOIS/RDAP data for a domain as JSON: registrar, registration, update and expiry dates, name servers, status and, where the registry publishes them, registrant, administrative and technical contacts. Further endpoints check whether a domain is active, return DNS records and a WHOIS change history.

All calls are GET requests to https://whoisjsonapi.com/v1/ with the token in an Authorization: Bearer header. WHOIS records are cached for up to 24 hours and older cached records are refreshed in real time when queried. Some fields can be missing because WHOIS providers return incomplete data.

The DNS records and WHOIS history endpoints need a Premium or Enterprise plan. A history call uses 50 requests of the allowance per successful response. Domain monitoring and webhooks are Dashboard features and are not part of this reference.

A bulk endpoint (/v1/domains?d=, up to 20 domains) also exists; its response shape is not shown in the docs, so it is not described here.

Quick start

  1. Get a key

    Create an account with WhoisJsonAPI and copy your bearer token. Where to get it

  2. Make your first request

    Parsed WHOIS/RDAP record for one domain.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://whoisjsonapi.com/v1/example.com' \
      -H 'Authorization: Bearer YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this, shortened.

    {
      "domain": {
        "domain": "example.com",
        "name": "example",
        "extension": "com",
        "whois_server": "whois.example-registry.test",
        "status": [
          "clientTransferProhibited"
        ],
        "name_servers": [
          "ns1.example.com",
          "ns2.example.com"
        ],
        "created_date": "2001-03-29T05:00:00Z",
        "updated_date": "2025-01-15T10:00:00Z",
        "expiration_date": "2030-03-30T04:00:00Z"
      },
      "registrar": {
        "name": "Example Registrar, Inc.",
        "email": "abuse@example.org"
      },
      "registrant": {
        "organization": "Example Org",
        "country": "US"
    …

Authentication

Send your token in the Authorization header as Bearer YOUR_TOKEN.

Create a developer account to get a token from the Dashboard.

Get a key from WhoisJsonAPI

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

50 requests per second per endpoint. The size of each plan's allowance is not stated in the docs.

Errors

StatusMeaning
400Invalid domain, types or query (codes such as DNS_INVALID_DOMAIN, DNS_INVALID_TYPES, WHOIS_HISTORY_INVALID_QUERY, WHOIS_HISTORY_INVALID_CURSOR)
429Rate limit exceeded, or fewer than 50 requests left for a history call
503DNS or history source temporarily unavailable; honour Retry-After if present
504DNS lookup timed out (DNS_TIMEOUT)

WHOIS

Returns domain, registrar and contact blocks. Fields can be missing when the WHOIS provider supplies incomplete data. A response with no record usually means the domain may not be registered.

Path parameters

domainstringrequiredtakes your domain

Domain name to look up

Example: example.com
Response fields · 11Show

domainstring

The domain name

whois_serverstring

WHOIS server used

statusstring[]

Registry status values

name_servers[]string

Name servers

created_datestring

Creation date

updated_datestring

Last update date

expiration_datestring

Expiry date

namestring

Registrar name

emailstring

Registrar contact email

organizationstring

Registrant organisation, when published

countrystring

Registrant country, when published

curl 'https://whoisjsonapi.com/v1/example.com' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "domain": {
    "domain": "example.com",
    "name": "example",
    "extension": "com",
    "whois_server": "whois.example-registry.test",
    "status": [
      "clientTransferProhibited"
    ],
    "name_servers": [
      "ns1.example.com",
      "ns2.example.com"
    ],
    "created_date": "2001-03-29T05:00:00Z",
    "updated_date": "2025-01-15T10:00:00Z",
    "expiration_date": "2030-03-30T04:00:00Z"
  },
  "registrar": {
    "name": "Example Registrar, Inc.",
    "email": "abuse@example.org"
  },
  "registrant": {
    "organization": "Example Org",
    "country": "US"
  }
}

Availability

Returns active or inactive. Inactive means DNS found neither an A nor an NS record, or WHOIS reports the domain not found. It does not confirm the domain is available to register.

Path parameters

domainNamestringrequiredtakes your domain

Domain name to check

Example: example.com
Response fields · 2Show

domainstring

The domain checked

statusstring

active or inactive

curl 'https://whoisjsonapi.com/v1/status/example.com' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "domain": "example.com",
  "status": "active"
}

DNS

  • Takes: Domain
  • Passive: the target is not contacted
  • Cost: 1 request
  • Plan: Premium and Enterprise

Each accepted lookup uses one request from the allowance, however many types are asked for. Successful responses include X-Requests-Remaining when available.

Path parameters

domainNamestringrequiredtakes your domain

Domain name

Example: example.com

Query parameters

typesstring

Comma-separated record types; omit for all eight

Example: A,MX,TXTOne of: A, AAAA, MX, NS, TXT, CNAME, SOA, CAA
Response fields · 10Show

domainstring

Domain as requested

domain_asciistring

ASCII form of the domain

statusstring

success, no_data, nxdomain or partial

requested_types[]string

Record types looked up

fetched_atstring

When the records were fetched

expires_atstring

When the cached answer expires

valuestring

A record address

exchangestring

Mail exchanger host

priorityinteger

MX priority

warnings[]string

Warnings about the lookup

curl 'https://whoisjsonapi.com/v1/dns/example.com' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "domain": "example.com",
  "domain_ascii": "example.com",
  "status": "success",
  "resolver_policy": "default",
  "requested_types": [
    "A",
    "MX"
  ],
  "fetched_at": "2026-01-01T00:00:00Z",
  "expires_at": "2026-01-01T00:05:00Z",
  "records": {
    "A": [
      {
        "name": "example.com.",
        "type": "A",
        "ttl": 120,
        "value": "203.0.113.7"
      }
    ],
    "MX": [
      {
        "name": "example.com.",
        "type": "MX",
        "ttl": 300,
        "priority": 10,
        "exchange": "mail.example.com."
      }
    ]
  },
  "warnings": []
}

History

  • Takes: Domain
  • Passive: the target is not contacted
  • Cost: 50 requests per successful response, including each cursor page; errors cost nothing
  • Plan: Premium and Enterprise

Subdomains resolve to the registrable domain. Excludes contact details and raw WHOIS text. Tracked paths are registrar.name, domain.created_date, domain.updated_date, domain.expiration_date, domain.name_servers, domain.status and domain.dnssec. Page with pagination.next_cursor, reusing the same limit, from and to; a cursor is valid for 24 hours. offset and page are not supported.

Path parameters

domainNamestringrequiredtakes your domain

Domain name

Example: example.com

Query parameters

limitinteger

Events per page, 1 to 100

Example: 20Default: 20
fromstring

Start of the range, ISO 8601 with timezone; URL-encode + as %2B

Example: 2020-01-01T00:00:00Z
tostring

End of the range, ISO 8601 with timezone; must be later than from

Example: 2026-01-01T00:00:00Z
cursorstring

pagination.next_cursor from the previous page

Example: YOUR_CURSOR
Response fields · 7Show

domainstring

Registrable domain

history_statusstring

records_available or no_records_confirmed

page_statusstring

changes, observation, no_matching_records, scan_limited, exhausted or no_history

events[]object

Detected changes, each with before and after values

observationobject

Observation details

coverageobject

Coverage of the stored history

next_cursorstring

Cursor for the next page

curl 'https://whoisjsonapi.com/v1/example.com/history' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "domain": "example.com",
  "history_status": "records_available",
  "page_status": "changes",
  "events": [
    {
      "path": "registrar.name",
      "before": {
        "state": "present",
        "value": "Example Registrar, Inc."
      },
      "after": {
        "state": "present",
        "value": "Sample Registrar LLC"
      }
    }
  ],
  "pagination": {
    "next_cursor": "YOUR_CURSOR"
  }
}