@apifreaks/openapi-specs 0.4.24 → 0.4.25

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 (67) hide show
  1. package/dist/index.cjs +3722 -546
  2. package/dist/index.js +3722 -546
  3. package/dist/specs/commodity/commodity-fluctuation.yaml +33 -2
  4. package/dist/specs/commodity/commodity-intraday-rates.yaml +33 -2
  5. package/dist/specs/commodity/commodity-prices.yaml +33 -2
  6. package/dist/specs/commodity/commodity-symbols.yaml +68 -1
  7. package/dist/specs/commodity/commodity-time-series.yaml +33 -2
  8. package/dist/specs/commodity/historical-commodity-prices.yaml +33 -2
  9. package/dist/specs/dns/bulk-dns-lookup.yaml +45 -3
  10. package/dist/specs/dns/dns-history-lookup.yaml +76 -3
  11. package/dist/specs/dns/dns-lookup.yaml +72 -6
  12. package/dist/specs/dns/reverse-dns-lookup.yaml +91 -2
  13. package/dist/specs/financial/bulk-vat-rates-country.yaml +18 -0
  14. package/dist/specs/financial/financial-apis-supported-countries.yaml +75 -17
  15. package/dist/specs/financial/iban-validation.yaml +19 -1
  16. package/dist/specs/financial/swift-code-finder.yaml +18 -0
  17. package/dist/specs/financial/swift-code-lookup.yaml +18 -0
  18. package/dist/specs/financial/vat-number-validation.yaml +48 -0
  19. package/dist/specs/financial/vat-rates-by-ip.yaml +18 -0
  20. package/dist/specs/financial/vat-rates-country.yaml +18 -0
  21. package/dist/specs/geocoding/forward-geocoding.yaml +95 -2
  22. package/dist/specs/geocoding/reverse-geocoding.yaml +71 -0
  23. package/dist/specs/phone-number-validation/bulk-phone-number-validation.yaml +25 -3
  24. package/dist/specs/phone-number-validation/phone-validation.yaml +49 -3
  25. package/dist/specs/scraper/web-scraper.yaml +85 -7
  26. package/dist/specs/weather/air-quality.yaml +71 -5
  27. package/dist/specs/weather/astronomy-data.yaml +84 -1
  28. package/dist/specs/weather/bulk-live-weather.yaml +159 -3
  29. package/dist/specs/weather/flood-forecast.yaml +61 -11
  30. package/dist/specs/weather/historical-weather.yaml +53 -3
  31. package/dist/specs/weather/live-weather.yaml +66 -15
  32. package/dist/specs/weather/marine-weather.yaml +74 -8
  33. package/dist/specs/weather/time-series-weather.yaml +60 -8
  34. package/dist/specs/weather/weather-forecast.yaml +76 -6
  35. package/package.json +1 -1
  36. package/specs/commodity/commodity-fluctuation.json +44 -2
  37. package/specs/commodity/commodity-intraday-rates.json +44 -2
  38. package/specs/commodity/commodity-prices.json +44 -2
  39. package/specs/commodity/commodity-symbols.json +95 -1
  40. package/specs/commodity/commodity-time-series.json +44 -2
  41. package/specs/commodity/historical-commodity-prices.json +44 -2
  42. package/specs/dns/bulk-dns-lookup.json +63 -4
  43. package/specs/dns/dns-history-lookup.json +102 -3
  44. package/specs/dns/dns-lookup.json +96 -6
  45. package/specs/dns/reverse-dns-lookup.json +121 -2
  46. package/specs/financial/bulk-vat-rates-country.json +27 -0
  47. package/specs/financial/financial-apis-supported-countries.json +114 -23
  48. package/specs/financial/iban-validation.json +28 -1
  49. package/specs/financial/swift-code-finder.json +27 -0
  50. package/specs/financial/swift-code-lookup.json +27 -0
  51. package/specs/financial/vat-number-validation.json +72 -0
  52. package/specs/financial/vat-rates-by-ip.json +27 -0
  53. package/specs/financial/vat-rates-country.json +27 -0
  54. package/specs/geocoding/forward-geocoding.json +127 -2
  55. package/specs/geocoding/reverse-geocoding.json +102 -0
  56. package/specs/phone-number-validation/bulk-phone-number-validation.json +35 -3
  57. package/specs/phone-number-validation/phone-validation.json +65 -3
  58. package/specs/scraper/web-scraper.json +110 -7
  59. package/specs/weather/air-quality.json +92 -5
  60. package/specs/weather/astronomy-data.json +122 -1
  61. package/specs/weather/bulk-live-weather.json +227 -3
  62. package/specs/weather/flood-forecast.json +78 -11
  63. package/specs/weather/historical-weather.json +70 -3
  64. package/specs/weather/live-weather.json +85 -17
  65. package/specs/weather/marine-weather.json +95 -8
  66. package/specs/weather/time-series-weather.json +82 -8
  67. package/specs/weather/weather-forecast.json +107 -6
@@ -62,7 +62,7 @@
62
62
  "all"
63
63
  ]
64
64
  },
65
- "description": "A comma-separated list of DNS record types for lookup.\nPossible values: A, AAAA, MX, NS, SOA, SPF, TXT, CNAME, or all\n"
65
+ "description": "A comma-separated list of DNS record types for lookup.\nPossible values: A, AAAA, MX, NS, SOA, SPF, TXT, CNAME, or all. Values are case-insensitive. PTR is not available in DNS history.\n"
66
66
  },
67
67
  {
68
68
  "name": "page",
@@ -323,7 +323,7 @@
323
323
  }
324
324
  },
325
325
  "400": {
326
- "description": "Bad Request — Invalid DNS type or malformed hostname",
326
+ "description": "Bad Request — Missing or invalid parameters, page out of range, or missing API key",
327
327
  "content": {
328
328
  "application/json": {
329
329
  "schema": {
@@ -349,6 +349,46 @@
349
349
  "message": "Please pass domain param correct value[For Technical Support: support@whoisfreaks.com]",
350
350
  "path": "/v2.0/dns/historical"
351
351
  }
352
+ },
353
+ "missingParams": {
354
+ "summary": "host-name or type missing",
355
+ "value": {
356
+ "error": "Invalid Param Exception",
357
+ "message": "please pass correct parameters",
358
+ "path": "/v1.0/domain/dns/history",
359
+ "status": 400,
360
+ "timestamp": "2026-11-25T10:07:00.000Z"
361
+ }
362
+ },
363
+ "ptrNotSupported": {
364
+ "summary": "PTR requested (not available in history)",
365
+ "value": {
366
+ "timestamp": "2026-11-25T10:07:00.000Z",
367
+ "status": 400,
368
+ "error": "Invalid Param Exception",
369
+ "message": "Historical data does not have PTR record support. kindly try other Record Types.",
370
+ "path": "/v2.0/dns/historical"
371
+ }
372
+ },
373
+ "pageOutOfRange": {
374
+ "summary": "page past the last page of results",
375
+ "value": {
376
+ "timestamp": "2026-11-25T10:07:00.000Z",
377
+ "status": 400,
378
+ "error": "Bad Request",
379
+ "message": "Unable to process Request. [For Technical Support: support@whoisfreaks.com] : argument \"content\" is null",
380
+ "path": "/v2.0/dns/historical"
381
+ }
382
+ },
383
+ "missingApiKey": {
384
+ "summary": "API key not sent",
385
+ "value": {
386
+ "error": "Invalid Param Exception",
387
+ "message": "Please provide apiKey",
388
+ "path": "/v1.0/domain/dns/history",
389
+ "status": 400,
390
+ "timestamp": "2026-11-25T10:07:00.000Z"
391
+ }
352
392
  }
353
393
  }
354
394
  }
@@ -359,8 +399,30 @@
359
399
  }
360
400
  }
361
401
  },
402
+ "401": {
403
+ "description": "Unauthorized — API key invalid",
404
+ "content": {
405
+ "application/json": {
406
+ "schema": {
407
+ "$ref": "#/components/schemas/ErrorResponse"
408
+ },
409
+ "examples": {
410
+ "invalidApiKey": {
411
+ "summary": "Invalid API key",
412
+ "value": {
413
+ "error": "API Access Exception",
414
+ "message": "Provided API key is invalid. [For Technical Support: support@apifreaks.com]",
415
+ "path": "/v1.0/domain/dns/history",
416
+ "status": 401,
417
+ "timestamp": "2026-11-25T10:07:00.000Z"
418
+ }
419
+ }
420
+ }
421
+ }
422
+ }
423
+ },
362
424
  "404": {
363
- "description": "Not Found — No DNS history records for the hostname",
425
+ "description": "Not Found — No DNS history records for the hostname, or wrong HTTP method",
364
426
  "content": {
365
427
  "application/json": {
366
428
  "schema": {
@@ -376,6 +438,43 @@
376
438
  "message": "No Record Found across: zzsuperrandomnonexistent998877.com",
377
439
  "path": "/v2.0/dns/historical"
378
440
  }
441
+ },
442
+ "wrongMethod": {
443
+ "summary": "Wrong HTTP method used on the endpoint",
444
+ "value": {
445
+ "error": "Resource Not Found",
446
+ "message": "The requested resource could not be found. Please verify the URL and try again.",
447
+ "path": "/v1.0/domain/dns/history",
448
+ "status": 404,
449
+ "timestamp": "2026-11-25T10:07:00.000Z"
450
+ }
451
+ }
452
+ }
453
+ }
454
+ },
455
+ "headers": {
456
+ "X-AF-Credits-Cost": {
457
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
458
+ }
459
+ }
460
+ },
461
+ "406": {
462
+ "description": "Unsupported Media Type — format is not json or xml",
463
+ "content": {
464
+ "application/json": {
465
+ "schema": {
466
+ "$ref": "#/components/schemas/ErrorResponse"
467
+ },
468
+ "examples": {
469
+ "badFormat": {
470
+ "summary": "format value not supported",
471
+ "value": {
472
+ "error": "Unsupported Media Type",
473
+ "message": "The media type specified in the request is not supported. For more details, please refer to the API documentation.",
474
+ "path": "/v1.0/domain/dns/history",
475
+ "status": 406,
476
+ "timestamp": "2026-11-25T10:07:00.000Z"
477
+ }
379
478
  }
380
479
  }
381
480
  }
@@ -3,7 +3,7 @@
3
3
  "info": {
4
4
  "title": "DNS Lookup API - Live DNS Records, TTLs & PTR Lookups for Any Hostname",
5
5
  "version": "1.0.0",
6
- "description": "Performs a live DNS lookup for any hostname or IP address, returning real-time records from authoritative name servers. Supports A, AAAA, MX, NS, SOA, SPF, TXT, and CNAME record types, plus PTR records when querying by IP address via the ipAddress parameter. Each record object includes parsed fields such as address, target, priority, TTL, serial, or verification strings, depending on the record type. Pass a comma-separated list of record types with the type parameter, or use 'all' to retrieve every supported type. The optional format parameter allows switching between JSON and XML output.",
6
+ "description": "Performs a live DNS lookup for any hostname or IP address, returning real-time records from authoritative name servers. Supports A, AAAA, MX, NS, SOA, SPF, TXT, and CNAME record types, plus PTR records, which are looked up from an IP address passed in the ipAddress parameter with type PTR or all. Each record object includes parsed fields such as address, target, priority, TTL, serial, or verification strings, depending on the record type. Pass a comma-separated list of record types with the type parameter, or use 'all' to retrieve every supported type. The optional format parameter allows switching between JSON and XML output.",
7
7
  "contact": {
8
8
  "name": "APIFreaks Support",
9
9
  "url": "https://apifreaks.com/contact",
@@ -42,7 +42,7 @@
42
42
  "schema": {
43
43
  "type": "string"
44
44
  },
45
- "description": "Hostname or URL whose DNS records are required. Provide either `host-name` or `ipAddress`."
45
+ "description": "Hostname or URL whose DNS records are required. Send `host-name`, `ipAddress`, or both."
46
46
  },
47
47
  {
48
48
  "name": "ipAddress",
@@ -51,7 +51,7 @@
51
51
  "schema": {
52
52
  "type": "string"
53
53
  },
54
- "description": "The IP address for requested DNS's PTR record. 'type' parameter must be set to 'all'. Provide either `host-name` or `ipAddress`."
54
+ "description": "IPv4 or IPv6 address whose PTR record is required. Use it with `type` set to `PTR` or `all`. Send `host-name`, `ipAddress`, or both; with both, `host-name` is used for the other record types and `ipAddress` for the PTR record."
55
55
  },
56
56
  {
57
57
  "name": "type",
@@ -68,10 +68,11 @@
68
68
  "SPF",
69
69
  "TXT",
70
70
  "CNAME",
71
+ "PTR",
71
72
  "all"
72
73
  ]
73
74
  },
74
- "description": "A comma-separated list of DNS record types for lookup. Possible values: A, AAAA, MX, NS, SOA, SPF, TXT, CNAME, or all. When ipAddress is provided, type must be \"all\"."
75
+ "description": "A comma-separated list of DNS record types for lookup. Possible values: A, AAAA, MX, NS, SOA, SPF, TXT, CNAME, PTR, or all. Values are case-insensitive. PTR is looked up from `ipAddress`; the other types are looked up from `host-name`. With only `ipAddress` sent, use `PTR` or `all`."
75
76
  }
76
77
  ],
77
78
  "responses": {
@@ -241,7 +242,7 @@
241
242
  }
242
243
  },
243
244
  "400": {
244
- "description": "Bad Request — Missing or invalid parameters",
245
+ "description": "Bad Request — Missing or invalid parameters, or missing API key",
245
246
  "content": {
246
247
  "application/json": {
247
248
  "schema": {
@@ -277,6 +278,95 @@
277
278
  "message": "Please pass domain param correct value[For Technical Support: support@whoisfreaks.com]",
278
279
  "path": "/v2.0/dns/live"
279
280
  }
281
+ },
282
+ "ptrWithoutIpAddress": {
283
+ "summary": "PTR requested without ipAddress",
284
+ "value": {
285
+ "timestamp": "2026-11-25T10:07:00.000Z",
286
+ "status": 400,
287
+ "error": "Invalid Param Exception",
288
+ "message": "IP Address is required!",
289
+ "path": "/v2.0/dns/live"
290
+ }
291
+ },
292
+ "recordTypeWithoutHostName": {
293
+ "summary": "Non-PTR type requested with only ipAddress",
294
+ "value": {
295
+ "timestamp": "2026-11-25T10:07:00.000Z",
296
+ "status": 400,
297
+ "error": "Invalid Param Exception",
298
+ "message": "Domain name is required!",
299
+ "path": "/v2.0/dns/live"
300
+ }
301
+ },
302
+ "invalidIpAddress": {
303
+ "summary": "Malformed ipAddress",
304
+ "value": {
305
+ "timestamp": "2026-11-25T10:07:00.000Z",
306
+ "status": 400,
307
+ "error": "Invalid Param Exception",
308
+ "message": "Pass a valid value for 'ipAddress' param.",
309
+ "path": "/v2.0/dns/live"
310
+ }
311
+ },
312
+ "missingApiKey": {
313
+ "summary": "API key not sent",
314
+ "value": {
315
+ "error": "Invalid Param Exception",
316
+ "message": "Please provide apiKey",
317
+ "path": "/v1.0/domain/dns/live",
318
+ "status": 400,
319
+ "timestamp": "2026-11-25T10:07:00.000Z"
320
+ }
321
+ }
322
+ }
323
+ }
324
+ },
325
+ "headers": {
326
+ "X-AF-Credits-Cost": {
327
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
328
+ }
329
+ }
330
+ },
331
+ "401": {
332
+ "description": "Unauthorized — API key invalid",
333
+ "content": {
334
+ "application/json": {
335
+ "schema": {
336
+ "$ref": "#/components/schemas/ErrorResponse"
337
+ },
338
+ "examples": {
339
+ "invalidApiKey": {
340
+ "summary": "Invalid API key",
341
+ "value": {
342
+ "error": "API Access Exception",
343
+ "message": "Provided API key is invalid. [For Technical Support: support@apifreaks.com]",
344
+ "path": "/v1.0/domain/dns/live",
345
+ "status": 401,
346
+ "timestamp": "2026-11-25T10:07:00.000Z"
347
+ }
348
+ }
349
+ }
350
+ }
351
+ }
352
+ },
353
+ "406": {
354
+ "description": "Unsupported Media Type — format is not json or xml",
355
+ "content": {
356
+ "application/json": {
357
+ "schema": {
358
+ "$ref": "#/components/schemas/ErrorResponse"
359
+ },
360
+ "examples": {
361
+ "badFormat": {
362
+ "summary": "format value not supported",
363
+ "value": {
364
+ "error": "Unsupported Media Type",
365
+ "message": "The media type specified in the request is not supported. For more details, please refer to the API documentation.",
366
+ "path": "/v1.0/domain/dns/live",
367
+ "status": 406,
368
+ "timestamp": "2026-11-25T10:07:00.000Z"
369
+ }
280
370
  }
281
371
  }
282
372
  }
@@ -329,7 +419,7 @@
329
419
  },
330
420
  "ipAddress": {
331
421
  "type": "string",
332
- "description": "IP address queried (present when ipAddress parameter is used instead of host-name)."
422
+ "description": "IP address queried (present when the ipAddress parameter is used, together with or instead of host-name)."
333
423
  },
334
424
  "dnsTypes": {
335
425
  "$ref": "#/components/schemas/DnsTypes",
@@ -165,7 +165,7 @@
165
165
  }
166
166
  },
167
167
  "400": {
168
- "description": "Invalid DNS type or missing required parameter",
168
+ "description": "Bad Request — Invalid DNS type, invalid value, missing required parameter, or missing API key",
169
169
  "content": {
170
170
  "application/json": {
171
171
  "schema": {
@@ -191,6 +191,66 @@
191
191
  "status": 400,
192
192
  "timestamp": "2026-07-23T09:51:58.951Z"
193
193
  }
194
+ },
195
+ "ptrNotSupported": {
196
+ "summary": "PTR requested (not available in reverse lookup)",
197
+ "value": {
198
+ "timestamp": "2026-11-25T10:07:00.000Z",
199
+ "status": 400,
200
+ "error": "Invalid Param Exception",
201
+ "message": "Reverse data does not have PTR record support. kindly try other Record Types.",
202
+ "path": "/v2.1/dns/reverse"
203
+ }
204
+ },
205
+ "multipleTypes": {
206
+ "summary": "More than one type sent",
207
+ "value": {
208
+ "timestamp": "2026-11-25T10:07:00.000Z",
209
+ "status": 400,
210
+ "error": "Invalid Param Exception",
211
+ "message": "Reverse query supports only single record type at a time.",
212
+ "path": "/v2.1/dns/reverse"
213
+ }
214
+ },
215
+ "invalidIpv4": {
216
+ "summary": "type=A with a value that is not an IPv4 address or CIDR",
217
+ "value": {
218
+ "timestamp": "2026-11-25T10:07:00.000Z",
219
+ "status": 400,
220
+ "error": "Invalid Param Exception",
221
+ "message": "Please provide valid Ipv4 Address or CIDR Notation",
222
+ "path": "/v2.1/dns/reverse"
223
+ }
224
+ },
225
+ "invalidIpv6": {
226
+ "summary": "type=AAAA with a value that is not an IPv6 address or CIDR",
227
+ "value": {
228
+ "timestamp": "2026-11-25T10:07:00.000Z",
229
+ "status": 400,
230
+ "error": "Invalid Param Exception",
231
+ "message": "Please provide valid Ipv6 Address or CIDR Notation",
232
+ "path": "/v2.1/dns/reverse"
233
+ }
234
+ },
235
+ "cidrSuffixOutOfRange": {
236
+ "summary": "CIDR suffix outside the supported range (16-32 for IPv4, 64-128 for IPv6)",
237
+ "value": {
238
+ "timestamp": "2026-11-25T10:07:00.000Z",
239
+ "status": 400,
240
+ "error": "CIDR Suffix Out of Range",
241
+ "message": "IP Network Suffix must be in the range 16-32 for IPv4 CIDR Notation",
242
+ "path": "/v2.1/dns/reverse"
243
+ }
244
+ },
245
+ "missingApiKey": {
246
+ "summary": "API key not sent",
247
+ "value": {
248
+ "error": "Invalid Param Exception",
249
+ "message": "Please provide apiKey",
250
+ "path": "/v1.0/domain/dns/reverse",
251
+ "status": 400,
252
+ "timestamp": "2026-11-25T10:07:00.000Z"
253
+ }
194
254
  }
195
255
  }
196
256
  }
@@ -207,8 +267,30 @@
207
267
  }
208
268
  }
209
269
  },
270
+ "401": {
271
+ "description": "Unauthorized — API key invalid",
272
+ "content": {
273
+ "application/json": {
274
+ "schema": {
275
+ "$ref": "#/components/schemas/ErrorResponse"
276
+ },
277
+ "examples": {
278
+ "invalidApiKey": {
279
+ "summary": "Invalid API key",
280
+ "value": {
281
+ "error": "API Access Exception",
282
+ "message": "Provided API key is invalid. [For Technical Support: support@apifreaks.com]",
283
+ "path": "/v1.0/domain/dns/reverse",
284
+ "status": 401,
285
+ "timestamp": "2026-11-25T10:07:00.000Z"
286
+ }
287
+ }
288
+ }
289
+ }
290
+ }
291
+ },
210
292
  "404": {
211
- "description": "No reverse DNS records found for the given input",
293
+ "description": "Not Found — No reverse DNS records found for the given input, or wrong HTTP method",
212
294
  "content": {
213
295
  "application/json": {
214
296
  "schema": {
@@ -224,6 +306,16 @@
224
306
  "error": "Record not Found",
225
307
  "message": "No Record Found across: zzsuperrandomnonexistentmxprovider99988.com"
226
308
  }
309
+ },
310
+ "wrongMethod": {
311
+ "summary": "Wrong HTTP method used on the endpoint",
312
+ "value": {
313
+ "error": "Resource Not Found",
314
+ "message": "The requested resource could not be found. Please verify the URL and try again.",
315
+ "path": "/v1.0/domain/dns/reverse",
316
+ "status": 404,
317
+ "timestamp": "2026-11-25T10:07:00.000Z"
318
+ }
227
319
  }
228
320
  }
229
321
  }
@@ -239,6 +331,33 @@
239
331
  "$ref": "#/components/headers/X-Concurrent-Threads-Active"
240
332
  }
241
333
  }
334
+ },
335
+ "406": {
336
+ "description": "Unsupported Media Type — format is not json or xml",
337
+ "content": {
338
+ "application/json": {
339
+ "schema": {
340
+ "$ref": "#/components/schemas/ErrorResponse"
341
+ },
342
+ "examples": {
343
+ "badFormat": {
344
+ "summary": "format value not supported",
345
+ "value": {
346
+ "error": "Unsupported Media Type",
347
+ "message": "The media type specified in the request is not supported. For more details, please refer to the API documentation.",
348
+ "path": "/v1.0/domain/dns/reverse",
349
+ "status": 406,
350
+ "timestamp": "2026-11-25T10:07:00.000Z"
351
+ }
352
+ }
353
+ }
354
+ }
355
+ },
356
+ "headers": {
357
+ "X-AF-Credits-Cost": {
358
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
359
+ }
360
+ }
242
361
  }
243
362
  }
244
363
  }
@@ -205,6 +205,33 @@
205
205
  "$ref": "#/components/headers/X-AF-Credits-Cost"
206
206
  }
207
207
  }
208
+ },
209
+ "406": {
210
+ "description": "Unsupported Media Type — format is not json or xml",
211
+ "content": {
212
+ "application/json": {
213
+ "schema": {
214
+ "$ref": "#/components/schemas/ErrorResponse"
215
+ },
216
+ "examples": {
217
+ "badFormat": {
218
+ "summary": "format value not supported",
219
+ "value": {
220
+ "error": "Unsupported Media Type",
221
+ "message": "The media type specified in the request is not supported. For more details, please refer to the API documentation.",
222
+ "path": "/v1.0/vat/rates/country",
223
+ "status": 406,
224
+ "timestamp": "2026-11-25T10:00:55.394Z"
225
+ }
226
+ }
227
+ }
228
+ }
229
+ },
230
+ "headers": {
231
+ "X-AF-Credits-Cost": {
232
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
233
+ }
234
+ }
208
235
  }
209
236
  }
210
237
  }