@apifreaks/openapi-specs 0.4.23 → 0.4.24

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.
@@ -251,6 +251,53 @@ paths:
251
251
  query_time: '2026-07-23 08:03:00'
252
252
  whois_server: https://tld-rdap.verisign.com/xn--tckwe/v1/
253
253
  domain_registered: 'no'
254
+ application/xml:
255
+ schema:
256
+ $ref: '#/components/schemas/DomainWhoisLookupResponse'
257
+ examples:
258
+ typicalSuccessXml:
259
+ summary: Typical successful response, as XML (format=xml)
260
+ value: |-
261
+ <DomainInfo>
262
+ <status>true</status>
263
+ <domain_name>example.com</domain_name>
264
+ <query_time>2026-11-25 07:12:38</query_time>
265
+ <domain_registered>yes</domain_registered>
266
+ <create_date>1992-01-01</create_date>
267
+ <update_date>2026-08-14</update_date>
268
+ <expiry_date>2027-08-13</expiry_date>
269
+ <name_servers>
270
+ <nameServer>elliott.ns.cloudflare.com</nameServer>
271
+ <nameServer>hera.ns.cloudflare.com</nameServer>
272
+ </name_servers>
273
+ <whois_raw_domain>% IANA WHOIS server % for more information on IANA, visit http://www.iana.org % This query ...</whois_raw_domain>
274
+ <registry_data>
275
+ <domain_name>EXAMPLE.COM</domain_name>
276
+ <query_time>2026-11-25 07:12:37</query_time>
277
+ <whois_server />
278
+ <domain_registered>yes</domain_registered>
279
+ <create_date>1995-08-14</create_date>
280
+ <update_date>2026-08-14</update_date>
281
+ <expiry_date>2027-08-13</expiry_date>
282
+ <domain_registrar>
283
+ <iana_id>376</iana_id>
284
+ <status>reserved</status>
285
+ <registrar_name>RESERVED-Internet Assigned Numbers Authority</registrar_name>
286
+ <normalized_name>reserved-internet assigned numbers authority</normalized_name>
287
+ <website_url>http://res-dom.iana.org</website_url>
288
+ </domain_registrar>
289
+ <name_servers>
290
+ <nameServer>elliott.ns.cloudflare.com</nameServer>
291
+ <nameServer>hera.ns.cloudflare.com</nameServer>
292
+ </name_servers>
293
+ <domain_status>
294
+ <domainStatus>clientupdateprohibited</domainStatus>
295
+ <domainStatus>clientdeleteprohibited</domainStatus>
296
+ <domainStatus>clienttransferprohibited</domainStatus>
297
+ </domain_status>
298
+ <whois_raw_registery>Domain Name: EXAMPLE.COM Registry Domain ID: 2336799_DOMAIN_COM-VRSN Registrar WHOIS ...</whois_raw_registery>
299
+ </registry_data>
300
+ </DomainInfo>
254
301
  headers:
255
302
  X-AF-Credits-Cost:
256
303
  $ref: '#/components/headers/X-AF-Credits-Cost'
@@ -596,11 +643,27 @@ paths:
596
643
  value:
597
644
  timestamp: '2026-11-20T11:13:00.607Z'
598
645
  status: 403
599
- message: Provided domain belongs to an inactive TLD. Please try to use historical whois lookup.
646
+ error: Unable to process live request
647
+ message: 'Provided domain belongs to an inactive TLD. please try to use historical whois lookup [For Technical Support: support@apifreaks.com]'
600
648
  path: /v2.0/whois/live
601
649
  headers:
602
650
  X-AF-Credits-Cost:
603
651
  $ref: '#/components/headers/X-AF-Credits-Cost'
652
+ '404':
653
+ description: Not Found — The URL is wrong. The live WHOIS endpoint is /domain/whois/live
654
+ content:
655
+ application/json:
656
+ schema:
657
+ $ref: '#/components/schemas/ErrorResponse'
658
+ examples:
659
+ resourceNotFound:
660
+ summary: Wrong path
661
+ value:
662
+ error: Resource Not Found
663
+ message: The requested resource could not be found. Please verify the URL and try again.
664
+ path: /v2.0/domain/whois/livee
665
+ status: 404
666
+ timestamp: '2026-11-25T07:12:50.000Z'
604
667
  '406':
605
668
  description: Not Acceptable — The format value is not supported
606
669
  content:
@@ -681,24 +744,6 @@ paths:
681
744
  headers:
682
745
  X-AF-Credits-Cost:
683
746
  $ref: '#/components/headers/X-AF-Credits-Cost'
684
- '429':
685
- description: Too Many Requests — The per-minute request limit is reached
686
- content:
687
- application/json:
688
- schema:
689
- $ref: '#/components/schemas/ErrorResponse'
690
- examples:
691
- rateLimited:
692
- summary: Per-minute request limit reached
693
- value:
694
- timestamp: '2024-07-10T13:47:02.486Z'
695
- status: 429
696
- error: Fetching Whois Data Failed
697
- message: Please slow down. Your maximum request limit per minute reached.
698
- path: /v2.0/domain/whois/live
699
- headers:
700
- X-AF-Credits-Cost:
701
- $ref: '#/components/headers/X-AF-Credits-Cost'
702
747
  '499':
703
748
  description: Client Closed Request — The client request or connection timeout is too short
704
749
  content:
@@ -828,7 +873,6 @@ components:
828
873
  - status
829
874
  - domain_name
830
875
  - query_time
831
- - whois_server
832
876
  - domain_registered
833
877
  properties:
834
878
  status:
@@ -842,7 +886,7 @@ components:
842
886
  description: Timestamp when the WHOIS query was executed.
843
887
  whois_server:
844
888
  type: string
845
- description: WHOIS or RDAP server that provided this record.
889
+ description: WHOIS or RDAP server that provided this record. Not returned for every lookup; registry_data carries its own whois_server.
846
890
  domain_registered:
847
891
  type: string
848
892
  enum:
@@ -850,6 +894,35 @@ components:
850
894
  - 'no'
851
895
  - restricted
852
896
  description: Domain registration status; 'restricted' means the registry withholds registration details.
897
+ domain_handle:
898
+ type: string
899
+ description: Registry handle of the domain, returned when the registry publishes one.
900
+ abuse_contact:
901
+ type: object
902
+ description: 'Where to send abuse reports for the domain: the registrar''s name, email and phone.'
903
+ properties:
904
+ registrar_name:
905
+ type: string
906
+ description: Name of the registrar the abuse contact belongs to.
907
+ email_address:
908
+ type: string
909
+ description: Email address for abuse reports.
910
+ phone_number:
911
+ type: string
912
+ description: Phone number for abuse reports.
913
+ eligibility_info:
914
+ type: object
915
+ description: Eligibility record that some registries require for a registration, such as the trademark behind a name in an extension that asks for one.
916
+ properties:
917
+ id:
918
+ type: string
919
+ description: Identifier of the eligibility record, such as a trademark number.
920
+ name:
921
+ type: string
922
+ description: Name the eligibility record is held under.
923
+ type:
924
+ type: string
925
+ description: Kind of eligibility, such as Trademark Owner.
853
926
  create_date:
854
927
  type: string
855
928
  format: date
@@ -938,10 +1011,25 @@ components:
938
1011
  - string
939
1012
  - 'null'
940
1013
  description: Registrar contact phone number, when published.
1014
+ handle:
1015
+ type: string
1016
+ description: Registrar handle, returned when the registry publishes one.
1017
+ registry_id:
1018
+ type: string
1019
+ description: Registry identifier of the registrar, when published.
941
1020
  WhoisContactDetail:
942
1021
  type: object
943
1022
  description: A contact record (registrant, administrative, technical, billing, or reseller) published in the domain's WHOIS record.
944
1023
  properties:
1024
+ id:
1025
+ type: string
1026
+ description: Contact ID, when published.
1027
+ handle:
1028
+ type: string
1029
+ description: Contact handle, returned when the registry publishes one.
1030
+ id_type:
1031
+ type: string
1032
+ description: Kind of identifier held in id, such as cnpj or Registry, when the registry publishes it.
945
1033
  name:
946
1034
  type: string
947
1035
  description: Contact's full name.
@@ -16,7 +16,7 @@ paths:
16
16
  tags:
17
17
  - WHOIS APIs
18
18
  summary: Retrieve WHOIS registration and ownership data for an IP address
19
- description: Returns WHOIS details for an IPv4 or IPv6 address including IP range, organization, contacts, routes, and raw WHOIS output.
19
+ description: Returns WHOIS details for an IPv4 or IPv6 address including IP range, organization, contacts, routes, and raw WHOIS output. Private, loopback and other reserved addresses return the IANA special-use block and are charged like any other lookup; the IPv6 loopback address ::1 returns only the raw registry reply.
20
20
  operationId: lookupIpWhois
21
21
  parameters:
22
22
  - name: format
@@ -169,6 +169,91 @@ paths:
169
169
  #
170
170
  # Copyright 1997-2026, American Registry for Internet Numbers, Ltd.
171
171
  #
172
+ application/xml:
173
+ schema:
174
+ $ref: '#/components/schemas/IpWhoisResponse'
175
+ examples:
176
+ typicalSuccessXml:
177
+ summary: Typical successful response, as XML (format=xml)
178
+ value: |-
179
+ <whois>
180
+ <status>true</status>
181
+ <ip_address>8.8.8.8</ip_address>
182
+ <query_time>2026-11-25 07:13:41</query_time>
183
+ <whois_server>whois.arin.net</whois_server>
184
+ <inet_nums>
185
+ <inet_nums>
186
+ <start_ip>8.8.8.0</start_ip>
187
+ <end_ip>8.8.8.255</end_ip>
188
+ <cidr>
189
+ <cidr>8.8.8.0/24</cidr>
190
+ </cidr>
191
+ <net_name>GOGL</net_name>
192
+ <net_handle>NET-8-8-8-0-2</net_handle>
193
+ <status>Direct Allocation</status>
194
+ <organization>Google LLC (GOGL)</organization>
195
+ <date_created>2023-12-28</date_created>
196
+ <date_updated>2023-12-28</date_updated>
197
+ <source>https://rdap.arin.net/registry/ip/8.8.8.0</source>
198
+ <parents>
199
+ <parents>NET8 (NET-8-0-0-0-0)</parents>
200
+ </parents>
201
+ </inet_nums>
202
+ </inet_nums>
203
+ <organization>
204
+ <handle>GOGL</handle>
205
+ <name>Google LLC</name>
206
+ <address>
207
+ <address>1600 Amphitheatre Parkway</address>
208
+ <address>Mountain View</address>
209
+ <address>CA</address>
210
+ <address>94043</address>
211
+ <address>US</address>
212
+ </address>
213
+ <street>Amphitheatre Parkway</street>
214
+ <city>Mountain View</city>
215
+ <state>CA</state>
216
+ <zip_code>94043</zip_code>
217
+ <country>
218
+ <country>US</country>
219
+ </country>
220
+ <date_created>2000-03-30</date_created>
221
+ <date_updated>2019-10-31</date_updated>
222
+ <source>https://rdap.arin.net/registry/entity/GOGL</source>
223
+ </organization>
224
+ <technical_contacts>
225
+ <technical_contacts>
226
+ <handle>ZG39-ARIN</handle>
227
+ <name>Google LLC</name>
228
+ <email>
229
+ <email>arin-contact@google.com</email>
230
+ </email>
231
+ <phone>
232
+ <phone>+1-650-253-0000</phone>
233
+ </phone>
234
+ <source>https://rdap.arin.net/registry/entity/ZG39-ARIN</source>
235
+ </technical_contacts>
236
+ </technical_contacts>
237
+ <abuse_contacts>
238
+ <abuse_contacts>
239
+ <handle>ABUSE5250-ARIN</handle>
240
+ <name>Abuse</name>
241
+ <email>
242
+ <email>network-abuse@google.com</email>
243
+ </email>
244
+ <phone>
245
+ <phone>+1-650-253-0000</phone>
246
+ </phone>
247
+ <source>https://rdap.arin.net/registry/entity/ABUSE5250-ARIN</source>
248
+ </abuse_contacts>
249
+ </abuse_contacts>
250
+ <routes>
251
+ <routes>
252
+ <source>https://rdap.arin.net/registry/ip/8.8.8.0</source>
253
+ </routes>
254
+ </routes>
255
+ <whois_raw_response># # ARIN WHOIS data and services are subject to the Terms of Use # available at: https://w ...</whois_raw_response>
256
+ </whois>
172
257
  headers:
173
258
  X-AF-Credits-Cost:
174
259
  $ref: '#/components/headers/X-AF-Credits-Cost'
@@ -386,21 +471,6 @@ paths:
386
471
  error: Fetching Whois Data Failed
387
472
  message: 'You have exceeded the limit of Surcharge Requests [allowed_surcharge_request_no]. Please upgrade your plan. [For Technical Support email at: support@apifreaks.com]'
388
473
  path: /v1.0/ip/whois/live
389
- '429':
390
- description: Too Many Requests -- The per-minute request limit is reached
391
- content:
392
- application/json:
393
- schema:
394
- $ref: '#/components/schemas/ErrorResponse'
395
- examples:
396
- rateLimited:
397
- summary: Per-minute request limit reached
398
- value:
399
- timestamp: '2024-07-10T13:47:02.486Z'
400
- status: 429
401
- error: Fetching Whois Data Failed
402
- message: Please slow down. Your maximum request limit per minute reached.
403
- path: /v1.0/ip/whois/live
404
474
  '499':
405
475
  description: Client Closed Request -- The request or connection timeout set by the client is too short
406
476
  content:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apifreaks/openapi-specs",
3
- "version": "0.4.23",
3
+ "version": "0.4.24",
4
4
  "description": "Public OpenAPI 3.1 specifications for all APIFreaks API products.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -42,7 +42,7 @@
42
42
  "schema": {
43
43
  "type": "string"
44
44
  },
45
- "description": "Hostname or URL whose DNS records are required. Provide either `host-name` or `ipAddress`. If neither is sent, the API returns a 400 error."
45
+ "description": "Hostname or URL whose DNS records are required. Provide either `host-name` or `ipAddress`."
46
46
  },
47
47
  {
48
48
  "name": "ipAddress",
@@ -51,7 +51,7 @@
51
51
  "schema": {
52
52
  "type": "string"
53
53
  },
54
- "description": "The IP address for requested DNS's PTR record. 'type' parameter must be set to 'all'. Provide either `host-name` or `ipAddress`; if neither is sent, the API returns a 400 error."
54
+ "description": "The IP address for requested DNS's PTR record. 'type' parameter must be set to 'all'. Provide either `host-name` or `ipAddress`."
55
55
  },
56
56
  {
57
57
  "name": "type",
@@ -289,33 +289,6 @@
289
289
  "$ref": "#/components/headers/X-AF-Credits-Cost"
290
290
  }
291
291
  }
292
- },
293
- "429": {
294
- "description": "Rate Limit Exceeded – API rate limit exceeded",
295
- "content": {
296
- "application/json": {
297
- "schema": {
298
- "$ref": "#/components/schemas/ErrorResponse"
299
- },
300
- "examples": {
301
- "error": {
302
- "summary": "Error response",
303
- "value": {
304
- "timestamp": "2026-06-06T14:00:00.000Z",
305
- "path": "/v1.0/phone/validation/bulk",
306
- "status": 429,
307
- "error": "Too Many Requests",
308
- "message": "API rate limit exceeded."
309
- }
310
- }
311
- }
312
- }
313
- },
314
- "headers": {
315
- "X-AF-Credits-Cost": {
316
- "$ref": "#/components/headers/X-AF-Credits-Cost"
317
- }
318
- }
319
292
  }
320
293
  },
321
294
  "operationId": "bulkValidatePhoneNumbers"
@@ -252,33 +252,6 @@
252
252
  "$ref": "#/components/headers/X-AF-Credits-Cost"
253
253
  }
254
254
  }
255
- },
256
- "429": {
257
- "description": "Rate Limit Exceeded – API rate limit exceeded",
258
- "content": {
259
- "application/json": {
260
- "schema": {
261
- "$ref": "#/components/schemas/ErrorResponse"
262
- },
263
- "examples": {
264
- "error": {
265
- "summary": "Error response",
266
- "value": {
267
- "timestamp": "2026-06-06T14:00:00.000Z",
268
- "path": "/v1.0/phone/validation",
269
- "status": 429,
270
- "error": "Too Many Requests",
271
- "message": "API rate limit exceeded."
272
- }
273
- }
274
- }
275
- }
276
- },
277
- "headers": {
278
- "X-AF-Credits-Cost": {
279
- "$ref": "#/components/headers/X-AF-Credits-Cost"
280
- }
281
- }
282
255
  }
283
256
  },
284
257
  "operationId": "validatePhoneNumber"
@@ -507,28 +507,6 @@
507
507
  }
508
508
  }
509
509
  },
510
- "429": {
511
- "description": "Too Many Requests — The per-minute request limit is reached",
512
- "content": {
513
- "application/json": {
514
- "schema": {
515
- "$ref": "#/components/schemas/ErrorResponse"
516
- },
517
- "examples": {
518
- "rateLimited": {
519
- "summary": "Per-minute request limit reached",
520
- "value": {
521
- "timestamp": "2024-07-10T13:47:02.486Z",
522
- "status": 429,
523
- "error": "Fetching Whois Data Failed",
524
- "message": "Please slow down. Your maximum request limit per minute reached.",
525
- "path": "/v1.0/asn/whois/live"
526
- }
527
- }
528
- }
529
- }
530
- }
531
- },
532
510
  "499": {
533
511
  "description": "Client Closed Request — The request or connection timeout set by the client is too short, so the server closes the connection before completing the response",
534
512
  "content": {