@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
@@ -28,7 +28,7 @@
28
28
  "name": "format",
29
29
  "in": "query",
30
30
  "required": false,
31
- "description": "Format of the response. Possible values: json.",
31
+ "description": "Format of the response. Only json is supported.",
32
32
  "schema": {
33
33
  "type": "string",
34
34
  "enum": ["json"],
@@ -48,7 +48,7 @@
48
48
  "name": "lat",
49
49
  "in": "query",
50
50
  "required": false,
51
- "description": "Latitude of the location. Must be supplied together with long or the request fails with a 400. Takes priority over location and ip when combined with them.",
51
+ "description": "Latitude of the location. Must be supplied together with long. Takes priority over location and ip when combined with them. lat=0 together with long=0 is treated as missing and the location falls back to the requester IP (or to location/ip if given); use a small non-zero value (for example 0.0001) to query the equator or prime meridian.",
52
52
  "schema": {
53
53
  "type": "number"
54
54
  }
@@ -57,7 +57,7 @@
57
57
  "name": "long",
58
58
  "in": "query",
59
59
  "required": false,
60
- "description": "Longitude of the location. Must be supplied together with lat or the request fails with a 400.",
60
+ "description": "Longitude of the location. Must be supplied together with lat. lat=0 together with long=0 is treated as missing and the location falls back to the requester IP (or to location/ip if given); use a small non-zero value (for example 0.0001) to query the equator or prime meridian.",
61
61
  "schema": {
62
62
  "type": "number"
63
63
  }
@@ -75,7 +75,7 @@
75
75
  "name": "startDate",
76
76
  "in": "query",
77
77
  "required": false,
78
- "description": "Start date for the forecast in YYYY-MM-DD format. Must be supplied together with endDate — passing only one returns a 400. Forecast dates must be today or later, and the range between startDate and endDate must not exceed 16 days from today.",
78
+ "description": "Start date for the forecast in YYYY-MM-DD format. Must be supplied together with endDate. Forecast dates must be today or later, and both dates must fall within today through 15 days ahead (16 days inclusive).",
79
79
  "schema": {
80
80
  "type": "string",
81
81
  "format": "date"
@@ -85,7 +85,7 @@
85
85
  "name": "endDate",
86
86
  "in": "query",
87
87
  "required": false,
88
- "description": "End date for the forecast in YYYY-MM-DD format. Must be supplied together with startDate — passing only one returns a 400. Forecast dates must be today or later, and the range between startDate and endDate must not exceed 16 days from today.",
88
+ "description": "End date for the forecast in YYYY-MM-DD format. Must be supplied together with startDate. Forecast dates must be today or later, and both dates must fall within today through 15 days ahead (16 days inclusive).",
89
89
  "schema": {
90
90
  "type": "string",
91
91
  "format": "date"
@@ -95,7 +95,7 @@
95
95
  "name": "forecastDays",
96
96
  "in": "query",
97
97
  "required": false,
98
- "description": "Number of days to forecast starting today, from 1 to 16. Default is 7. Not used together with startDate/endDate.",
98
+ "description": "Number of days to forecast starting today, from 1 to 16. Default is 7. Ignored when startDate/endDate are provided.",
99
99
  "schema": {
100
100
  "type": "integer",
101
101
  "minimum": 1,
@@ -386,6 +386,107 @@
386
386
  "error": "error",
387
387
  "path": "/v1.0/weather/forecast"
388
388
  }
389
+ },
390
+ "ZeroForecastDays": {
391
+ "summary": "forecastDays=0",
392
+ "value": {
393
+ "timestamp": "2026-11-25T10:01:00.000Z",
394
+ "status": 400,
395
+ "message": "End date must be on or after start date.",
396
+ "error": "error",
397
+ "path": "/v1.0/weather/forecast"
398
+ }
399
+ },
400
+ "MissingApiKey": {
401
+ "summary": "No API key supplied (neither X-apiKey header nor apiKey query parameter)",
402
+ "value": {
403
+ "error": "Invalid Param Exception",
404
+ "message": "Please provide apiKey",
405
+ "path": "/v1.0/weather/forecast",
406
+ "status": 400,
407
+ "timestamp": "2026-11-25T10:01:00.000Z"
408
+ }
409
+ }
410
+ }
411
+ }
412
+ },
413
+ "headers": {
414
+ "X-AF-Credits-Cost": {
415
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
416
+ }
417
+ }
418
+ },
419
+ "401": {
420
+ "description": "Unauthorized — The API key is invalid",
421
+ "content": {
422
+ "application/json": {
423
+ "schema": {
424
+ "$ref": "#/components/schemas/ErrorResponse"
425
+ },
426
+ "examples": {
427
+ "invalidApiKey": {
428
+ "summary": "Invalid API key",
429
+ "value": {
430
+ "error": "API Access Exception",
431
+ "message": "Provided API key is invalid. [For Technical Support: support@apifreaks.com]",
432
+ "path": "/v1.0/weather/forecast",
433
+ "status": 401,
434
+ "timestamp": "2026-11-25T10:01:00.000Z"
435
+ }
436
+ }
437
+ }
438
+ }
439
+ },
440
+ "headers": {
441
+ "X-AF-Credits-Cost": {
442
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
443
+ }
444
+ }
445
+ },
446
+ "404": {
447
+ "description": "Not Found — Wrong HTTP method or unknown resource",
448
+ "content": {
449
+ "application/json": {
450
+ "schema": {
451
+ "$ref": "#/components/schemas/ErrorResponse"
452
+ },
453
+ "examples": {
454
+ "ResourceNotFound": {
455
+ "summary": "Unsupported HTTP method for this endpoint (e.g. POST to a GET endpoint)",
456
+ "value": {
457
+ "error": "Resource Not Found",
458
+ "message": "The requested resource could not be found. Please verify the URL and try again.",
459
+ "path": "/v1.0/weather/forecast",
460
+ "status": 404,
461
+ "timestamp": "2026-11-25T10:01:00.000Z"
462
+ }
463
+ }
464
+ }
465
+ }
466
+ },
467
+ "headers": {
468
+ "X-AF-Credits-Cost": {
469
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
470
+ }
471
+ }
472
+ },
473
+ "500": {
474
+ "description": "Internal Server Error — Returned when forecastDays is not a number",
475
+ "content": {
476
+ "application/json": {
477
+ "schema": {
478
+ "$ref": "#/components/schemas/ErrorResponse"
479
+ },
480
+ "examples": {
481
+ "InvalidForecastDaysType": {
482
+ "summary": "forecastDays=abc (non-numeric); note the path in this response is duplicated",
483
+ "value": {
484
+ "timestamp": "2026-11-25T10:01:00.000Z",
485
+ "status": 500,
486
+ "message": "Internal Server Error",
487
+ "error": "internal-server-error",
488
+ "path": "/v1.0/weather/v1.0/weather/forecast"
489
+ }
389
490
  }
390
491
  }
391
492
  }