@apifreaks/openapi-specs 0.4.20 → 0.4.22

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 (63) hide show
  1. package/dist/index.cjs +4410 -530
  2. package/dist/index.js +4410 -530
  3. package/dist/specs/commodity/historical-commodity-prices.yaml +30 -11
  4. package/dist/specs/dns/bulk-dns-lookup.yaml +214 -33
  5. package/dist/specs/dns/dns-lookup.yaml +9 -1
  6. package/dist/specs/financial/bulk-vat-rates-country.yaml +22 -4
  7. package/dist/specs/geography/flags-supported.yaml +18 -10
  8. package/dist/specs/pdf/delete-pdf-page.yaml +12 -4
  9. package/dist/specs/pdf/linearize-pdf.yaml +11 -3
  10. package/dist/specs/pdf/merge-pdf.yaml +11 -3
  11. package/dist/specs/pdf/pdf-compress.yaml +12 -4
  12. package/dist/specs/pdf/pdf-decrypt.yaml +13 -5
  13. package/dist/specs/pdf/pdf-encrypt.yaml +11 -3
  14. package/dist/specs/pdf/pdf-extract-pages.yaml +11 -3
  15. package/dist/specs/pdf/pdf-resource-upload-binary.yaml +1 -1
  16. package/dist/specs/pdf/pdf-resource-upload.yaml +3 -3
  17. package/dist/specs/pdf/pdf-restrict.yaml +13 -5
  18. package/dist/specs/pdf/pdf-to-image.yaml +130 -0
  19. package/dist/specs/pdf/pdf-unrestrict.yaml +13 -5
  20. package/dist/specs/pdf/rotate-pdf-pages.yaml +11 -3
  21. package/dist/specs/pdf/split-pdf.yaml +11 -3
  22. package/dist/specs/screenshot/bulk-screenshot.yaml +11 -10
  23. package/dist/specs/screenshot/website-screenshot.yaml +11 -10
  24. package/dist/specs/timezone/timezone-converter.yaml +36 -8
  25. package/dist/specs/timezone/timezone-lookup.yaml +36 -10
  26. package/dist/specs/weather/time-series-weather.yaml +6 -7
  27. package/dist/specs/whois/asn-lookup.yaml +676 -37
  28. package/dist/specs/whois/bulk-whois-lookup.yaml +480 -2
  29. package/dist/specs/whois/domain-whois-history-lookup.yaml +222 -2
  30. package/dist/specs/whois/reverse-whois.yaml +316 -8
  31. package/dist/specs/whois/whois-domain-lookup.yaml +482 -11
  32. package/dist/specs/whois/whois-ip-lookup.yaml +306 -255
  33. package/package.json +1 -1
  34. package/specs/commodity/historical-commodity-prices.json +37 -11
  35. package/specs/dns/bulk-dns-lookup.json +274 -29
  36. package/specs/dns/dns-lookup.json +13 -2
  37. package/specs/financial/bulk-vat-rates-country.json +33 -4
  38. package/specs/geography/flags-supported.json +20 -13
  39. package/specs/pdf/delete-pdf-page.json +14 -4
  40. package/specs/pdf/linearize-pdf.json +13 -3
  41. package/specs/pdf/merge-pdf.json +13 -3
  42. package/specs/pdf/pdf-compress.json +14 -4
  43. package/specs/pdf/pdf-decrypt.json +16 -6
  44. package/specs/pdf/pdf-encrypt.json +13 -3
  45. package/specs/pdf/pdf-extract-pages.json +13 -3
  46. package/specs/pdf/pdf-resource-upload-binary.json +1 -1
  47. package/specs/pdf/pdf-resource-upload.json +4 -4
  48. package/specs/pdf/pdf-restrict.json +16 -6
  49. package/specs/pdf/pdf-to-image.json +185 -0
  50. package/specs/pdf/pdf-unrestrict.json +16 -6
  51. package/specs/pdf/rotate-pdf-pages.json +13 -3
  52. package/specs/pdf/split-pdf.json +13 -3
  53. package/specs/screenshot/bulk-screenshot.json +10 -10
  54. package/specs/screenshot/website-screenshot.json +10 -10
  55. package/specs/timezone/timezone-converter.json +48 -8
  56. package/specs/timezone/timezone-lookup.json +53 -10
  57. package/specs/weather/time-series-weather.json +7 -7
  58. package/specs/whois/asn-lookup.json +878 -54
  59. package/specs/whois/bulk-whois-lookup.json +612 -2
  60. package/specs/whois/domain-whois-history-lookup.json +307 -2
  61. package/specs/whois/reverse-whois.json +453 -9
  62. package/specs/whois/whois-domain-lookup.json +632 -11
  63. package/specs/whois/whois-ip-lookup.json +427 -241
@@ -152,21 +152,238 @@
152
152
  }
153
153
  },
154
154
  "206": {
155
- "description": "Partial Content — The response contains partial data because an error occurred while processing the request",
155
+ "description": "Partial Content — The registry query succeeded but the registrar query failed, so registrar-level details such as contact information may be missing. The body has the same shape as a 200 response. Retry later to get the full record.",
156
156
  "content": {
157
157
  "application/json": {
158
158
  "schema": {
159
- "$ref": "#/components/schemas/ErrorResponse"
159
+ "$ref": "#/components/schemas/DomainWhoisLookupResponse"
160
160
  },
161
161
  "examples": {
162
162
  "partialContent": {
163
- "summary": "Partial WHOIS data returned",
163
+ "summary": "Registry data only (registrar query failed)",
164
164
  "value": {
165
- "timestamp": "2025-08-14T09:25:32.271Z",
166
- "status": 206,
167
- "error": "Partial Content",
168
- "message": "The response contains partial data due to an error while processing the request.",
169
- "path": "/v2.0/domain/whois/live"
165
+ "status": true,
166
+ "domain_name": "whoisfreaks.com",
167
+ "query_time": "2024-07-11 13:03:30",
168
+ "whois_server": "whois.verisign-grs.com",
169
+ "domain_registered": "yes",
170
+ "create_date": "2019-03-19",
171
+ "update_date": "2024-02-18",
172
+ "expiry_date": "2025-03-19",
173
+ "domain_registrar": {
174
+ "iana_id": "1068",
175
+ "registrar_name": "NAMECHEAP INC",
176
+ "whois_server": "whois.namecheap.com",
177
+ "website_url": "http://www.namecheap.com",
178
+ "email_address": "abuse@namecheap.com",
179
+ "phone_number": "+1.9854014545"
180
+ },
181
+ "reseller_contact": {
182
+ "name": "NAMECHEAP INC",
183
+ "email_address": "N/A",
184
+ "phone": "N/A"
185
+ },
186
+ "registrant_contact": {
187
+ "name": "Redacted for Privacy",
188
+ "company": "Privacy service provided by Withheld for Privacy ehf",
189
+ "street": "Kalkofnsvegur 2",
190
+ "city": "Reykjavik",
191
+ "state": "Capital Region",
192
+ "zip_code": "101",
193
+ "country_name": "Iceland",
194
+ "country_code": "IS",
195
+ "email_address": "b8e54d7b11b347b285b60992e0889dde.protect@withheldforprivacy.com",
196
+ "phone": "+354.4212434",
197
+ "fax": "N/A",
198
+ "mailing_address": "Kalkofnsvegur 2, 101 Reykjavik, Capital Region, Iceland"
199
+ },
200
+ "administrative_contact": {
201
+ "name": "Redacted for Privacy",
202
+ "company": "Privacy service provided by Withheld for Privacy ehf",
203
+ "street": "Kalkofnsvegur 2",
204
+ "city": "Reykjavik",
205
+ "state": "Capital Region",
206
+ "zip_code": "101",
207
+ "country_name": "Iceland",
208
+ "country_code": "IS",
209
+ "email_address": "b8e54d7b11b347b285b60992e0889dde.protect@withheldforprivacy.com",
210
+ "phone": "+354.4212434",
211
+ "fax": "N/A",
212
+ "mailing_address": "Kalkofnsvegur 2, 101 Reykjavik, Capital Region, Iceland"
213
+ },
214
+ "technical_contact": {
215
+ "name": "Redacted for Privacy",
216
+ "company": "Privacy service provided by Withheld for Privacy ehf",
217
+ "street": "Kalkofnsvegur 2",
218
+ "city": "Reykjavik",
219
+ "state": "Capital Region",
220
+ "zip_code": "101",
221
+ "country_name": "Iceland",
222
+ "country_code": "IS",
223
+ "email_address": "b8e54d7b11b347b285b60992e0889dde.protect@withheldforprivacy.com",
224
+ "phone": "+354.4212434",
225
+ "fax": "N/A",
226
+ "mailing_address": "Kalkofnsvegur 2, 101 Reykjavik, Capital Region, Iceland"
227
+ },
228
+ "billing_contact": {
229
+ "name": "N/A",
230
+ "company": "N/A",
231
+ "street": "N/A",
232
+ "city": "N/A",
233
+ "state": "N/A",
234
+ "zip_code": "N/A",
235
+ "country_name": "N/A",
236
+ "country_code": "N/A",
237
+ "email_address": "N/A",
238
+ "phone": "N/A",
239
+ "fax": "N/A",
240
+ "mailing_address": "N/A"
241
+ },
242
+ "name_servers": [
243
+ "dns3.cloudns.net",
244
+ "dns4.cloudns.net",
245
+ "dns7.cloudns.net",
246
+ "dns8.cloudns.net"
247
+ ],
248
+ "domain_status": [
249
+ "clientTransferProhibited"
250
+ ]
251
+ }
252
+ }
253
+ }
254
+ }
255
+ },
256
+ "headers": {
257
+ "X-AF-Credits-Cost": {
258
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
259
+ }
260
+ }
261
+ },
262
+ "210": {
263
+ "description": "Cached — Both the registry and the registrar queries failed, so the response is the latest record stored in the database rather than live data. The body has the same shape as a 200 response. Retry later if you need current data.",
264
+ "content": {
265
+ "application/json": {
266
+ "schema": {
267
+ "$ref": "#/components/schemas/DomainWhoisLookupResponse"
268
+ },
269
+ "examples": {
270
+ "cachedResponse": {
271
+ "summary": "Latest stored record (live queries failed)",
272
+ "value": {
273
+ "status": true,
274
+ "domain_name": "whoisfreaks.com",
275
+ "query_time": "2024-07-11 13:03:30",
276
+ "whois_server": "whois.verisign-grs.com",
277
+ "domain_registered": "yes",
278
+ "create_date": "2019-03-19",
279
+ "update_date": "2024-02-18",
280
+ "expiry_date": "2025-03-19",
281
+ "domain_registrar": {
282
+ "iana_id": "1068",
283
+ "registrar_name": "NAMECHEAP INC",
284
+ "whois_server": "whois.namecheap.com",
285
+ "website_url": "http://www.namecheap.com",
286
+ "email_address": "abuse@namecheap.com",
287
+ "phone_number": "+1.9854014545"
288
+ },
289
+ "reseller_contact": {
290
+ "name": "NAMECHEAP INC",
291
+ "email_address": "N/A",
292
+ "phone": "N/A"
293
+ },
294
+ "registrant_contact": {
295
+ "name": "Redacted for Privacy",
296
+ "company": "Privacy service provided by Withheld for Privacy ehf",
297
+ "street": "Kalkofnsvegur 2",
298
+ "city": "Reykjavik",
299
+ "state": "Capital Region",
300
+ "zip_code": "101",
301
+ "country_name": "Iceland",
302
+ "country_code": "IS",
303
+ "email_address": "b8e54d7b11b347b285b60992e0889dde.protect@withheldforprivacy.com",
304
+ "phone": "+354.4212434",
305
+ "fax": "N/A",
306
+ "mailing_address": "Kalkofnsvegur 2, 101 Reykjavik, Capital Region, Iceland"
307
+ },
308
+ "administrative_contact": {
309
+ "name": "Redacted for Privacy",
310
+ "company": "Privacy service provided by Withheld for Privacy ehf",
311
+ "street": "Kalkofnsvegur 2",
312
+ "city": "Reykjavik",
313
+ "state": "Capital Region",
314
+ "zip_code": "101",
315
+ "country_name": "Iceland",
316
+ "country_code": "IS",
317
+ "email_address": "b8e54d7b11b347b285b60992e0889dde.protect@withheldforprivacy.com",
318
+ "phone": "+354.4212434",
319
+ "fax": "N/A",
320
+ "mailing_address": "Kalkofnsvegur 2, 101 Reykjavik, Capital Region, Iceland"
321
+ },
322
+ "technical_contact": {
323
+ "name": "Redacted for Privacy",
324
+ "company": "Privacy service provided by Withheld for Privacy ehf",
325
+ "street": "Kalkofnsvegur 2",
326
+ "city": "Reykjavik",
327
+ "state": "Capital Region",
328
+ "zip_code": "101",
329
+ "country_name": "Iceland",
330
+ "country_code": "IS",
331
+ "email_address": "b8e54d7b11b347b285b60992e0889dde.protect@withheldforprivacy.com",
332
+ "phone": "+354.4212434",
333
+ "fax": "N/A",
334
+ "mailing_address": "Kalkofnsvegur 2, 101 Reykjavik, Capital Region, Iceland"
335
+ },
336
+ "billing_contact": {
337
+ "name": "N/A",
338
+ "company": "N/A",
339
+ "street": "N/A",
340
+ "city": "N/A",
341
+ "state": "N/A",
342
+ "zip_code": "N/A",
343
+ "country_name": "N/A",
344
+ "country_code": "N/A",
345
+ "email_address": "N/A",
346
+ "phone": "N/A",
347
+ "fax": "N/A",
348
+ "mailing_address": "N/A"
349
+ },
350
+ "name_servers": [
351
+ "dns3.cloudns.net",
352
+ "dns4.cloudns.net",
353
+ "dns7.cloudns.net",
354
+ "dns8.cloudns.net"
355
+ ],
356
+ "domain_status": [
357
+ "clientTransferProhibited"
358
+ ],
359
+ "whois_raw_domain": "Currently live lookup is not possible. It is the latest data in our database.",
360
+ "registry_data": {
361
+ "domain_name": "WHOISFREAKS.COM",
362
+ "query_time": "2024-07-11 13:03:30",
363
+ "whois_server": "whois.verisign-grs.com",
364
+ "domain_registered": "yes",
365
+ "create_date": "N/A",
366
+ "update_date": "N/A",
367
+ "expiry_date": "N/A",
368
+ "domain_registrar": {
369
+ "iana_id": "1068",
370
+ "registrar_name": "NameCheap, Inc.",
371
+ "whois_server": "whois.namecheap.com",
372
+ "website_url": "http://www.namecheap.com",
373
+ "email_address": "abuse@namecheap.com",
374
+ "phone_number": "+1.6613102107"
375
+ },
376
+ "name_servers": [
377
+ "dns3.cloudns.net",
378
+ "dns4.cloudns.net",
379
+ "dns7.cloudns.net",
380
+ "dns8.cloudns.net"
381
+ ],
382
+ "domain_status": [
383
+ "clientTransferProhibited"
384
+ ],
385
+ "whois_raw_registry": "Currently live lookup is not possible. It is the latest data in our database."
386
+ }
170
387
  }
171
388
  }
172
389
  }
@@ -179,7 +396,7 @@
179
396
  }
180
397
  },
181
398
  "400": {
182
- "description": "Bad Request — Missing or invalid domainName parameter",
399
+ "description": "Bad Request — Missing or invalid domainName parameter, or missing API key",
183
400
  "content": {
184
401
  "application/json": {
185
402
  "schema": {
@@ -196,13 +413,23 @@
196
413
  "timestamp": "2026-07-23T08:04:19.197Z"
197
414
  }
198
415
  },
416
+ "missingApiKey": {
417
+ "summary": "Missing API key",
418
+ "value": {
419
+ "error": "Invalid Param Exception",
420
+ "message": "Please provide apiKey",
421
+ "path": "/v2.0/domain/whois/live",
422
+ "status": 400,
423
+ "timestamp": "2026-11-20T11:12:59.795Z"
424
+ }
425
+ },
199
426
  "invalidDomain": {
200
427
  "summary": "Malformed domain name",
201
428
  "value": {
202
429
  "timestamp": "2026-07-23T08:04:18.733Z",
203
430
  "status": 400,
204
431
  "error": "Invalid Param Exception",
205
- "message": "Please pass domain param correct value [For Technical Support: support@whoisfreaks.com]",
432
+ "message": "Please pass domain param correct value [For Technical Support: support@apifreaks.com]",
206
433
  "path": "/v2.0/whois/live"
207
434
  }
208
435
  }
@@ -216,7 +443,7 @@
216
443
  }
217
444
  },
218
445
  "403": {
219
- "description": "Forbidden — Domain extension not supported for live WHOIS",
446
+ "description": "Forbidden — Domain extension not supported for live WHOIS, or the domain belongs to an inactive TLD",
220
447
  "content": {
221
448
  "application/json": {
222
449
  "schema": {
@@ -232,6 +459,400 @@
232
459
  "message": "We are not providing the whois of this domain extension (local)",
233
460
  "path": "/v2.0/whois/live"
234
461
  }
462
+ },
463
+ "inactiveTld": {
464
+ "summary": "Domain belongs to an inactive TLD",
465
+ "value": {
466
+ "timestamp": "2026-11-20T11:13:00.607Z",
467
+ "status": 403,
468
+ "message": "Provided domain belongs to an inactive TLD. Please try to use historical whois lookup.",
469
+ "path": "/v2.0/whois/live"
470
+ }
471
+ }
472
+ }
473
+ }
474
+ },
475
+ "headers": {
476
+ "X-AF-Credits-Cost": {
477
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
478
+ }
479
+ }
480
+ },
481
+ "401": {
482
+ "description": "Unauthorized — The API key is invalid or inactive, or the subscription, credits or account are not usable",
483
+ "content": {
484
+ "application/json": {
485
+ "schema": {
486
+ "$ref": "#/components/schemas/ErrorResponse"
487
+ },
488
+ "examples": {
489
+ "invalidApiKey": {
490
+ "summary": "Invalid API key",
491
+ "value": {
492
+ "error": "API Access Exception",
493
+ "message": "Provided API key is invalid. [For Technical Support: support@apifreaks.com]",
494
+ "path": "/v2.0/domain/whois/live",
495
+ "status": 401,
496
+ "timestamp": "2026-11-20T11:13:00.607Z"
497
+ }
498
+ },
499
+ "inactiveApiKey": {
500
+ "summary": "Inactive API key",
501
+ "value": {
502
+ "timestamp": "2026-11-20T11:13:00.607Z",
503
+ "status": 401,
504
+ "error": "API Access Exception",
505
+ "message": "Provided API key is inactive.",
506
+ "path": "/v2.0/domain/whois/live"
507
+ }
508
+ },
509
+ "noSubscription": {
510
+ "summary": "No subscription or credits",
511
+ "value": {
512
+ "timestamp": "2026-11-20T11:13:00.607Z",
513
+ "status": 401,
514
+ "error": "API Access Exception",
515
+ "message": "Please buy a subscription plan or add api credits, then use this api key.",
516
+ "path": "/v2.0/domain/whois/live"
517
+ }
518
+ },
519
+ "subscriptionDeactivated": {
520
+ "summary": "Subscription deactivated",
521
+ "value": {
522
+ "timestamp": "2026-11-20T11:13:00.607Z",
523
+ "status": 401,
524
+ "error": "API Access Exception",
525
+ "message": "Your subscription is deactivated. Please buy new plan or add api credits for using apifreaks APIs.",
526
+ "path": "/v2.0/domain/whois/live"
527
+ }
528
+ },
529
+ "paymentFailure": {
530
+ "summary": "Subscription deactivated after payment failures",
531
+ "value": {
532
+ "timestamp": "2026-11-20T11:13:00.607Z",
533
+ "status": 401,
534
+ "error": "API Access Exception",
535
+ "message": "Your subscription is deactivated due to much time payment failure. Please buy a new plan or add api credits for using apifreaks APIs.",
536
+ "path": "/v2.0/domain/whois/live"
537
+ }
538
+ },
539
+ "accountDeactivated": {
540
+ "summary": "Account deactivated",
541
+ "value": {
542
+ "timestamp": "2026-11-20T11:13:00.607Z",
543
+ "status": 401,
544
+ "error": "API Access Exception",
545
+ "message": "Your account is deactivated.",
546
+ "path": "/v2.0/domain/whois/live"
547
+ }
548
+ },
549
+ "blockedSuspiciousActivity": {
550
+ "summary": "Blocked for suspicious activity",
551
+ "value": {
552
+ "timestamp": "2026-11-20T11:13:00.607Z",
553
+ "status": 401,
554
+ "error": "API Access Exception",
555
+ "message": "You are blocked due to suspicious activity.",
556
+ "path": "/v2.0/domain/whois/live"
557
+ }
558
+ },
559
+ "apiRecordNotFound": {
560
+ "summary": "API record not found",
561
+ "value": {
562
+ "timestamp": "2026-11-20T11:13:00.607Z",
563
+ "status": 401,
564
+ "error": "API Access Exception",
565
+ "message": "Api record not found.",
566
+ "path": "/v2.0/domain/whois/live"
567
+ }
568
+ },
569
+ "suspiciousActivity": {
570
+ "summary": "Suspicious activity",
571
+ "value": {
572
+ "timestamp": "2026-11-20T11:13:00.607Z",
573
+ "status": 401,
574
+ "error": "API Access Exception",
575
+ "message": "Suspicious Activity.",
576
+ "path": "/v2.0/domain/whois/live"
577
+ }
578
+ }
579
+ }
580
+ }
581
+ },
582
+ "headers": {
583
+ "X-AF-Credits-Cost": {
584
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
585
+ }
586
+ }
587
+ },
588
+ "406": {
589
+ "description": "Not Acceptable — The format value is not supported",
590
+ "content": {
591
+ "application/json": {
592
+ "schema": {
593
+ "$ref": "#/components/schemas/ErrorResponse"
594
+ },
595
+ "examples": {
596
+ "unsupportedFormat": {
597
+ "summary": "Unsupported format value",
598
+ "value": {
599
+ "error": "Unsupported Media Type",
600
+ "message": "The media type specified in the request is not supported. For more details, please refer to the API documentation.",
601
+ "path": "/v2.0/domain/whois/live",
602
+ "status": 406,
603
+ "timestamp": "2026-11-20T11:13:01.252Z"
604
+ }
605
+ }
606
+ }
607
+ }
608
+ },
609
+ "headers": {
610
+ "X-AF-Credits-Cost": {
611
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
612
+ }
613
+ }
614
+ },
615
+ "408": {
616
+ "description": "Request Timeout — The WHOIS data could not be fetched",
617
+ "content": {
618
+ "application/json": {
619
+ "schema": {
620
+ "$ref": "#/components/schemas/ErrorResponse"
621
+ },
622
+ "examples": {
623
+ "fetchWhoisFailed": {
624
+ "summary": "Unable to fetch WHOIS data",
625
+ "value": {
626
+ "timestamp": "2024-07-10T13:47:02.486Z",
627
+ "status": 408,
628
+ "error": "Fetching Whois Data Failed",
629
+ "message": "Unable to fetch whois data.Please try again [For Technical Support: support@apifreaks.com]",
630
+ "path": "/v2.0/domain/whois/live"
631
+ }
632
+ }
633
+ }
634
+ }
635
+ },
636
+ "headers": {
637
+ "X-AF-Credits-Cost": {
638
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
639
+ }
640
+ }
641
+ },
642
+ "412": {
643
+ "description": "Precondition Failed — The API plan request limit is exceeded and the subscription is canceled",
644
+ "content": {
645
+ "application/json": {
646
+ "schema": {
647
+ "$ref": "#/components/schemas/ErrorResponse"
648
+ },
649
+ "examples": {
650
+ "planLimitExceeded": {
651
+ "summary": "API plan request limit exceeded",
652
+ "value": {
653
+ "timestamp": "2024-07-10T13:47:02.486Z",
654
+ "status": 412,
655
+ "error": "Fetching Whois Data Failed",
656
+ "message": "You have exceeded the limit of api plan requests and your subscription is canceled. [For Technical Support email at: support@apifreaks.com]",
657
+ "path": "/v2.0/domain/whois/live"
658
+ }
659
+ }
660
+ }
661
+ }
662
+ },
663
+ "headers": {
664
+ "X-AF-Credits-Cost": {
665
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
666
+ }
667
+ }
668
+ },
669
+ "413": {
670
+ "description": "Payload Too Large — The API credits or surcharge request limit is exceeded",
671
+ "content": {
672
+ "application/json": {
673
+ "schema": {
674
+ "$ref": "#/components/schemas/ErrorResponse"
675
+ },
676
+ "examples": {
677
+ "surchargeLimitExceeded": {
678
+ "summary": "Surcharge request limit exceeded",
679
+ "value": {
680
+ "timestamp": "2024-07-10T13:47:02.486Z",
681
+ "status": 413,
682
+ "error": "Fetching Whois Data Failed",
683
+ "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]",
684
+ "path": "/v2.0/domain/whois/live"
685
+ }
686
+ },
687
+ "creditsLimitExceeded": {
688
+ "summary": "API credits request limit exceeded",
689
+ "value": {
690
+ "timestamp": "2024-07-10T13:47:02.486Z",
691
+ "status": 413,
692
+ "error": "Fetching Whois Data Failed",
693
+ "message": "You have exceeded the limit of api credits requests [allowed_request_no]. Please upgrade your plan.",
694
+ "path": "/v2.0/domain/whois/live"
695
+ }
696
+ }
697
+ }
698
+ }
699
+ },
700
+ "headers": {
701
+ "X-AF-Credits-Cost": {
702
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
703
+ }
704
+ }
705
+ },
706
+ "429": {
707
+ "description": "Too Many Requests — The per-minute request limit is reached",
708
+ "content": {
709
+ "application/json": {
710
+ "schema": {
711
+ "$ref": "#/components/schemas/ErrorResponse"
712
+ },
713
+ "examples": {
714
+ "rateLimited": {
715
+ "summary": "Per-minute request limit reached",
716
+ "value": {
717
+ "timestamp": "2024-07-10T13:47:02.486Z",
718
+ "status": 429,
719
+ "error": "Fetching Whois Data Failed",
720
+ "message": "Please slow down. Your maximum request limit per minute reached.",
721
+ "path": "/v2.0/domain/whois/live"
722
+ }
723
+ }
724
+ }
725
+ }
726
+ },
727
+ "headers": {
728
+ "X-AF-Credits-Cost": {
729
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
730
+ }
731
+ }
732
+ },
733
+ "499": {
734
+ "description": "Client Closed Request — The client request or connection timeout is too short",
735
+ "content": {
736
+ "application/json": {
737
+ "schema": {
738
+ "$ref": "#/components/schemas/ErrorResponse"
739
+ },
740
+ "examples": {
741
+ "clientTimeoutTooShort": {
742
+ "summary": "Client timeout too short",
743
+ "value": {
744
+ "timestamp": "2026-11-20T11:13:00.607Z",
745
+ "status": 499,
746
+ "message": "The request or connection timeout you’ve set is too short, which is causing the server to close the connection before completing the response. Please increase the timeout duration to ensure successful communication with the server.",
747
+ "path": "/v2.0/domain/whois/live"
748
+ }
749
+ }
750
+ }
751
+ }
752
+ },
753
+ "headers": {
754
+ "X-AF-Credits-Cost": {
755
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
756
+ }
757
+ }
758
+ },
759
+ "500": {
760
+ "description": "Internal Server Error",
761
+ "content": {
762
+ "application/json": {
763
+ "schema": {
764
+ "$ref": "#/components/schemas/ErrorResponse"
765
+ },
766
+ "examples": {
767
+ "internalServerError": {
768
+ "summary": "Internal server error",
769
+ "value": {
770
+ "timestamp": "2024-07-10T13:47:02.486Z",
771
+ "status": 500,
772
+ "error": "Fetching Whois Data Failed",
773
+ "message": "Internal Server error occurred. [For Technical Support email at: support@apifreaks.com]",
774
+ "path": "/v2.0/domain/whois/live"
775
+ }
776
+ }
777
+ }
778
+ }
779
+ },
780
+ "headers": {
781
+ "X-AF-Credits-Cost": {
782
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
783
+ }
784
+ }
785
+ },
786
+ "503": {
787
+ "description": "Service Unavailable",
788
+ "content": {
789
+ "application/json": {
790
+ "schema": {
791
+ "$ref": "#/components/schemas/ErrorResponse"
792
+ },
793
+ "examples": {
794
+ "serviceUnavailable": {
795
+ "summary": "Service unavailable",
796
+ "value": {
797
+ "timestamp": "2024-07-10T13:47:02.486Z",
798
+ "status": 503,
799
+ "error": "Fetching Whois Data Failed",
800
+ "message": "Service is unavailable. Please try after some time. [For Technical Support email at: support@apifreaks.com]",
801
+ "path": "/v2.0/domain/whois/live"
802
+ }
803
+ }
804
+ }
805
+ }
806
+ },
807
+ "headers": {
808
+ "X-AF-Credits-Cost": {
809
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
810
+ }
811
+ }
812
+ },
813
+ "504": {
814
+ "description": "Gateway Timeout — The request timed out",
815
+ "content": {
816
+ "application/json": {
817
+ "schema": {
818
+ "$ref": "#/components/schemas/ErrorResponse"
819
+ },
820
+ "examples": {
821
+ "requestTimedOut": {
822
+ "summary": "Request timed out",
823
+ "value": {
824
+ "timestamp": "2024-07-10T13:47:02.486Z",
825
+ "status": 504,
826
+ "error": "Fetching Whois Data Failed",
827
+ "message": "Request is timed-out. [For Technical Support email at: support@apifreaks.com]",
828
+ "path": "/v2.0/domain/whois/live"
829
+ }
830
+ }
831
+ }
832
+ }
833
+ },
834
+ "headers": {
835
+ "X-AF-Credits-Cost": {
836
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
837
+ }
838
+ }
839
+ },
840
+ "505": {
841
+ "description": "HTTP Version Not Supported",
842
+ "content": {
843
+ "application/json": {
844
+ "schema": {
845
+ "$ref": "#/components/schemas/ErrorResponse"
846
+ },
847
+ "examples": {
848
+ "httpVersionOutdated": {
849
+ "summary": "Outdated HTTP version",
850
+ "value": {
851
+ "timestamp": "2026-11-20T11:13:00.607Z",
852
+ "status": 505,
853
+ "message": "You might be using an outdated HTTP version.",
854
+ "path": "/v2.0/domain/whois/live"
855
+ }
235
856
  }
236
857
  }
237
858
  }