Skip to content

muhammetdemirel/whois-raw-to-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Whois RAW to JSON

Module that allows you to query whois information and display data in json format.

Installation

npm install whois-raw-to-json

Usage

(async function(){
  const whois = require('whois-raw-to-json');

  var results = await whois.lookup('regexart.com');
  console.log(JSON.stringify(results, null, 2));
})()

Output: 200

{
  "statusCode": 200,
  "isAvailable": false,
  "supportedTLD": true,
  "domainName": "regexart.com",
  "registrar": "Google LLC",
  "updatedDate": "13.12.2021 15:51:58",
  "creationDate": "11.12.2021 23:31:34",
  "expirationDate": "11.12.2022 23:31:34",
  "status": [
    "clientTransferProhibited https://icann.org/epp#clientTransferProhibited"
  ],
  "nameServers": [
    "NS1.REGEXART.COM",
    "NS2.REGEXART.COM"
  ],
  "raw": "..."
}

Output: 404

{
  "statusCode": 404,
  "message": "TLD not supported"
}

JSON Supported TLDs

Other TLDs output JSON but do not guarantee full compatibility.

ALL TLDS
.com .net .org .co .xyz .io .me .info .top .in
.ai .online .us .biz .tv .tech .cc .club .dev .mobi
.name .ru .su .im .uk .tc .pw .pro .de .app
.site .download .shop .store .cloud .cn .at .pm .re .ws
.ie .ist .istanbul .link .kim .vip .red .men .wtf .art
.one .news .live .life .works .email .design .global .network .wiki
.blog .kitchen .photo .photos .pics .pictures .bio .reviews .credit .watch
.center .community .fun .fund .market .media .movie .studio .support .taxi
.team .technology .today .tools .vote .computer .video . . .
TR TLDS
.com.tr .net.tr .org.tr .gen.tr .web.tr .tv.tr .biz.tr .info.tr .name.tr .bbs.tr
.tel.tr .edu.tr .gov.tr .dr.tr .av.tr .pol.tr .tsk.tr .mil.tr .bel.tr .k12.tr

About

Module that allows you to query whois information and display data in json format.

Resources

Stars

Watchers

Forks

Packages

No packages published