@apifreaks/openapi-specs 0.4.19 → 0.4.21

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 (35) hide show
  1. package/dist/index.cjs +5142 -694
  2. package/dist/index.js +5142 -694
  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/screenshot/bulk-screenshot.yaml +464 -220
  9. package/dist/specs/screenshot/website-screenshot.yaml +467 -214
  10. package/dist/specs/timezone/timezone-converter.yaml +36 -8
  11. package/dist/specs/timezone/timezone-lookup.yaml +36 -10
  12. package/dist/specs/weather/time-series-weather.yaml +6 -7
  13. package/dist/specs/whois/asn-lookup.yaml +676 -37
  14. package/dist/specs/whois/bulk-whois-lookup.yaml +480 -2
  15. package/dist/specs/whois/domain-whois-history-lookup.yaml +222 -2
  16. package/dist/specs/whois/reverse-whois.yaml +316 -8
  17. package/dist/specs/whois/whois-domain-lookup.yaml +482 -11
  18. package/dist/specs/whois/whois-ip-lookup.yaml +306 -12
  19. package/package.json +1 -1
  20. package/specs/commodity/historical-commodity-prices.json +37 -11
  21. package/specs/dns/bulk-dns-lookup.json +274 -29
  22. package/specs/dns/dns-lookup.json +13 -2
  23. package/specs/financial/bulk-vat-rates-country.json +33 -4
  24. package/specs/geography/flags-supported.json +20 -13
  25. package/specs/screenshot/bulk-screenshot.json +537 -232
  26. package/specs/screenshot/website-screenshot.json +584 -247
  27. package/specs/timezone/timezone-converter.json +48 -8
  28. package/specs/timezone/timezone-lookup.json +53 -10
  29. package/specs/weather/time-series-weather.json +7 -7
  30. package/specs/whois/asn-lookup.json +878 -54
  31. package/specs/whois/bulk-whois-lookup.json +612 -2
  32. package/specs/whois/domain-whois-history-lookup.json +307 -2
  33. package/specs/whois/reverse-whois.json +453 -9
  34. package/specs/whois/whois-domain-lookup.json +632 -11
  35. package/specs/whois/whois-ip-lookup.json +424 -12
@@ -282,12 +282,88 @@ paths:
282
282
  X-AF-Credits-Cost:
283
283
  $ref: '#/components/headers/X-AF-Credits-Cost'
284
284
  '206':
285
- description: Partial Content — At least one domain in the batch returned an error; other domains in the same batch still resolved successfully
285
+ description: Partial Content — Either at least one domain in the batch returned an error (other domains in the same batch still resolved successfully), or the registry query succeeded but the registrar query failed so registrar-level details such as contact information may be missing; retry later for the full record
286
286
  content:
287
287
  application/json:
288
288
  schema:
289
289
  $ref: '#/components/schemas/BulkWhoisLookupResponse'
290
290
  examples:
291
+ registrarDetailsMissing:
292
+ summary: Registry query succeeded, registrar query failed (registrar-level details may be missing)
293
+ value:
294
+ bulk_whois_response:
295
+ - status: true
296
+ domain_name: whoisfreaks.com
297
+ query_time: '2024-07-11 13:48:23'
298
+ whois_server: whois.verisign-grs.com
299
+ domain_registered: 'yes'
300
+ create_date: '2019-03-19'
301
+ update_date: '2024-02-18'
302
+ expiry_date: '2025-03-19'
303
+ domain_registrar:
304
+ iana_id: '1068'
305
+ registrar_name: NAMECHEAP INC
306
+ whois_server: whois.namecheap.com
307
+ website_url: http://www.namecheap.com
308
+ email_address: abuse@namecheap.com
309
+ phone_number: '+1.9854014545'
310
+ reseller_contact:
311
+ name: NAMECHEAP INC
312
+ registrant_contact:
313
+ name: Redacted for Privacy
314
+ company: Privacy service provided by Withheld for Privacy ehf
315
+ street: Kalkofnsvegur 2
316
+ city: Reykjavik
317
+ state: Capital Region
318
+ zip_code: '101'
319
+ country_name: Iceland
320
+ country_code: IS
321
+ email_address: b8e54d7b11b347b285b60992e0889dde.protect@withheldforprivacy.com
322
+ phone: +354.4212434,
323
+ administrative_contact:
324
+ name: Redacted for Privacy
325
+ company: Privacy service provided by Withheld for Privacy ehf
326
+ street: Kalkofnsvegur 2
327
+ city: Reykjavik
328
+ state: Capital Region
329
+ zip_code: '101'
330
+ country_name: Iceland
331
+ country_code: IS
332
+ email_address: b8e54d7b11b347b285b60992e0889dde.protect@withheldforprivacy.com
333
+ phone: '+354.4212434'
334
+ technical_contact:
335
+ name: Redacted for Privacy
336
+ company: Privacy service provided by Withheld for Privacy ehf
337
+ street: Kalkofnsvegur 2
338
+ city: Reykjavik
339
+ state: Capital Region
340
+ zip_code: '101'
341
+ country_name: Iceland
342
+ country_code: IS
343
+ email_address: b8e54d7b11b347b285b60992e0889dde.protect@withheldforprivacy.com
344
+ phone: '+354.4212434'
345
+ name_servers:
346
+ - dns3.cloudns.net
347
+ - dns4.cloudns.net
348
+ - dns7.cloudns.net
349
+ - dns8.cloudns.net
350
+ domain_status:
351
+ - clientTransferProhibited
352
+ - status: true
353
+ domain_name: jfreaks.com
354
+ query_time: '2024-07-11 13:48:24'
355
+ whois_server: whois.verisign-grs.com
356
+ domain_registered: 'yes'
357
+ create_date: '2016-04-01'
358
+ update_date: '2024-02-01'
359
+ expiry_date: '2029-04-01'
360
+ domain_registrar:
361
+ iana_id: '82'
362
+ registrar_name: Onlinenic Inc
363
+ whois_server: whois.onlinenic.com
364
+ website_url: http://www.onlinenic.com
365
+ email_address: abuse@onlinenic.com
366
+ phone_number: '+1.5107698492'
291
367
  partialFailure:
292
368
  summary: One domain unsupported, one resolved
293
369
  value:
@@ -519,8 +595,215 @@ paths:
519
595
  headers:
520
596
  X-AF-Credits-Cost:
521
597
  $ref: '#/components/headers/X-AF-Credits-Cost'
598
+ '210':
599
+ description: Cached Response — Both the registry and the registrar queries failed, so the response is the latest record stored in the database rather than live data; retry later for current data
600
+ content:
601
+ application/json:
602
+ schema:
603
+ $ref: '#/components/schemas/BulkWhoisLookupResponse'
604
+ examples:
605
+ cachedResponse:
606
+ summary: Latest stored record returned instead of live data
607
+ value:
608
+ bulk_whois_response:
609
+ - status: true
610
+ domain_name: whoisfreaks.com
611
+ query_time: '2024-07-11 13:48:23'
612
+ whois_server: whois.verisign-grs.com
613
+ domain_registered: 'yes'
614
+ create_date: '2019-03-19'
615
+ update_date: '2024-02-18'
616
+ expiry_date: '2025-03-19'
617
+ domain_registrar:
618
+ iana_id: '1068'
619
+ registrar_name: NAMECHEAP INC
620
+ whois_server: whois.namecheap.com
621
+ website_url: http://www.namecheap.com
622
+ email_address: abuse@namecheap.com
623
+ phone_number: '+1.9854014545'
624
+ reseller_contact:
625
+ name: NAMECHEAP INC
626
+ email_address: N/A
627
+ phone: N/A
628
+ registrant_contact:
629
+ name: Redacted for Privacy
630
+ company: Privacy service provided by Withheld for Privacy ehf
631
+ street: Kalkofnsvegur 2
632
+ city: Reykjavik
633
+ state: Capital Region
634
+ zip_code: '101'
635
+ country_name: Iceland
636
+ country_code: IS
637
+ email_address: b8e54d7b11b347b285b60992e0889dde.protect@withheldforprivacy.com
638
+ phone: '+354.4212434'
639
+ fax: N/A
640
+ mailing_address: Kalkofnsvegur 2, 101 Reykjavik, Capital Region, Iceland
641
+ administrative_contact:
642
+ name: Redacted for Privacy
643
+ company: Privacy service provided by Withheld for Privacy ehf
644
+ street: Kalkofnsvegur 2
645
+ city: Reykjavik
646
+ state: Capital Region
647
+ zip_code: '101'
648
+ country_name: Iceland
649
+ country_code: IS
650
+ email_address: b8e54d7b11b347b285b60992e0889dde.protect@withheldforprivacy.com
651
+ phone: '+354.4212434'
652
+ fax: N/A
653
+ mailing_address: Kalkofnsvegur 2, 101 Reykjavik, Capital Region, Iceland
654
+ technical_contact:
655
+ name: Redacted for Privacy
656
+ company: Privacy service provided by Withheld for Privacy ehf
657
+ street: Kalkofnsvegur 2
658
+ city: Reykjavik
659
+ state: Capital Region
660
+ zip_code: '101'
661
+ country_name: Iceland
662
+ country_code: IS
663
+ email_address: b8e54d7b11b347b285b60992e0889dde.protect@withheldforprivacy.com
664
+ phone: '+354.4212434'
665
+ fax: N/A
666
+ mailing_address: Kalkofnsvegur 2, 101 Reykjavik, Capital Region, Iceland
667
+ billing_contact:
668
+ name: N/A
669
+ company: N/A
670
+ street: N/A
671
+ city: N/A
672
+ state: N/A
673
+ zip_code: N/A
674
+ country_name: N/A
675
+ country_code: N/A
676
+ email_address: N/A
677
+ phone: N/A
678
+ fax: N/A
679
+ mailing_address: N/A
680
+ name_servers:
681
+ - dns3.cloudns.net
682
+ - dns4.cloudns.net
683
+ - dns7.cloudns.net
684
+ - dns8.cloudns.net
685
+ domain_status:
686
+ - clientTransferProhibited
687
+ whois_raw_domain: Currently live lookup is not possible. It is the latest data in our database.
688
+ registry_data:
689
+ domain_name: WHOISFREAKS.COM
690
+ query_time: '2024-07-11 13:48:23'
691
+ whois_server: whois.verisign-grs.com
692
+ domain_registered: 'yes'
693
+ create_date: N/A
694
+ update_date: N/A
695
+ expiry_date: N/A
696
+ domain_registrar:
697
+ iana_id: '1068'
698
+ registrar_name: NameCheap, Inc.
699
+ whois_server: whois.namecheap.com
700
+ website_url: http://www.namecheap.com
701
+ email_address: abuse@namecheap.com
702
+ phone_number: '+1.6613102107'
703
+ name_servers:
704
+ - dns3.cloudns.net
705
+ - dns4.cloudns.net
706
+ - dns7.cloudns.net
707
+ - dns8.cloudns.net
708
+ domain_status:
709
+ - clientTransferProhibited
710
+ whois_raw_registery: Currently live lookup is not possible. It is the latest data in our database.
711
+ - status: true
712
+ domain_name: jfreaks.com
713
+ query_time: '2024-07-11 13:48:24'
714
+ whois_server: whois.verisign-grs.com
715
+ domain_registered: 'yes'
716
+ create_date: '2016-04-01'
717
+ update_date: '2024-02-01'
718
+ expiry_date: '2029-04-01'
719
+ domain_registrar:
720
+ iana_id: '82'
721
+ registrar_name: Onlinenic Inc
722
+ whois_server: whois.onlinenic.com
723
+ website_url: http://www.onlinenic.com
724
+ email_address: abuse@onlinenic.com
725
+ phone_number: '+1.5107698492'
726
+ registrant_contact:
727
+ name: Ejaz Ahmed
728
+ company: None
729
+ street: Lahore
730
+ city: Lahore
731
+ state: Punjab
732
+ zip_code: '54000'
733
+ country_name: Pakistan
734
+ country_code: PK
735
+ email_address: ejaz_ahmed@outlook.com
736
+ phone: '+92.3366009992'
737
+ fax: '+92.3366009992'
738
+ mailing_address: 54000 Lahore, Punjab, Pakistan
739
+ administrative_contact:
740
+ name: Ejaz Ahmed
741
+ company: None
742
+ street: Lahore
743
+ city: Lahore
744
+ state: Punjab
745
+ zip_code: '54000'
746
+ country_name: Pakistan
747
+ country_code: PK
748
+ email_address: ejaz_ahmed@outlook.com
749
+ phone: '+92.3366009992'
750
+ fax: '+92.3366009992'
751
+ mailing_address: 54000 Lahore, Punjab, Pakistan
752
+ technical_contact:
753
+ name: Ejaz Ahmed
754
+ company: None
755
+ street: Lahore
756
+ city: Lahore
757
+ state: Punjab
758
+ zip_code: '54000'
759
+ country_name: Pakistan
760
+ country_code: PK
761
+ email_address: ejaz_ahmed@outlook.com
762
+ phone: '+92.3366009992'
763
+ fax: '+92.3366009992'
764
+ mailing_address: 54000 Lahore, Punjab, Pakistan
765
+ billing_contact:
766
+ name: N/A
767
+ company: N/A
768
+ street: N/A
769
+ city: N/A
770
+ state: N/A
771
+ zip_code: N/A
772
+ country_name: N/A
773
+ country_code: N/A
774
+ email_address: N/A
775
+ phone: N/A
776
+ fax: N/A
777
+ mailing_address: N/A
778
+ name_servers:
779
+ - cheryl.ns.cloudflare.com
780
+ - nash.ns.cloudflare.com
781
+ domain_status:
782
+ - clientTransferProhibited
783
+ whois_raw_domain: Currently live lookup is not possible. It is the latest data in our database.
784
+ registry_data:
785
+ domain_name: JFREAKS.COM
786
+ query_time: '2024-07-11 13:48:23'
787
+ whois_server: whois.verisign-grs.com
788
+ domain_registered: 'yes'
789
+ create_date: N/A
790
+ update_date: N/A
791
+ expiry_date: N/A
792
+ domain_registrar:
793
+ iana_id: '82'
794
+ registrar_name: OnlineNIC, Inc.
795
+ whois_server: whois.onlinenic.com
796
+ website_url: http://www.onlinenic.com
797
+ email_address: abuse@onlinenic.com
798
+ phone_number: +1 833-678-1173
799
+ name_servers:
800
+ - cheryl.ns.cloudflare.com
801
+ - nash.ns.cloudflare.com
802
+ domain_status:
803
+ - clientTransferProhibited
804
+ whois_raw_registery: Currently live lookup is not possible. It is the latest data in our database.
522
805
  '400':
523
- description: Bad Request — Missing or malformed request body
806
+ description: Bad Request — Missing, empty or malformed request body (domainNames is required and must be a non-empty array), or missing API key
524
807
  content:
525
808
  application/json:
526
809
  schema:
@@ -534,9 +817,116 @@ paths:
534
817
  path: /v2.0/domain/whois/live
535
818
  status: 400
536
819
  timestamp: '2026-07-23T09:28:56.641Z'
820
+ missingApiKey:
821
+ summary: Missing API key
822
+ value:
823
+ error: Invalid Param Exception
824
+ message: Please provide apiKey
825
+ path: /v2.0/domain/whois/live
826
+ status: 400
827
+ timestamp: '2026-11-20T11:12:59.104Z'
537
828
  headers:
538
829
  X-AF-Credits-Cost:
539
830
  $ref: '#/components/headers/X-AF-Credits-Cost'
831
+ '401':
832
+ description: Unauthorized — API key invalid or inactive, or the account has no active subscription or credits
833
+ content:
834
+ application/json:
835
+ schema:
836
+ $ref: '#/components/schemas/ErrorResponse'
837
+ examples:
838
+ invalidApiKey:
839
+ summary: Invalid API key
840
+ value:
841
+ error: API Access Exception
842
+ message: 'Provided API key is invalid. [For Technical Support: support@apifreaks.com]'
843
+ path: /v2.0/domain/whois/live
844
+ status: 401
845
+ timestamp: '2026-11-20T11:13:00.452Z'
846
+ inactiveApiKey:
847
+ summary: Inactive API key
848
+ value:
849
+ error: API Access Exception
850
+ message: Provided API key is inactive.
851
+ path: /v2.0/domain/whois/live
852
+ status: 401
853
+ timestamp: '2026-07-10T13:47:02.486Z'
854
+ noSubscription:
855
+ summary: No subscription plan or credits
856
+ value:
857
+ error: API Access Exception
858
+ message: Please buy a subscription plan or add api credits, then use this api key.
859
+ path: /v2.0/domain/whois/live
860
+ status: 401
861
+ timestamp: '2026-07-10T13:47:02.486Z'
862
+ accountDeactivated:
863
+ summary: Account deactivated
864
+ value:
865
+ error: API Access Exception
866
+ message: Your account is deactivated.
867
+ path: /v2.0/domain/whois/live
868
+ status: 401
869
+ timestamp: '2026-07-10T13:47:02.486Z'
870
+ blockedSuspiciousActivity:
871
+ summary: Blocked for suspicious activity
872
+ value:
873
+ error: API Access Exception
874
+ message: You are blocked due to suspicious activity.
875
+ path: /v2.0/domain/whois/live
876
+ status: 401
877
+ timestamp: '2026-07-10T13:47:02.486Z'
878
+ '403':
879
+ description: Forbidden — The domain extension is not supported for WHOIS, or the domain belongs to an inactive TLD. In a batch request an unsupported extension is reported per entry inside a 206 response
880
+ content:
881
+ application/json:
882
+ schema:
883
+ $ref: '#/components/schemas/ErrorResponse'
884
+ examples:
885
+ domainExtensionNotSupported:
886
+ summary: Domain extension not supported
887
+ value:
888
+ error: Not Supported Domain extension
889
+ message: We are not providing the whois of this domain extension(comsdf)
890
+ path: /v2.0/domain/whois/live
891
+ status: 403
892
+ timestamp: '2026-07-10T13:47:02.486Z'
893
+ inactiveTld:
894
+ summary: Inactive TLD
895
+ value:
896
+ message: Provided domain belongs to an inactive TLD. Please try to use historical whois lookup.
897
+ path: /v2.0/domain/whois/live
898
+ status: 403
899
+ timestamp: '2026-07-10T13:47:02.486Z'
900
+ '406':
901
+ description: Not Acceptable — Unsupported response format
902
+ content:
903
+ application/json:
904
+ schema:
905
+ $ref: '#/components/schemas/ErrorResponse'
906
+ examples:
907
+ invalidFormat:
908
+ summary: Unsupported format value
909
+ value:
910
+ error: Unsupported Media Type
911
+ message: The media type specified in the request is not supported. For more details, please refer to the API documentation.
912
+ path: /v2.0/domain/whois/live
913
+ status: 406
914
+ timestamp: '2026-11-20T11:13:01.105Z'
915
+ '412':
916
+ description: Precondition Failed — The API plan request limit is exceeded and the subscription is canceled
917
+ content:
918
+ application/json:
919
+ schema:
920
+ $ref: '#/components/schemas/ErrorResponse'
921
+ examples:
922
+ planLimitExceeded:
923
+ summary: API plan request limit exceeded
924
+ value:
925
+ error: Fetching Whois Data Failed
926
+ message: 'You have exceeded the limit of api plan requests and your subscription is canceled. [For Technical Support email at: support@apifreaks.com]'
927
+ path: /v2.0/domain/whois/live
928
+ status: 412
929
+ timestamp: '2026-07-10T13:47:02.486Z'
540
930
  '413':
541
931
  description: Payload Too Large — Request exceeds the 100-domain batch limit
542
932
  content:
@@ -555,6 +945,94 @@ paths:
555
945
  headers:
556
946
  X-AF-Credits-Cost:
557
947
  $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
+ '499':
964
+ description: Client Closed Request — The request or connection timeout set by the client is too short
965
+ content:
966
+ application/json:
967
+ schema:
968
+ $ref: '#/components/schemas/ErrorResponse'
969
+ examples:
970
+ clientTimeoutTooShort:
971
+ summary: Client timeout too short
972
+ value:
973
+ 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.
974
+ path: /v2.0/domain/whois/live
975
+ status: 499
976
+ timestamp: '2026-07-10T13:47:02.486Z'
977
+ '500':
978
+ description: Internal Server Error
979
+ content:
980
+ application/json:
981
+ schema:
982
+ $ref: '#/components/schemas/ErrorResponse'
983
+ examples:
984
+ internalServerError:
985
+ summary: Internal server error
986
+ value:
987
+ error: Fetching Whois Data Failed
988
+ message: 'Internal Server error occurred. [For Technical Support email at: support@apifreaks.com]'
989
+ path: /v2.0/domain/whois/live
990
+ status: 500
991
+ timestamp: '2026-07-10T13:47:02.486Z'
992
+ '503':
993
+ description: Service Unavailable
994
+ content:
995
+ application/json:
996
+ schema:
997
+ $ref: '#/components/schemas/ErrorResponse'
998
+ examples:
999
+ serviceUnavailable:
1000
+ summary: Service unavailable
1001
+ value:
1002
+ error: Fetching Whois Data Failed
1003
+ message: 'Service is unavailable. Please try after some time. [For Technical Support email at: support@apifreaks.com]'
1004
+ path: /v2.0/domain/whois/live
1005
+ status: 503
1006
+ timestamp: '2026-07-10T13:47:02.486Z'
1007
+ '504':
1008
+ description: Gateway Timeout
1009
+ content:
1010
+ application/json:
1011
+ schema:
1012
+ $ref: '#/components/schemas/ErrorResponse'
1013
+ examples:
1014
+ requestTimedOut:
1015
+ summary: Request timed out
1016
+ value:
1017
+ error: Fetching Whois Data Failed
1018
+ message: 'Request is timed-out. [For Technical Support email at: support@apifreaks.com]'
1019
+ path: /v2.0/domain/whois/live
1020
+ status: 504
1021
+ timestamp: '2026-07-10T13:47:02.486Z'
1022
+ '505':
1023
+ description: HTTP Version Not Supported — The HTTP version used may be outdated
1024
+ content:
1025
+ application/json:
1026
+ schema:
1027
+ $ref: '#/components/schemas/ErrorResponse'
1028
+ examples:
1029
+ httpVersionNotSupported:
1030
+ summary: Outdated HTTP version
1031
+ value:
1032
+ message: You might be using an outdated HTTP version.
1033
+ path: /v2.0/domain/whois/live
1034
+ status: 505
1035
+ timestamp: '2026-07-10T13:47:02.486Z'
558
1036
  components:
559
1037
  securitySchemes:
560
1038
  ApiKeyAuthHeader: