Service offline · Some features are unavailable right now. Please try again shortly.
Developer documentation

WHOIS Lookup API

Real WHOIS, RDAP, DNS, SSL and HTTP intelligence through one simple endpoint. Live examples, real response data and a built-in console.

GEThttps://whois.mdjhs.com/api.php?q=example.com&format=json
Free access No sign-up 30 / min per visitor 1 hour cache Status: checking…

What you get

  • WHOIS and RDAP for domains, IPs, ASNs and TLDs
  • DNS, SSL and HTTP extras on domain lookups
  • Raw WHOIS, JSON or plain-text responses
  • OpenAPI spec, live console and code recipes
JSONStructured response
TextRaw WHOIS + extras
ExtrasDNS / SSL / HTTP
CORSBrowser-ready
Overview

Getting started

Overview

One free endpoint for the WHOIS and RDAP data of domains, IP addresses, AS numbers and TLDs. Send a GET request, get JSON or plain text back. No sign-up, no key.

GET https://whois.mdjhs.com/api.php format=json format=text DNS, SSL and HTTP extras

How it works

  1. Send q with what you want to look up: a domain, an IP address, an AS number or a TLD.
  2. Add format=json for structured data or format=text for a readable record.
  3. Read the answer. Every answer carries a request_id and is stored for one hour.
GET https://whois.mdjhs.com/api.php?q=example.com&format=json
curl -s "https://whois.mdjhs.com/api.php?q=example.com&format=json"
const res = await fetch("https://whois.mdjhs.com/api.php?q=example.com&format=json");
const data = await res.json();
console.log(data);
<?php
$data = file_get_contents('https://whois.mdjhs.com/api.php?q=example.com&format=json');
print_r(json_decode($data, true));
import requests

r = requests.get("https://whois.mdjhs.com/api.php", params={"q": "example.com", "format": "json"})
print(r.json())

At a glance

ItemValue
MethodGET (also HEAD and OPTIONS)
Base URLhttps://whois.mdjhs.com/api.php
AccessOpen to everyone. No sign-up.
Response formatformat=json (default) or format=text
Domain extrasDNS, SSL and HTTP checks are included for domains. Use extras=none to skip them.
Raw WHOISAdd raw=1 to get the full record in raw_whois
Rate limit30 requests per minute for each visitor
StorageEvery answer is stored for 3600 seconds (1 hour)
CORSOpen: browsers on any website can call the API

Parameters

ParameterRequiredValuesDefaultSection
qyesdomain, IP, ASN, or TLD-q
rawno0 or 10raw
extrasnodns, ssl, http, all, or noneall (domain)extras
formatnojson or textjsonformat

Open api.php?format=json without q for a short usage guide, or api.php?status=1&format=json for the live status.

The examples on these pages use real answers from the live API. Values that change over time, such as cache age, days until expiry and response time, will differ when you send the request yourself.

Getting started

Quick start

Send a GET request with q. A domain answer holds the registrar, dates, status and name servers, plus DNS, SSL and HTTP checks under extras.

GET https://whois.mdjhs.com/api.php?q=example.com&format=json
curl -s "https://whois.mdjhs.com/api.php?q=example.com&format=json"
const res = await fetch("https://whois.mdjhs.com/api.php?q=example.com&format=json");
const data = await res.json();
console.log(data);
<?php
$data = file_get_contents('https://whois.mdjhs.com/api.php?q=example.com&format=json');
print_r(json_decode($data, true));
import requests

r = requests.get("https://whois.mdjhs.com/api.php", params={"q": "example.com", "format": "json"})
print(r.json())

A real answer, shortened for reading. The full answers are in Result examples, and you can run your own in the API console:

{
  "success": true,
  "type": "domain",
  "registered": true,
  "available": false,
  "domain": "example.com",
  "registrar": {
    "name": "RESERVED-Internet Assigned Numbers Authority",
    "iana_id": "376"
  },
  "dates": {
    "created": "1995-08-14T04:00:00Z",
    "updated": "2026-08-14T08:01:43Z",
    "expires": "2027-08-13T04:00:00Z"
  },
  "days_until_expiry": 262,
  "domain_age_days": 11424,
  "status": [
    "clientDeleteProhibited",
    "clientTransferProhibited",
    "clientUpdateProhibited"
  ],
  "nameservers": [
    "elliott.ns.cloudflare.com",
    "hera.ns.cloudflare.com"
  ],
  "dnssec": "signed",
  "contact_status": "public",
  "contacts": {
    "registrant": {
      "organization": "Internet Assigned Numbers Authority"
    }
  },
  "public_suffix": {
    "suffix": "com",
    "rule": "com",
    "section": "icann",
    "registrable_domain": "example.com",
    "is_suffix": false,
    "labels": 2
  },
  "extras": {
    "dns": {
      "success": true,
      "type": "dns",
      "count": 23,
      "source": "doh",
      "dnssec_validated": true,
      "summary": {
        "types": 11,
        "has_a": true,
        "has_aaaa": true,
        "has_mx": true,
        "has_txt": true,
        "has_caa": false,
        "has_spf": true,
        "has_dmarc": true,
        "has_mta_sts": false,
        "has_tls_rpt": false,
        "has_bimi": false,
        "spf": "v=spf1 -all",
        "dmarc": "v=DMARC1;p=reject;sp=reject;adkim=s;aspf=s"
      }
    },
    "ssl": {
      "success": true,
      "type": "ssl",
      "trusted": true,
      "days_left": 32,
      "issuer": "Cloudflare TLS Issuing ECC CA 3",
      "protocol": "TLSv1.3",
      "key": {
        "type": "EC",
        "bits": 256
      }
    },
    "http": {
      "success": true,
      "type": "http",
      "status": 200,
      "response_ms": 22,
      "security": {
        "grade": "F",
        "score": 0,
        "max_score": 100,
        "missing": [
          "Strict-Transport-Security",
          "Content-Security-Policy",
          "X-Frame-Options",
          "X-Content-Type-Options",
          "Referrer-Policy",
          "Permissions-Policy",
          "Cross-Origin-Opener-Policy",
          "Cross-Origin-Resource-Policy"
        ]
      }
    }
  },
  "credit": {
    "api": "WHOIS Lookup API",
    "author": "MD JULFIKER HOSSEN SHEBBIR",
    "website": "https://mdjhs.com"
  }
}

Getting started

API console

Send a real request to this API and see the status, timing, headers and the full answer. You can copy the address or the cURL command, or download the answer.

Try:
api.php?q=…&format=json
Send a request to see the real response here.

Parameters

Parameter: q

requiredtype: textmax 300 characters

q is what you want to look up. You never need to say what kind of value it is: the API recognises it for you.

You sendDetected asExample
Domain name, URL or international nameDomainexample.com, https://www.example.com/path, bücher.de
IPv4 or IPv6 addressIP address8.8.8.8, 2001:4860:4860::8888
AS numberAS numberAS15169, 15169
Top-level domainTLDcom, .org, xn--p1ai

Rules

  • Spaces around the value are ignored. Control characters are rejected.
  • A missing or empty q returns the usage guide.
  • Send q once. Lists such as q[]=a return 400.
  • Reserved names (localhost, .local, .internal, .test, .onion and similar) return 422.
GET https://whois.mdjhs.com/api.php?q=example.com&format=json
curl -s "https://whois.mdjhs.com/api.php?q=example.com&format=json"
const res = await fetch("https://whois.mdjhs.com/api.php?q=example.com&format=json");
const data = await res.json();
console.log(data);
<?php
$data = file_get_contents('https://whois.mdjhs.com/api.php?q=example.com&format=json');
print_r(json_decode($data, true));
import requests

r = requests.get("https://whois.mdjhs.com/api.php", params={"q": "example.com", "format": "json"})
print(r.json())

Parameters

q = domain

Returns registrar, dates, status, nameservers, DNSSEC, contact status, public suffix info, and by default DNS/SSL/HTTP extras.

Accepted input

  • Plain domain: example.com
  • Full URL: https://www.example.com/path?x=1 (scheme/www/path/query removed)
  • IDN: bücher.de → xn--bcher-kva.de
  • Subdomain: returns registrable domain record; input preserves what you sent.

Real request

GET https://whois.mdjhs.com/api.php?q=example.com&format=json
curl -s "https://whois.mdjhs.com/api.php?q=example.com&format=json"
const res = await fetch("https://whois.mdjhs.com/api.php?q=example.com&format=json");
const data = await res.json();
console.log(data);
<?php
$data = file_get_contents('https://whois.mdjhs.com/api.php?q=example.com&format=json');
print_r(json_decode($data, true));
import requests

r = requests.get("https://whois.mdjhs.com/api.php", params={"q": "example.com", "format": "json"})
print(r.json())

Real response (example.com)

{
  "success": true,
  "type": "domain",
  "registered": true,
  "available": false,
  "domain": "example.com",
  "whois_record": true,
  "registry_domain_id": "2336799_DOMAIN_COM-VRSN",
  "registrar": {
    "name": "RESERVED-Internet Assigned Numbers Authority",
    "iana_id": "376"
  },
  "dates": {
    "created": "1995-08-14T04:00:00Z",
    "updated": "2026-08-14T08:01:43Z",
    "expires": "2027-08-13T04:00:00Z"
  },
  "days_until_expiry": 262,
  "domain_age_days": 11424,
  "status": [
    "clientDeleteProhibited",
    "clientTransferProhibited",
    "clientUpdateProhibited"
  ],
  "nameservers": [
    "elliott.ns.cloudflare.com",
    "hera.ns.cloudflare.com"
  ],
  "dnssec": "signed",
  "contact_status": "public",
  "contact_note": "Contact details are public.",
  "contacts": {
    "registrant": {
      "organization": "Internet Assigned Numbers Authority"
    }
  },
  "public_suffix": {
    "suffix": "com",
    "rule": "com",
    "section": "icann",
    "registrable_domain": "example.com",
    "is_suffix": false,
    "labels": 2
  },
  "extras": {
    "dns": {
      "success": true,
      "type": "dns",
      "domain": "example.com",
      "count": 23,
      "source": "doh",
      "dnssec_validated": true,
      "records": {
        "A": [
          {
            "value": "172.66.147.243",
            "ttl": 300
          },
          {
            "value": "104.20.23.154",
            "ttl": 300
          }
        ],
        "AAAA": [
          {
            "value": "2606:4700:10::6814:179a",
            "ttl": 300
          },
          {
            "value": "2606:4700:10::ac42:93f3",
            "ttl": 300
          }
        ],
        "NS": [
          {
            "value": "elliott.ns.cloudflare.com",
            "ttl": 21600
          },
          {
            "value": "hera.ns.cloudflare.com",
            "ttl": 21600
          }
        ],
        "SOA": [
          {
            "value": "elliott.ns.cloudflare.com dns.cloudflare.com 2420077714 10000 2400 604800 1800",
            "ttl": 1800
          }
        ],
        "MX": [
          {
            "value": "0 .",
            "ttl": 152
          }
        ],
        "TXT": [
          {
            "value": "v=spf1 -all",
            "ttl": 300
          },
          {
            "value": "_k2n1y4vw3qtb4skdx9e7dxt97qrmmq9",
            "ttl": 300
          }
        ],
        "DS": [
          {
            "value": "2371 13 2 C988EC423E3880EB8DD8A46FE06CA230EE23F35B578D64E78B29C3E1C83D245A",
            "ttl": 21600
          }
        ],
        "DNSKEY": [
          {
            "value": "256 3 13 oJMRESz5E4gYzS/q6XDrvU1qMPYIjCWzJaOau8XNEZeqCYKD5ar0IRd8KqXXFJkqmVfRvMGPmM1x8fGAa2XhSA==",
            "ttl": 3600
          },
          {
            "value": "257 3 13 mdsswUyr3DPW132mOi8V9xESWE8jTo0dxCjjnopKl+GqJxpVXckHAeF+KkxLbxILfDLUT0rAK9iUzy1L53eKGQ==",
            "ttl": 3600
          },
          {
            "value": "256 3 13 MjyZielP0GqniI1+j+wAG/3t0ImDDIlj1CxR0oobkZQHSKH2Fqx6tm2NcYu57POJ83SzCWLkqIjZHS1mh5wbaw==",
            "ttl": 3600
          },
          {
            "value": "256 3 13 kxipjoIbNZDsWqEKaYaGq6fM/XThrRp1ue6AV9R/n3eWxpGCeCWJb47PEEEj/Q6VAYFW/7UFo5mXoZfxKYZa3A==",
            "ttl": 3600
          }
        ],
        "CDS": [
          {
            "value": "2371 13 2 C988EC423E3880EB8DD8A46FE06CA230EE23F35B578D64E78B29C3E1C83D245A",
            "ttl": 3600
          }
        ],
        "CDNSKEY": [
          {
            "value": "257 3 13 mdsswUyr3DPW132mOi8V9xESWE8jTo0dxCjjnopKl+GqJxpVXckHAeF+KkxLbxILfDLUT0rAK9iUzy1L53eKGQ==",
            "ttl": 2763
          }
        ],
        "HTTPS": [
          {
            "value": "1 . alpn=h3,h2 ipv4hint=104.20.23.154,172.66.147.243 ipv6hint=2606:4700:10::6814:179a,2606:4700:10::ac42:93f3",
            "ttl": 300
          }
        ]
      },
      "extra": {
        "www.example.com": {
          "A": [
            {
              "value": "104.20.23.154",
              "ttl": 300
            },
            {
              "value": "172.66.147.243",
              "ttl": 300
            }
          ],
          "AAAA": [
            {
              "value": "2606:4700:10::6814:179a",
              "ttl": 300
            },
            {
              "value": "2606:4700:10::ac42:93f3",
              "ttl": 300
            }
          ]
        },
        "_dmarc.example.com": {
          "TXT": [
            {
              "value": "v=DMARC1;p=reject;sp=reject;adkim=s;aspf=s",
              "ttl": 300
            }
          ]
        }
      },
      "summary": {
        "types": 11,
        "has_a": true,
        "has_aaaa": true,
        "has_mx": true,
        "has_txt": true,
        "has_caa": false,
        "has_spf": true,
        "has_dmarc": true,
        "has_mta_sts": false,
        "has_tls_rpt": false,
        "has_bimi": false,
        "spf": "v=spf1 -all",
        "dmarc": "v=DMARC1;p=reject;sp=reject;adkim=s;aspf=s"
      }
    },
    "ssl": {
      "success": true,
      "type": "ssl",
      "domain": "example.com",
      "ip": "172.66.147.243",
      "trusted": true,
      "self_signed": false,
      "subject": "example.com",
      "issuer": "SSL Corporation",
      "issuer_cn": "Cloudflare TLS Issuing ECC CA 3",
      "valid_from": "2026-09-26T22:49:11Z",
      "valid_to": "2026-12-25T22:56:35Z",
      "days_left": 32,
      "days_total": 90,
      "names": [
        "example.com",
        "*.example.com"
      ],
      "san_count": 2,
      "protocol": "TLSv1.3",
      "cipher": "TLS_AES_256_GCM_SHA384",
      "key": {
        "type": "EC",
        "bits": 256
      },
      "signature": "ecdsa-with-SHA256",
      "serial": "01EEE6AABB521D5E14FC315FD9985690",
      "fingerprints": {
        "sha256": "85:CA:6A:B0:68:E9:BC:CE:88:B6:C4:AA:3C:47:F7:D1:72:28:13:4A:45:7F:87:0D:38:00:E6:22:3A:0D:F0:7A",
        "sha1": "89:9C:B2:59:E7:DE:8D:F1:00:33:A2:AF:48:C2:2C:2F:65:80:A2:1D"
      },
      "chain": [
        {
          "subject": "example.com",
          "issuer": "Cloudflare TLS Issuing ECC CA 3",
          "valid_from": "2026-09-26T22:49:11Z",
          "valid_to": "2026-12-25T22:56:35Z",
          "self_signed": false
        },
        {
          "subject": "Cloudflare TLS Issuing ECC CA 3",
          "issuer": "SSL.com TLS Transit ECC CA R2",
          "valid_from": "2025-05-29T19:49:45Z",
          "valid_to": "2035-05-27T19:49:44Z",
          "self_signed": false
        },
        {
          "subject": "SSL.com TLS Transit ECC CA R2",
          "issuer": "SSL.com TLS ECC Root CA 2022",
          "valid_from": "2022-10-21T17:02:23Z",
          "valid_to": "2037-10-17T17:02:22Z",
          "self_signed": false
        },
        {
          "subject": "SSL.com TLS ECC Root CA 2022",
          "issuer": "AAA Certificate Services",
          "valid_from": "2025-08-01T00:00:00Z",
          "valid_to": "2028-12-31T23:59:59Z",
          "self_signed": false
        }
      ]
    },
    "http": {
      "success": true,
      "type": "http",
      "domain": "example.com",
      "ip": "172.66.147.243",
      "trusted": true,
      "status": 200,
      "response_ms": 22,
      "server": "cloudflare",
      "content_type": "text/html; charset=utf-8",
      "security": {
        "grade": "F",
        "score": 0,
        "max_score": 100,
        "present": [],
        "missing": [
          "Strict-Transport-Security",
          "Content-Security-Policy",
          "X-Frame-Options",
          "X-Content-Type-Options",
          "Referrer-Policy",
          "Permissions-Policy",
          "Cross-Origin-Opener-Policy",
          "Cross-Origin-Resource-Policy"
        ],
        "details": [
          {
            "header": "Strict-Transport-Security",
            "present": false,
            "value": null,
            "advice": "Enforces HTTPS for future visits."
          },
          {
            "header": "Content-Security-Policy",
            "present": false,
            "value": null,
            "advice": "Helps prevent XSS and data injection."
          },
          {
            "header": "X-Frame-Options",
            "present": false,
            "value": null,
            "advice": "Reduces clickjacking risk."
          },
          {
            "header": "X-Content-Type-Options",
            "present": false,
            "value": null,
            "advice": "Prevents MIME sniffing."
          },
          {
            "header": "Referrer-Policy",
            "present": false,
            "value": null,
            "advice": "Controls referrer information leakage."
          },
          {
            "header": "Permissions-Policy",
            "present": false,
            "value": null,
            "advice": "Restricts browser features."
          },
          {
            "header": "Cross-Origin-Opener-Policy",
            "present": false,
            "value": null,
            "advice": "Isolates browsing context from cross-origin windows."
          },
          {
            "header": "Cross-Origin-Resource-Policy",
            "present": false,
            "value": null,
            "advice": "Controls who can load this resource."
          }
        ],
        "warnings": [
          "Server header exposes technology information."
        ]
      },
      "headers": {
        "date": "Mon, 23 Nov 2026 18:35:43 GMT",
        "content-type": "text/html; charset=utf-8",
        "server": "cloudflare",
        "last-modified": "Thu, 19 Nov 2026 22:11:52 GMT",
        "allow": "GET, HEAD",
        "accept-ranges": "bytes",
        "age": "3",
        "cf-cache-status": "HIT",
        "cf-ray": "a5f2467f9b924497-SIN",
        "alt-svc": "h3=\":443\"; ma=86400"
      }
    }
  },
  "meta": {
    "request_id": "41994d2e4e94ef56",
    "timestamp": "2026-11-23T18:35:43Z",
    "cache": {
      "status": "HIT",
      "ttl_seconds": 3600,
      "stored_at": "2026-11-23T18:29:58Z",
      "expires_at": "2026-11-23T19:29:58Z",
      "age_seconds": 345,
      "expires_in_seconds": 3255
    },
    "took_ms": 1501
  },
  "credit": {
    "api": "WHOIS Lookup API",
    "author": "MD JULFIKER HOSSEN SHEBBIR",
    "website": "https://mdjhs.com"
  }
}

Parameters

q = IP address

Returns network, owner, country, origin ASN, reverse hostname, abuse, and contacts.

GET https://whois.mdjhs.com/api.php?q=8.8.8.8&format=json
curl -s "https://whois.mdjhs.com/api.php?q=8.8.8.8&format=json"
const res = await fetch("https://whois.mdjhs.com/api.php?q=8.8.8.8&format=json");
const data = await res.json();
console.log(data);
<?php
$data = file_get_contents('https://whois.mdjhs.com/api.php?q=8.8.8.8&format=json');
print_r(json_decode($data, true));
import requests

r = requests.get("https://whois.mdjhs.com/api.php", params={"q": "8.8.8.8", "format": "json"})
print(r.json())

Real response (8.8.8.8)

{
  "success": true,
  "type": "ip",
  "ip": "8.8.8.8",
  "version": 4,
  "hostname": "dns.google",
  "network": {
    "name": "GOGL",
    "handle": "NET-8-8-8-0-2",
    "range": "8.8.8.0 - 8.8.8.255",
    "cidr": [
      "8.8.8.0/24"
    ],
    "type": "DIRECT ALLOCATION",
    "country": "US",
    "parent_handle": "NET-8-0-0-0-0"
  },
  "organization": "Google LLC",
  "asn": {
    "number": "AS15169",
    "name": "GOOGLE - Google LLC, US",
    "prefix": "8.8.8.0/24"
  },
  "dates": {
    "created": "2023-12-28T17:24:33-05:00",
    "updated": "2023-12-28T17:24:56-05:00"
  },
  "status": [
    "active"
  ],
  "abuse": {
    "email": "network-abuse@google.com",
    "phone": "+1-650-253-0000"
  },
  "contacts": {
    "registrant": {
      "name": "Google LLC",
      "street": "1600 Amphitheatre Parkway, Mountain View, CA, 94043, United States",
      "handle": "GOGL",
      "notes": "Please note that the recommended way to file abuse complaints are located in the following links.   To report abuse and illegal activity: https://www.google.com/contact/  For legal requests: http://support.google.com/legal   Regards,  The Google Team"
    },
    "admin": {
      "name": "Google LLC",
      "organization": "Google LLC",
      "email": "arin-contact@google.com",
      "phone": "+1-650-253-0000",
      "street": "1600 Amphitheatre Parkway, Mountain View, CA, 94043, United States",
      "handle": "ZG39-ARIN"
    },
    "tech": {
      "name": "Google LLC",
      "organization": "Google LLC",
      "email": "arin-contact@google.com",
      "phone": "+1-650-253-0000",
      "street": "1600 Amphitheatre Parkway, Mountain View, CA, 94043, United States",
      "handle": "ZG39-ARIN"
    },
    "abuse": {
      "name": "Abuse",
      "organization": "Google Inc.",
      "email": "network-abuse@google.com",
      "phone": "+1-650-253-0000",
      "street": "1600 Amphitheatre Parkway, Mountain View, CA, 94043, United States",
      "handle": "ABUSE5250-ARIN",
      "notes": "Please note that the recommended way to file abuse complaints are located in the following links.  To report abuse and illegal activity: https://www.google.com/contact/  For legal requests: http://support.google.com/legal   Regards, The Google Team"
    }
  },
  "meta": {
    "request_id": "a0c151296076b0c7",
    "timestamp": "2026-11-23T18:35:50Z",
    "cache": {
      "status": "MISS",
      "ttl_seconds": 3600,
      "stored_at": "2026-11-23T18:35:50Z",
      "expires_at": "2026-11-23T19:35:50Z",
      "age_seconds": 0,
      "expires_in_seconds": 3600
    },
    "took_ms": 5455
  },
  "credit": {
    "api": "WHOIS Lookup API",
    "author": "MD JULFIKER HOSSEN SHEBBIR",
    "website": "https://mdjhs.com"
  }
}

Private/reserved IP

Private/reserved addresses return success with reserved: true.

{
  "success": true,
  "type": "ip",
  "ip": "192.168.1.1",
  "version": 4,
  "reserved": true,
  "message": "This is a private or reserved IP address. It is not registered to anyone on the public internet.",
  "meta": {
    "...": "..."
  },
  "credit": {
    "api": "WHOIS Lookup API",
    "author": "MD JULFIKER HOSSEN SHEBBIR",
    "website": "https://mdjhs.com"
  }
}

Parameters

q = AS number

Returns ASN name, handle, range, type, country, organization, dates, status, abuse, and contacts.

GET https://whois.mdjhs.com/api.php?q=AS15169&format=json
curl -s "https://whois.mdjhs.com/api.php?q=AS15169&format=json"
const res = await fetch("https://whois.mdjhs.com/api.php?q=AS15169&format=json");
const data = await res.json();
console.log(data);
<?php
$data = file_get_contents('https://whois.mdjhs.com/api.php?q=AS15169&format=json');
print_r(json_decode($data, true));
import requests

r = requests.get("https://whois.mdjhs.com/api.php", params={"q": "AS15169", "format": "json"})
print(r.json())

Real response (AS15169)

{
  "success": true,
  "type": "asn",
  "asn": "AS15169",
  "name": "GOOGLE",
  "handle": "AS15169",
  "range": "AS15169",
  "organization": "Google LLC",
  "dates": {
    "created": "2000-03-30T00:00:00-05:00",
    "updated": "2012-02-24T09:44:34-05:00"
  },
  "status": [
    "active"
  ],
  "abuse": {
    "email": "network-abuse@google.com",
    "phone": "+1-650-253-0000"
  },
  "contacts": {
    "registrant": {
      "name": "Google LLC",
      "street": "1600 Amphitheatre Parkway, Mountain View, CA, 94043, United States",
      "handle": "GOGL",
      "notes": "Please note that the recommended way to file abuse complaints are located in the following links.   To report abuse and illegal activity: https://www.google.com/contact/  For legal requests: http://support.google.com/legal   Regards,  The Google Team"
    },
    "admin": {
      "name": "Google LLC",
      "organization": "Google LLC",
      "email": "arin-contact@google.com",
      "phone": "+1-650-253-0000",
      "street": "1600 Amphitheatre Parkway, Mountain View, CA, 94043, United States",
      "handle": "ZG39-ARIN"
    },
    "tech": {
      "name": "Google LLC",
      "organization": "Google LLC",
      "email": "arin-contact@google.com",
      "phone": "+1-650-253-0000",
      "street": "1600 Amphitheatre Parkway, Mountain View, CA, 94043, United States",
      "handle": "ZG39-ARIN"
    },
    "abuse": {
      "name": "Abuse",
      "organization": "Google Inc.",
      "email": "network-abuse@google.com",
      "phone": "+1-650-253-0000",
      "street": "1600 Amphitheatre Parkway, Mountain View, CA, 94043, United States",
      "handle": "ABUSE5250-ARIN",
      "notes": "Please note that the recommended way to file abuse complaints are located in the following links.  To report abuse and illegal activity: https://www.google.com/contact/  For legal requests: http://support.google.com/legal   Regards, The Google Team"
    }
  },
  "meta": {
    "request_id": "ebf98e4a16ea3164",
    "timestamp": "2026-11-23T18:35:51Z",
    "cache": {
      "status": "MISS",
      "ttl_seconds": 3600,
      "stored_at": "2026-11-23T18:35:51Z",
      "expires_at": "2026-11-23T19:35:51Z",
      "age_seconds": 0,
      "expires_in_seconds": 3600
    },
    "took_ms": 751
  },
  "credit": {
    "api": "WHOIS Lookup API",
    "author": "MD JULFIKER HOSSEN SHEBBIR",
    "website": "https://mdjhs.com"
  }
}

Parameters

Parameter: raw

optionalvalues: 0 or 1default: 0

Adds raw_whois: the complete, unchanged WHOIS record as text. Domain lookups still include the DNS, SSL and HTTP extras unless you also send extras=none.

GET https://whois.mdjhs.com/api.php?q=google.com&raw=1&format=json
curl -s "https://whois.mdjhs.com/api.php?q=google.com&raw=1&format=json"
const res = await fetch("https://whois.mdjhs.com/api.php?q=google.com&raw=1&format=json");
const data = await res.json();
console.log(data);
<?php
$data = file_get_contents('https://whois.mdjhs.com/api.php?q=google.com&raw=1&format=json');
print_r(json_decode($data, true));
import requests

r = requests.get("https://whois.mdjhs.com/api.php", params={"q": "google.com", "raw": "1", "format": "json"})
print(r.json())

Real response (google.com, raw=1)

{
  "success": true,
  "type": "domain",
  "registered": true,
  "available": false,
  "domain": "google.com",
  "registrar": {
    "name": "MarkMonitor Inc.",
    "iana_id": "292",
    "url": "http://www.markmonitor.com",
    "abuse_email": "abusecomplaints@markmonitor.com",
    "abuse_phone": "+1.2086851750"
  },
  "dates": {
    "created": "1997-09-15T04:00:00Z",
    "updated": "2019-09-09T15:39:04Z",
    "expires": "2028-09-14T04:00:00Z"
  },
  "status": [
    "clientDeleteProhibited",
    "clientTransferProhibited",
    "clientUpdateProhibited",
    "serverDeleteProhibited",
    "serverTransferProhibited",
    "serverUpdateProhibited"
  ],
  "nameservers": [
    "ns1.google.com",
    "ns2.google.com",
    "ns3.google.com",
    "ns4.google.com"
  ],
  "dnssec": "unsigned",
  "contact_status": "protected",
  "raw_whois": "Domain Name: GOOGLE.COM\nRegistry Domain ID: 2138514_DOMAIN_COM-VRSN\nRegistrar URL: http://www.markmonitor.com\nUpdated Date: 2019-09-09T15:39:04Z\nCreation Date: 1997-09-15T04:00:00Z\nRegistry Expiry Date: 2028-09-14T04:00:00Z\nRegistrar: MarkMonitor Inc.\nRegistrar IANA ID: 292\nRegistrar Abuse Contact Email: abusecomplaints@markmonitor.com\nRegistrar Abuse Contact Phone: +1.2086851750\nDomain Status: clientDeleteProhibited\nDomain Status: clientTransferProhibited\nDomain Status: clientUpdateProhibited\nDomain Status: serverDeleteProhibited\nDomain Status: serverTransferProhibited\nDomain Status: serverUpdateProhibited\nRegistrant Name: CONTACT PROTECTED\nRegistrant State/Province: CA\nRegistrant Country: US\nRegistrant Contact Form: https://domains.markmonitor.com/whois/contact/google.com\nTech Name: CONTACT PROTECTED\nTech Contact Form: https://domains.markmonitor.com/whois/contact/google.com\nName Server: NS1.GOOGLE.COM\nName Server: NS2.GOOGLE.COM\nName Server: NS3.GOOGLE.COM\nName Server: NS4.GOOGLE.COM\nDNSSEC: unsigned\n\nContact Status: Protected - Contact protected. The owner's details are hidden by the registrar or a privacy service.\n\n>>> Last update of WHOIS database: 2026-11-23T18:24:42Z <<<",
  "credit": {
    "api": "WHOIS Lookup API",
    "author": "MD JULFIKER HOSSEN SHEBBIR",
    "website": "https://mdjhs.com"
  }
}

The answer above is shortened. A live domain answer also contains the extras section.

Parameters

Parameter: extras

optionaldomain onlydefault: all

Extras are extra live checks added to domain answers. Domain lookups include dns, ssl, and http by default. Control with extras=all, extras=dns,ssl,http, specific tools, or extras=none.

ValueBehavior
(default)Domain lookup includes all extras.
allInclude dns, ssl, http.
dns,ssl,httpInclude selected tools.
none / off / 0Disable extras.
GET https://whois.mdjhs.com/api.php?q=example.com&extras=all&format=json
curl -s "https://whois.mdjhs.com/api.php?q=example.com&extras=all&format=json"
const res = await fetch("https://whois.mdjhs.com/api.php?q=example.com&extras=all&format=json");
const data = await res.json();
console.log(data);
<?php
$data = file_get_contents('https://whois.mdjhs.com/api.php?q=example.com&extras=all&format=json');
print_r(json_decode($data, true));
import requests

r = requests.get("https://whois.mdjhs.com/api.php", params={"q": "example.com", "extras": "all", "format": "json"})
print(r.json())

Real extras response shape (example.com)

{
  "success": true,
  "type": "domain",
  "domain": "example.com",
  "...": "all the usual domain fields",
  "extras": {
    "dns": {
      "success": true,
      "type": "dns",
      "domain": "example.com",
      "count": 23,
      "source": "doh",
      "dnssec_validated": true,
      "summary": {
        "types": 11,
        "has_a": true,
        "has_aaaa": true,
        "has_mx": true,
        "has_txt": true,
        "has_caa": false,
        "has_spf": true,
        "has_dmarc": true,
        "has_mta_sts": false,
        "has_tls_rpt": false,
        "has_bimi": false,
        "spf": "v=spf1 -all",
        "dmarc": "v=DMARC1;p=reject;sp=reject;adkim=s;aspf=s"
      },
      "records": {
        "A": [
          {
            "value": "172.66.147.243",
            "ttl": 300
          },
          {
            "value": "104.20.23.154",
            "ttl": 300
          }
        ],
        "AAAA": [
          {
            "value": "2606:4700:10::6814:179a",
            "ttl": 300
          },
          {
            "value": "2606:4700:10::ac42:93f3",
            "ttl": 300
          }
        ],
        "NS": [
          {
            "value": "elliott.ns.cloudflare.com",
            "ttl": 21600
          },
          {
            "value": "hera.ns.cloudflare.com",
            "ttl": 21600
          }
        ],
        "MX": [
          {
            "value": "0 .",
            "ttl": 152
          }
        ],
        "TXT": [
          {
            "value": "v=spf1 -all",
            "ttl": 300
          },
          {
            "value": "_k2n1y4vw3qtb4skdx9e7dxt97qrmmq9",
            "ttl": 300
          }
        ]
      }
    },
    "ssl": {
      "success": true,
      "type": "ssl",
      "domain": "example.com",
      "trusted": true,
      "self_signed": false,
      "subject": "example.com",
      "issuer_cn": "Cloudflare TLS Issuing ECC CA 3",
      "valid_from": "2026-09-26T22:49:11Z",
      "valid_to": "2026-12-25T22:56:35Z",
      "days_left": 32,
      "key": {
        "type": "EC",
        "bits": 256
      },
      "signature": "ecdsa-with-SHA256",
      "fingerprints": {
        "sha256": "85:CA:6A:B0:68:E9:BC:CE:88:B6:C4:AA:3C:47:F7:D1:72:28:13:4A:45:7F:87:0D:38:00:E6:22:3A:0D:F0:7A",
        "sha1": "89:9C:B2:59:E7:DE:8D:F1:00:33:A2:AF:48:C2:2C:2F:65:80:A2:1D"
      },
      "chain": [
        {
          "subject": "example.com",
          "issuer": "Cloudflare TLS Issuing ECC CA 3",
          "valid_from": "2026-09-26T22:49:11Z",
          "valid_to": "2026-12-25T22:56:35Z",
          "self_signed": false
        },
        {
          "subject": "Cloudflare TLS Issuing ECC CA 3",
          "issuer": "SSL.com TLS Transit ECC CA R2",
          "valid_from": "2025-05-29T19:49:45Z",
          "valid_to": "2035-05-27T19:49:44Z",
          "self_signed": false
        },
        {
          "subject": "SSL.com TLS Transit ECC CA R2",
          "issuer": "SSL.com TLS ECC Root CA 2022",
          "valid_from": "2022-10-21T17:02:23Z",
          "valid_to": "2037-10-17T17:02:22Z",
          "self_signed": false
        },
        {
          "subject": "SSL.com TLS ECC Root CA 2022",
          "issuer": "AAA Certificate Services",
          "valid_from": "2025-08-01T00:00:00Z",
          "valid_to": "2028-12-31T23:59:59Z",
          "self_signed": false
        }
      ]
    },
    "http": {
      "success": true,
      "type": "http",
      "domain": "example.com",
      "status": 200,
      "response_ms": 22,
      "server": "cloudflare",
      "security": {
        "grade": "F",
        "score": 0,
        "max_score": 100,
        "present": [],
        "missing": [
          "Strict-Transport-Security",
          "Content-Security-Policy",
          "X-Frame-Options",
          "X-Content-Type-Options",
          "Referrer-Policy",
          "Permissions-Policy",
          "Cross-Origin-Opener-Policy",
          "Cross-Origin-Resource-Policy"
        ],
        "details": [
          {
            "header": "Strict-Transport-Security",
            "present": false,
            "value": null,
            "advice": "Enforces HTTPS for future visits."
          },
          {
            "header": "Content-Security-Policy",
            "present": false,
            "value": null,
            "advice": "Helps prevent XSS and data injection."
          },
          {
            "header": "X-Frame-Options",
            "present": false,
            "value": null,
            "advice": "Reduces clickjacking risk."
          },
          {
            "...": "5 more header checks"
          }
        ],
        "warnings": [
          "Server header exposes technology information."
        ]
      },
      "headers": {
        "date": "Mon, 23 Nov 2026 18:35:43 GMT",
        "content-type": "text/html; charset=utf-8",
        "server": "cloudflare",
        "cf-cache-status": "HIT"
      }
    }
  },
  "meta": {
    "request_id": "41994d2e4e94ef56",
    "timestamp": "2026-11-23T18:35:43Z",
    "cache": {
      "status": "HIT",
      "ttl_seconds": 3600,
      "stored_at": "2026-11-23T18:29:58Z",
      "expires_at": "2026-11-23T19:29:58Z",
      "age_seconds": 345,
      "expires_in_seconds": 3255
    },
    "took_ms": 1501
  }
}

For format=text, extras are appended as plain-text sections. Extras are ignored for non-domain lookups. Invalid extras return 400.

Parameters

Parameter: format

optionaljson | textdefault: json

format=json returns structured data. format=text returns plain WHOIS text; for domain lookups it also appends DNS/SSL/HTTP extra sections by default.

GET https://whois.mdjhs.com/api.php?q=example.com&format=text
curl -s "https://whois.mdjhs.com/api.php?q=example.com&format=text"
const res = await fetch("https://whois.mdjhs.com/api.php?q=example.com&format=text");
const data = await res.text();
console.log(data);
<?php
$data = file_get_contents('https://whois.mdjhs.com/api.php?q=example.com&format=text');
echo $data;
import requests

r = requests.get("https://whois.mdjhs.com/api.php", params={"q": "example.com", "format": "text"})
print(r.text)

Real text response (example.com, format=text)

Domain Name: EXAMPLE.COM
Registry Domain ID: 2336799_DOMAIN_COM-VRSN
Updated Date: 2026-08-14T08:01:43Z
Creation Date: 1995-08-14T04:00:00Z
Registry Expiry Date: 2027-08-13T04:00:00Z
Registrar: RESERVED-Internet Assigned Numbers Authority
Registrar IANA ID: 376
Domain Status: clientDeleteProhibited
Domain Status: clientTransferProhibited
Domain Status: clientUpdateProhibited
Registrant Organization: Internet Assigned Numbers Authority
Name Server: ELLIOTT.NS.CLOUDFLARE.COM
Name Server: HERA.NS.CLOUDFLARE.COM
DNSSEC: signed

Contact Status: Public - Contact details are public.

>>> Last update of WHOIS database: 2026-11-23T18:29:58Z <<<


--- DNS RECORDS -------------------------------------------------
Source: doh
Records: 23
DNSSEC: validated
A: present
AAAA: present
MX: present
SPF: present
DMARC: present
CAA: missing
A: 172.66.147.243 (TTL 300)
A: 104.20.23.154 (TTL 300)
AAAA: 2606:4700:10::6814:179a (TTL 300)
AAAA: 2606:4700:10::ac42:93f3 (TTL 300)
NS: elliott.ns.cloudflare.com (TTL 21600)
NS: hera.ns.cloudflare.com (TTL 21600)
SOA: elliott.ns.cloudflare.com dns.cloudflare.com 2420077714 10000 2400 604800 1800 (TTL 1800)
MX: 0 . (TTL 152)
TXT: v=spf1 -all (TTL 300)
TXT: _k2n1y4vw3qtb4skdx9e7dxt97qrmmq9 (TTL 300)
DS: 2371 13 2 C988EC423E3880EB8DD8A46FE06CA230EE23F35B578D64E78B29C3E1C83D245A (TTL 21600)
DNSKEY: 256 3 13 oJMRESz5E4gYzS/q6XDrvU1qMPYIjCWzJaOau8XNEZeqCYKD5ar0IRd8KqXXFJkqmVfRvMGPmM1x8fGAa2XhSA== (TTL 3600)
DNSKEY: 257 3 13 mdsswUyr3DPW132mOi8V9xESWE8jTo0dxCjjnopKl+GqJxpVXckHAeF+KkxLbxILfDLUT0rAK9iUzy1L53eKGQ== (TTL 3600)
DNSKEY: 256 3 13 MjyZielP0GqniI1+j+wAG/3t0ImDDIlj1CxR0oobkZQHSKH2Fqx6tm2NcYu57POJ83SzCWLkqIjZHS1mh5wbaw== (TTL 3600)
DNSKEY: 256 3 13 kxipjoIbNZDsWqEKaYaGq6fM/XThrRp1ue6AV9R/n3eWxpGCeCWJb47PEEEj/Q6VAYFW/7UFo5mXoZfxKYZa3A== (TTL 3600)
CDS: 2371 13 2 C988EC423E3880EB8DD8A46FE06CA230EE23F35B578D64E78B29C3E1C83D245A (TTL 3600)
CDNSKEY: 257 3 13 mdsswUyr3DPW132mOi8V9xESWE8jTo0dxCjjnopKl+GqJxpVXckHAeF+KkxLbxILfDLUT0rAK9iUzy1L53eKGQ== (TTL 2763)
HTTPS: 1 . alpn=h3,h2 ipv4hint=104.20.23.154,172.66.147.243 ipv6hint=2606:4700:10::6814:179a,2606:4700:10::ac42:93f3 (TTL 300)
www.example.com A: 104.20.23.154
www.example.com A: 172.66.147.243
www.example.com AAAA: 2606:4700:10::6814:179a
www.example.com AAAA: 2606:4700:10::ac42:93f3
_dmarc.example.com TXT: v=DMARC1;p=reject;sp=reject;adkim=s;aspf=s

--- SSL CERTIFICATE ---------------------------------------------
Trusted: yes
Subject: example.com
Issuer: SSL Corporation
Valid from: 2026-09-26T22:49:11Z
Valid to: 2026-12-25T22:56:35Z
Days left: 32
Protocol: TLSv1.3
Cipher: TLS_AES_256_GCM_SHA384
Signature: ecdsa-with-SHA256
Serial: 01EEE6AABB521D5E14FC315FD9985690
Server IP: 172.66.147.243
Key: EC 256 bit
SAN: example.com
SAN: *.example.com
SHA256: 85:CA:6A:B0:68:E9:BC:CE:88:B6:C4:AA:3C:47:F7:D1:72:28:13:4A:45:7F:87:0D:38:00:E6:22:3A:0D:F0:7A
SHA1: 89:9C:B2:59:E7:DE:8D:F1:00:33:A2:AF:48:C2:2C:2F:65:80:A2:1D
Chain[0]: example.com | Issuer: Cloudflare TLS Issuing ECC CA 3 | Expires: 2026-12-25T22:56:35Z
Chain[1]: Cloudflare TLS Issuing ECC CA 3 | Issuer: SSL.com TLS Transit ECC CA R2 | Expires: 2035-05-27T19:49:44Z
Chain[2]: SSL.com TLS Transit ECC CA R2 | Issuer: SSL.com TLS ECC Root CA 2022 | Expires: 2037-10-17T17:02:22Z
Chain[3]: SSL.com TLS ECC Root CA 2022 | Issuer: AAA Certificate Services | Expires: 2028-12-31T23:59:59Z

--- HTTP & SECURITY HEADERS -------------------------------------
HTTP status: 200
Response ms: 22
Server: cloudflare
Content-Type: text/html; charset=utf-8
Server IP: 172.66.147.243
Security grade: F (0/100)
[MISSING] Strict-Transport-Security - Enforces HTTPS for future visits.
[MISSING] Content-Security-Policy - Helps prevent XSS and data injection.
[MISSING] X-Frame-Options - Reduces clickjacking risk.
[MISSING] X-Content-Type-Options - Prevents MIME sniffing.
[MISSING] Referrer-Policy - Controls referrer information leakage.
[MISSING] Permissions-Policy - Restricts browser features.
[MISSING] Cross-Origin-Opener-Policy - Isolates browsing context from cross-origin windows.
[MISSING] Cross-Origin-Resource-Policy - Controls who can load this resource.
Warning: Server header exposes technology information.
Header: date: Mon, 23 Nov 2026 18:35:43 GMT
Header: content-type: text/html; charset=utf-8
Header: server: cloudflare
Header: last-modified: Thu, 19 Nov 2026 22:11:52 GMT
Header: allow: GET, HEAD
Header: accept-ranges: bytes
Header: age: 3
Header: cf-cache-status: HIT
Header: cf-ray: a5f2467f9b924497-SIN
Header: alt-svc: h3=":443"; ma=86400

# WHOIS Lookup API by MD JULFIKER HOSSEN SHEBBIR - https://mdjhs.com
# Cache: HIT, stored 2026-11-23T18:29:58Z, expires 2026-11-23T19:29:58Z (3125 s left)

Responses

Result examples

Always check success first. For domains, check registered and available.

Registered domain (real: example.com)

GET https://whois.mdjhs.com/api.php?q=example.com&format=json
curl -s "https://whois.mdjhs.com/api.php?q=example.com&format=json"
const res = await fetch("https://whois.mdjhs.com/api.php?q=example.com&format=json");
const data = await res.json();
console.log(data);
<?php
$data = file_get_contents('https://whois.mdjhs.com/api.php?q=example.com&format=json');
print_r(json_decode($data, true));
import requests

r = requests.get("https://whois.mdjhs.com/api.php", params={"q": "example.com", "format": "json"})
print(r.json())
{
  "success": true,
  "type": "domain",
  "registered": true,
  "available": false,
  "domain": "example.com",
  "registrar": {
    "name": "RESERVED-Internet Assigned Numbers Authority",
    "iana_id": "376"
  },
  "dates": {
    "created": "1995-08-14T04:00:00Z",
    "updated": "2026-08-14T08:01:43Z",
    "expires": "2027-08-13T04:00:00Z"
  },
  "days_until_expiry": 262,
  "domain_age_days": 11424,
  "status": [
    "clientDeleteProhibited",
    "clientTransferProhibited",
    "clientUpdateProhibited"
  ],
  "nameservers": [
    "elliott.ns.cloudflare.com",
    "hera.ns.cloudflare.com"
  ],
  "dnssec": "signed",
  "contact_status": "public",
  "contacts": {
    "registrant": {
      "organization": "Internet Assigned Numbers Authority"
    }
  },
  "public_suffix": {
    "suffix": "com",
    "rule": "com",
    "section": "icann",
    "registrable_domain": "example.com",
    "is_suffix": false,
    "labels": 2
  },
  "extras": {
    "dns": {
      "success": true,
      "type": "dns",
      "count": 23,
      "source": "doh",
      "dnssec_validated": true,
      "summary": {
        "types": 11,
        "has_a": true,
        "has_aaaa": true,
        "has_mx": true,
        "has_txt": true,
        "has_caa": false,
        "has_spf": true,
        "has_dmarc": true,
        "has_mta_sts": false,
        "has_tls_rpt": false,
        "has_bimi": false,
        "spf": "v=spf1 -all",
        "dmarc": "v=DMARC1;p=reject;sp=reject;adkim=s;aspf=s"
      }
    },
    "ssl": {
      "success": true,
      "type": "ssl",
      "trusted": true,
      "days_left": 32,
      "issuer": "Cloudflare TLS Issuing ECC CA 3",
      "protocol": "TLSv1.3",
      "key": {
        "type": "EC",
        "bits": 256
      }
    },
    "http": {
      "success": true,
      "type": "http",
      "status": 200,
      "response_ms": 22,
      "security": {
        "grade": "F",
        "score": 0,
        "max_score": 100,
        "missing": [
          "Strict-Transport-Security",
          "Content-Security-Policy",
          "X-Frame-Options",
          "X-Content-Type-Options",
          "Referrer-Policy",
          "Permissions-Policy",
          "Cross-Origin-Opener-Policy",
          "Cross-Origin-Resource-Policy"
        ]
      }
    }
  },
  "credit": {
    "api": "WHOIS Lookup API",
    "author": "MD JULFIKER HOSSEN SHEBBIR",
    "website": "https://mdjhs.com"
  }
}

No data found / may be available or reserved (real API response)

No WHOIS record and no DNS records found. available=true means no data; it may be available to register, or reserved.

GET https://whois.mdjhs.com/api.php?q=this-name-is-free-12345xyz.com&format=json
curl -s "https://whois.mdjhs.com/api.php?q=this-name-is-free-12345xyz.com&format=json"
const res = await fetch("https://whois.mdjhs.com/api.php?q=this-name-is-free-12345xyz.com&format=json");
const data = await res.json();
console.log(data);
<?php
$data = file_get_contents('https://whois.mdjhs.com/api.php?q=this-name-is-free-12345xyz.com&format=json');
print_r(json_decode($data, true));
import requests

r = requests.get("https://whois.mdjhs.com/api.php", params={"q": "this-name-is-free-12345xyz.com", "format": "json"})
print(r.json())
{
  "success": true,
  "type": "domain",
  "registered": false,
  "available": true,
  "may_be_reserved": true,
  "domain": "this-name-is-free-12345xyz.com",
  "message": "No WHOIS record and no DNS records were found for this name. It may be available to register, or it may be a reserved name that cannot be registered, which is why no data is shown.",
  "extras": {
    "dns": {
      "success": true,
      "type": "dns",
      "domain": "this-name-is-free-12345xyz.com",
      "count": 0,
      "source": "doh",
      "dnssec_validated": false,
      "summary": {
        "types": 0,
        "has_a": false,
        "has_aaaa": false,
        "has_mx": false,
        "has_txt": false,
        "has_caa": false,
        "has_spf": false,
        "has_dmarc": false,
        "has_mta_sts": false,
        "has_tls_rpt": false,
        "has_bimi": false
      }
    },
    "ssl": {
      "success": false,
      "error": "This name has no public address to connect to."
    },
    "http": {
      "success": false,
      "error": "This name has no public address to connect to."
    }
  },
  "meta": {
    "request_id": "ec0d2721ded2ff27",
    "timestamp": "2026-11-23T18:37:55Z",
    "took_ms": 1616
  },
  "credit": {
    "api": "WHOIS Lookup API",
    "author": "MD JULFIKER HOSSEN SHEBBIR",
    "website": "https://mdjhs.com"
  }
}

Raw WHOIS included (real: google.com, raw=1)

GET https://whois.mdjhs.com/api.php?q=google.com&raw=1&format=json
curl -s "https://whois.mdjhs.com/api.php?q=google.com&raw=1&format=json"
const res = await fetch("https://whois.mdjhs.com/api.php?q=google.com&raw=1&format=json");
const data = await res.json();
console.log(data);
<?php
$data = file_get_contents('https://whois.mdjhs.com/api.php?q=google.com&raw=1&format=json');
print_r(json_decode($data, true));
import requests

r = requests.get("https://whois.mdjhs.com/api.php", params={"q": "google.com", "raw": "1", "format": "json"})
print(r.json())
{
  "success": true,
  "type": "domain",
  "registered": true,
  "available": false,
  "domain": "google.com",
  "registrar": {
    "name": "MarkMonitor Inc.",
    "iana_id": "292",
    "url": "http://www.markmonitor.com",
    "abuse_email": "abusecomplaints@markmonitor.com",
    "abuse_phone": "+1.2086851750"
  },
  "dates": {
    "created": "1997-09-15T04:00:00Z",
    "updated": "2019-09-09T15:39:04Z",
    "expires": "2028-09-14T04:00:00Z"
  },
  "status": [
    "clientDeleteProhibited",
    "clientTransferProhibited",
    "clientUpdateProhibited",
    "serverDeleteProhibited",
    "serverTransferProhibited",
    "serverUpdateProhibited"
  ],
  "nameservers": [
    "ns1.google.com",
    "ns2.google.com",
    "ns3.google.com",
    "ns4.google.com"
  ],
  "dnssec": "unsigned",
  "contact_status": "protected",
  "raw_whois": "Domain Name: GOOGLE.COM\nRegistry Domain ID: 2138514_DOMAIN_COM-VRSN\nRegistrar URL: http://www.markmonitor.com\nUpdated Date: 2019-09-09T15:39:04Z\nCreation Date: 1997-09-15T04:00:00Z\nRegistry Expiry Date: 2028-09-14T04:00:00Z\nRegistrar: MarkMonitor Inc.\nRegistrar IANA ID: 292\nRegistrar Abuse Contact Email: abusecomplaints@markmonitor.com\nRegistrar Abuse Contact Phone: +1.2086851750\nDomain Status: clientDeleteProhibited\nDomain Status: clientTransferProhibited\nDomain Status: clientUpdateProhibited\nDomain Status: serverDeleteProhibited\nDomain Status: serverTransferProhibited\nDomain Status: serverUpdateProhibited\nRegistrant Name: CONTACT PROTECTED\nRegistrant State/Province: CA\nRegistrant Country: US\nRegistrant Contact Form: https://domains.markmonitor.com/whois/contact/google.com\nTech Name: CONTACT PROTECTED\nTech Contact Form: https://domains.markmonitor.com/whois/contact/google.com\nName Server: NS1.GOOGLE.COM\nName Server: NS2.GOOGLE.COM\nName Server: NS3.GOOGLE.COM\nName Server: NS4.GOOGLE.COM\nDNSSEC: unsigned\n\nContact Status: Protected - Contact protected. The owner's details are hidden by the registrar or a privacy service.\n\n>>> Last update of WHOIS database: 2026-11-23T18:24:42Z <<<",
  "credit": {
    "api": "WHOIS Lookup API",
    "author": "MD JULFIKER HOSSEN SHEBBIR",
    "website": "https://mdjhs.com"
  }
}

TLD lookup (real: .com)

GET https://whois.mdjhs.com/api.php?q=com&format=json
curl -s "https://whois.mdjhs.com/api.php?q=com&format=json"
const res = await fetch("https://whois.mdjhs.com/api.php?q=com&format=json");
const data = await res.json();
console.log(data);
<?php
$data = file_get_contents('https://whois.mdjhs.com/api.php?q=com&format=json');
print_r(json_decode($data, true));
import requests

r = requests.get("https://whois.mdjhs.com/api.php", params={"q": "com", "format": "json"})
print(r.json())
{
  "success": true,
  "type": "tld",
  "tld": "com",
  "idn": false,
  "manager": "VeriSign Global Registry Services",
  "whois_server": "whois.verisign-grs.com",
  "rdap_server": "https://rdap.verisign.com/com/v1/",
  "dates": {
    "created": "1985-01-01T00:00:00Z",
    "updated": "2026-03-10T00:00:00Z"
  },
  "status": [
    "ACTIVE"
  ],
  "nameservers": [
    "a.gtld-servers.net",
    "b.gtld-servers.net",
    "c.gtld-servers.net",
    "d.gtld-servers.net",
    "e.gtld-servers.net",
    "f.gtld-servers.net",
    "g.gtld-servers.net",
    "h.gtld-servers.net",
    "i.gtld-servers.net",
    "j.gtld-servers.net",
    "k.gtld-servers.net",
    "l.gtld-servers.net",
    "m.gtld-servers.net"
  ],
  "in_public_suffix_list": true,
  "public_suffixes": {
    "icann_count": 0,
    "private_count": 1086,
    "icann": [],
    "private": [
      "180r.com",
      "1cooldns.com",
      "1kapp.com",
      "3utilities.com",
      "4u.com",
      "a2hosted.com",
      "abrdns.com",
      "adobeaemcloud.com",
      "af-south-1.elasticbeanstalk.com",
      "africa.com",
      "alibabacloudcs.com",
      "amazonlightsail.com",
      "amplifyapp.com",
      "analytics-gateway.ap-northeast-1.amazonaws.com",
      "analytics-gateway.ap-northeast-2.amazonaws.com",
      "analytics-gateway.ap-south-1.amazonaws.com",
      "analytics-gateway.ap-southeast-1.amazonaws.com",
      "analytics-gateway.ap-southeast-2.amazonaws.com",
      "analytics-gateway.eu-central-1.amazonaws.com",
      "analytics-gateway.eu-west-1.amazonaws.com",
      "analytics-gateway.us-east-1.amazonaws.com",
      "analytics-gateway.us-east-2.amazonaws.com",
      "analytics-gateway.us-west-2.amazonaws.com",
      "ap-east-1.elasticbeanstalk.com",
      "ap-northeast-1.elasticbeanstalk.com",
      "ap-northeast-2.elasticbeanstalk.com",
      "ap-northeast-3.elasticbeanstalk.com",
      "ap-south-1.elasticbeanstalk.com",
      "ap-south-2.elasticbeanstalk.com",
      "ap-southeast-1.elasticbeanstalk.com",
      "ap-southeast-2.elasticbeanstalk.com",
      "ap-southeast-3.elasticbeanstalk.com",
      "ap-southeast-4.elasticbeanstalk.com",
      "ap-southeast-5.elasticbeanstalk.com",
      "ap-southeast-6.elasticbeanstalk.com",
      "ap-southeast-7.elasticbeanstalk.com",
      "app.render.com",
      "appchizi.com",
      "applinzi.com",
      "apps-1and1.com",
      "apps.fbsbx.com",
      "appspacehosted.com",
      "appspaceusercontent.com",
      "appspot.com",
      "atmeta.com",
      "auth-fips.us-east-1.amazoncognito.com",
      "auth-fips.us-east-2.amazoncognito.com",
      "auth-fips.us-gov-east-1.amazoncognito.com",
      "auth-fips.us-gov-west-1.amazoncognito.com",
      "auth-fips.us-west-1.amazoncognito.com",
      "auth-fips.us-west-2.amazoncognito.com",
      "auth.af-south-1.amazoncognito.com",
      "auth.ap-east-1.amazoncognito.com",
      "auth.ap-east-2.amazoncognito.com",
      "auth.ap-northeast-1.amazoncognito.com",
      "auth.ap-northeast-2.amazoncognito.com",
      "auth.ap-northeast-3.amazoncognito.com",
      "auth.ap-south-1.amazoncognito.com",
      "auth.ap-south-2.amazoncognito.com",
      "auth.ap-southeast-1.amazoncognito.com",
      "auth.ap-southeast-2.amazoncognito.com",
      "auth.ap-southeast-3.amazoncognito.com",
      "auth.ap-southeast-4.amazoncognito.com",
      "auth.ap-southeast-5.amazoncognito.com",
      "auth.ap-southeast-6.amazoncognito.com",
      "auth.ap-southeast-7.amazoncognito.com",
      "auth.ca-central-1.amazoncognito.com",
      "auth.ca-west-1.amazoncognito.com",
      "auth.eu-central-1.amazoncognito.com",
      "auth.eu-central-2.amazoncognito.com",
      "auth.eu-north-1.amazoncognito.com",
      "auth.eu-south-1.amazoncognito.com",
      "auth.eu-south-2.amazoncognito.com",
      "auth.eu-west-1.amazoncognito.com",
      "auth.eu-west-2.amazoncognito.com",
      "auth.eu-west-3.amazoncognito.com",
      "auth.il-central-1.amazoncognito.com",
      "auth.me-central-1.amazoncognito.com",
      "auth.me-south-1.amazoncognito.com",
      "auth.mx-central-1.amazoncognito.com",
      "auth.sa-east-1.amazoncognito.com",
      "auth.us-east-1.amazoncognito.com",
      "auth.us-east-2.amazoncognito.com",
      "auth.us-west-1.amazoncognito.com",
      "auth.us-west-2.amazoncognito.com",
      "authgear-staging.com",
      "authgearapps.com",
      "aws.databricksapps.com",
      "awsapps.com",
      "awsglobalaccelerator.com",
      "balena-devices.com",
      "barsycenter.com",
      "barsyonline.com",
      "base44-sandbox.com",
      "blogdns.com",
      "blogspot.com",
      "blogsyte.com",
      "boutir.com",
      "bplaced.com",
      "br.com",
      "builtwithdark.com",
      "bumbleshrimp.com",
      "ca-central-1.elasticbeanstalk.com",
      "ca-west-1.elasticbeanstalk.com",
      "cafjs.com",
      "canva-apps.com",
      "canva-hosted-embed.com",
      "canvacode.com",
      "caracal.mythic-beasts.com",
      "cdn77-storage.com",
      "cechire.com",
      "cf-ipfs.com",
      "ciscofreak.com",
      "claudeusercontent.com",
      "cloud.nospamproxy.com",
      "cloudflare-ipfs.com",
      "cn.com",
      "co.com",
      "codespot.com",
      "consent-portal.bedrock-agentcore.ap-northeast-1.amazonaws.com",
      "consent-portal.bedrock-agentcore.ap-northeast-2.amazonaws.com",
      "consent-portal.bedrock-agentcore.ap-south-1.amazonaws.com",
      "consent-portal.bedrock-agentcore.ap-south-2.amazonaws.com",
      "consent-portal.bedrock-agentcore.ap-southeast-1.amazonaws.com",
      "consent-portal.bedrock-agentcore.ap-southeast-2.amazonaws.com",
      "consent-portal.bedrock-agentcore.ap-southeast-5.amazonaws.com",
      "consent-portal.bedrock-agentcore.ap-southeast-7.amazonaws.com",
      "consent-portal.bedrock-agentcore.ca-central-1.amazonaws.com",
      "consent-portal.bedrock-agentcore.eu-central-1.amazonaws.com",
      "consent-portal.bedrock-agentcore.eu-north-1.amazonaws.com",
      "consent-portal.bedrock-agentcore.eu-south-1.amazonaws.com",
      "consent-portal.bedrock-agentcore.eu-south-2.amazonaws.com",
      "consent-portal.bedrock-agentcore.eu-west-1.amazonaws.com",
      "consent-portal.bedrock-agentcore.eu-west-2.amazonaws.com",
      "consent-portal.bedrock-agentcore.eu-west-3.amazonaws.com",
      "consent-portal.bedrock-agentcore.sa-east-1.amazonaws.com",
      "consent-portal.bedrock-agentcore.us-east-1.amazonaws.com",
      "consent-portal.bedrock-agentcore.us-east-2.amazonaws.com",
      "consent-portal.bedrock-agentcore.us-gov-west-1.amazonaws.com",
      "consent-portal.bedrock-agentcore.us-west-1.amazonaws.com",
      "consent-portal.bedrock-agentcore.us-west-2.amazonaws.com",
      "cprapid.com",
      "cpserver.com",
      "customer.mythic-beasts.com",
      "damnserver.com",
      "dattolocal.com",
      "dattorelay.com",
      "dattoweb.com",
      "ddnsfree.com",
      "ddnsgeek.com"
    ]
  },
  "meta": {
    "request_id": "e874ade94449908d",
    "timestamp": "2026-11-23T18:38:21Z",
    "cache": {
      "status": "HIT",
      "ttl_seconds": 3600,
      "stored_at": "2026-11-23T18:37:15Z",
      "expires_at": "2026-11-23T19:37:15Z",
      "age_seconds": 66,
      "expires_in_seconds": 3533
    },
    "took_ms": 3
  },
  "credit": {
    "api": "WHOIS Lookup API",
    "author": "MD JULFIKER HOSSEN SHEBBIR",
    "website": "https://mdjhs.com"
  }
}

Responses

Field reference

Every response

FieldTypeMeaning
successbooleantrue on success; false with error on failure.
typestringdomain, ip, asn, tld, or status.
metaobjectrequest_id, timestamp, cache info, and sometimes took_ms.
creditobjectAPI name, author, website.

Domain fields

FieldTypeMeaning
domainstringRegistered domain (ASCII).
inputstringOriginal input if different (e.g. subdomain).
unicode_namestringUnicode form for IDN.
registered / availablebooleanRegistration/data availability state.
may_be_reservedbooleanWhen available=true, name may be reserved.
whois_recordbooleanFalse when registered but no public WHOIS record.
registrarobjectname, iana_id, url, email, phone, abuse_email, abuse_phone.
datesobjectcreated, updated, expires, transferred (ISO 8601 UTC when available).
days_until_expiry / domain_age_daysintegerCalculated day counts.
statusarrayEPP/status codes.
nameserversarrayNameservers.
dnssecstringsigned or unsigned.
contact_status / contact_notestringpublic/protected/unavailable and explanation.
contactsobjectregistrant/admin/tech/billing contact objects.
public_suffixobjectPSL info: suffix, rule, registrable_domain, etc.
raw_whoisstringPresent with raw=1 or format=text source.
extrasobjectDefault for domain lookups: dns, ssl, http. Disable with extras=none.

Extras fields (domain)

FieldMeaning
extras.dnsRecords, summary flags, source (doh/system), dnssec_validated, extra groups.
extras.sslTrust, validity, subject/issuer, key, signature, SANs, fingerprints, chain, protocol/cipher.
extras.httpHTTP status, response time, redirect, security grade/score/details/warnings, all response headers.

IP fields

FieldMeaning
ip, version, hostnameAddress, IP version, reverse DNS.
networkname, handle, range, cidr, type, country, parent_handle.
organization, asnOwner and origin ASN details.
dates, status, abuse, contactsRegistration/status/abuse/contact data.
reserved, messageFor private/reserved IPs.

ASN fields

FieldMeaning
asn, name, handle, range, as_typeAS identity and allocation info.
country, organizationCountry and owner.
dates, status, abuse, contactsRegistration/status/abuse/contact data.

TLD fields

FieldMeaning
tld, idn, unicode_nameTLD identity.
manager, whois_server, rdap_serverRegistry/operator and service endpoints.
dates, status, nameserversRoot zone metadata.
in_public_suffix_list, public_suffixesPSL presence and suffix counts/lists.

Responses

Contact status

What a registry publishes about the owner differs by registry and by privacy rules. The API returns what is published and tells you which case applies in contact_status.

contact_statusMeaningWhat to do
publicThe owner details are published.Use the data as it is.
protectedA privacy service hides the owner, or the registry redacted the data.Use the published proxy address, the contact form or the abuse contact.
unavailableThe contact details could not be read right now.Try again later.

A contact can carry protected: true and still list a published proxy address.

Responses

Status codes and terms

Domain status values follow the EPP standard. These are the ones you will see most often.

CodeMeaning
ok / ACTIVEThe domain is active with no special restriction.
clientTransferProhibitedThe registrar blocks moving the domain to another registrar.
clientDeleteProhibitedThe registrar blocks deleting the domain.
clientUpdateProhibitedThe registrar blocks changes to the domain.
serverTransferProhibited / serverDeleteProhibited / serverUpdateProhibitedThe same locks, set by the registry.
clientHold / serverHoldThe domain may not resolve (its website and email can stop working).
redemptionPeriodThe domain expired and was deleted. The owner may still be able to restore it.
pendingDeleteThe domain will be released soon.

Reference

Errors

When something goes wrong you get JSON with success: false and a readable error. The HTTP status tells you the kind of problem. Need help? Contact support and include the request_id.

StatusWhenAction
400A parameter is missing or has a wrong value.Fix the parameter.
404No WHOIS record exists for this IP or AS number.Check the value.
405Wrong HTTP method.Use GET.
414The address is too long.Shorten the request.
422The input is invalid or reserved.Send a public domain, IP or AS number.
429Too many requests.Wait for Retry-After.
500Unexpected server error.Retry, then report the request_id.
502The WHOIS or RDAP server did not answer.Try again later.
503The API is switched off.Check the status address.

Real error example (invalid format)

GET https://whois.mdjhs.com/api.php?q=example.com&format=xml
curl -s "https://whois.mdjhs.com/api.php?q=example.com&format=xml"
const res = await fetch("https://whois.mdjhs.com/api.php?q=example.com&format=xml");
const data = await res.json();
console.log(data);
<?php
$data = file_get_contents('https://whois.mdjhs.com/api.php?q=example.com&format=xml');
print_r(json_decode($data, true));
import requests

r = requests.get("https://whois.mdjhs.com/api.php", params={"q": "example.com", "format": "xml"})
print(r.json())
{
  "success": false,
  "error": "Invalid \"format\". Use json or text.",
  "meta": {
    "...": "..."
  },
  "credit": {
    "api": "WHOIS Lookup API",
    "author": "MD JULFIKER HOSSEN SHEBBIR",
    "website": "https://mdjhs.com"
  }
}

Reference

Rate limiting

The limits keep the service fast and fair for everyone. They apply to each visitor's IP address, so one busy visitor never slows down the others.

WindowAllowedPurpose
10 seconds10 requestsBurst protection.
1 minute30 requestsNormal limit.
1 hour300 requestsSlow abuse protection.
Ban5 blocked requests / 10 min10 minute temporary ban.

429 response example

HTTP/1.1 429 Too Many Requests
Retry-After: 23
X-RateLimit-Limit: 30
X-RateLimit-Remaining: 0

{
  "success": false,
  "error": "Rate limit exceeded. Max 30 requests per minute.",
  "retry_after_seconds": 23,
  "credit": {
    "api": "WHOIS Lookup API",
    "author": "MD JULFIKER HOSSEN SHEBBIR",
    "website": "https://mdjhs.com"
  }
}

Reference

Caching (1 hour)

Successful lookups are stored for exactly 3600 seconds (1 hour). meta.cache and cache headers expose age/expiry. Errors and reserved IPs are not stored as normal cached lookups.

Real cache metadata example

{
  "success": true,
  "type": "domain",
  "domain": "example.com",
  "...": "lookup fields",
  "meta": {
    "request_id": "41994d2e4e94ef56",
    "timestamp": "2026-11-23T18:35:43Z",
    "cache": {
      "status": "HIT",
      "ttl_seconds": 3600,
      "stored_at": "2026-11-23T18:29:58Z",
      "expires_at": "2026-11-23T19:29:58Z",
      "age_seconds": 345,
      "expires_in_seconds": 3255
    },
    "took_ms": 1501
  },
  "credit": {
    "api": "WHOIS Lookup API",
    "author": "MD JULFIKER HOSSEN SHEBBIR",
    "website": "https://mdjhs.com"
  }
}

Conditional request

GET https://whois.mdjhs.com/api.php?q=example.com&format=json
If-None-Match: W/"4f2a9c1d8b7e6a5c3d2e1f00"

HTTP/1.1 304 Not Modified
ETag: W/"4f2a9c1d8b7e6a5c3d2e1f00"
X-Cache: HIT
X-Cache-Expires-In: 2988

Reference

Response headers

Every answer carries headers you can use in your code. The most useful one for support is X-Request-Id.

HeaderMeaning
X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-ResetHow many requests you may send, how many are left and when the window resets.
Retry-AfterSeconds to wait before trying again (on 429 and 503).
X-Cache, Age, X-Cache-Expires-InWhether the answer came from storage, how old it is and when it refreshes.
ETag, If-None-MatchSend the ETag back to get a short 304 answer when nothing changed.
X-Request-IdA unique ID for the request. Include it when you contact support.
X-API-Version, X-API-Author, X-API-WebsiteDetails about the API.

Reference

Security

The API is built to be safe to call from any website or server, and safe to run.

  • Strict input checks: one short q, and every parameter is validated.
  • Safe lookups: private, reserved and internal targets are refused, so the API cannot be used to reach internal networks.
  • Layered rate limits: per 10 seconds, per minute and per hour, with a short ban for repeated abuse.
  • Hardened headers: a strict content policy, no framing, no content sniffing and a tight referrer policy.
  • Nothing internal leaks: errors are generic and carry a request ID instead of server details.

Found a security problem? Please write to the support page or info@mdjhs.com before sharing it publicly.

Reference

API status

See whether the API is on, its version, how long answers are stored and the rate limits. This address keeps working even when the API is switched off. The table below is loaded live from this site.

Checking…
GET https://whois.mdjhs.com/api.php?status=1&format=json
curl -s "https://whois.mdjhs.com/api.php?status=1&format=json"
const res = await fetch("https://whois.mdjhs.com/api.php?status=1&format=json");
const data = await res.json();
console.log(data);
<?php
$data = file_get_contents('https://whois.mdjhs.com/api.php?status=1&format=json');
print_r(json_decode($data, true));
import requests

r = requests.get("https://whois.mdjhs.com/api.php", params={"status": "1", "format": "json"})
print(r.json())
{
  "success": true,
  "type": "status",
  "api_status": "on",
  "service": "WHOIS Lookup API",
  "version": "3.0",
  "cache_ttl_seconds": 3600,
  "rate_limit": {
    "per_10_seconds": 10,
    "per_minute": 30,
    "per_hour": 300
  },
  "meta": {
    "...": "..."
  },
  "credit": {
    "api": "WHOIS Lookup API",
    "author": "MD JULFIKER HOSSEN SHEBBIR",
    "website": "https://mdjhs.com"
  }
}

Reference

OpenAPI and Postman

The OpenAPI file describes every parameter and answer. Use it to import the API into Postman, Insomnia or Swagger, or to generate a client in your language.

1. Open Postman and choose Import.
2. Paste this address: https://whois.mdjhs.com/openapi.php
3. Postman creates a request for every parameter.
curl -s "https://whois.mdjhs.com/openapi.php" -o whois-openapi.json
Open https://editor.swagger.io, choose File > Import URL and paste:
https://whois.mdjhs.com/openapi.php

Guides

Code recipes

Copy a recipe, change the value of q and run it. Every example names its format so there is nothing to guess.

Domain lookup (with DNS, SSL and HTTP extras)

GET https://whois.mdjhs.com/api.php?q=example.com&format=json
curl -s "https://whois.mdjhs.com/api.php?q=example.com&format=json"
const res = await fetch("https://whois.mdjhs.com/api.php?q=example.com&format=json");
const data = await res.json();
console.log(data);
<?php
$data = file_get_contents('https://whois.mdjhs.com/api.php?q=example.com&format=json');
print_r(json_decode($data, true));
import requests

r = requests.get("https://whois.mdjhs.com/api.php", params={"q": "example.com", "format": "json"})
print(r.json())

Add the raw WHOIS record

GET https://whois.mdjhs.com/api.php?q=google.com&raw=1&format=json
curl -s "https://whois.mdjhs.com/api.php?q=google.com&raw=1&format=json"
const res = await fetch("https://whois.mdjhs.com/api.php?q=google.com&raw=1&format=json");
const data = await res.json();
console.log(data);
<?php
$data = file_get_contents('https://whois.mdjhs.com/api.php?q=google.com&raw=1&format=json');
print_r(json_decode($data, true));
import requests

r = requests.get("https://whois.mdjhs.com/api.php", params={"q": "google.com", "raw": "1", "format": "json"})
print(r.json())

Readable plain text

GET https://whois.mdjhs.com/api.php?q=example.com&format=text
curl -s "https://whois.mdjhs.com/api.php?q=example.com&format=text"
const res = await fetch("https://whois.mdjhs.com/api.php?q=example.com&format=text");
const data = await res.text();
console.log(data);
<?php
$data = file_get_contents('https://whois.mdjhs.com/api.php?q=example.com&format=text');
echo $data;
import requests

r = requests.get("https://whois.mdjhs.com/api.php", params={"q": "example.com", "format": "text"})
print(r.text)

Skip the extras for a faster answer

GET https://whois.mdjhs.com/api.php?q=example.com&extras=none&format=json
curl -s "https://whois.mdjhs.com/api.php?q=example.com&extras=none&format=json"
const res = await fetch("https://whois.mdjhs.com/api.php?q=example.com&extras=none&format=json");
const data = await res.json();
console.log(data);
<?php
$data = file_get_contents('https://whois.mdjhs.com/api.php?q=example.com&extras=none&format=json');
print_r(json_decode($data, true));
import requests

r = requests.get("https://whois.mdjhs.com/api.php", params={"q": "example.com", "extras": "none", "format": "json"})
print(r.json())

IP address and AS number

GET https://whois.mdjhs.com/api.php?q=8.8.8.8&format=json
curl -s "https://whois.mdjhs.com/api.php?q=8.8.8.8&format=json"
const res = await fetch("https://whois.mdjhs.com/api.php?q=8.8.8.8&format=json");
const data = await res.json();
console.log(data);
<?php
$data = file_get_contents('https://whois.mdjhs.com/api.php?q=8.8.8.8&format=json');
print_r(json_decode($data, true));
import requests

r = requests.get("https://whois.mdjhs.com/api.php", params={"q": "8.8.8.8", "format": "json"})
print(r.json())
GET https://whois.mdjhs.com/api.php?q=AS15169&format=json
curl -s "https://whois.mdjhs.com/api.php?q=AS15169&format=json"
const res = await fetch("https://whois.mdjhs.com/api.php?q=AS15169&format=json");
const data = await res.json();
console.log(data);
<?php
$data = file_get_contents('https://whois.mdjhs.com/api.php?q=AS15169&format=json');
print_r(json_decode($data, true));
import requests

r = requests.get("https://whois.mdjhs.com/api.php", params={"q": "AS15169", "format": "json"})
print(r.json())

Want a ready page to test these? See HTML check page.

Guides

HTML check page

One file, no libraries. Save it as whois-check.html, open it in any browser and search. It works on phones and desktops, follows light and dark mode, and shows a summary card, the status, the response time and a colour-coded answer you can copy.

Works from any website. Browsers on any website, or a file on your own computer, can call the API directly.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>WHOIS API check</title>
<style>
  :root { --bg:#f4f6fb; --card:#ffffff; --ink:#18202f; --mute:#667085; --line:#e2e7f0; --brand:#f26b1d; --brand2:#ff9a4d;
          --code:#0d1322; --codeink:#dfe6f5; --k:#7cc4ff; --s:#8be0a4; --n:#ffd479; --b:#ff8fa3; }
  @media (prefers-color-scheme: dark) { :root { --bg:#0a0f1d; --card:#121a2d; --ink:#eef2fb; --mute:#98a4bd; --line:#223050; } }
  * { box-sizing:border-box; }
  body { margin:0; padding:28px 16px 48px; background:var(--bg); color:var(--ink); font:16px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; }
  main { max-width:880px; margin:0 auto; }
  header { margin-bottom:20px; }
  h1 { margin:0 0 6px; font-size:clamp(26px,5vw,36px); letter-spacing:-.03em; }
  h1 span { color:var(--brand); }
  header p { margin:0; color:var(--mute); }
  form { display:flex; flex-wrap:wrap; gap:10px; padding:14px; background:var(--card); border:1px solid var(--line); border-radius:18px; box-shadow:0 8px 30px rgba(20,30,60,.07); }
  input, select, button { font:inherit; padding:12px 14px; border-radius:12px; border:1px solid var(--line); background:var(--bg); color:var(--ink); }
  input:focus, select:focus { outline:2px solid var(--brand); outline-offset:1px; }
  input { flex:1 1 240px; min-width:0; }
  .go { background:linear-gradient(135deg,var(--brand2),var(--brand)); border:0; color:#fff; font-weight:700; cursor:pointer; padding:12px 22px; }
  .go:disabled { opacity:.6; cursor:wait; }
  .chips { display:flex; flex-wrap:wrap; gap:8px; margin:12px 2px 0; }
  .chips button { padding:5px 12px; border-radius:99px; font-size:13px; color:var(--mute); cursor:pointer; background:var(--card); }
  .chips button:hover { color:var(--brand); border-color:var(--brand); }
  #result { margin-top:20px; }
  .facts { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:10px; margin-bottom:14px; }
  .fact { padding:12px 14px; background:var(--card); border:1px solid var(--line); border-radius:14px; }
  .fact small { display:block; font-size:11px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--mute); }
  .fact b { display:block; margin-top:2px; overflow-wrap:anywhere; }
  .box { overflow:hidden; border-radius:16px; background:var(--code); border:1px solid #1d2742; }
  .bar { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; padding:10px 14px; background:#141c33; color:#9fb0d0; font-size:13px; }
  .badge { padding:1px 10px; border-radius:99px; font:700 12px ui-monospace,Menlo,Consolas,monospace; border:1px solid currentColor; }
  .ok { color:#4ade80; } .warn { color:#fbbf24; } .bad { color:#f87171; }
  .bar .copy { margin-left:auto; padding:5px 12px; font-size:13px; background:transparent; color:#e6ecfa; border-color:#2b3858; cursor:pointer; }
  pre { margin:0; padding:16px; max-height:68vh; overflow:auto; color:var(--codeink); font:13px/1.65 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; white-space:pre-wrap; word-break:break-word; }
  .k { color:var(--k); } .s { color:var(--s); } .n { color:var(--n); } .b { color:var(--b); }
</style>
</head>
<body>
<main>
  <header>
    <h1>WHOIS <span>API check</span></h1>
    <p>Look up a domain, IP address, AS number or TLD.</p>
  </header>
  <form id="form">
    <input id="q" value="example.com" placeholder="example.com, 8.8.8.8, AS15169, com" required autocomplete="off" spellcheck="false">
    <select id="format" aria-label="Format"><option value="json">JSON</option><option value="text">Plain text</option></select>
    <button class="go" id="go">Check</button>
  </form>
  <div class="chips" id="chips"></div>
  <section id="result" hidden>
    <div class="facts" id="facts"></div>
    <div class="box">
      <div class="bar"><span class="badge" id="status"></span><span id="time"></span><span id="size"></span><button class="copy" id="copy" type="button">Copy</button></div>
      <pre id="out"></pre>
    </div>
  </section>
</main>
<script>
  const API = "https://whois.mdjhs.com/api.php";
  const $ = id => document.getElementById(id);
  let last = "";

  ["example.com", "google.com", "8.8.8.8", "AS15169", "com"].forEach(v => {
    const b = document.createElement("button");
    b.type = "button"; b.textContent = v;
    b.onclick = () => { $("q").value = v; $("form").requestSubmit(); };
    $("chips").append(b);
  });

  const esc = s => s.replace(/&/g, "&amp;").replace(/</g, "&lt;");
  const paint = json => esc(json).replace(
    /("(?:\\.|[^"\\])*")(\s*:)?|\b(true|false|null)\b|(-?\d+(?:\.\d+)?)/g,
    (m, str, colon, bool, num) => str ? (colon ? '<span class="k">' + str + "</span>" + colon : '<span class="s">' + str + "</span>")
      : bool ? '<span class="b">' + bool + "</span>" : '<span class="n">' + num + "</span>");

  function facts(d) {
    const rows = [["Type", d.type], ["Name", d.domain || d.ip || d.asn || d.tld],
      ["Registrar", d.registrar && d.registrar.name], ["Expires", d.dates && d.dates.expires && d.dates.expires.slice(0, 10)],
      ["Registered", d.registered === undefined ? "" : d.registered ? "Yes" : "No"]];
    $("facts").innerHTML = rows.filter(r => r[1]).map(r => '<div class="fact"><small>' + r[0] + "</small><b>" + esc(String(r[1])) + "</b></div>").join("");
  }

  $("form").addEventListener("submit", async e => {
    e.preventDefault();
    const fmt = $("format").value;
    const url = API + "?q=" + encodeURIComponent($("q").value.trim()) + "&format=" + fmt;
    $("go").disabled = true; $("go").textContent = "Checking...";
    const t0 = performance.now();
    let res, body = "", data = null;
    try {
      res = await fetch(url);
      body = await res.text();
      if (fmt === "json") { try { data = JSON.parse(body); body = JSON.stringify(data, null, 2); } catch (_) {} }
      $("status").textContent = res.status + " " + (res.ok ? "OK" : "Error");
      $("status").className = "badge " + (res.ok ? "ok" : res.status < 500 ? "warn" : "bad");
    } catch (err) {
      body = "The request failed. Check your connection and the API address.";
      $("status").textContent = "Failed"; $("status").className = "badge bad";
    }
    last = body;
    $("time").textContent = Math.round(performance.now() - t0) + " ms";
    $("size").textContent = new Blob([body]).size.toLocaleString() + " bytes";
    data ? facts(data) : ($("facts").innerHTML = "");
    data ? ($("out").innerHTML = paint(body)) : ($("out").textContent = body);
    $("result").hidden = false;
    $("go").disabled = false; $("go").textContent = "Check";
  });

  $("copy").addEventListener("click", async () => {
    await navigator.clipboard.writeText(last);
    $("copy").textContent = "Copied";
    setTimeout(() => { $("copy").textContent = "Copy"; }, 1400);
  });
</script>
</body>
</html>

Use it inside your own page

Only the fetch part is needed to show API data anywhere:

<div id="whois">Loading...</div>
<script>
  fetch("https://whois.mdjhs.com/api.php?q=example.com&format=json")
    .then(r => r.json())
    .then(d => {
      document.getElementById("whois").textContent =
        d.domain + " expires " + (d.dates && d.dates.expires ? d.dates.expires : "unknown");
    });
</script>

Guides

Troubleshooting

The quick answers are here. The support page has more, plus a form to report a problem.

Why does a domain answer include DNS, SSL and HTTP data?

They are included by default so one request gives the full picture. Send extras=none to skip them, or extras=dns to pick one.

How do I get the raw WHOIS record?

Send raw=1 to get it in the raw_whois field, or format=text to get the whole answer as readable text.

Does available: true mean I can register the domain?

Not always. It means no WHOIS or DNS data was found. The name may be free, or reserved or restricted. Confirm with a registrar.

Can I call the API from a website?

Yes. Browsers on any website are allowed. The rate limit applies to each visitor.

The data looks old

Answers are stored for exactly one hour. Check meta.cache or the X-Cache-Expires-In header to see when it refreshes.

Still stuck? Report a problem or write to info@mdjhs.com.

Guides

Support

Need help, found a problem or have an idea? The support page has contact details, a ready-made report form, answers to common questions, error codes and the live service status.

When you report an error, include the request address and the request_id (or the X-Request-Id header). API created and maintained by MD JULFIKER HOSSEN SHEBBIR.