@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.
@@ -34,13 +34,13 @@ paths:
34
34
  required: false
35
35
  schema:
36
36
  type: string
37
- 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.
37
+ description: Hostname or URL whose DNS records are required. Provide either `host-name` or `ipAddress`.
38
38
  - name: ipAddress
39
39
  in: query
40
40
  required: false
41
41
  schema:
42
42
  type: string
43
- 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.
43
+ description: The IP address for requested DNS's PTR record. 'type' parameter must be set to 'all'. Provide either `host-name` or `ipAddress`.
44
44
  - name: type
45
45
  in: query
46
46
  required: true
@@ -200,24 +200,6 @@ paths:
200
200
  headers:
201
201
  X-AF-Credits-Cost:
202
202
  $ref: '#/components/headers/X-AF-Credits-Cost'
203
- '429':
204
- description: Rate Limit Exceeded – API rate limit exceeded
205
- content:
206
- application/json:
207
- schema:
208
- $ref: '#/components/schemas/ErrorResponse'
209
- examples:
210
- error:
211
- summary: Error response
212
- value:
213
- timestamp: '2026-06-06T14:00:00.000Z'
214
- path: /v1.0/phone/validation/bulk
215
- status: 429
216
- error: Too Many Requests
217
- message: API rate limit exceeded.
218
- headers:
219
- X-AF-Credits-Cost:
220
- $ref: '#/components/headers/X-AF-Credits-Cost'
221
203
  operationId: bulkValidatePhoneNumbers
222
204
  components:
223
205
  securitySchemes:
@@ -190,24 +190,6 @@ paths:
190
190
  headers:
191
191
  X-AF-Credits-Cost:
192
192
  $ref: '#/components/headers/X-AF-Credits-Cost'
193
- '429':
194
- description: Rate Limit Exceeded – API rate limit exceeded
195
- content:
196
- application/json:
197
- schema:
198
- $ref: '#/components/schemas/ErrorResponse'
199
- examples:
200
- error:
201
- summary: Error response
202
- value:
203
- timestamp: '2026-06-06T14:00:00.000Z'
204
- path: /v1.0/phone/validation
205
- status: 429
206
- error: Too Many Requests
207
- message: API rate limit exceeded.
208
- headers:
209
- X-AF-Credits-Cost:
210
- $ref: '#/components/headers/X-AF-Credits-Cost'
211
193
  operationId: validatePhoneNumber
212
194
  components:
213
195
  securitySchemes:
@@ -491,21 +491,6 @@ paths:
491
491
  error: Fetching Whois Data Failed
492
492
  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]'
493
493
  path: /v1.0/asn/whois/live
494
- '429':
495
- description: Too Many Requests — The per-minute request limit is reached
496
- content:
497
- application/json:
498
- schema:
499
- $ref: '#/components/schemas/ErrorResponse'
500
- examples:
501
- rateLimited:
502
- summary: Per-minute request limit reached
503
- value:
504
- timestamp: '2024-07-10T13:47:02.486Z'
505
- status: 429
506
- error: Fetching Whois Data Failed
507
- message: Please slow down. Your maximum request limit per minute reached.
508
- path: /v1.0/asn/whois/live
509
494
  '499':
510
495
  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
511
496
  content:
@@ -278,6 +278,57 @@ paths:
278
278
 
279
279
  The Registry database contains ONLY .COM, .NET, .EDU domains and
280
280
  Registrars.
281
+ application/xml:
282
+ schema:
283
+ $ref: '#/components/schemas/BulkWhoisLookupResponse'
284
+ examples:
285
+ typicalSuccessXml:
286
+ summary: Typical successful response, as XML (format=xml)
287
+ value: |-
288
+ <BulkWhoisResponse>
289
+ <bulk_whois_response>
290
+ <domainInfo>
291
+ <status>true</status>
292
+ <domain_name>example.com</domain_name>
293
+ <query_time>2026-11-25 07:13:13</query_time>
294
+ <domain_registered>yes</domain_registered>
295
+ <create_date>1992-01-01</create_date>
296
+ <update_date>2026-08-14</update_date>
297
+ <expiry_date>2027-08-13</expiry_date>
298
+ <name_servers>
299
+ <nameServer>elliott.ns.cloudflare.com</nameServer>
300
+ <nameServer>hera.ns.cloudflare.com</nameServer>
301
+ </name_servers>
302
+ <whois_raw_domain>% IANA WHOIS server % for more information on IANA, visit http://www.iana.org % This query ...</whois_raw_domain>
303
+ <registry_data>
304
+ <domain_name>EXAMPLE.COM</domain_name>
305
+ <query_time>2026-11-25 07:13:12</query_time>
306
+ <whois_server />
307
+ <domain_registered>yes</domain_registered>
308
+ <create_date>1995-08-14</create_date>
309
+ <update_date>2026-08-14</update_date>
310
+ <expiry_date>2027-08-13</expiry_date>
311
+ <domain_registrar>
312
+ <iana_id>376</iana_id>
313
+ <status>reserved</status>
314
+ <registrar_name>RESERVED-Internet Assigned Numbers Authority</registrar_name>
315
+ <normalized_name>reserved-internet assigned numbers authority</normalized_name>
316
+ <website_url>http://res-dom.iana.org</website_url>
317
+ </domain_registrar>
318
+ <name_servers>
319
+ <nameServer>elliott.ns.cloudflare.com</nameServer>
320
+ <nameServer>hera.ns.cloudflare.com</nameServer>
321
+ </name_servers>
322
+ <domain_status>
323
+ <domainStatus>clientupdateprohibited</domainStatus>
324
+ <domainStatus>clientdeleteprohibited</domainStatus>
325
+ <domainStatus>clienttransferprohibited</domainStatus>
326
+ </domain_status>
327
+ <whois_raw_registery>Domain Name: EXAMPLE.COM Registry Domain ID: 2336799_DOMAIN_COM-VRSN Registrar WHOIS ...</whois_raw_registery>
328
+ </registry_data>
329
+ </domainInfo>
330
+ </bulk_whois_response>
331
+ </BulkWhoisResponse>
281
332
  headers:
282
333
  X-AF-Credits-Cost:
283
334
  $ref: '#/components/headers/X-AF-Credits-Cost'
@@ -592,6 +643,64 @@ paths:
592
643
 
593
644
  The Registry database contains ONLY .COM, .NET, .EDU domains and
594
645
  Registrars.
646
+ application/xml:
647
+ schema:
648
+ $ref: '#/components/schemas/BulkWhoisLookupResponse'
649
+ examples:
650
+ partialFailureXml:
651
+ summary: One name failed, as XML (format=xml)
652
+ value: |-
653
+ <BulkWhoisResponse>
654
+ <bulk_whois_response>
655
+ <domainInfo>
656
+ <status>false</status>
657
+ <domain_name>example.zzzz</domain_name>
658
+ <status_code>403</status_code>
659
+ <error>NotSupportedDomainExtException</error>
660
+ <message>We are not providing the whois of this domain extension (zzzz)</message>
661
+ </domainInfo>
662
+ <domainInfo>
663
+ <status>true</status>
664
+ <domain_name>example.com</domain_name>
665
+ <query_time>2026-11-25 07:20:14</query_time>
666
+ <domain_registered>yes</domain_registered>
667
+ <create_date>1992-01-01</create_date>
668
+ <update_date>2026-08-14</update_date>
669
+ <expiry_date>2027-08-13</expiry_date>
670
+ <name_servers>
671
+ <nameServer>elliott.ns.cloudflare.com</nameServer>
672
+ <nameServer>hera.ns.cloudflare.com</nameServer>
673
+ </name_servers>
674
+ <whois_raw_domain>% IANA WHOIS server % for more information on IANA, visit http://www.iana.org % This query ...</whois_raw_domain>
675
+ <registry_data>
676
+ <domain_name>EXAMPLE.COM</domain_name>
677
+ <query_time>2026-11-25 07:20:13</query_time>
678
+ <whois_server />
679
+ <domain_registered>yes</domain_registered>
680
+ <create_date>1995-08-14</create_date>
681
+ <update_date>2026-08-14</update_date>
682
+ <expiry_date>2027-08-13</expiry_date>
683
+ <domain_registrar>
684
+ <iana_id>376</iana_id>
685
+ <status>reserved</status>
686
+ <registrar_name>RESERVED-Internet Assigned Numbers Authority</registrar_name>
687
+ <normalized_name>reserved-internet assigned numbers authority</normalized_name>
688
+ <website_url>http://res-dom.iana.org</website_url>
689
+ </domain_registrar>
690
+ <name_servers>
691
+ <nameServer>elliott.ns.cloudflare.com</nameServer>
692
+ <nameServer>hera.ns.cloudflare.com</nameServer>
693
+ </name_servers>
694
+ <domain_status>
695
+ <domainStatus>clientupdateprohibited</domainStatus>
696
+ <domainStatus>clientdeleteprohibited</domainStatus>
697
+ <domainStatus>clienttransferprohibited</domainStatus>
698
+ </domain_status>
699
+ <whois_raw_registery>Domain Name: EXAMPLE.COM Registry Domain ID: 2336799_DOMAIN_COM-VRSN Registrar WHOIS ...</whois_raw_registery>
700
+ </registry_data>
701
+ </domainInfo>
702
+ </bulk_whois_response>
703
+ </BulkWhoisResponse>
595
704
  headers:
596
705
  X-AF-Credits-Cost:
597
706
  $ref: '#/components/headers/X-AF-Credits-Cost'
@@ -803,7 +912,7 @@ paths:
803
912
  - clientTransferProhibited
804
913
  whois_raw_registery: Currently live lookup is not possible. It is the latest data in our database.
805
914
  '400':
806
- description: Bad Request — Missing, empty or malformed request body (domainNames is required and must be a non-empty array), or missing API key
915
+ description: Bad Request — Missing, empty or malformed request body (domainNames is required and must be a non-empty array of text), a body that is not sent as application/json, or missing API key
807
916
  content:
808
917
  application/json:
809
918
  schema:
@@ -825,6 +934,22 @@ paths:
825
934
  path: /v2.0/domain/whois/live
826
935
  status: 400
827
936
  timestamp: '2026-11-20T11:12:59.104Z'
937
+ unprocessableBody:
938
+ summary: domainNames holds something other than text
939
+ value:
940
+ timestamp: '2026-11-25T07:13:30.000Z'
941
+ status: 400
942
+ error: 'Bad request. [For Technical Support: support@apifreaks.com]'
943
+ message: Unable to process request.
944
+ path: /v2.0/bulkwhois/live
945
+ invalidContentType:
946
+ summary: Body sent with a Content-Type other than application/json
947
+ value:
948
+ timestamp: '2026-11-25T07:13:32.000Z'
949
+ status: 400
950
+ error: Invalid Response Format
951
+ message: 'Invalid format (Available formats: json, xml) [For Technical Support: support@apifreaks.com]'
952
+ path: /v2.0/bulkwhois/live
828
953
  headers:
829
954
  X-AF-Credits-Cost:
830
955
  $ref: '#/components/headers/X-AF-Credits-Cost'
@@ -893,10 +1018,11 @@ paths:
893
1018
  inactiveTld:
894
1019
  summary: Inactive TLD
895
1020
  value:
896
- message: Provided domain belongs to an inactive TLD. Please try to use historical whois lookup.
1021
+ message: 'Provided domain belongs to an inactive TLD. please try to use historical whois lookup [For Technical Support: support@apifreaks.com]'
897
1022
  path: /v2.0/domain/whois/live
898
1023
  status: 403
899
1024
  timestamp: '2026-07-10T13:47:02.486Z'
1025
+ error: Unable to process live request
900
1026
  '406':
901
1027
  description: Not Acceptable — Unsupported response format
902
1028
  content:
@@ -945,21 +1071,6 @@ paths:
945
1071
  headers:
946
1072
  X-AF-Credits-Cost:
947
1073
  $ref: '#/components/headers/X-AF-Credits-Cost'
948
- '429':
949
- description: Too Many Requests — Per-minute request limit reached
950
- content:
951
- application/json:
952
- schema:
953
- $ref: '#/components/schemas/ErrorResponse'
954
- examples:
955
- rateLimitReached:
956
- summary: Per-minute request limit reached
957
- value:
958
- error: Fetching Whois Data Failed
959
- message: Please slow down. Your maximum request limit per minute reached.
960
- path: /v2.0/domain/whois/live
961
- status: 429
962
- timestamp: '2026-07-10T13:47:02.486Z'
963
1074
  '499':
964
1075
  description: Client Closed Request — The request or connection timeout set by the client is too short
965
1076
  content:
@@ -1075,13 +1186,13 @@ components:
1075
1186
  properties:
1076
1187
  domainNames:
1077
1188
  type: array
1078
- description: List of domain names to retrieve WHOIS data for.
1189
+ description: List of domain names to retrieve WHOIS data for. A name sent more than once returns one entry but is charged each time it succeeds.
1079
1190
  maxItems: 100
1080
1191
  items:
1081
1192
  type: string
1082
1193
  BulkWhoisLookupResponse:
1083
1194
  type: object
1084
- description: Wrapper object containing one WHOIS result or error per requested domain, in request order.
1195
+ description: Wrapper object containing one WHOIS result or error per distinct domain requested. The entries are not guaranteed to follow the request order, so match each one to your list by domain_name.
1085
1196
  required:
1086
1197
  - bulk_whois_response
1087
1198
  properties:
@@ -1094,7 +1205,7 @@ components:
1094
1205
  - $ref: '#/components/schemas/BulkWhoisLookupItemError'
1095
1206
  BulkWhoisLookupItemError:
1096
1207
  type: object
1097
- description: Per-item error, returned in place of a WHOIS result when an individual domain's extension is unsupported or its lookup otherwise fails.
1208
+ description: Per-item error, returned in place of a WHOIS result when an individual domain's extension is unsupported, the name is not a valid domain, or its lookup otherwise fails.
1098
1209
  required:
1099
1210
  - status
1100
1211
  - domain_name
@@ -1103,9 +1214,7 @@ components:
1103
1214
  properties:
1104
1215
  status:
1105
1216
  type: boolean
1106
- enum:
1107
- - false
1108
- description: Always false for a per-item error.
1217
+ description: false when the extension is unsupported, true when the name is invalid. Test status_code, not status, to tell that an entry failed.
1109
1218
  domain_name:
1110
1219
  type: string
1111
1220
  description: Domain name that this error applies to.
@@ -1125,7 +1234,6 @@ components:
1125
1234
  - status
1126
1235
  - domain_name
1127
1236
  - query_time
1128
- - whois_server
1129
1237
  - domain_registered
1130
1238
  properties:
1131
1239
  status:
@@ -1139,7 +1247,7 @@ components:
1139
1247
  description: Timestamp when the WHOIS query was executed.
1140
1248
  whois_server:
1141
1249
  type: string
1142
- description: WHOIS or RDAP server that provided this record.
1250
+ description: WHOIS or RDAP server that provided this record. Not returned for every lookup; registry_data carries its own whois_server.
1143
1251
  domain_registered:
1144
1252
  type: string
1145
1253
  enum:
@@ -1147,6 +1255,35 @@ components:
1147
1255
  - 'no'
1148
1256
  - restricted
1149
1257
  description: Domain registration status; 'restricted' means the registry withholds registration details.
1258
+ domain_handle:
1259
+ type: string
1260
+ description: Registry handle of the domain, returned when the registry publishes one.
1261
+ abuse_contact:
1262
+ type: object
1263
+ description: 'Where to send abuse reports for the domain: the registrar''s name, email and phone.'
1264
+ properties:
1265
+ registrar_name:
1266
+ type: string
1267
+ description: Name of the registrar the abuse contact belongs to.
1268
+ email_address:
1269
+ type: string
1270
+ description: Email address for abuse reports.
1271
+ phone_number:
1272
+ type: string
1273
+ description: Phone number for abuse reports.
1274
+ eligibility_info:
1275
+ type: object
1276
+ description: Eligibility record that some registries require for a registration, such as the trademark behind a name in an extension that asks for one.
1277
+ properties:
1278
+ id:
1279
+ type: string
1280
+ description: Identifier of the eligibility record, such as a trademark number.
1281
+ name:
1282
+ type: string
1283
+ description: Name the eligibility record is held under.
1284
+ type:
1285
+ type: string
1286
+ description: Kind of eligibility, such as Trademark Owner.
1150
1287
  create_date:
1151
1288
  type: string
1152
1289
  format: date
@@ -1235,10 +1372,25 @@ components:
1235
1372
  - string
1236
1373
  - 'null'
1237
1374
  description: Registrar contact phone number, when published.
1375
+ handle:
1376
+ type: string
1377
+ description: Registrar handle, returned when the registry publishes one.
1378
+ registry_id:
1379
+ type: string
1380
+ description: Registry identifier of the registrar, when published.
1238
1381
  WhoisContactDetail:
1239
1382
  type: object
1240
1383
  description: A contact record (registrant, administrative, technical, billing, or reseller) published in the domain's WHOIS record.
1241
1384
  properties:
1385
+ id:
1386
+ type: string
1387
+ description: Contact ID, when published.
1388
+ handle:
1389
+ type: string
1390
+ description: Contact handle, returned when the registry publishes one.
1391
+ id_type:
1392
+ type: string
1393
+ description: Kind of identifier held in id, such as cnpj or Registry, when the registry publishes it.
1242
1394
  name:
1243
1395
  type: string
1244
1396
  description: Contact's full name.
@@ -159,6 +159,70 @@ paths:
159
159
 
160
160
  The Registry database contains ONLY .COM, .NET, .EDU domains and
161
161
  Registrars.
162
+ application/xml:
163
+ schema:
164
+ $ref: '#/components/schemas/DomainWhoisHistoryLookupResponse'
165
+ examples:
166
+ typicalSuccessXml:
167
+ summary: Typical successful response, as XML (format=xml), cut to the oldest and newest record
168
+ value: |-
169
+ <HistoricalWhoisResponse>
170
+ <status>true</status>
171
+ <whois>historical</whois>
172
+ <total_records>25</total_records>
173
+ <whois_domains_historical>
174
+ <domainInfo>
175
+ <num>1</num>
176
+ <status>true</status>
177
+ <domain_name>example.com</domain_name>
178
+ <query_time>2022-04-28 12:56:13</query_time>
179
+ <whois_server />
180
+ <create_date>1992-01-01</create_date>
181
+ <update_date>2021-08-14</update_date>
182
+ <expiry_date>2022-08-13</expiry_date>
183
+ </domainInfo>
184
+ <domainInfo>
185
+ <num>25</num>
186
+ <status>true</status>
187
+ <domain_name>example.com</domain_name>
188
+ <query_time>2026-11-25 07:14:15</query_time>
189
+ <whois_server />
190
+ <domain_registered>yes</domain_registered>
191
+ <create_date>1992-01-01</create_date>
192
+ <update_date>2026-08-14</update_date>
193
+ <expiry_date>2027-08-13</expiry_date>
194
+ <name_servers>
195
+ <nameServer>elliott.ns.cloudflare.com</nameServer>
196
+ <nameServer>hera.ns.cloudflare.com</nameServer>
197
+ </name_servers>
198
+ <whois_raw_domain>% IANA WHOIS server % for more information on IANA, visit http://www.iana.org % This query ...</whois_raw_domain>
199
+ <registry_data>
200
+ <domain_name>EXAMPLE.COM</domain_name>
201
+ <query_time>2026-11-25 07:14:14</query_time>
202
+ <whois_server />
203
+ <domain_registered>yes</domain_registered>
204
+ <create_date>1995-08-14</create_date>
205
+ <update_date>2026-08-14</update_date>
206
+ <expiry_date>2027-08-13</expiry_date>
207
+ <domain_registrar>
208
+ <iana_id>376</iana_id>
209
+ <registrar_name>RESERVED-Internet Assigned Numbers Authority</registrar_name>
210
+ <website_url>http://res-dom.iana.org</website_url>
211
+ </domain_registrar>
212
+ <name_servers>
213
+ <nameServer>elliott.ns.cloudflare.com</nameServer>
214
+ <nameServer>hera.ns.cloudflare.com</nameServer>
215
+ </name_servers>
216
+ <domain_status>
217
+ <domainStatus>clientupdateprohibited</domainStatus>
218
+ <domainStatus>clientdeleteprohibited</domainStatus>
219
+ <domainStatus>clienttransferprohibited</domainStatus>
220
+ </domain_status>
221
+ <whois_raw_registery>Domain Name: EXAMPLE.COM Registry Domain ID: 2336799_DOMAIN_COM-VRSN Registrar WHOIS ...</whois_raw_registery>
222
+ </registry_data>
223
+ </domainInfo>
224
+ </whois_domains_historical>
225
+ </HistoricalWhoisResponse>
162
226
  headers:
163
227
  X-AF-Credits-Cost:
164
228
  $ref: '#/components/headers/X-AF-Credits-Cost'
@@ -276,7 +340,7 @@ paths:
276
340
  status: 401
277
341
  timestamp: '2026-11-20T11:13:00.576Z'
278
342
  '404':
279
- description: Not Found — No historical WHOIS records for the domain
343
+ description: Not Found — No historical WHOIS records for the domain, or the endpoint was called with an HTTP method other than GET
280
344
  content:
281
345
  application/json:
282
346
  schema:
@@ -290,6 +354,32 @@ paths:
290
354
  error: Record Not Found
291
355
  message: Record not found
292
356
  path: /v1.0/whois
357
+ resourceNotFound:
358
+ summary: Wrong HTTP method or path
359
+ value:
360
+ error: Resource Not Found
361
+ message: The requested resource could not be found. Please verify the URL and try again.
362
+ path: /v1.0/domain/whois/history
363
+ status: 404
364
+ timestamp: '2026-11-25T07:14:40.000Z'
365
+ headers:
366
+ X-AF-Credits-Cost:
367
+ $ref: '#/components/headers/X-AF-Credits-Cost'
368
+ '406':
369
+ description: Not Acceptable — The format value is not supported
370
+ content:
371
+ application/json:
372
+ schema:
373
+ $ref: '#/components/schemas/ErrorResponse'
374
+ examples:
375
+ unsupportedFormat:
376
+ summary: Unsupported format value
377
+ value:
378
+ error: Unsupported Media Type
379
+ message: The media type specified in the request is not supported. For more details, please refer to the API documentation.
380
+ path: /v1.0/domain/whois/history
381
+ status: 406
382
+ timestamp: '2026-11-20T11:13:01.252Z'
293
383
  headers:
294
384
  X-AF-Credits-Cost:
295
385
  $ref: '#/components/headers/X-AF-Credits-Cost'
@@ -330,21 +420,6 @@ paths:
330
420
  path: /v1.0/domain/whois/history
331
421
  status: 413
332
422
  timestamp: '2026-11-20T11:13:00.576Z'
333
- '429':
334
- description: Too Many Requests — Per-minute request limit reached
335
- content:
336
- application/json:
337
- schema:
338
- $ref: '#/components/schemas/ErrorResponse'
339
- examples:
340
- rateLimited:
341
- summary: Request limit per minute reached
342
- value:
343
- timestamp: '2024-07-10T13:47:02.486Z'
344
- status: 429
345
- error: Fetching Whois Data Failed
346
- message: Please slow down. Your maximum request limit per minute reached.
347
- path: /v1.0/domain/whois/history
348
423
  '499':
349
424
  description: Client Closed Request — The client timeout is too short and the connection was closed before the response completed
350
425
  content:
@@ -484,10 +559,6 @@ components:
484
559
  - num
485
560
  - status
486
561
  - domain_name
487
- - query_time
488
- - create_date
489
- - update_date
490
- - expiry_date
491
562
  properties:
492
563
  num:
493
564
  type: integer
@@ -586,6 +657,12 @@ components:
586
657
  - string
587
658
  - 'null'
588
659
  description: Registrar contact phone number, when published.
660
+ handle:
661
+ type: string
662
+ description: Registrar handle, returned when the registry publishes one.
663
+ registry_id:
664
+ type: string
665
+ description: Registry identifier of the registrar, when published.
589
666
  WhoisContactDetail:
590
667
  type: object
591
668
  description: A contact record (registrant, administrative, technical, billing, or reseller) as published in this snapshot.