@apifreaks/openapi-specs 0.4.24 → 0.4.26
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.
- package/dist/index.cjs +3912 -757
- package/dist/index.js +3912 -757
- package/dist/specs/commodity/commodity-fluctuation.yaml +33 -2
- package/dist/specs/commodity/commodity-intraday-rates.yaml +33 -2
- package/dist/specs/commodity/commodity-prices.yaml +33 -2
- package/dist/specs/commodity/commodity-symbols.yaml +68 -1
- package/dist/specs/commodity/commodity-time-series.yaml +33 -2
- package/dist/specs/commodity/historical-commodity-prices.yaml +33 -2
- package/dist/specs/dns/bulk-dns-lookup.yaml +45 -3
- package/dist/specs/dns/dns-history-lookup.yaml +76 -3
- package/dist/specs/dns/dns-lookup.yaml +72 -6
- package/dist/specs/dns/reverse-dns-lookup.yaml +91 -2
- package/dist/specs/financial/bulk-vat-rates-country.yaml +18 -0
- package/dist/specs/financial/financial-apis-supported-countries.yaml +75 -17
- package/dist/specs/financial/iban-validation.yaml +19 -1
- package/dist/specs/financial/swift-code-finder.yaml +18 -0
- package/dist/specs/financial/swift-code-lookup.yaml +18 -0
- package/dist/specs/financial/vat-number-validation.yaml +48 -0
- package/dist/specs/financial/vat-rates-by-ip.yaml +18 -0
- package/dist/specs/financial/vat-rates-country.yaml +18 -0
- package/dist/specs/geocoding/forward-geocoding.yaml +95 -2
- package/dist/specs/geocoding/reverse-geocoding.yaml +71 -0
- package/dist/specs/phone-number-validation/bulk-phone-number-validation.yaml +25 -3
- package/dist/specs/phone-number-validation/phone-validation.yaml +49 -3
- package/dist/specs/scraper/web-scraper.yaml +85 -7
- package/dist/specs/weather/air-quality.yaml +71 -5
- package/dist/specs/weather/astronomy-data.yaml +84 -1
- package/dist/specs/weather/bulk-live-weather.yaml +159 -3
- package/dist/specs/weather/flood-forecast.yaml +61 -11
- package/dist/specs/weather/historical-weather.yaml +53 -3
- package/dist/specs/weather/live-weather.yaml +66 -15
- package/dist/specs/weather/marine-weather.yaml +74 -8
- package/dist/specs/weather/time-series-weather.yaml +60 -8
- package/dist/specs/weather/weather-forecast.yaml +76 -6
- package/dist/specs/whois/reverse-whois.yaml +78 -75
- package/package.json +1 -1
- package/specs/commodity/commodity-fluctuation.json +44 -2
- package/specs/commodity/commodity-intraday-rates.json +44 -2
- package/specs/commodity/commodity-prices.json +44 -2
- package/specs/commodity/commodity-symbols.json +95 -1
- package/specs/commodity/commodity-time-series.json +44 -2
- package/specs/commodity/historical-commodity-prices.json +44 -2
- package/specs/dns/bulk-dns-lookup.json +63 -4
- package/specs/dns/dns-history-lookup.json +102 -3
- package/specs/dns/dns-lookup.json +96 -6
- package/specs/dns/reverse-dns-lookup.json +121 -2
- package/specs/financial/bulk-vat-rates-country.json +27 -0
- package/specs/financial/financial-apis-supported-countries.json +114 -23
- package/specs/financial/iban-validation.json +28 -1
- package/specs/financial/swift-code-finder.json +27 -0
- package/specs/financial/swift-code-lookup.json +27 -0
- package/specs/financial/vat-number-validation.json +72 -0
- package/specs/financial/vat-rates-by-ip.json +27 -0
- package/specs/financial/vat-rates-country.json +27 -0
- package/specs/geocoding/forward-geocoding.json +127 -2
- package/specs/geocoding/reverse-geocoding.json +102 -0
- package/specs/phone-number-validation/bulk-phone-number-validation.json +35 -3
- package/specs/phone-number-validation/phone-validation.json +65 -3
- package/specs/scraper/web-scraper.json +110 -7
- package/specs/weather/air-quality.json +92 -5
- package/specs/weather/astronomy-data.json +122 -1
- package/specs/weather/bulk-live-weather.json +227 -3
- package/specs/weather/flood-forecast.json +78 -11
- package/specs/weather/historical-weather.json +70 -3
- package/specs/weather/live-weather.json +85 -17
- package/specs/weather/marine-weather.json +95 -8
- package/specs/weather/time-series-weather.json +82 -8
- package/specs/weather/weather-forecast.json +107 -6
- package/specs/whois/reverse-whois.json +71 -92
|
@@ -129,6 +129,24 @@
|
|
|
129
129
|
"value": {
|
|
130
130
|
"message": "Unsupported VAT country code. Supported prefixes are UK/GB and EU VAT country codes."
|
|
131
131
|
}
|
|
132
|
+
},
|
|
133
|
+
"InvalidRequesterCountry": {
|
|
134
|
+
"summary": "requesterVatNumber has an invalid or unsupported country prefix",
|
|
135
|
+
"value": {
|
|
136
|
+
"message": "The requester member state code is invalid."
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"MandatoryFieldMissing": {
|
|
140
|
+
"summary": "vatNumber has a valid prefix but no number (for example DE)",
|
|
141
|
+
"value": {
|
|
142
|
+
"message": "A mandatory field is missing"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"UpstreamBusy": {
|
|
146
|
+
"summary": "Upstream VIES service is at its concurrent-request limit (transient, retry later)",
|
|
147
|
+
"value": {
|
|
148
|
+
"message": "MS MAX CONCURRENT REQ"
|
|
149
|
+
}
|
|
132
150
|
}
|
|
133
151
|
}
|
|
134
152
|
}
|
|
@@ -161,6 +179,60 @@
|
|
|
161
179
|
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
162
180
|
}
|
|
163
181
|
}
|
|
182
|
+
},
|
|
183
|
+
"406": {
|
|
184
|
+
"description": "Unsupported Media Type — format is not json or xml",
|
|
185
|
+
"content": {
|
|
186
|
+
"application/json": {
|
|
187
|
+
"schema": {
|
|
188
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
189
|
+
},
|
|
190
|
+
"examples": {
|
|
191
|
+
"badFormat": {
|
|
192
|
+
"summary": "format value not supported",
|
|
193
|
+
"value": {
|
|
194
|
+
"error": "Unsupported Media Type",
|
|
195
|
+
"message": "The media type specified in the request is not supported. For more details, please refer to the API documentation.",
|
|
196
|
+
"path": "/v1.0/vat/validation",
|
|
197
|
+
"status": 406,
|
|
198
|
+
"timestamp": "2026-11-25T10:00:55.394Z"
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"headers": {
|
|
205
|
+
"X-AF-Credits-Cost": {
|
|
206
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"504": {
|
|
211
|
+
"description": "Gateway Timeout — the upstream VIES/HMRC service did not respond in time (transient, retry later)",
|
|
212
|
+
"content": {
|
|
213
|
+
"application/json": {
|
|
214
|
+
"schema": {
|
|
215
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
216
|
+
},
|
|
217
|
+
"examples": {
|
|
218
|
+
"GatewayTimeout": {
|
|
219
|
+
"summary": "Upstream validation service timed out",
|
|
220
|
+
"value": {
|
|
221
|
+
"error": "Gateway Timeout",
|
|
222
|
+
"message": "Request is timed-out. Please contact at support@apifreaks.com",
|
|
223
|
+
"path": "/v1.0/vat/validation",
|
|
224
|
+
"status": 504,
|
|
225
|
+
"timestamp": "2026-11-25T10:06:09.994Z"
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
"headers": {
|
|
232
|
+
"X-AF-Credits-Cost": {
|
|
233
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
234
|
+
}
|
|
235
|
+
}
|
|
164
236
|
}
|
|
165
237
|
},
|
|
166
238
|
"operationId": "validateVatNumber"
|
|
@@ -138,6 +138,33 @@
|
|
|
138
138
|
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
|
+
},
|
|
142
|
+
"406": {
|
|
143
|
+
"description": "Unsupported Media Type — format is not json or xml",
|
|
144
|
+
"content": {
|
|
145
|
+
"application/json": {
|
|
146
|
+
"schema": {
|
|
147
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
148
|
+
},
|
|
149
|
+
"examples": {
|
|
150
|
+
"badFormat": {
|
|
151
|
+
"summary": "format value not supported",
|
|
152
|
+
"value": {
|
|
153
|
+
"error": "Unsupported Media Type",
|
|
154
|
+
"message": "The media type specified in the request is not supported. For more details, please refer to the API documentation.",
|
|
155
|
+
"path": "/v1.0/vat/rates/ip-address",
|
|
156
|
+
"status": 406,
|
|
157
|
+
"timestamp": "2026-11-25T10:00:55.394Z"
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"headers": {
|
|
164
|
+
"X-AF-Credits-Cost": {
|
|
165
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
166
|
+
}
|
|
167
|
+
}
|
|
141
168
|
}
|
|
142
169
|
}
|
|
143
170
|
}
|
|
@@ -151,6 +151,33 @@
|
|
|
151
151
|
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
+
},
|
|
155
|
+
"406": {
|
|
156
|
+
"description": "Unsupported Media Type — format is not json or xml",
|
|
157
|
+
"content": {
|
|
158
|
+
"application/json": {
|
|
159
|
+
"schema": {
|
|
160
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
161
|
+
},
|
|
162
|
+
"examples": {
|
|
163
|
+
"badFormat": {
|
|
164
|
+
"summary": "format value not supported",
|
|
165
|
+
"value": {
|
|
166
|
+
"error": "Unsupported Media Type",
|
|
167
|
+
"message": "The media type specified in the request is not supported. For more details, please refer to the API documentation.",
|
|
168
|
+
"path": "/v1.0/vat/rates/country",
|
|
169
|
+
"status": 406,
|
|
170
|
+
"timestamp": "2026-11-25T10:00:55.394Z"
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"headers": {
|
|
177
|
+
"X-AF-Credits-Cost": {
|
|
178
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
179
|
+
}
|
|
180
|
+
}
|
|
154
181
|
}
|
|
155
182
|
}
|
|
156
183
|
}
|
|
@@ -33,11 +33,22 @@
|
|
|
33
33
|
"type": "string"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
+
{
|
|
37
|
+
"name": "format",
|
|
38
|
+
"in": "query",
|
|
39
|
+
"required": false,
|
|
40
|
+
"description": "Response format. Only `json` is supported; any other value is ignored and the response is still returned as JSON.",
|
|
41
|
+
"schema": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"enum": ["json"],
|
|
44
|
+
"default": "json"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
36
47
|
{
|
|
37
48
|
"name": "limit",
|
|
38
49
|
"in": "query",
|
|
39
50
|
"required": false,
|
|
40
|
-
"description": "Maximum number of results to return. May return fewer if matches are weak.",
|
|
51
|
+
"description": "Maximum number of results to return. Must be an integer between 1 and 40. May return fewer if matches are weak.",
|
|
41
52
|
"schema": {
|
|
42
53
|
"type": "integer",
|
|
43
54
|
"minimum": 1,
|
|
@@ -202,6 +213,83 @@
|
|
|
202
213
|
"status": 400,
|
|
203
214
|
"timestamp": "2026-07-22T14:30:11.104Z"
|
|
204
215
|
}
|
|
216
|
+
},
|
|
217
|
+
"missingViewboxParams": {
|
|
218
|
+
"summary": "Only some of the four viewbox parameters supplied",
|
|
219
|
+
"value": {
|
|
220
|
+
"error": "Invalid Param Exception",
|
|
221
|
+
"message": "please pass correct parameters",
|
|
222
|
+
"path": "/v1.0/geocoder/search",
|
|
223
|
+
"status": 400,
|
|
224
|
+
"timestamp": "2026-11-25T10:00:59.575Z"
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
"invalidViewboxLatitudeRange": {
|
|
228
|
+
"summary": "`min_lat` or `max_lat` outside the -90 to 90 range",
|
|
229
|
+
"value": {
|
|
230
|
+
"error": "Invalid Latitude Provided",
|
|
231
|
+
"message": "Latitude must be between -90 and 90.",
|
|
232
|
+
"path": "/v1.0/geocoder/search",
|
|
233
|
+
"status": 400,
|
|
234
|
+
"timestamp": "2026-11-25T10:01:01.969Z"
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
"invalidViewboxLongitudeRange": {
|
|
238
|
+
"summary": "`min_lon` or `max_lon` outside the -180 to 180 range",
|
|
239
|
+
"value": {
|
|
240
|
+
"error": "Invalid Longitude Provided",
|
|
241
|
+
"message": "Longitude must be between -180 and 180.",
|
|
242
|
+
"path": "/v1.0/geocoder/search",
|
|
243
|
+
"status": 400,
|
|
244
|
+
"timestamp": "2026-11-25T10:01:12.506Z"
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
"invalidParameters": {
|
|
248
|
+
"summary": "A numeric parameter is not a valid number",
|
|
249
|
+
"value": {
|
|
250
|
+
"error": "Invalid Parameters Provided",
|
|
251
|
+
"message": "Please provide valid parameters.",
|
|
252
|
+
"path": "/v1.0/geocoder/search",
|
|
253
|
+
"status": 400,
|
|
254
|
+
"timestamp": "2026-11-25T10:01:01.358Z"
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
"missingApiKey": {
|
|
258
|
+
"summary": "No API key supplied",
|
|
259
|
+
"value": {
|
|
260
|
+
"error": "Invalid Param Exception",
|
|
261
|
+
"message": "Please provide apiKey",
|
|
262
|
+
"path": "/v1.0/geocoder/search",
|
|
263
|
+
"status": 400,
|
|
264
|
+
"timestamp": "2026-11-25T10:01:15.099Z"
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
"headers": {
|
|
271
|
+
"X-AF-Credits-Cost": {
|
|
272
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
"401": {
|
|
277
|
+
"description": "Unauthorized — The API key is invalid",
|
|
278
|
+
"content": {
|
|
279
|
+
"application/json": {
|
|
280
|
+
"schema": {
|
|
281
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
282
|
+
},
|
|
283
|
+
"examples": {
|
|
284
|
+
"invalidApiKey": {
|
|
285
|
+
"summary": "Invalid API key",
|
|
286
|
+
"value": {
|
|
287
|
+
"error": "API Access Exception",
|
|
288
|
+
"message": "Provided API key is invalid. [For Technical Support: support@apifreaks.com]",
|
|
289
|
+
"path": "/v1.0/geocoder/search",
|
|
290
|
+
"status": 401,
|
|
291
|
+
"timestamp": "2026-11-25T10:01:15.616Z"
|
|
292
|
+
}
|
|
205
293
|
}
|
|
206
294
|
}
|
|
207
295
|
}
|
|
@@ -213,7 +301,7 @@
|
|
|
213
301
|
}
|
|
214
302
|
},
|
|
215
303
|
"404": {
|
|
216
|
-
"description": "Not Found — No results matched the query",
|
|
304
|
+
"description": "Not Found — No results matched the query, or an unsupported HTTP method was used",
|
|
217
305
|
"content": {
|
|
218
306
|
"application/json": {
|
|
219
307
|
"schema": {
|
|
@@ -229,6 +317,43 @@
|
|
|
229
317
|
"status": 404,
|
|
230
318
|
"timestamp": "2026-07-22T14:29:58.349Z"
|
|
231
319
|
}
|
|
320
|
+
},
|
|
321
|
+
"methodNotAllowed": {
|
|
322
|
+
"summary": "Non-GET HTTP method used",
|
|
323
|
+
"value": {
|
|
324
|
+
"error": "Resource Not Found",
|
|
325
|
+
"message": "The requested resource could not be found. Please verify the URL and try again.",
|
|
326
|
+
"path": "/v1.0/geocoder/search",
|
|
327
|
+
"status": 404,
|
|
328
|
+
"timestamp": "2026-11-25T10:01:04.916Z"
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
"headers": {
|
|
335
|
+
"X-AF-Credits-Cost": {
|
|
336
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
"500": {
|
|
341
|
+
"description": "Internal Server Error — Returned when the request cannot be processed",
|
|
342
|
+
"content": {
|
|
343
|
+
"application/json": {
|
|
344
|
+
"schema": {
|
|
345
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
346
|
+
},
|
|
347
|
+
"examples": {
|
|
348
|
+
"internalError": {
|
|
349
|
+
"summary": "Internal server error, e.g. a zero-width viewbox where `min_lon` equals `max_lon`",
|
|
350
|
+
"value": {
|
|
351
|
+
"error": "Internal Server Error",
|
|
352
|
+
"message": "Internal Server Error Occurred.",
|
|
353
|
+
"path": "/v1.0/geocoder/search",
|
|
354
|
+
"status": 500,
|
|
355
|
+
"timestamp": "2026-11-25T10:01:14.559Z"
|
|
356
|
+
}
|
|
232
357
|
}
|
|
233
358
|
}
|
|
234
359
|
}
|
|
@@ -44,6 +44,17 @@
|
|
|
44
44
|
"format": "float"
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
|
+
{
|
|
48
|
+
"name": "format",
|
|
49
|
+
"in": "query",
|
|
50
|
+
"required": false,
|
|
51
|
+
"description": "Response format. Only `json` is supported; any other value is ignored and the response is still returned as JSON.",
|
|
52
|
+
"schema": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"enum": ["json"],
|
|
55
|
+
"default": "json"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
47
58
|
{
|
|
48
59
|
"name": "Accept-Language",
|
|
49
60
|
"in": "header",
|
|
@@ -156,6 +167,97 @@
|
|
|
156
167
|
"status": 400,
|
|
157
168
|
"timestamp": "2026-07-22T14:29:46.809Z"
|
|
158
169
|
}
|
|
170
|
+
},
|
|
171
|
+
"missingApiKey": {
|
|
172
|
+
"summary": "No API key supplied",
|
|
173
|
+
"value": {
|
|
174
|
+
"error": "Invalid Param Exception",
|
|
175
|
+
"message": "Please provide apiKey",
|
|
176
|
+
"path": "/v1.0/geocoder/reverse",
|
|
177
|
+
"status": 400,
|
|
178
|
+
"timestamp": "2026-11-25T10:01:15.099Z"
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"headers": {
|
|
185
|
+
"X-AF-Credits-Cost": {
|
|
186
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
"401": {
|
|
191
|
+
"description": "Unauthorized — The API key is invalid",
|
|
192
|
+
"content": {
|
|
193
|
+
"application/json": {
|
|
194
|
+
"schema": {
|
|
195
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
196
|
+
},
|
|
197
|
+
"examples": {
|
|
198
|
+
"invalidApiKey": {
|
|
199
|
+
"summary": "Invalid API key",
|
|
200
|
+
"value": {
|
|
201
|
+
"error": "API Access Exception",
|
|
202
|
+
"message": "Provided API key is invalid. [For Technical Support: support@apifreaks.com]",
|
|
203
|
+
"path": "/v1.0/geocoder/reverse",
|
|
204
|
+
"status": 401,
|
|
205
|
+
"timestamp": "2026-11-25T10:01:15.616Z"
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"headers": {
|
|
212
|
+
"X-AF-Credits-Cost": {
|
|
213
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"404": {
|
|
218
|
+
"description": "Not Found — An unsupported HTTP method was used",
|
|
219
|
+
"content": {
|
|
220
|
+
"application/json": {
|
|
221
|
+
"schema": {
|
|
222
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
223
|
+
},
|
|
224
|
+
"examples": {
|
|
225
|
+
"methodNotAllowed": {
|
|
226
|
+
"summary": "Non-GET HTTP method used",
|
|
227
|
+
"value": {
|
|
228
|
+
"error": "Resource Not Found",
|
|
229
|
+
"message": "The requested resource could not be found. Please verify the URL and try again.",
|
|
230
|
+
"path": "/v1.0/geocoder/reverse",
|
|
231
|
+
"status": 404,
|
|
232
|
+
"timestamp": "2026-11-25T10:01:28.856Z"
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
"headers": {
|
|
239
|
+
"X-AF-Credits-Cost": {
|
|
240
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"500": {
|
|
245
|
+
"description": "Internal Server Error — No address could be resolved for the coordinates (e.g. open ocean) or the request failed",
|
|
246
|
+
"content": {
|
|
247
|
+
"application/json": {
|
|
248
|
+
"schema": {
|
|
249
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
250
|
+
},
|
|
251
|
+
"examples": {
|
|
252
|
+
"internalError": {
|
|
253
|
+
"summary": "No address found for the coordinates, e.g. `lat=0&lon=0` in open ocean",
|
|
254
|
+
"value": {
|
|
255
|
+
"error": "Internal Server Error",
|
|
256
|
+
"message": "Internal Server Error Occurred.",
|
|
257
|
+
"path": "/v1.0/geocoder/reverse",
|
|
258
|
+
"status": 500,
|
|
259
|
+
"timestamp": "2026-11-25T10:01:25.626Z"
|
|
260
|
+
}
|
|
159
261
|
}
|
|
160
262
|
}
|
|
161
263
|
}
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"required": false,
|
|
30
30
|
"schema": {
|
|
31
31
|
"type": "string",
|
|
32
|
-
"enum": ["json"
|
|
32
|
+
"enum": ["json"],
|
|
33
33
|
"default": "json"
|
|
34
34
|
},
|
|
35
|
-
"description": "
|
|
35
|
+
"description": "Response format. Only `json` is supported; the default is `json`."
|
|
36
36
|
}
|
|
37
37
|
],
|
|
38
38
|
"requestBody": {
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
}
|
|
184
184
|
},
|
|
185
185
|
"400": {
|
|
186
|
-
"description": "Bad Request – Missing or malformed request body",
|
|
186
|
+
"description": "Bad Request – Missing or malformed request body (missing or empty `numbers`, non-array value, or invalid JSON), or missing API key",
|
|
187
187
|
"content": {
|
|
188
188
|
"application/json": {
|
|
189
189
|
"schema": {
|
|
@@ -199,6 +199,16 @@
|
|
|
199
199
|
"status": 400,
|
|
200
200
|
"timestamp": "2026-07-27T12:56:50.387Z"
|
|
201
201
|
}
|
|
202
|
+
},
|
|
203
|
+
"missingApiKey": {
|
|
204
|
+
"summary": "API key not sent",
|
|
205
|
+
"value": {
|
|
206
|
+
"error": "Invalid Param Exception",
|
|
207
|
+
"message": "Please provide apiKey",
|
|
208
|
+
"path": "/v1.0/phone/validation/bulk",
|
|
209
|
+
"status": 400,
|
|
210
|
+
"timestamp": "2026-11-25T10:07:00.000Z"
|
|
211
|
+
}
|
|
202
212
|
}
|
|
203
213
|
}
|
|
204
214
|
}
|
|
@@ -209,6 +219,28 @@
|
|
|
209
219
|
}
|
|
210
220
|
}
|
|
211
221
|
},
|
|
222
|
+
"401": {
|
|
223
|
+
"description": "Unauthorized — API key invalid",
|
|
224
|
+
"content": {
|
|
225
|
+
"application/json": {
|
|
226
|
+
"schema": {
|
|
227
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
228
|
+
},
|
|
229
|
+
"examples": {
|
|
230
|
+
"invalidApiKey": {
|
|
231
|
+
"summary": "Invalid API key",
|
|
232
|
+
"value": {
|
|
233
|
+
"error": "API Access Exception",
|
|
234
|
+
"message": "Provided API key is invalid. [For Technical Support: support@apifreaks.com]",
|
|
235
|
+
"path": "/v1.0/phone/validation/bulk",
|
|
236
|
+
"status": 401,
|
|
237
|
+
"timestamp": "2026-11-25T10:07:00.000Z"
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
},
|
|
212
244
|
"404": {
|
|
213
245
|
"description": "Not Found – Wrong HTTP method used on the endpoint (e.g. GET instead of POST)",
|
|
214
246
|
"content": {
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"required": false,
|
|
30
30
|
"schema": {
|
|
31
31
|
"type": "string",
|
|
32
|
-
"enum": ["json"
|
|
32
|
+
"enum": ["json"],
|
|
33
33
|
"default": "json"
|
|
34
34
|
},
|
|
35
|
-
"description": "
|
|
35
|
+
"description": "Response format. Only `json` is supported; the default is `json`."
|
|
36
36
|
}
|
|
37
37
|
],
|
|
38
38
|
"requestBody": {
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
},
|
|
125
125
|
"400": {
|
|
126
|
-
"description": "Bad Request – e.g. missing required field
|
|
126
|
+
"description": "Bad Request – e.g. missing required field, both region codes provided, malformed body, or missing API key",
|
|
127
127
|
"content": {
|
|
128
128
|
"application/json": {
|
|
129
129
|
"schema": {
|
|
@@ -189,6 +189,46 @@
|
|
|
189
189
|
"message": "The phone number has more digits than any valid phone number can have.",
|
|
190
190
|
"path": "/v1.0/phone-number/info"
|
|
191
191
|
}
|
|
192
|
+
},
|
|
193
|
+
"number_too_short": {
|
|
194
|
+
"summary": "Number too short after removing the international dialing prefix (e.g. `00`)",
|
|
195
|
+
"value": {
|
|
196
|
+
"timestamp": "2026-11-25T10:07:00.000Z",
|
|
197
|
+
"status": 400,
|
|
198
|
+
"error": "Number Too Short",
|
|
199
|
+
"message": "The number is too short after removing the international dialing prefix.",
|
|
200
|
+
"path": "/v1.0/phone-number/info"
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"too_short_national_number": {
|
|
204
|
+
"summary": "National number shorter than allowed (e.g. `00923` with `region` PK)",
|
|
205
|
+
"value": {
|
|
206
|
+
"timestamp": "2026-11-25T10:07:00.000Z",
|
|
207
|
+
"status": 400,
|
|
208
|
+
"error": "Too Short National Number",
|
|
209
|
+
"message": "The national number part is shorter than allowed for valid phone numbers.",
|
|
210
|
+
"path": "/v1.0/phone-number/info"
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"invalid_parameters": {
|
|
214
|
+
"summary": "Malformed JSON, missing body, or a non-string number",
|
|
215
|
+
"value": {
|
|
216
|
+
"timestamp": "2026-11-25T10:07:00.000Z",
|
|
217
|
+
"status": 400,
|
|
218
|
+
"error": "Invalid Parameters Provided",
|
|
219
|
+
"message": "Please provide valid parameters.",
|
|
220
|
+
"path": "/v1.0/phone-number/info"
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"missingApiKey": {
|
|
224
|
+
"summary": "API key not sent",
|
|
225
|
+
"value": {
|
|
226
|
+
"error": "Invalid Param Exception",
|
|
227
|
+
"message": "Please provide apiKey",
|
|
228
|
+
"path": "/v1.0/phone/validation",
|
|
229
|
+
"status": 400,
|
|
230
|
+
"timestamp": "2026-11-25T10:07:00.000Z"
|
|
231
|
+
}
|
|
192
232
|
}
|
|
193
233
|
}
|
|
194
234
|
}
|
|
@@ -199,6 +239,28 @@
|
|
|
199
239
|
}
|
|
200
240
|
}
|
|
201
241
|
},
|
|
242
|
+
"401": {
|
|
243
|
+
"description": "Unauthorized — API key invalid",
|
|
244
|
+
"content": {
|
|
245
|
+
"application/json": {
|
|
246
|
+
"schema": {
|
|
247
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
248
|
+
},
|
|
249
|
+
"examples": {
|
|
250
|
+
"invalidApiKey": {
|
|
251
|
+
"summary": "Invalid API key",
|
|
252
|
+
"value": {
|
|
253
|
+
"error": "API Access Exception",
|
|
254
|
+
"message": "Provided API key is invalid. [For Technical Support: support@apifreaks.com]",
|
|
255
|
+
"path": "/v1.0/phone/validation",
|
|
256
|
+
"status": 401,
|
|
257
|
+
"timestamp": "2026-11-25T10:07:00.000Z"
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
},
|
|
202
264
|
"404": {
|
|
203
265
|
"description": "Not Found – Wrong HTTP method used on the endpoint (e.g. GET instead of POST)",
|
|
204
266
|
"content": {
|