@apifreaks/openapi-specs 0.1.0

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 (109) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +156 -0
  3. package/dist/index.cjs +44663 -0
  4. package/dist/index.d.cts +30 -0
  5. package/dist/index.d.ts +30 -0
  6. package/dist/index.js +44631 -0
  7. package/package.json +81 -0
  8. package/specs/commodity/commodity-fluctuation.json +301 -0
  9. package/specs/commodity/commodity-prices.json +317 -0
  10. package/specs/commodity/commodity-symbols.json +215 -0
  11. package/specs/commodity/commodity-time-series.json +329 -0
  12. package/specs/commodity/historical-commodity-prices.json +273 -0
  13. package/specs/currency/currency-converter.json +261 -0
  14. package/specs/currency/currency-fluctuation.json +282 -0
  15. package/specs/currency/currency-historical-data-limit.json +158 -0
  16. package/specs/currency/currency-rate.json +229 -0
  17. package/specs/currency/currency-supported.json +234 -0
  18. package/specs/currency/currency-symbols.json +161 -0
  19. package/specs/currency/currency-time-series.json +325 -0
  20. package/specs/currency/geolocalized-currency-conversion.json +287 -0
  21. package/specs/currency/historical-currency-converter.json +269 -0
  22. package/specs/currency/historical-currency-rate.json +246 -0
  23. package/specs/dns/bulk-dns-lookup.json +624 -0
  24. package/specs/dns/dns-history-lookup.json +579 -0
  25. package/specs/dns/dns-lookup.json +466 -0
  26. package/specs/dns/reverse-dns-lookup.json +414 -0
  27. package/specs/domain/bulk-domain-checker.json +284 -0
  28. package/specs/domain/domain-search-with-suggestions.json +280 -0
  29. package/specs/domain/domain-search.json +206 -0
  30. package/specs/domain/subdomain-lookup.json +343 -0
  31. package/specs/email-validation/bulk-email-validation.json +534 -0
  32. package/specs/email-validation/email-checker.json +586 -0
  33. package/specs/financial/bulk-vat-rates-country.json +341 -0
  34. package/specs/financial/financial-apis-supported-countries.json +204 -0
  35. package/specs/financial/iban-validation.json +328 -0
  36. package/specs/financial/swift-code-finder.json +192 -0
  37. package/specs/financial/swift-code-lookup.json +220 -0
  38. package/specs/financial/vat-number-validation.json +283 -0
  39. package/specs/financial/vat-rates-by-ip.json +275 -0
  40. package/specs/financial/vat-rates-country.json +288 -0
  41. package/specs/general/usage-credits.json +218 -0
  42. package/specs/geocoding/forward-geocoding.json +402 -0
  43. package/specs/geocoding/reverse-geocoding.json +326 -0
  44. package/specs/geodb/administrative-units-details.json +250 -0
  45. package/specs/geodb/administrative-units-levels.json +198 -0
  46. package/specs/geodb/administrative-units.json +237 -0
  47. package/specs/geodb/cities.json +288 -0
  48. package/specs/geodb/countries-details.json +274 -0
  49. package/specs/geodb/countries.json +276 -0
  50. package/specs/geodb/flags-supported.json +166 -0
  51. package/specs/geodb/flags.json +227 -0
  52. package/specs/geodb/regions.json +109 -0
  53. package/specs/geodb/subregions.json +217 -0
  54. package/specs/ip-intelligence/bulk-ip-lookup.json +1162 -0
  55. package/specs/ip-intelligence/bulk-ip-threat-intelligence.json +417 -0
  56. package/specs/ip-intelligence/ip-locator.json +941 -0
  57. package/specs/ip-intelligence/ip-threat-intelligence.json +316 -0
  58. package/specs/other/astronomy-data.json +803 -0
  59. package/specs/pdf/delete-pdf-page.json +286 -0
  60. package/specs/pdf/linearize-pdf.json +277 -0
  61. package/specs/pdf/merge-pdf.json +285 -0
  62. package/specs/pdf/pdf-compress.json +304 -0
  63. package/specs/pdf/pdf-decrypt.json +297 -0
  64. package/specs/pdf/pdf-encrypt.json +314 -0
  65. package/specs/pdf/pdf-extract-pages.json +295 -0
  66. package/specs/pdf/pdf-file-status.json +208 -0
  67. package/specs/pdf/pdf-file.json +190 -0
  68. package/specs/pdf/pdf-files.json +126 -0
  69. package/specs/pdf/pdf-resource-download.json +168 -0
  70. package/specs/pdf/pdf-resource-upload-binary.json +218 -0
  71. package/specs/pdf/pdf-resource-upload.json +248 -0
  72. package/specs/pdf/pdf-restrict.json +343 -0
  73. package/specs/pdf/pdf-split-pages.json +281 -0
  74. package/specs/pdf/pdf-task-status.json +252 -0
  75. package/specs/pdf/pdf-to-image.json +1219 -0
  76. package/specs/pdf/pdf-unrestrict.json +324 -0
  77. package/specs/pdf/rotate-pdf-pages.json +305 -0
  78. package/specs/phone-validation/bulk-phone-number-validation.json +518 -0
  79. package/specs/phone-validation/phone-number-validation.json +456 -0
  80. package/specs/scraper/web-scraper.json +674 -0
  81. package/specs/screenshot/bulk-screenshot.json +949 -0
  82. package/specs/screenshot/website-screenshot.json +1147 -0
  83. package/specs/ssl/ssl-certificate-chain-lookup.json +756 -0
  84. package/specs/ssl/ssl-certificate-lookup.json +634 -0
  85. package/specs/timezone/timezone-converter.json +362 -0
  86. package/specs/timezone/timezone-lookup.json +910 -0
  87. package/specs/user-agent/bulk-user-agent-parser.json +441 -0
  88. package/specs/user-agent/user-agent-parser.json +346 -0
  89. package/specs/weather/air-quality.json +779 -0
  90. package/specs/weather/bulk-live-weather.json +834 -0
  91. package/specs/weather/flood-forecast.json +693 -0
  92. package/specs/weather/historical-weather.json +1019 -0
  93. package/specs/weather/live-weather.json +789 -0
  94. package/specs/weather/marine-weather.json +940 -0
  95. package/specs/weather/time-series-weather.json +1056 -0
  96. package/specs/weather/weather-forecast.json +1202 -0
  97. package/specs/whois/asn-lookup.json +729 -0
  98. package/specs/whois/bulk-whois-lookup.json +698 -0
  99. package/specs/whois/domain-whois-history-lookup.json +500 -0
  100. package/specs/whois/reverse-whois.json +625 -0
  101. package/specs/whois/whois-domain-lookup.json +533 -0
  102. package/specs/whois/whois-ip-lookup.json +1110 -0
  103. package/specs/zip-code/bulk-zip-code-lookup.json +318 -0
  104. package/specs/zip-code/zip-code-api.json +299 -0
  105. package/specs/zip-code/zip-code-distance-match.json +311 -0
  106. package/specs/zip-code/zip-code-distance.json +307 -0
  107. package/specs/zip-code/zip-codes-by-city.json +279 -0
  108. package/specs/zip-code/zip-codes-by-region.json +278 -0
  109. package/specs/zip-code/zip-codes-radius-search.json +349 -0
@@ -0,0 +1,109 @@
1
+ {
2
+ "openapi": "3.1.1",
3
+ "info": {
4
+ "title": "Regions API - Retrieve World Regions & Subregions",
5
+ "version": "1.0.0",
6
+ "description": "Retrieve all geographical regions supported by the GeoDB service. Returns a flat array of exactly 6 region names - Africa, Americas, Asia, Europe, Oceania, and Polar. This endpoint takes no required parameters, ignores unrecognized query parameters rather than erroring, and has no documented error responses. Use the returned region names with the Subregions endpoint to drill down into subregional data.",
7
+ "contact": {
8
+ "name": "APIFreaks Support",
9
+ "url": "https://apifreaks.com/contact",
10
+ "email": "support@apifreaks.com"
11
+ }
12
+ },
13
+ "servers": [
14
+ {
15
+ "url": "https://api.apifreaks.com/v1.0",
16
+ "description": "Regions API Server"
17
+ }
18
+ ],
19
+ "paths": {
20
+ "/geo/regions": {
21
+ "get": {
22
+ "tags": ["GeoDB APIs"],
23
+ "summary": "Retrieve all geographical regions",
24
+ "description": "Returns all geographical regions supported by the service, such as Africa, Americas, Asia, Europe, Oceania, and Polar.",
25
+ "operationId": "getRegions",
26
+ "parameters": [
27
+ {
28
+ "name": "format",
29
+ "in": "query",
30
+ "required": false,
31
+ "description": "Format of the response. Possible values: json, xml.",
32
+ "schema": {
33
+ "type": "string",
34
+ "enum": ["json", "xml"],
35
+ "default": "json"
36
+ }
37
+ }
38
+ ],
39
+ "responses": {
40
+ "200": {
41
+ "description": "Successful response with list of regions",
42
+ "content": {
43
+ "application/json": {
44
+ "schema": {
45
+ "$ref": "#/components/schemas/RegionsResponse"
46
+ },
47
+ "examples": {
48
+ "typicalSuccess": {
49
+ "summary": "Typical successful response",
50
+ "value": {
51
+ "regions": [
52
+ "Africa",
53
+ "Americas",
54
+ "Asia",
55
+ "Europe",
56
+ "Oceania",
57
+ "Polar"
58
+ ]
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
68
+ },
69
+ "components": {
70
+ "securitySchemes": {
71
+ "ApiKeyAuthHeader": {
72
+ "type": "apiKey",
73
+ "in": "header",
74
+ "name": "X-apiKey",
75
+ "description": "Pass your API key via the X-apiKey request header."
76
+ },
77
+ "ApiKeyAuthQuery": {
78
+ "type": "apiKey",
79
+ "in": "query",
80
+ "name": "apiKey",
81
+ "description": "Pass your API key via the apiKey query parameter."
82
+ }
83
+ },
84
+ "schemas": {
85
+ "RegionsResponse": {
86
+ "type": "object",
87
+ "description": "Response containing the flat list of geographical regions supported by the GeoDB service.",
88
+ "required": ["regions"],
89
+ "properties": {
90
+ "regions": {
91
+ "type": "array",
92
+ "description": "An array of region names representing all geographical regions supported by the service.",
93
+ "items": {
94
+ "type": "string"
95
+ }
96
+ }
97
+ }
98
+ }
99
+ }
100
+ },
101
+ "security": [
102
+ {
103
+ "ApiKeyAuthHeader": []
104
+ },
105
+ {
106
+ "ApiKeyAuthQuery": []
107
+ }
108
+ ]
109
+ }
@@ -0,0 +1,217 @@
1
+ {
2
+ "openapi": "3.1.1",
3
+ "info": {
4
+ "title": "Subregions API Reference",
5
+ "version": "1.0.0",
6
+ "description": "Retrieve all subregions within a specified geographical region, or all subregions across every region when none is specified. The region parameter is optional. Returns a flat array of subregion names such as Western Europe, Southern Asia, or Northern America. Invalid region names return a 400 error; a region with no subregions (Polar) returns a 404.",
7
+ "contact": {
8
+ "name": "APIFreaks Support",
9
+ "url": "https://apifreaks.com/contact",
10
+ "email": "support@apifreaks.com"
11
+ }
12
+ },
13
+ "servers": [
14
+ {
15
+ "url": "https://api.apifreaks.com/v1.0",
16
+ "description": "Subregions API Server"
17
+ }
18
+ ],
19
+ "paths": {
20
+ "/geo/subregions": {
21
+ "get": {
22
+ "tags": ["GeoDB APIs"],
23
+ "summary": "Retrieve subregions for a specific geographical region",
24
+ "description": "Returns all subregions within a specified region, or all subregions across every region when the region parameter is omitted.",
25
+ "operationId": "getSubregionsByRegion",
26
+ "parameters": [
27
+ {
28
+ "name": "format",
29
+ "in": "query",
30
+ "required": false,
31
+ "description": "Format of the response. Possible values: json, xml.",
32
+ "schema": {
33
+ "type": "string",
34
+ "enum": ["json", "xml"],
35
+ "default": "json"
36
+ }
37
+ },
38
+ {
39
+ "name": "region",
40
+ "in": "query",
41
+ "required": false,
42
+ "description": "Name of the region to retrieve subregions for. Omit to return all subregions across every region.",
43
+ "schema": {
44
+ "type": "string"
45
+ }
46
+ }
47
+ ],
48
+ "responses": {
49
+ "200": {
50
+ "description": "Successful response with list of subregions",
51
+ "content": {
52
+ "application/json": {
53
+ "schema": {
54
+ "$ref": "#/components/schemas/SubregionsResponse"
55
+ },
56
+ "examples": {
57
+ "typicalSuccess": {
58
+ "summary": "Filtered by region=Europe",
59
+ "value": {
60
+ "subregions": [
61
+ "Eastern Europe",
62
+ "Northern Europe",
63
+ "Southern Europe",
64
+ "Western Europe"
65
+ ]
66
+ }
67
+ },
68
+ "allRegions": {
69
+ "summary": "region parameter omitted — all 22 subregions across every region",
70
+ "value": {
71
+ "subregions": [
72
+ "Australia and New Zealand",
73
+ "Caribbean",
74
+ "Central America",
75
+ "Central Asia",
76
+ "Eastern Africa",
77
+ "Eastern Asia",
78
+ "Eastern Europe",
79
+ "Melanesia",
80
+ "Micronesia",
81
+ "Middle Africa",
82
+ "Northern Africa",
83
+ "Northern America",
84
+ "Northern Europe",
85
+ "Polynesia",
86
+ "South America",
87
+ "South-Eastern Asia",
88
+ "Southern Africa",
89
+ "Southern Asia",
90
+ "Southern Europe",
91
+ "Western Africa",
92
+ "Western Asia",
93
+ "Western Europe"
94
+ ]
95
+ }
96
+ }
97
+ }
98
+ }
99
+ }
100
+ },
101
+ "400": {
102
+ "description": "Bad Request — Region name is not a recognized region",
103
+ "content": {
104
+ "application/json": {
105
+ "schema": {
106
+ "$ref": "#/components/schemas/ErrorResponse"
107
+ },
108
+ "examples": {
109
+ "InvalidRegionName": {
110
+ "summary": "Invalid region name",
111
+ "value": {
112
+ "timestamp": "2026-07-24T11:00:12.748Z",
113
+ "path": "/v1/subregions",
114
+ "status": 400,
115
+ "error": "Invalid Region Name provided",
116
+ "message": "Please provide a valid region name."
117
+ }
118
+ }
119
+ }
120
+ }
121
+ }
122
+ },
123
+ "404": {
124
+ "description": "Not Found — Region is valid but has no subregions (e.g. Polar)",
125
+ "content": {
126
+ "application/json": {
127
+ "schema": {
128
+ "$ref": "#/components/schemas/ErrorResponse"
129
+ },
130
+ "examples": {
131
+ "NoSubregions": {
132
+ "summary": "No subregions for this region",
133
+ "value": {
134
+ "timestamp": "2026-07-24T11:00:06.003Z",
135
+ "path": "/v1/subregions",
136
+ "status": 404,
137
+ "error": "No subregions exist",
138
+ "message": "This region does not have any subregions."
139
+ }
140
+ }
141
+ }
142
+ }
143
+ }
144
+ }
145
+ }
146
+ }
147
+ }
148
+ },
149
+ "components": {
150
+ "securitySchemes": {
151
+ "ApiKeyAuthHeader": {
152
+ "type": "apiKey",
153
+ "in": "header",
154
+ "name": "X-apiKey",
155
+ "description": "Pass your API key via the X-apiKey request header."
156
+ },
157
+ "ApiKeyAuthQuery": {
158
+ "type": "apiKey",
159
+ "in": "query",
160
+ "name": "apiKey",
161
+ "description": "Pass your API key via the apiKey query parameter."
162
+ }
163
+ },
164
+ "schemas": {
165
+ "SubregionsResponse": {
166
+ "type": "object",
167
+ "description": "Response containing subregion names for the requested region, or all subregions across every region when unfiltered.",
168
+ "required": ["subregions"],
169
+ "properties": {
170
+ "subregions": {
171
+ "type": "array",
172
+ "description": "An array of subregion names within the specified region.",
173
+ "items": {
174
+ "type": "string"
175
+ }
176
+ }
177
+ }
178
+ },
179
+ "ErrorResponse": {
180
+ "type": "object",
181
+ "description": "Standard error envelope returned by the API on failed requests.",
182
+ "required": ["message"],
183
+ "properties": {
184
+ "error": {
185
+ "type": "string",
186
+ "description": "Short error category or exception type."
187
+ },
188
+ "message": {
189
+ "type": "string",
190
+ "description": "Human-readable error message describing the failure."
191
+ },
192
+ "path": {
193
+ "type": "string",
194
+ "description": "API endpoint path that produced the error."
195
+ },
196
+ "status": {
197
+ "type": "integer",
198
+ "description": "HTTP status code returned with the error."
199
+ },
200
+ "timestamp": {
201
+ "type": "string",
202
+ "format": "date-time",
203
+ "description": "Timestamp when the error occurred (ISO 8601)."
204
+ }
205
+ }
206
+ }
207
+ }
208
+ },
209
+ "security": [
210
+ {
211
+ "ApiKeyAuthHeader": []
212
+ },
213
+ {
214
+ "ApiKeyAuthQuery": []
215
+ }
216
+ ]
217
+ }