@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
@@ -39,7 +39,7 @@
39
39
  "name": "ip",
40
40
  "in": "query",
41
41
  "required": true,
42
- "description": "IPv4 or IPv6 address to look up.",
42
+ "description": "IPv4 or IPv6 address to look up. Private, loopback and reserved addresses are not rejected: they return a 200 with the IANA special-use record.",
43
43
  "schema": {
44
44
  "type": "string"
45
45
  }
@@ -131,21 +131,39 @@
131
131
  }
132
132
  },
133
133
  "206": {
134
- "description": "Partial Content -- The WHOIS server returned an incomplete response. Some fields may be missing or truncated.",
134
+ "description": "Partial Content -- The registry query succeeded but the registrar query failed, so some details (for example contacts, routes or whois_raw_response) may be missing. Retry later for the full record.",
135
135
  "content": {
136
136
  "application/json": {
137
137
  "schema": {
138
- "$ref": "#/components/schemas/ErrorResponse"
138
+ "$ref": "#/components/schemas/IpWhoisPartialResponse"
139
139
  },
140
140
  "examples": {
141
141
  "partialResponse": {
142
- "summary": "Partial WHOIS response",
142
+ "summary": "Partial WHOIS response (inet_nums only)",
143
143
  "value": {
144
- "timestamp": "2025-08-14T09:25:32.271Z",
145
- "status": 206,
146
- "error": "Partial Response",
147
- "message": "Partial response due to an error occurred while processing the request.",
148
- "path": "/v1.0/ip/whois/live"
144
+ "status": true,
145
+ "ip_address": "8.8.8.8",
146
+ "query_time": "2024-02-01 07:50:47",
147
+ "whois_server": "whois.arin.net",
148
+ "inet_nums": [
149
+ {
150
+ "start_ip": "8.8.8.0",
151
+ "end_ip": "8.8.8.255",
152
+ "cidr": [
153
+ "8.8.8.0/24"
154
+ ],
155
+ "net_name": "GOGL",
156
+ "net_handle": "NET-8-8-8-0-2",
157
+ "status": "Direct Allocation",
158
+ "organization": "Google LLC (GOGL)",
159
+ "date_created": "2023-12-28",
160
+ "date_updated": "2023-12-28",
161
+ "source": "https://rdap.arin.net/registry/ip/8.8.8.0",
162
+ "parents": [
163
+ "NET8 (NET-8-0-0-0-0)"
164
+ ]
165
+ }
166
+ ]
149
167
  }
150
168
  }
151
169
  }
@@ -158,7 +176,7 @@
158
176
  }
159
177
  },
160
178
  "400": {
161
- "description": "Bad Request -- Missing or invalid ip parameter",
179
+ "description": "Bad Request -- Missing or invalid ip parameter, or no apiKey",
162
180
  "content": {
163
181
  "application/json": {
164
182
  "schema": {
@@ -184,6 +202,16 @@
184
202
  "message": "Request-param 'ip' (not-an-ip) is not an IP address",
185
203
  "path": "/v1.0/ip-whois"
186
204
  }
205
+ },
206
+ "missingApiKey": {
207
+ "summary": "Missing apiKey",
208
+ "value": {
209
+ "error": "Invalid Param Exception",
210
+ "message": "Please provide apiKey",
211
+ "path": "/v1.0/ip/whois/live",
212
+ "status": 400,
213
+ "timestamp": "2026-11-19T09:08:36.219Z"
214
+ }
187
215
  }
188
216
  }
189
217
  }
@@ -193,6 +221,337 @@
193
221
  "$ref": "#/components/headers/X-AF-Credits-Cost"
194
222
  }
195
223
  }
224
+ },
225
+ "401": {
226
+ "description": "Unauthorized -- invalid apiKey",
227
+ "content": {
228
+ "application/json": {
229
+ "schema": {
230
+ "$ref": "#/components/schemas/ErrorResponse"
231
+ },
232
+ "examples": {
233
+ "invalidApiKey": {
234
+ "summary": "Invalid apiKey",
235
+ "value": {
236
+ "error": "API Access Exception",
237
+ "message": "Provided API key is invalid. [For Technical Support: support@apifreaks.com]",
238
+ "path": "/v1.0/ip/whois/live",
239
+ "status": 401,
240
+ "timestamp": "2026-11-20T10:10:38.861Z"
241
+ }
242
+ },
243
+ "inactiveApiKey": {
244
+ "summary": "Inactive API key",
245
+ "value": {
246
+ "error": "API Access Exception",
247
+ "message": "Provided API key is inactive.",
248
+ "path": "/v1.0/ip/whois/live",
249
+ "status": 401,
250
+ "timestamp": "2026-11-20T10:10:38.861Z"
251
+ }
252
+ },
253
+ "noSubscription": {
254
+ "summary": "No subscription or credits",
255
+ "value": {
256
+ "error": "API Access Exception",
257
+ "message": "Please buy a subscription plan or add api credits, then use this api key.",
258
+ "path": "/v1.0/ip/whois/live",
259
+ "status": 401,
260
+ "timestamp": "2026-11-20T10:10:38.861Z"
261
+ }
262
+ },
263
+ "subscriptionDeactivated": {
264
+ "summary": "Subscription deactivated",
265
+ "value": {
266
+ "error": "API Access Exception",
267
+ "message": "Your subscription is deactivated. Please buy new plan or add api credits for using apifreaks APIs.",
268
+ "path": "/v1.0/ip/whois/live",
269
+ "status": 401,
270
+ "timestamp": "2026-11-20T10:10:38.861Z"
271
+ }
272
+ },
273
+ "subscriptionPaymentFailure": {
274
+ "summary": "Subscription deactivated after payment failures",
275
+ "value": {
276
+ "error": "API Access Exception",
277
+ "message": "Your subscription is deactivated due to much time payment failure. Please buy a new plan or add api credits for using apifreaks APIs.",
278
+ "path": "/v1.0/ip/whois/live",
279
+ "status": 401,
280
+ "timestamp": "2026-11-20T10:10:38.861Z"
281
+ }
282
+ },
283
+ "accountDeactivated": {
284
+ "summary": "Account deactivated",
285
+ "value": {
286
+ "error": "API Access Exception",
287
+ "message": "Your account is deactivated.",
288
+ "path": "/v1.0/ip/whois/live",
289
+ "status": 401,
290
+ "timestamp": "2026-11-20T10:10:38.861Z"
291
+ }
292
+ },
293
+ "blockedSuspiciousActivity": {
294
+ "summary": "Blocked for suspicious activity",
295
+ "value": {
296
+ "error": "API Access Exception",
297
+ "message": "You are blocked due to suspicious activity.",
298
+ "path": "/v1.0/ip/whois/live",
299
+ "status": 401,
300
+ "timestamp": "2026-11-20T10:10:38.861Z"
301
+ }
302
+ },
303
+ "apiRecordNotFound": {
304
+ "summary": "API record not found",
305
+ "value": {
306
+ "error": "API Access Exception",
307
+ "message": "Api record not found.",
308
+ "path": "/v1.0/ip/whois/live",
309
+ "status": 401,
310
+ "timestamp": "2026-11-20T10:10:38.861Z"
311
+ }
312
+ }
313
+ }
314
+ }
315
+ }
316
+ },
317
+ "406": {
318
+ "description": "Not Acceptable -- format is not json or xml",
319
+ "content": {
320
+ "application/json": {
321
+ "schema": {
322
+ "$ref": "#/components/schemas/ErrorResponse"
323
+ },
324
+ "examples": {
325
+ "invalidFormat": {
326
+ "summary": "Unsupported format",
327
+ "value": {
328
+ "error": "Unsupported Media Type",
329
+ "message": "The media type specified in the request is not supported. For more details, please refer to the API documentation.",
330
+ "path": "/v1.0/ip/whois/live",
331
+ "status": 406,
332
+ "timestamp": "2026-11-19T09:08:38.549Z"
333
+ }
334
+ }
335
+ }
336
+ }
337
+ },
338
+ "headers": {
339
+ "X-AF-Credits-Cost": {
340
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
341
+ }
342
+ }
343
+ },
344
+ "404": {
345
+ "description": "Not Found -- Gateway response when the endpoint is called with an HTTP method other than GET (POST, PUT and DELETE were verified live)",
346
+ "content": {
347
+ "application/json": {
348
+ "schema": {
349
+ "$ref": "#/components/schemas/ErrorResponse"
350
+ },
351
+ "examples": {
352
+ "resourceNotFound": {
353
+ "summary": "Wrong HTTP method or path",
354
+ "value": {
355
+ "error": "Resource Not Found",
356
+ "message": "The requested resource could not be found. Please verify the URL and try again.",
357
+ "path": "/v1.0/ip/whois/live",
358
+ "status": 404,
359
+ "timestamp": "2026-11-20T11:13:06.175Z"
360
+ }
361
+ }
362
+ }
363
+ }
364
+ }
365
+ },
366
+ "408": {
367
+ "description": "Request Timeout -- The WHOIS data could not be fetched",
368
+ "content": {
369
+ "application/json": {
370
+ "schema": {
371
+ "$ref": "#/components/schemas/ErrorResponse"
372
+ },
373
+ "examples": {
374
+ "fetchFailed": {
375
+ "summary": "Unable to fetch whois data",
376
+ "value": {
377
+ "timestamp": "2024-07-10T13:47:02.486Z",
378
+ "status": 408,
379
+ "error": "Fetching Whois Data Failed",
380
+ "message": "Unable to fetch whois data.Please try again [For Technical Support: support@apifreaks.com]",
381
+ "path": "/v1.0/ip/whois/live"
382
+ }
383
+ }
384
+ }
385
+ }
386
+ }
387
+ },
388
+ "412": {
389
+ "description": "Precondition Failed -- The API plan request limit is exceeded and the subscription is canceled",
390
+ "content": {
391
+ "application/json": {
392
+ "schema": {
393
+ "$ref": "#/components/schemas/ErrorResponse"
394
+ },
395
+ "examples": {
396
+ "planLimitExceeded": {
397
+ "summary": "API plan request limit exceeded",
398
+ "value": {
399
+ "timestamp": "2024-07-10T13:47:02.486Z",
400
+ "status": 412,
401
+ "error": "Fetching Whois Data Failed",
402
+ "message": "You have exceeded the limit of api plan requests and your subscription is canceled. [For Technical Support email at: support@apifreaks.com]",
403
+ "path": "/v1.0/ip/whois/live"
404
+ }
405
+ }
406
+ }
407
+ }
408
+ }
409
+ },
410
+ "413": {
411
+ "description": "Payload Too Large -- A request or surcharge limit is exceeded",
412
+ "content": {
413
+ "application/json": {
414
+ "schema": {
415
+ "$ref": "#/components/schemas/ErrorResponse"
416
+ },
417
+ "examples": {
418
+ "surchargeLimitExceeded": {
419
+ "summary": "Surcharge request limit exceeded",
420
+ "value": {
421
+ "timestamp": "2024-07-10T13:47:02.486Z",
422
+ "status": 413,
423
+ "error": "Fetching Whois Data Failed",
424
+ "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]",
425
+ "path": "/v1.0/ip/whois/live"
426
+ }
427
+ }
428
+ }
429
+ }
430
+ }
431
+ },
432
+ "429": {
433
+ "description": "Too Many Requests -- The per-minute request limit is reached",
434
+ "content": {
435
+ "application/json": {
436
+ "schema": {
437
+ "$ref": "#/components/schemas/ErrorResponse"
438
+ },
439
+ "examples": {
440
+ "rateLimited": {
441
+ "summary": "Per-minute request limit reached",
442
+ "value": {
443
+ "timestamp": "2024-07-10T13:47:02.486Z",
444
+ "status": 429,
445
+ "error": "Fetching Whois Data Failed",
446
+ "message": "Please slow down. Your maximum request limit per minute reached.",
447
+ "path": "/v1.0/ip/whois/live"
448
+ }
449
+ }
450
+ }
451
+ }
452
+ }
453
+ },
454
+ "499": {
455
+ "description": "Client Closed Request -- The request or connection timeout set by the client is too short",
456
+ "content": {
457
+ "application/json": {
458
+ "schema": {
459
+ "$ref": "#/components/schemas/ErrorResponse"
460
+ },
461
+ "examples": {
462
+ "clientTimeoutTooShort": {
463
+ "summary": "Client timeout too short",
464
+ "value": {
465
+ "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."
466
+ }
467
+ }
468
+ }
469
+ }
470
+ }
471
+ },
472
+ "500": {
473
+ "description": "Internal Server Error",
474
+ "content": {
475
+ "application/json": {
476
+ "schema": {
477
+ "$ref": "#/components/schemas/ErrorResponse"
478
+ },
479
+ "examples": {
480
+ "internalServerError": {
481
+ "summary": "Internal server error",
482
+ "value": {
483
+ "timestamp": "2024-07-10T13:47:02.486Z",
484
+ "status": 500,
485
+ "error": "Fetching Whois Data Failed",
486
+ "message": "Internal Server error occurred. [For Technical Support email at: support@apifreaks.com]",
487
+ "path": "/v1.0/ip/whois/live"
488
+ }
489
+ }
490
+ }
491
+ }
492
+ }
493
+ },
494
+ "503": {
495
+ "description": "Service Unavailable",
496
+ "content": {
497
+ "application/json": {
498
+ "schema": {
499
+ "$ref": "#/components/schemas/ErrorResponse"
500
+ },
501
+ "examples": {
502
+ "serviceUnavailable": {
503
+ "summary": "Service unavailable",
504
+ "value": {
505
+ "timestamp": "2024-07-10T13:47:02.486Z",
506
+ "status": 503,
507
+ "error": "Fetching Whois Data Failed",
508
+ "message": "Service is unavailable. Please try after some time. [For Technical Support email at: support@apifreaks.com]",
509
+ "path": "/v1.0/ip/whois/live"
510
+ }
511
+ }
512
+ }
513
+ }
514
+ }
515
+ },
516
+ "504": {
517
+ "description": "Gateway Timeout -- The request timed out",
518
+ "content": {
519
+ "application/json": {
520
+ "schema": {
521
+ "$ref": "#/components/schemas/ErrorResponse"
522
+ },
523
+ "examples": {
524
+ "requestTimedOut": {
525
+ "summary": "Request timed out",
526
+ "value": {
527
+ "timestamp": "2024-07-10T13:47:02.486Z",
528
+ "status": 504,
529
+ "error": "Fetching Whois Data Failed",
530
+ "message": "Request is timed-out. [For Technical Support email at: support@apifreaks.com]",
531
+ "path": "/v1.0/ip/whois/live"
532
+ }
533
+ }
534
+ }
535
+ }
536
+ }
537
+ },
538
+ "505": {
539
+ "description": "HTTP Version Not Supported",
540
+ "content": {
541
+ "application/json": {
542
+ "schema": {
543
+ "$ref": "#/components/schemas/ErrorResponse"
544
+ },
545
+ "examples": {
546
+ "httpVersionNotSupported": {
547
+ "summary": "Outdated HTTP version",
548
+ "value": {
549
+ "message": "You might be using an outdated HTTP version."
550
+ }
551
+ }
552
+ }
553
+ }
554
+ }
196
555
  }
197
556
  }
198
557
  }
@@ -214,6 +573,52 @@
214
573
  }
215
574
  },
216
575
  "schemas": {
576
+ "IpWhoisPartialResponse": {
577
+ "type": "object",
578
+ "description": "Partial WHOIS response (HTTP 206). Same shape as IpWhoisResponse, but only the fields the registry returned are present; whois_raw_response, the organization and the contact lists may be missing.",
579
+ "required": ["status", "ip_address", "query_time", "whois_server", "inet_nums"],
580
+ "properties": {
581
+ "status": {
582
+ "$ref": "#/components/schemas/IpWhoisResponse/properties/status"
583
+ },
584
+ "ip_address": {
585
+ "$ref": "#/components/schemas/IpWhoisResponse/properties/ip_address"
586
+ },
587
+ "query_time": {
588
+ "$ref": "#/components/schemas/IpWhoisResponse/properties/query_time"
589
+ },
590
+ "whois_server": {
591
+ "$ref": "#/components/schemas/IpWhoisResponse/properties/whois_server"
592
+ },
593
+ "inet_nums": {
594
+ "$ref": "#/components/schemas/IpWhoisResponse/properties/inet_nums"
595
+ },
596
+ "irt": {
597
+ "$ref": "#/components/schemas/IpWhoisResponse/properties/irt"
598
+ },
599
+ "organization": {
600
+ "$ref": "#/components/schemas/IpWhoisResponse/properties/organization"
601
+ },
602
+ "administrative_contacts": {
603
+ "$ref": "#/components/schemas/IpWhoisResponse/properties/administrative_contacts"
604
+ },
605
+ "technical_contacts": {
606
+ "$ref": "#/components/schemas/IpWhoisResponse/properties/technical_contacts"
607
+ },
608
+ "abuse_contacts": {
609
+ "$ref": "#/components/schemas/IpWhoisResponse/properties/abuse_contacts"
610
+ },
611
+ "routes": {
612
+ "$ref": "#/components/schemas/IpWhoisResponse/properties/routes"
613
+ },
614
+ "whois_raw_response": {
615
+ "$ref": "#/components/schemas/IpWhoisResponse/properties/whois_raw_response"
616
+ },
617
+ "r_whois_raw_response": {
618
+ "$ref": "#/components/schemas/IpWhoisResponse/properties/r_whois_raw_response"
619
+ }
620
+ }
621
+ },
217
622
  "ErrorResponse": {
218
623
  "type": "object",
219
624
  "required": ["message"],
@@ -254,7 +659,7 @@
254
659
  "properties": {
255
660
  "status": {
256
661
  "type": "boolean",
257
- "description": "Indicates whether the WHOIS response from the WHOIS server is complete."
662
+ "description": "true when the record from the WHOIS server is complete. A different field from status inside inet_nums."
258
663
  },
259
664
  "ip_address": {
260
665
  "type": "string",
@@ -281,6 +686,13 @@
281
686
  "organization": {
282
687
  "$ref": "#/components/schemas/IpWhoisOrganization"
283
688
  },
689
+ "administrative_contacts": {
690
+ "type": "array",
691
+ "description": "Administrative contact persons or roles for this IP allocation. Returned by RIPE NCC, APNIC, LACNIC and AFRINIC; not returned by ARIN.",
692
+ "items": {
693
+ "$ref": "#/components/schemas/WhoisContactRef"
694
+ }
695
+ },
284
696
  "technical_contacts": {
285
697
  "type": "array",
286
698
  "description": "Technical contact persons or roles for this IP allocation.",
@@ -989,7 +1401,7 @@
989
1401
  "RouteObject": {
990
1402
  "type": "object",
991
1403
  "description": "BGP route object containing the route prefix, origin AS, and related metadata.",
992
- "required": [],
1404
+ "required": ["source"],
993
1405
  "properties": {
994
1406
  "route": {
995
1407
  "type": ["string", "null"],