@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
@@ -203,7 +203,7 @@
203
203
  }
204
204
  },
205
205
  "400": {
206
- "description": "Bad Request -- Missing or invalid search parameters",
206
+ "description": "Bad Request -- Missing API key, missing or invalid search parameters, or an unsupported mode",
207
207
  "content": {
208
208
  "application/json": {
209
209
  "schema": {
@@ -211,13 +211,33 @@
211
211
  },
212
212
  "examples": {
213
213
  "missingParam": {
214
- "summary": "Missing required search parameter",
214
+ "summary": "No search parameter supplied (keyword, email, owner or company)",
215
215
  "value": {
216
- "timestamp": "2025-08-14T10:01:46.601Z",
216
+ "error": "Invalid Param Exception",
217
+ "message": "please pass correct parameters",
218
+ "path": "/v1.0/domain/whois/reverse",
217
219
  "status": 400,
220
+ "timestamp": "2026-11-20T11:12:56.784Z"
221
+ }
222
+ },
223
+ "missingApiKey": {
224
+ "summary": "Missing API key",
225
+ "value": {
218
226
  "error": "Invalid Param Exception",
219
- "message": "Please pass param value.",
220
- "path": "/v1.0/domain/whois/reverse"
227
+ "message": "Please provide apiKey",
228
+ "path": "/v1.0/domain/whois/reverse",
229
+ "status": 400,
230
+ "timestamp": "2026-11-20T11:12:57.333Z"
231
+ }
232
+ },
233
+ "invalidMode": {
234
+ "summary": "Unsupported mode value (live upstream error)",
235
+ "value": {
236
+ "timestamp": "2026-11-20T11:13:00.645837354Z",
237
+ "status": 400,
238
+ "error": "Invalid Param Exception",
239
+ "message": "Please pass domain param correct value [For Technical Support: support@apifreaks.com]",
240
+ "path": "/v1.0/whois"
221
241
  }
222
242
  }
223
243
  }
@@ -236,7 +256,7 @@
236
256
  }
237
257
  },
238
258
  "404": {
239
- "description": "Not Found -- No domains match the search criteria",
259
+ "description": "Not Found -- No domains match the search criteria, or the HTTP method is not supported by the endpoint",
240
260
  "content": {
241
261
  "application/json": {
242
262
  "schema": {
@@ -246,10 +266,277 @@
246
266
  "recordNotFound": {
247
267
  "summary": "No matching domains found",
248
268
  "value": {
249
- "timestamp": "2025-08-14T10:01:54.778Z",
269
+ "timestamp": "2026-11-20T11:12:59.683452852Z",
270
+ "status": 404,
271
+ "error": "Record Not Found",
272
+ "message": "Record not found",
273
+ "path": "/v1.0/whois"
274
+ }
275
+ },
276
+ "resourceNotFound": {
277
+ "summary": "Unsupported HTTP method (POST, PUT, PATCH, DELETE); the endpoint accepts GET only",
278
+ "value": {
279
+ "error": "Resource Not Found",
280
+ "message": "The requested resource could not be found. Please verify the URL and try again.",
281
+ "path": "/v1.0/domain/whois/reverse",
250
282
  "status": 404,
251
- "error": "Record not found",
252
- "message": "Record not found.",
283
+ "timestamp": "2026-11-20T11:13:14.136Z"
284
+ }
285
+ }
286
+ }
287
+ }
288
+ },
289
+ "headers": {
290
+ "X-AF-Credits-Cost": {
291
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
292
+ },
293
+ "X-Concurrent-Threads": {
294
+ "$ref": "#/components/headers/X-Concurrent-Threads"
295
+ },
296
+ "X-Concurrent-Threads-Active": {
297
+ "$ref": "#/components/headers/X-Concurrent-Threads-Active"
298
+ }
299
+ }
300
+ },
301
+ "401": {
302
+ "description": "Unauthorized -- Invalid, inactive or blocked API key, or no active subscription or credits",
303
+ "content": {
304
+ "application/json": {
305
+ "schema": {
306
+ "$ref": "#/components/schemas/ErrorResponse"
307
+ },
308
+ "examples": {
309
+ "invalidApiKey": {
310
+ "summary": "Invalid API key",
311
+ "value": {
312
+ "error": "API Access Exception",
313
+ "message": "Provided API key is invalid. [For Technical Support: support@apifreaks.com]",
314
+ "path": "/v1.0/domain/whois/reverse",
315
+ "status": 401,
316
+ "timestamp": "2026-11-20T11:12:57.844Z"
317
+ }
318
+ },
319
+ "inactiveApiKey": {
320
+ "summary": "Inactive API key",
321
+ "value": {
322
+ "error": "API Access Exception",
323
+ "message": "Provided API key is inactive.",
324
+ "path": "/v1.0/domain/whois/reverse",
325
+ "status": 401,
326
+ "timestamp": "2026-11-20T11:12:57.844Z"
327
+ }
328
+ },
329
+ "noSubscription": {
330
+ "summary": "No subscription plan or API credits",
331
+ "value": {
332
+ "error": "API Access Exception",
333
+ "message": "Please buy a subscription plan or add api credits, then use this api key.",
334
+ "path": "/v1.0/domain/whois/reverse",
335
+ "status": 401,
336
+ "timestamp": "2026-11-20T11:12:57.844Z"
337
+ }
338
+ },
339
+ "subscriptionDeactivated": {
340
+ "summary": "Subscription deactivated",
341
+ "value": {
342
+ "error": "API Access Exception",
343
+ "message": "Your subscription is deactivated. Please buy new plan or add api credits for using apifreaks APIs.",
344
+ "path": "/v1.0/domain/whois/reverse",
345
+ "status": 401,
346
+ "timestamp": "2026-11-20T11:12:57.844Z"
347
+ }
348
+ },
349
+ "subscriptionDeactivatedPaymentFailure": {
350
+ "summary": "Subscription deactivated after repeated payment failure",
351
+ "value": {
352
+ "error": "API Access Exception",
353
+ "message": "Your subscription is deactivated due to much time payment failure. Please buy a new plan or add api credits for using apifreaks APIs.",
354
+ "path": "/v1.0/domain/whois/reverse",
355
+ "status": 401,
356
+ "timestamp": "2026-11-20T11:12:57.844Z"
357
+ }
358
+ },
359
+ "accountDeactivated": {
360
+ "summary": "Account deactivated",
361
+ "value": {
362
+ "error": "API Access Exception",
363
+ "message": "Your account is deactivated.",
364
+ "path": "/v1.0/domain/whois/reverse",
365
+ "status": 401,
366
+ "timestamp": "2026-11-20T11:12:57.844Z"
367
+ }
368
+ },
369
+ "blockedSuspiciousActivity": {
370
+ "summary": "Blocked for suspicious activity",
371
+ "value": {
372
+ "error": "API Access Exception",
373
+ "message": "You are blocked due to suspicious activity.",
374
+ "path": "/v1.0/domain/whois/reverse",
375
+ "status": 401,
376
+ "timestamp": "2026-11-20T11:12:57.844Z"
377
+ }
378
+ },
379
+ "apiRecordNotFound": {
380
+ "summary": "API record not found",
381
+ "value": {
382
+ "error": "API Access Exception",
383
+ "message": "Api record not found.",
384
+ "path": "/v1.0/domain/whois/reverse",
385
+ "status": 401,
386
+ "timestamp": "2026-11-20T11:12:57.844Z"
387
+ }
388
+ },
389
+ "suspiciousActivity": {
390
+ "summary": "Suspicious activity",
391
+ "value": {
392
+ "error": "API Access Exception",
393
+ "message": "Suspicious Activity.",
394
+ "path": "/v1.0/domain/whois/reverse",
395
+ "status": 401,
396
+ "timestamp": "2026-11-20T11:12:57.844Z"
397
+ }
398
+ }
399
+ }
400
+ }
401
+ },
402
+ "headers": {
403
+ "X-AF-Credits-Cost": {
404
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
405
+ },
406
+ "X-Concurrent-Threads": {
407
+ "$ref": "#/components/headers/X-Concurrent-Threads"
408
+ },
409
+ "X-Concurrent-Threads-Active": {
410
+ "$ref": "#/components/headers/X-Concurrent-Threads-Active"
411
+ }
412
+ }
413
+ },
414
+ "406": {
415
+ "description": "Not Acceptable -- Unsupported format value",
416
+ "content": {
417
+ "application/json": {
418
+ "schema": {
419
+ "$ref": "#/components/schemas/ErrorResponse"
420
+ },
421
+ "examples": {
422
+ "unsupportedFormat": {
423
+ "summary": "Unsupported format value",
424
+ "value": {
425
+ "error": "Unsupported Media Type",
426
+ "message": "The media type specified in the request is not supported. For more details, please refer to the API documentation.",
427
+ "path": "/v1.0/domain/whois/reverse",
428
+ "status": 406,
429
+ "timestamp": "2026-11-20T11:13:10.159Z"
430
+ }
431
+ }
432
+ }
433
+ }
434
+ },
435
+ "headers": {
436
+ "X-AF-Credits-Cost": {
437
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
438
+ },
439
+ "X-Concurrent-Threads": {
440
+ "$ref": "#/components/headers/X-Concurrent-Threads"
441
+ },
442
+ "X-Concurrent-Threads-Active": {
443
+ "$ref": "#/components/headers/X-Concurrent-Threads-Active"
444
+ }
445
+ }
446
+ },
447
+ "412": {
448
+ "description": "Precondition Failed -- API plan request limit exceeded and subscription canceled",
449
+ "content": {
450
+ "application/json": {
451
+ "schema": {
452
+ "$ref": "#/components/schemas/ErrorResponse"
453
+ },
454
+ "examples": {
455
+ "planLimitExceeded": {
456
+ "summary": "API plan request limit exceeded",
457
+ "value": {
458
+ "timestamp": "2024-07-10T13:47:02.486Z",
459
+ "status": 412,
460
+ "error": "Fetching Whois Data Failed",
461
+ "message": "You have exceeded the limit of api plan requests and your subscription is canceled. [For Technical Support email at: support@apifreaks.com]",
462
+ "path": "/v1.0/domain/whois/reverse"
463
+ }
464
+ }
465
+ }
466
+ }
467
+ },
468
+ "headers": {
469
+ "X-AF-Credits-Cost": {
470
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
471
+ },
472
+ "X-Concurrent-Threads": {
473
+ "$ref": "#/components/headers/X-Concurrent-Threads"
474
+ },
475
+ "X-Concurrent-Threads-Active": {
476
+ "$ref": "#/components/headers/X-Concurrent-Threads-Active"
477
+ }
478
+ }
479
+ },
480
+ "413": {
481
+ "description": "Payload Too Large -- API credits or surcharge request limit exceeded",
482
+ "content": {
483
+ "application/json": {
484
+ "schema": {
485
+ "$ref": "#/components/schemas/ErrorResponse"
486
+ },
487
+ "examples": {
488
+ "surchargeLimitExceeded": {
489
+ "summary": "Surcharge request limit exceeded",
490
+ "value": {
491
+ "timestamp": "2024-07-10T13:47:02.486Z",
492
+ "status": 413,
493
+ "error": "Fetching Whois Data Failed",
494
+ "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]",
495
+ "path": "/v1.0/domain/whois/reverse"
496
+ }
497
+ },
498
+ "creditsLimitExceeded": {
499
+ "summary": "API credits request limit exceeded",
500
+ "value": {
501
+ "message": "You have exceeded the limit of api credits requests [allowed_request_no]. Please upgrade your plan."
502
+ }
503
+ },
504
+ "upgradePlan": {
505
+ "summary": "Upgrade required",
506
+ "value": {
507
+ "message": "Please upgrade your plans."
508
+ }
509
+ }
510
+ }
511
+ }
512
+ },
513
+ "headers": {
514
+ "X-AF-Credits-Cost": {
515
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
516
+ },
517
+ "X-Concurrent-Threads": {
518
+ "$ref": "#/components/headers/X-Concurrent-Threads"
519
+ },
520
+ "X-Concurrent-Threads-Active": {
521
+ "$ref": "#/components/headers/X-Concurrent-Threads-Active"
522
+ }
523
+ }
524
+ },
525
+ "429": {
526
+ "description": "Too Many Requests -- Per-minute request limit reached",
527
+ "content": {
528
+ "application/json": {
529
+ "schema": {
530
+ "$ref": "#/components/schemas/ErrorResponse"
531
+ },
532
+ "examples": {
533
+ "rateLimited": {
534
+ "summary": "Per-minute request limit reached",
535
+ "value": {
536
+ "timestamp": "2024-07-10T13:47:02.486Z",
537
+ "status": 429,
538
+ "error": "Fetching Whois Data Failed",
539
+ "message": "Please slow down. Your maximum request limit per minute reached.",
253
540
  "path": "/v1.0/domain/whois/reverse"
254
541
  }
255
542
  }
@@ -267,6 +554,163 @@
267
554
  "$ref": "#/components/headers/X-Concurrent-Threads-Active"
268
555
  }
269
556
  }
557
+ },
558
+ "499": {
559
+ "description": "Client Closed Request -- The client timeout is too short and the connection was closed before the response completed",
560
+ "content": {
561
+ "application/json": {
562
+ "schema": {
563
+ "$ref": "#/components/schemas/ErrorResponse"
564
+ },
565
+ "examples": {
566
+ "clientTimeout": {
567
+ "summary": "Client timeout too short",
568
+ "value": {
569
+ "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."
570
+ }
571
+ }
572
+ }
573
+ }
574
+ },
575
+ "headers": {
576
+ "X-AF-Credits-Cost": {
577
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
578
+ },
579
+ "X-Concurrent-Threads": {
580
+ "$ref": "#/components/headers/X-Concurrent-Threads"
581
+ },
582
+ "X-Concurrent-Threads-Active": {
583
+ "$ref": "#/components/headers/X-Concurrent-Threads-Active"
584
+ }
585
+ }
586
+ },
587
+ "500": {
588
+ "description": "Internal Server Error",
589
+ "content": {
590
+ "application/json": {
591
+ "schema": {
592
+ "$ref": "#/components/schemas/ErrorResponse"
593
+ },
594
+ "examples": {
595
+ "internalError": {
596
+ "summary": "Internal server error",
597
+ "value": {
598
+ "timestamp": "2024-07-10T13:47:02.486Z",
599
+ "status": 500,
600
+ "error": "Fetching Whois Data Failed",
601
+ "message": "Internal Server error occurred. [For Technical Support email at: support@apifreaks.com]",
602
+ "path": "/v1.0/domain/whois/reverse"
603
+ }
604
+ }
605
+ }
606
+ }
607
+ },
608
+ "headers": {
609
+ "X-AF-Credits-Cost": {
610
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
611
+ },
612
+ "X-Concurrent-Threads": {
613
+ "$ref": "#/components/headers/X-Concurrent-Threads"
614
+ },
615
+ "X-Concurrent-Threads-Active": {
616
+ "$ref": "#/components/headers/X-Concurrent-Threads-Active"
617
+ }
618
+ }
619
+ },
620
+ "503": {
621
+ "description": "Service Unavailable",
622
+ "content": {
623
+ "application/json": {
624
+ "schema": {
625
+ "$ref": "#/components/schemas/ErrorResponse"
626
+ },
627
+ "examples": {
628
+ "serviceUnavailable": {
629
+ "summary": "Service unavailable",
630
+ "value": {
631
+ "timestamp": "2024-07-10T13:47:02.486Z",
632
+ "status": 503,
633
+ "error": "Fetching Whois Data Failed",
634
+ "message": "Service is unavailable. Please try after some time. [For Technical Support email at: support@apifreaks.com]",
635
+ "path": "/v1.0/domain/whois/reverse"
636
+ }
637
+ }
638
+ }
639
+ }
640
+ },
641
+ "headers": {
642
+ "X-AF-Credits-Cost": {
643
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
644
+ },
645
+ "X-Concurrent-Threads": {
646
+ "$ref": "#/components/headers/X-Concurrent-Threads"
647
+ },
648
+ "X-Concurrent-Threads-Active": {
649
+ "$ref": "#/components/headers/X-Concurrent-Threads-Active"
650
+ }
651
+ }
652
+ },
653
+ "504": {
654
+ "description": "Gateway Timeout -- Request timed out",
655
+ "content": {
656
+ "application/json": {
657
+ "schema": {
658
+ "$ref": "#/components/schemas/ErrorResponse"
659
+ },
660
+ "examples": {
661
+ "timedOut": {
662
+ "summary": "Request timed out",
663
+ "value": {
664
+ "timestamp": "2024-07-10T13:47:02.486Z",
665
+ "status": 504,
666
+ "error": "Fetching Whois Data Failed",
667
+ "message": "Request is timed-out. [For Technical Support email at: support@apifreaks.com]",
668
+ "path": "/v1.0/domain/whois/reverse"
669
+ }
670
+ }
671
+ }
672
+ }
673
+ },
674
+ "headers": {
675
+ "X-AF-Credits-Cost": {
676
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
677
+ },
678
+ "X-Concurrent-Threads": {
679
+ "$ref": "#/components/headers/X-Concurrent-Threads"
680
+ },
681
+ "X-Concurrent-Threads-Active": {
682
+ "$ref": "#/components/headers/X-Concurrent-Threads-Active"
683
+ }
684
+ }
685
+ },
686
+ "505": {
687
+ "description": "HTTP Version Not Supported",
688
+ "content": {
689
+ "application/json": {
690
+ "schema": {
691
+ "$ref": "#/components/schemas/ErrorResponse"
692
+ },
693
+ "examples": {
694
+ "httpVersion": {
695
+ "summary": "Outdated HTTP version",
696
+ "value": {
697
+ "message": "You might be using an outdated HTTP version."
698
+ }
699
+ }
700
+ }
701
+ }
702
+ },
703
+ "headers": {
704
+ "X-AF-Credits-Cost": {
705
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
706
+ },
707
+ "X-Concurrent-Threads": {
708
+ "$ref": "#/components/headers/X-Concurrent-Threads"
709
+ },
710
+ "X-Concurrent-Threads-Active": {
711
+ "$ref": "#/components/headers/X-Concurrent-Threads-Active"
712
+ }
713
+ }
270
714
  }
271
715
  }
272
716
  }