@apiverve/whoislookup 1.1.14 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/README.md +25 -11
  2. package/index.d.ts +34 -13
  3. package/index.js +1 -1
  4. package/package.json +5 -6
package/README.md CHANGED
@@ -122,24 +122,38 @@ async function makeRequest() {
122
122
  "status": "ok",
123
123
  "error": null,
124
124
  "data": {
125
- "domainStatus": [
126
- "clientDeleteProhibited https://icann.org/epp#clientDeleteProhibited",
127
- "clientRenewProhibited https://icann.org/epp#clientRenewProhibited",
128
- "clientTransferProhibited https://icann.org/epp#clientTransferProhibited",
129
- "clientUpdateProhibited https://icann.org/epp#clientUpdateProhibited"
130
- ],
131
125
  "domainName": "MYSPACE.COM",
132
126
  "registryDomainID": "3877095_DOMAIN_COM-VRSN",
133
- "registrarWHOISServer": "whois.godaddy.com",
134
- "registrarURL": "http://www.godaddy.com",
135
- "updatedDate": "2023-01-17T00:16:21Z",
136
127
  "createdDate": "1996-02-22T05:00:00Z",
137
128
  "expiryDate": "2029-02-23T05:00:00Z",
129
+ "updatedDate": "2023-01-17T00:16:21Z",
130
+ "domainStatus": [
131
+ "client delete prohibited https://icann.org/epp#client delete prohibited",
132
+ "client renew prohibited https://icann.org/epp#client renew prohibited",
133
+ "client transfer prohibited https://icann.org/epp#client transfer prohibited",
134
+ "client update prohibited https://icann.org/epp#client update prohibited"
135
+ ],
136
+ "dNSSEC": "unsigned",
138
137
  "registrar": "GoDaddy.com, LLC",
139
138
  "registrarIANAID": "146",
139
+ "registrarURL": "http://www.godaddy.com",
140
140
  "registrarAbuseContactEmail": "abuse@godaddy.com",
141
- "registrarAbuseContactPhone": "480-624-2505",
142
- "dNSSEC": "unsigned"
141
+ "registrarAbuseContactPhone": "tel:480-624-2505",
142
+ "nameServers": [
143
+ "ns-cloud-a2.googledomains.com",
144
+ "ns-cloud-a3.googledomains.com",
145
+ "ns-cloud-a4.googledomains.com",
146
+ "ns-cloud-a1.googledomains.com"
147
+ ],
148
+ "domain": "myspace.com",
149
+ "fetchedAtUTC": "2025-12-17T01:54:05.069Z",
150
+ "tld": "com",
151
+ "status": "active",
152
+ "domainAgeDays": 11094,
153
+ "domainAgeYears": 30.4,
154
+ "isRecentlyRegistered": false,
155
+ "trustScore": 93,
156
+ "trustLevel": "high"
143
157
  }
144
158
  }
145
159
  ```
package/index.d.ts CHANGED
@@ -4,28 +4,49 @@ declare module '@apiverve/whoislookup' {
4
4
  secure?: boolean;
5
5
  }
6
6
 
7
+ /**
8
+ * Describes fields the current plan does not unlock. Locked fields arrive as null
9
+ * in `data`; `locked_fields` names them, using dot paths for nested fields.
10
+ * Absent when the plan unlocks everything.
11
+ */
12
+ export interface PremiumInfo {
13
+ message: string;
14
+ upgrade_url: string;
15
+ locked_fields: string[];
16
+ }
17
+
7
18
  export interface whoislookupResponse {
8
19
  status: string;
9
20
  error: string | null;
10
21
  data: WHOISLookupData;
11
22
  code?: number;
23
+ premium?: PremiumInfo;
12
24
  }
13
25
 
14
26
 
15
27
  interface WHOISLookupData {
16
- domainStatus: string[];
17
- domainName: string;
18
- registryDomainID: string;
19
- registrarWHOISServer: string;
20
- registrarURL: string;
21
- updatedDate: Date;
22
- createdDate: Date;
23
- expiryDate: Date;
24
- registrar: string;
25
- registrarIANAID: string;
26
- registrarAbuseContactEmail: string;
27
- registrarAbuseContactPhone: string;
28
- dNSSEC: string;
28
+ domainName: null | string;
29
+ registryDomainID: null | string;
30
+ createdDate: Date | null;
31
+ expiryDate: Date | null;
32
+ updatedDate: Date | null;
33
+ domainStatus: (null | string)[];
34
+ dNSSEC: null | string;
35
+ registrar: null | string;
36
+ registrarIANAID: null | string;
37
+ registrarURL: null | string;
38
+ registrarAbuseContactEmail: null | string;
39
+ registrarAbuseContactPhone: null | string;
40
+ nameServers: (null | string)[];
41
+ domain: null | string;
42
+ fetchedAtUTC: Date | null;
43
+ tld: null | string;
44
+ status: null | string;
45
+ domainAgeDays: number | null;
46
+ domainAgeYears: number | null;
47
+ isRecentlyRegistered: boolean | null;
48
+ trustScore: number | null;
49
+ trustLevel: null | string;
29
50
  }
30
51
 
31
52
  export default class whoislookupWrapper {
package/index.js CHANGED
@@ -30,7 +30,7 @@ class whoislookupWrapper {
30
30
  this.baseURL = 'https://api.apiverve.com/v1/whoislookup';
31
31
 
32
32
  // Validation rules for parameters (generated from schema)
33
- this.validationRules = {"domain":{"type":"string","required":true}};
33
+ this.validationRules = {"domain":{"type":"string","required":true,"format":"domain"}};
34
34
  }
35
35
 
36
36
  /**
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@apiverve/whoislookup",
3
- "version": "1.1.14",
3
+ "version": "1.2.0",
4
4
  "description": "Whois Lookup is a simple tool for checking the registration of a domain name. It returns the name and contact information of the domain owner, the domain registrar, and more.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
7
7
  "sideEffects": false,
8
8
  "engines": {
9
- "node": ">=14.0.0"
9
+ "node": ">=18.0.0"
10
10
  },
11
11
  "files": [
12
12
  "index.js",
@@ -23,7 +23,7 @@
23
23
  "directory": "npm"
24
24
  },
25
25
  "keywords": [
26
- ""
26
+ "whois lookup", "whois lookup api", "whois lookup tool", "whois lookup software", "whois lookup service"
27
27
  ],
28
28
  "author": {
29
29
  "name": "APIVerve",
@@ -41,8 +41,7 @@
41
41
  "dotenv": "^16.4.7"
42
42
  },
43
43
  "dependencies": {
44
- "node-fetch": "^3.3.2",
45
- "promise": "^8.3.0",
46
- "axios": "1.13.2"
44
+ "axios": "1.13.2",
45
+ "form-data": "^4.0.1"
47
46
  }
48
47
  }