@apifreaks/openapi-specs 0.4.20 → 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 (31) hide show
  1. package/dist/index.cjs +4020 -214
  2. package/dist/index.js +4020 -214
  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/timezone/timezone-converter.yaml +36 -8
  9. package/dist/specs/timezone/timezone-lookup.yaml +36 -10
  10. package/dist/specs/weather/time-series-weather.yaml +6 -7
  11. package/dist/specs/whois/asn-lookup.yaml +676 -37
  12. package/dist/specs/whois/bulk-whois-lookup.yaml +480 -2
  13. package/dist/specs/whois/domain-whois-history-lookup.yaml +222 -2
  14. package/dist/specs/whois/reverse-whois.yaml +316 -8
  15. package/dist/specs/whois/whois-domain-lookup.yaml +482 -11
  16. package/dist/specs/whois/whois-ip-lookup.yaml +306 -12
  17. package/package.json +1 -1
  18. package/specs/commodity/historical-commodity-prices.json +37 -11
  19. package/specs/dns/bulk-dns-lookup.json +274 -29
  20. package/specs/dns/dns-lookup.json +13 -2
  21. package/specs/financial/bulk-vat-rates-country.json +33 -4
  22. package/specs/geography/flags-supported.json +20 -13
  23. package/specs/timezone/timezone-converter.json +48 -8
  24. package/specs/timezone/timezone-lookup.json +53 -10
  25. package/specs/weather/time-series-weather.json +7 -7
  26. package/specs/whois/asn-lookup.json +878 -54
  27. package/specs/whois/bulk-whois-lookup.json +612 -2
  28. package/specs/whois/domain-whois-history-lookup.json +307 -2
  29. package/specs/whois/reverse-whois.json +453 -9
  30. package/specs/whois/whois-domain-lookup.json +632 -11
  31. package/specs/whois/whois-ip-lookup.json +424 -12
@@ -124,7 +124,7 @@
124
124
  }
125
125
  },
126
126
  "400": {
127
- "description": "Bad Request — Invalid domainName parameter",
127
+ "description": "Bad Request — Missing or invalid domainName parameter, or missing apiKey",
128
128
  "content": {
129
129
  "application/json": {
130
130
  "schema": {
@@ -137,9 +137,29 @@
137
137
  "timestamp": "2026-07-23T07:47:39.105Z",
138
138
  "status": 400,
139
139
  "error": "Invalid Param Exception",
140
- "message": "Please pass domain param correct value [For Technical Support: support@whoisfreaks.com]",
140
+ "message": "Please pass domain param correct value [For Technical Support: support@apifreaks.com]",
141
141
  "path": "/v1.0/whois"
142
142
  }
143
+ },
144
+ "missingDomain": {
145
+ "summary": "Missing or empty domainName parameter",
146
+ "value": {
147
+ "error": "Invalid Param Exception",
148
+ "message": "please pass correct parameters",
149
+ "path": "/v1.0/domain/whois/history",
150
+ "status": 400,
151
+ "timestamp": "2026-11-20T11:12:56.465Z"
152
+ }
153
+ },
154
+ "missingApiKey": {
155
+ "summary": "Missing apiKey",
156
+ "value": {
157
+ "error": "Invalid Param Exception",
158
+ "message": "Please provide apiKey",
159
+ "path": "/v1.0/domain/whois/history",
160
+ "status": 400,
161
+ "timestamp": "2026-11-20T11:12:59.785Z"
162
+ }
143
163
  }
144
164
  }
145
165
  }
@@ -176,6 +196,291 @@
176
196
  "$ref": "#/components/headers/X-AF-Credits-Cost"
177
197
  }
178
198
  }
199
+ },
200
+ "401": {
201
+ "description": "Unauthorized — API key invalid or inactive, no subscription or credits, deactivated subscription or account, or suspicious activity",
202
+ "content": {
203
+ "application/json": {
204
+ "schema": {
205
+ "$ref": "#/components/schemas/ErrorResponse"
206
+ },
207
+ "examples": {
208
+ "invalidApiKey": {
209
+ "summary": "Invalid API key",
210
+ "value": {
211
+ "error": "API Access Exception",
212
+ "message": "Provided API key is invalid. [For Technical Support: support@apifreaks.com]",
213
+ "path": "/v1.0/domain/whois/history",
214
+ "status": 401,
215
+ "timestamp": "2026-11-20T11:13:00.576Z"
216
+ }
217
+ },
218
+ "inactiveApiKey": {
219
+ "summary": "Inactive API key",
220
+ "value": {
221
+ "error": "API Access Exception",
222
+ "message": "Provided API key is inactive.",
223
+ "path": "/v1.0/domain/whois/history",
224
+ "status": 401,
225
+ "timestamp": "2026-11-20T11:13:00.576Z"
226
+ }
227
+ },
228
+ "noSubscription": {
229
+ "summary": "No subscription plan or credits",
230
+ "value": {
231
+ "error": "API Access Exception",
232
+ "message": "Please buy a subscription plan or add api credits, then use this api key.",
233
+ "path": "/v1.0/domain/whois/history",
234
+ "status": 401,
235
+ "timestamp": "2026-11-20T11:13:00.576Z"
236
+ }
237
+ },
238
+ "subscriptionDeactivated": {
239
+ "summary": "Subscription deactivated",
240
+ "value": {
241
+ "error": "API Access Exception",
242
+ "message": "Your subscription is deactivated. Please buy new plan or add api credits for using apifreaks APIs.",
243
+ "path": "/v1.0/domain/whois/history",
244
+ "status": 401,
245
+ "timestamp": "2026-11-20T11:13:00.576Z"
246
+ }
247
+ },
248
+ "subscriptionDeactivatedPaymentFailure": {
249
+ "summary": "Subscription deactivated after repeated payment failure",
250
+ "value": {
251
+ "error": "API Access Exception",
252
+ "message": "Your subscription is deactivated due to much time payment failure. Please buy a new plan or add api credits for using apifreaks APIs.",
253
+ "path": "/v1.0/domain/whois/history",
254
+ "status": 401,
255
+ "timestamp": "2026-11-20T11:13:00.576Z"
256
+ }
257
+ },
258
+ "accountDeactivated": {
259
+ "summary": "Account deactivated",
260
+ "value": {
261
+ "error": "API Access Exception",
262
+ "message": "Your account is deactivated.",
263
+ "path": "/v1.0/domain/whois/history",
264
+ "status": 401,
265
+ "timestamp": "2026-11-20T11:13:00.576Z"
266
+ }
267
+ },
268
+ "blockedSuspiciousActivity": {
269
+ "summary": "Blocked for suspicious activity",
270
+ "value": {
271
+ "error": "API Access Exception",
272
+ "message": "You are blocked due to suspicious activity.",
273
+ "path": "/v1.0/domain/whois/history",
274
+ "status": 401,
275
+ "timestamp": "2026-11-20T11:13:00.576Z"
276
+ }
277
+ },
278
+ "apiRecordNotFound": {
279
+ "summary": "API record not found",
280
+ "value": {
281
+ "error": "API Access Exception",
282
+ "message": "Api record not found.",
283
+ "path": "/v1.0/domain/whois/history",
284
+ "status": 401,
285
+ "timestamp": "2026-11-20T11:13:00.576Z"
286
+ }
287
+ },
288
+ "suspiciousActivity": {
289
+ "summary": "Suspicious activity",
290
+ "value": {
291
+ "error": "API Access Exception",
292
+ "message": "Suspicious Activity.",
293
+ "path": "/v1.0/domain/whois/history",
294
+ "status": 401,
295
+ "timestamp": "2026-11-20T11:13:00.576Z"
296
+ }
297
+ }
298
+ }
299
+ }
300
+ }
301
+ },
302
+ "412": {
303
+ "description": "Precondition Failed — API plan request limit exceeded and the subscription is canceled",
304
+ "content": {
305
+ "application/json": {
306
+ "schema": {
307
+ "$ref": "#/components/schemas/ErrorResponse"
308
+ },
309
+ "examples": {
310
+ "planLimitExceeded": {
311
+ "summary": "API plan request limit exceeded",
312
+ "value": {
313
+ "timestamp": "2024-07-10T13:47:02.486Z",
314
+ "status": 412,
315
+ "error": "Fetching Whois Data Failed",
316
+ "message": "You have exceeded the limit of api plan requests and your subscription is canceled. [For Technical Support email at: support@apifreaks.com]",
317
+ "path": "/v1.0/domain/whois/history"
318
+ }
319
+ }
320
+ }
321
+ }
322
+ }
323
+ },
324
+ "413": {
325
+ "description": "Payload Too Large — API credit or surcharge request limit exceeded",
326
+ "content": {
327
+ "application/json": {
328
+ "schema": {
329
+ "$ref": "#/components/schemas/ErrorResponse"
330
+ },
331
+ "examples": {
332
+ "surchargeLimitExceeded": {
333
+ "summary": "Surcharge request limit exceeded",
334
+ "value": {
335
+ "timestamp": "2024-07-10T13:47:02.486Z",
336
+ "status": 413,
337
+ "error": "Fetching Whois Data Failed",
338
+ "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]",
339
+ "path": "/v1.0/domain/whois/history"
340
+ }
341
+ },
342
+ "creditLimitExceeded": {
343
+ "summary": "API credit request limit exceeded",
344
+ "value": {
345
+ "message": "You have exceeded the limit of api credits requests [allowed_request_no]. Please upgrade your plan.",
346
+ "path": "/v1.0/domain/whois/history",
347
+ "status": 413,
348
+ "timestamp": "2026-11-20T11:13:00.576Z"
349
+ }
350
+ }
351
+ }
352
+ }
353
+ }
354
+ },
355
+ "429": {
356
+ "description": "Too Many Requests — Per-minute request limit reached",
357
+ "content": {
358
+ "application/json": {
359
+ "schema": {
360
+ "$ref": "#/components/schemas/ErrorResponse"
361
+ },
362
+ "examples": {
363
+ "rateLimited": {
364
+ "summary": "Request limit per minute reached",
365
+ "value": {
366
+ "timestamp": "2024-07-10T13:47:02.486Z",
367
+ "status": 429,
368
+ "error": "Fetching Whois Data Failed",
369
+ "message": "Please slow down. Your maximum request limit per minute reached.",
370
+ "path": "/v1.0/domain/whois/history"
371
+ }
372
+ }
373
+ }
374
+ }
375
+ }
376
+ },
377
+ "499": {
378
+ "description": "Client Closed Request — The client timeout is too short and the connection was closed before the response completed",
379
+ "content": {
380
+ "application/json": {
381
+ "schema": {
382
+ "$ref": "#/components/schemas/ErrorResponse"
383
+ },
384
+ "examples": {
385
+ "clientTimeoutTooShort": {
386
+ "summary": "Client timeout too short",
387
+ "value": {
388
+ "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.",
389
+ "path": "/v1.0/domain/whois/history",
390
+ "status": 499,
391
+ "timestamp": "2026-11-20T11:13:00.576Z"
392
+ }
393
+ }
394
+ }
395
+ }
396
+ }
397
+ },
398
+ "500": {
399
+ "description": "Internal Server Error",
400
+ "content": {
401
+ "application/json": {
402
+ "schema": {
403
+ "$ref": "#/components/schemas/ErrorResponse"
404
+ },
405
+ "examples": {
406
+ "internalServerError": {
407
+ "summary": "Internal server error",
408
+ "value": {
409
+ "timestamp": "2024-07-10T13:47:02.486Z",
410
+ "status": 500,
411
+ "error": "Fetching Whois Data Failed",
412
+ "message": "Internal Server error occurred. [For Technical Support email at: support@apifreaks.com]",
413
+ "path": "/v1.0/domain/whois/history"
414
+ }
415
+ }
416
+ }
417
+ }
418
+ }
419
+ },
420
+ "503": {
421
+ "description": "Service Unavailable",
422
+ "content": {
423
+ "application/json": {
424
+ "schema": {
425
+ "$ref": "#/components/schemas/ErrorResponse"
426
+ },
427
+ "examples": {
428
+ "serviceUnavailable": {
429
+ "summary": "Service unavailable",
430
+ "value": {
431
+ "timestamp": "2024-07-10T13:47:02.486Z",
432
+ "status": 503,
433
+ "error": "Fetching Whois Data Failed",
434
+ "message": "Service is unavailable. Please try after some time. [For Technical Support email at: support@apifreaks.com]",
435
+ "path": "/v1.0/domain/whois/history"
436
+ }
437
+ }
438
+ }
439
+ }
440
+ }
441
+ },
442
+ "504": {
443
+ "description": "Gateway Timeout — The request timed out",
444
+ "content": {
445
+ "application/json": {
446
+ "schema": {
447
+ "$ref": "#/components/schemas/ErrorResponse"
448
+ },
449
+ "examples": {
450
+ "requestTimedOut": {
451
+ "summary": "Request timed out",
452
+ "value": {
453
+ "timestamp": "2024-07-10T13:47:02.486Z",
454
+ "status": 504,
455
+ "error": "Fetching Whois Data Failed",
456
+ "message": "Request is timed-out. [For Technical Support email at: support@apifreaks.com]",
457
+ "path": "/v1.0/domain/whois/history"
458
+ }
459
+ }
460
+ }
461
+ }
462
+ }
463
+ },
464
+ "505": {
465
+ "description": "HTTP Version Not Supported — The HTTP version used is outdated",
466
+ "content": {
467
+ "application/json": {
468
+ "schema": {
469
+ "$ref": "#/components/schemas/ErrorResponse"
470
+ },
471
+ "examples": {
472
+ "httpVersionNotSupported": {
473
+ "summary": "Outdated HTTP version",
474
+ "value": {
475
+ "message": "You might be using an outdated HTTP version.",
476
+ "path": "/v1.0/domain/whois/history",
477
+ "status": 505,
478
+ "timestamp": "2026-11-20T11:13:00.576Z"
479
+ }
480
+ }
481
+ }
482
+ }
483
+ }
179
484
  }
180
485
  }
181
486
  }