@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.
- package/dist/index.cjs +3722 -546
- package/dist/index.js +3722 -546
- 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/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
|
@@ -302,7 +302,7 @@
|
|
|
302
302
|
}
|
|
303
303
|
},
|
|
304
304
|
"400": {
|
|
305
|
-
"description": "Bad Request: Missing or invalid parameters, or the symbol has no intraday rates",
|
|
305
|
+
"description": "Bad Request: Missing or invalid parameters, or the symbol has no intraday rates, or missing API key",
|
|
306
306
|
"content": {
|
|
307
307
|
"application/json": {
|
|
308
308
|
"schema": {
|
|
@@ -428,6 +428,16 @@
|
|
|
428
428
|
"error": "VALIDATION_ERROR",
|
|
429
429
|
"message": "Invalid interval '7m': use one of 1m, 5m, 10m, 15m, 30m, 45m, 1h, 2h, 4h, 8h, 12h, 1d"
|
|
430
430
|
}
|
|
431
|
+
},
|
|
432
|
+
"missingApiKey": {
|
|
433
|
+
"summary": "API key not sent",
|
|
434
|
+
"value": {
|
|
435
|
+
"error": "Invalid Param Exception",
|
|
436
|
+
"message": "Please provide apiKey",
|
|
437
|
+
"path": "/v2.0/commodity/rates/intraday",
|
|
438
|
+
"status": 400,
|
|
439
|
+
"timestamp": "2026-11-25T10:07:00.000Z"
|
|
440
|
+
}
|
|
431
441
|
}
|
|
432
442
|
}
|
|
433
443
|
}
|
|
@@ -438,8 +448,30 @@
|
|
|
438
448
|
}
|
|
439
449
|
}
|
|
440
450
|
},
|
|
451
|
+
"401": {
|
|
452
|
+
"description": "Unauthorized — API key invalid",
|
|
453
|
+
"content": {
|
|
454
|
+
"application/json": {
|
|
455
|
+
"schema": {
|
|
456
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
457
|
+
},
|
|
458
|
+
"examples": {
|
|
459
|
+
"invalidApiKey": {
|
|
460
|
+
"summary": "Invalid API key",
|
|
461
|
+
"value": {
|
|
462
|
+
"error": "API Access Exception",
|
|
463
|
+
"message": "Provided API key is invalid. [For Technical Support: support@apifreaks.com]",
|
|
464
|
+
"path": "/v2.0/commodity/rates/intraday",
|
|
465
|
+
"status": 401,
|
|
466
|
+
"timestamp": "2026-11-25T10:07:00.000Z"
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
},
|
|
441
473
|
"404": {
|
|
442
|
-
"description": "Not found: Symbol not supported, or no data for the requested window",
|
|
474
|
+
"description": "Not found: Symbol not supported, or no data for the requested window, or wrong HTTP method",
|
|
443
475
|
"content": {
|
|
444
476
|
"application/json": {
|
|
445
477
|
"schema": {
|
|
@@ -470,6 +502,16 @@
|
|
|
470
502
|
"error": "DATA_NOT_FOUND",
|
|
471
503
|
"message": "No intraday data found for the specified window"
|
|
472
504
|
}
|
|
505
|
+
},
|
|
506
|
+
"wrongMethod": {
|
|
507
|
+
"summary": "Wrong HTTP method used on the endpoint",
|
|
508
|
+
"value": {
|
|
509
|
+
"error": "Resource Not Found",
|
|
510
|
+
"message": "The requested resource could not be found. Please verify the URL and try again.",
|
|
511
|
+
"path": "/v2.0/commodity/rates/intraday",
|
|
512
|
+
"status": 404,
|
|
513
|
+
"timestamp": "2026-11-25T10:07:00.000Z"
|
|
514
|
+
}
|
|
473
515
|
}
|
|
474
516
|
}
|
|
475
517
|
}
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
}
|
|
171
171
|
},
|
|
172
172
|
"400": {
|
|
173
|
-
"description": "Bad Request — Missing or invalid query parameters",
|
|
173
|
+
"description": "Bad Request — Missing or invalid query parameters, or missing API key",
|
|
174
174
|
"content": {
|
|
175
175
|
"application/json": {
|
|
176
176
|
"schema": {
|
|
@@ -186,6 +186,16 @@
|
|
|
186
186
|
"status": 400,
|
|
187
187
|
"timestamp": "2026-09-14T08:43:43.964Z"
|
|
188
188
|
}
|
|
189
|
+
},
|
|
190
|
+
"missingApiKey": {
|
|
191
|
+
"summary": "API key not sent",
|
|
192
|
+
"value": {
|
|
193
|
+
"error": "Invalid Param Exception",
|
|
194
|
+
"message": "Please provide apiKey",
|
|
195
|
+
"path": "/v2.0/commodity/rates/latest",
|
|
196
|
+
"status": 400,
|
|
197
|
+
"timestamp": "2026-11-25T10:07:00.000Z"
|
|
198
|
+
}
|
|
189
199
|
}
|
|
190
200
|
}
|
|
191
201
|
}
|
|
@@ -196,6 +206,28 @@
|
|
|
196
206
|
}
|
|
197
207
|
}
|
|
198
208
|
},
|
|
209
|
+
"401": {
|
|
210
|
+
"description": "Unauthorized — API key invalid",
|
|
211
|
+
"content": {
|
|
212
|
+
"application/json": {
|
|
213
|
+
"schema": {
|
|
214
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
215
|
+
},
|
|
216
|
+
"examples": {
|
|
217
|
+
"invalidApiKey": {
|
|
218
|
+
"summary": "Invalid API key",
|
|
219
|
+
"value": {
|
|
220
|
+
"error": "API Access Exception",
|
|
221
|
+
"message": "Provided API key is invalid. [For Technical Support: support@apifreaks.com]",
|
|
222
|
+
"path": "/v2.0/commodity/rates/latest",
|
|
223
|
+
"status": 401,
|
|
224
|
+
"timestamp": "2026-11-25T10:07:00.000Z"
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
},
|
|
199
231
|
"402": {
|
|
200
232
|
"description": "Payment Required — Maximum symbols per request exceeded",
|
|
201
233
|
"content": {
|
|
@@ -224,7 +256,7 @@
|
|
|
224
256
|
}
|
|
225
257
|
},
|
|
226
258
|
"404": {
|
|
227
|
-
"description": "Not found - Symbol or quote currency not available",
|
|
259
|
+
"description": "Not found - Symbol or quote currency not available, or wrong HTTP method",
|
|
228
260
|
"content": {
|
|
229
261
|
"application/json": {
|
|
230
262
|
"schema": {
|
|
@@ -271,6 +303,16 @@
|
|
|
271
303
|
"error": "QUOTE_NOT_FOUND",
|
|
272
304
|
"message": "The quote currency is invalid, please visit the documentation for a list of valid quote currencies"
|
|
273
305
|
}
|
|
306
|
+
},
|
|
307
|
+
"wrongMethod": {
|
|
308
|
+
"summary": "Wrong HTTP method used on the endpoint",
|
|
309
|
+
"value": {
|
|
310
|
+
"error": "Resource Not Found",
|
|
311
|
+
"message": "The requested resource could not be found. Please verify the URL and try again.",
|
|
312
|
+
"path": "/v2.0/commodity/rates/latest",
|
|
313
|
+
"status": 404,
|
|
314
|
+
"timestamp": "2026-11-25T10:07:00.000Z"
|
|
315
|
+
}
|
|
274
316
|
}
|
|
275
317
|
}
|
|
276
318
|
}
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"name": "format",
|
|
29
29
|
"in": "query",
|
|
30
30
|
"required": false,
|
|
31
|
-
"description": "Response format.
|
|
31
|
+
"description": "Response format. Only `json` is supported; the default is `json`.",
|
|
32
32
|
"schema": {
|
|
33
33
|
"type": "string",
|
|
34
34
|
"enum": ["json"],
|
|
@@ -127,6 +127,72 @@
|
|
|
127
127
|
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
+
},
|
|
131
|
+
"400": {
|
|
132
|
+
"description": "Bad Request — Missing API key",
|
|
133
|
+
"content": {
|
|
134
|
+
"application/json": {
|
|
135
|
+
"schema": {
|
|
136
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
137
|
+
},
|
|
138
|
+
"examples": {
|
|
139
|
+
"missingApiKey": {
|
|
140
|
+
"summary": "API key not sent",
|
|
141
|
+
"value": {
|
|
142
|
+
"error": "Invalid Param Exception",
|
|
143
|
+
"message": "Please provide apiKey",
|
|
144
|
+
"path": "/v2.0/commodity/symbols",
|
|
145
|
+
"status": 400,
|
|
146
|
+
"timestamp": "2026-11-25T10:07:00.000Z"
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"401": {
|
|
154
|
+
"description": "Unauthorized — API key invalid",
|
|
155
|
+
"content": {
|
|
156
|
+
"application/json": {
|
|
157
|
+
"schema": {
|
|
158
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
159
|
+
},
|
|
160
|
+
"examples": {
|
|
161
|
+
"invalidApiKey": {
|
|
162
|
+
"summary": "Invalid API key",
|
|
163
|
+
"value": {
|
|
164
|
+
"error": "API Access Exception",
|
|
165
|
+
"message": "Provided API key is invalid. [For Technical Support: support@apifreaks.com]",
|
|
166
|
+
"path": "/v2.0/commodity/symbols",
|
|
167
|
+
"status": 401,
|
|
168
|
+
"timestamp": "2026-11-25T10:07:00.000Z"
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"404": {
|
|
176
|
+
"description": "Not Found — Wrong HTTP method used on the endpoint (e.g. POST instead of GET)",
|
|
177
|
+
"content": {
|
|
178
|
+
"application/json": {
|
|
179
|
+
"schema": {
|
|
180
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
181
|
+
},
|
|
182
|
+
"examples": {
|
|
183
|
+
"wrongMethod": {
|
|
184
|
+
"summary": "Wrong HTTP method used on the endpoint",
|
|
185
|
+
"value": {
|
|
186
|
+
"error": "Resource Not Found",
|
|
187
|
+
"message": "The requested resource could not be found. Please verify the URL and try again.",
|
|
188
|
+
"path": "/v2.0/commodity/symbols",
|
|
189
|
+
"status": 404,
|
|
190
|
+
"timestamp": "2026-11-25T10:07:00.000Z"
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
130
196
|
}
|
|
131
197
|
}
|
|
132
198
|
}
|
|
@@ -263,6 +329,34 @@
|
|
|
263
329
|
"description": "Full name of the unit of measurement (e.g., Troy Ounce)."
|
|
264
330
|
}
|
|
265
331
|
}
|
|
332
|
+
},
|
|
333
|
+
"ErrorResponse": {
|
|
334
|
+
"type": "object",
|
|
335
|
+
"description": "Standard error envelope returned by the API on failed requests.",
|
|
336
|
+
"required": ["message"],
|
|
337
|
+
"properties": {
|
|
338
|
+
"error": {
|
|
339
|
+
"type": "string",
|
|
340
|
+
"description": "Short error category or exception type."
|
|
341
|
+
},
|
|
342
|
+
"message": {
|
|
343
|
+
"type": "string",
|
|
344
|
+
"description": "Human-readable error message describing the failure."
|
|
345
|
+
},
|
|
346
|
+
"path": {
|
|
347
|
+
"type": "string",
|
|
348
|
+
"description": "API endpoint path that produced the error."
|
|
349
|
+
},
|
|
350
|
+
"status": {
|
|
351
|
+
"type": "integer",
|
|
352
|
+
"description": "HTTP status code returned with the error."
|
|
353
|
+
},
|
|
354
|
+
"timestamp": {
|
|
355
|
+
"type": "string",
|
|
356
|
+
"format": "date-time",
|
|
357
|
+
"description": "Timestamp when the error occurred (ISO 8601)."
|
|
358
|
+
}
|
|
359
|
+
}
|
|
266
360
|
}
|
|
267
361
|
},
|
|
268
362
|
"headers": {
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
}
|
|
207
207
|
},
|
|
208
208
|
"400": {
|
|
209
|
-
"description": "Bad Request — Missing parameters, invalid dates, or date range exceeded",
|
|
209
|
+
"description": "Bad Request — Missing parameters, invalid dates, or date range exceeded, or missing API key",
|
|
210
210
|
"content": {
|
|
211
211
|
"application/json": {
|
|
212
212
|
"examples": {
|
|
@@ -249,6 +249,16 @@
|
|
|
249
249
|
"error": "VALIDATION_ERROR",
|
|
250
250
|
"message": "Date range exceeds the allowed limit."
|
|
251
251
|
}
|
|
252
|
+
},
|
|
253
|
+
"missingApiKey": {
|
|
254
|
+
"summary": "API key not sent",
|
|
255
|
+
"value": {
|
|
256
|
+
"error": "Invalid Param Exception",
|
|
257
|
+
"message": "Please provide apiKey",
|
|
258
|
+
"path": "/v2.0/commodity/time-series",
|
|
259
|
+
"status": 400,
|
|
260
|
+
"timestamp": "2026-11-25T10:07:00.000Z"
|
|
261
|
+
}
|
|
252
262
|
}
|
|
253
263
|
},
|
|
254
264
|
"schema": {
|
|
@@ -262,6 +272,28 @@
|
|
|
262
272
|
}
|
|
263
273
|
}
|
|
264
274
|
},
|
|
275
|
+
"401": {
|
|
276
|
+
"description": "Unauthorized — API key invalid",
|
|
277
|
+
"content": {
|
|
278
|
+
"application/json": {
|
|
279
|
+
"schema": {
|
|
280
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
281
|
+
},
|
|
282
|
+
"examples": {
|
|
283
|
+
"invalidApiKey": {
|
|
284
|
+
"summary": "Invalid API key",
|
|
285
|
+
"value": {
|
|
286
|
+
"error": "API Access Exception",
|
|
287
|
+
"message": "Provided API key is invalid. [For Technical Support: support@apifreaks.com]",
|
|
288
|
+
"path": "/v2.0/commodity/time-series",
|
|
289
|
+
"status": 401,
|
|
290
|
+
"timestamp": "2026-11-25T10:07:00.000Z"
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
},
|
|
265
297
|
"402": {
|
|
266
298
|
"description": "Payment Required — Maximum symbols per request exceeded",
|
|
267
299
|
"content": {
|
|
@@ -290,7 +322,7 @@
|
|
|
290
322
|
}
|
|
291
323
|
},
|
|
292
324
|
"404": {
|
|
293
|
-
"description": "Not found - Symbol or data not available",
|
|
325
|
+
"description": "Not found - Symbol or data not available, or wrong HTTP method",
|
|
294
326
|
"content": {
|
|
295
327
|
"application/json": {
|
|
296
328
|
"schema": {
|
|
@@ -321,6 +353,16 @@
|
|
|
321
353
|
"error": "DATA_NOT_FOUND",
|
|
322
354
|
"message": "No data found for the specified date range"
|
|
323
355
|
}
|
|
356
|
+
},
|
|
357
|
+
"wrongMethod": {
|
|
358
|
+
"summary": "Wrong HTTP method used on the endpoint",
|
|
359
|
+
"value": {
|
|
360
|
+
"error": "Resource Not Found",
|
|
361
|
+
"message": "The requested resource could not be found. Please verify the URL and try again.",
|
|
362
|
+
"path": "/v2.0/commodity/time-series",
|
|
363
|
+
"status": 404,
|
|
364
|
+
"timestamp": "2026-11-25T10:07:00.000Z"
|
|
365
|
+
}
|
|
324
366
|
}
|
|
325
367
|
}
|
|
326
368
|
}
|
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
}
|
|
173
173
|
},
|
|
174
174
|
"400": {
|
|
175
|
-
"description": "Bad Request — Missing parameters or invalid date",
|
|
175
|
+
"description": "Bad Request — Missing parameters or invalid date, or missing API key",
|
|
176
176
|
"content": {
|
|
177
177
|
"application/json": {
|
|
178
178
|
"schema": {
|
|
@@ -208,6 +208,16 @@
|
|
|
208
208
|
"error": "VALIDATION_ERROR",
|
|
209
209
|
"message": "Invalid Date: The provided date does not exist."
|
|
210
210
|
}
|
|
211
|
+
},
|
|
212
|
+
"missingApiKey": {
|
|
213
|
+
"summary": "API key not sent",
|
|
214
|
+
"value": {
|
|
215
|
+
"error": "Invalid Param Exception",
|
|
216
|
+
"message": "Please provide apiKey",
|
|
217
|
+
"path": "/v2.0/commodity/rates/historical",
|
|
218
|
+
"status": 400,
|
|
219
|
+
"timestamp": "2026-11-25T10:07:00.000Z"
|
|
220
|
+
}
|
|
211
221
|
}
|
|
212
222
|
}
|
|
213
223
|
}
|
|
@@ -218,6 +228,28 @@
|
|
|
218
228
|
}
|
|
219
229
|
}
|
|
220
230
|
},
|
|
231
|
+
"401": {
|
|
232
|
+
"description": "Unauthorized — API key invalid",
|
|
233
|
+
"content": {
|
|
234
|
+
"application/json": {
|
|
235
|
+
"schema": {
|
|
236
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
237
|
+
},
|
|
238
|
+
"examples": {
|
|
239
|
+
"invalidApiKey": {
|
|
240
|
+
"summary": "Invalid API key",
|
|
241
|
+
"value": {
|
|
242
|
+
"error": "API Access Exception",
|
|
243
|
+
"message": "Provided API key is invalid. [For Technical Support: support@apifreaks.com]",
|
|
244
|
+
"path": "/v2.0/commodity/rates/historical",
|
|
245
|
+
"status": 401,
|
|
246
|
+
"timestamp": "2026-11-25T10:07:00.000Z"
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
},
|
|
221
253
|
"402": {
|
|
222
254
|
"description": "Payment Required — Maximum symbols per request exceeded",
|
|
223
255
|
"content": {
|
|
@@ -246,7 +278,7 @@
|
|
|
246
278
|
}
|
|
247
279
|
},
|
|
248
280
|
"404": {
|
|
249
|
-
"description": "Not found - Symbol or rate not available",
|
|
281
|
+
"description": "Not found - Symbol or rate not available, or wrong HTTP method",
|
|
250
282
|
"content": {
|
|
251
283
|
"application/json": {
|
|
252
284
|
"schema": {
|
|
@@ -277,6 +309,16 @@
|
|
|
277
309
|
"error": "RATE_NOT_FOUND",
|
|
278
310
|
"message": "no rates found for the specified date"
|
|
279
311
|
}
|
|
312
|
+
},
|
|
313
|
+
"wrongMethod": {
|
|
314
|
+
"summary": "Wrong HTTP method used on the endpoint",
|
|
315
|
+
"value": {
|
|
316
|
+
"error": "Resource Not Found",
|
|
317
|
+
"message": "The requested resource could not be found. Please verify the URL and try again.",
|
|
318
|
+
"path": "/v2.0/commodity/rates/historical",
|
|
319
|
+
"status": 404,
|
|
320
|
+
"timestamp": "2026-11-25T10:07:00.000Z"
|
|
321
|
+
}
|
|
280
322
|
}
|
|
281
323
|
}
|
|
282
324
|
}
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"post": {
|
|
22
22
|
"tags": ["DNS APIs"],
|
|
23
23
|
"summary": "Retrieve A, AAAA, MX, NS, SOA, SPF, TXT, and CNAME DNS records of multiple hostnames in a single request",
|
|
24
|
-
"description": "Perform DNS lookups for multiple hostnames in a single request. Supports up to 100 hostnames per request and returns DNS records including A, AAAA, MX, NS, SOA, SPF, TXT, and CNAME records. IP addresses in `ipAddresses` are looked up for PTR records
|
|
24
|
+
"description": "Perform DNS lookups for multiple hostnames in a single request. Supports up to 100 hostnames per request and returns DNS records including A, AAAA, MX, NS, SOA, SPF, TXT, and CNAME records. IP addresses in `ipAddresses` are looked up for PTR records when `type` is `PTR` or `all`. Entries in the response are not guaranteed to follow request order, and a hostname submitted more than once is returned once. Each hostname in `domainNames` costs 15 credits, including duplicates and unregistered domains; hostnames that cannot be processed, IP addresses, and error responses are not charged.",
|
|
25
25
|
"operationId": "bulkDnsLookup",
|
|
26
26
|
"parameters": [
|
|
27
27
|
{
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
"required": true,
|
|
42
42
|
"style": "form",
|
|
43
43
|
"explode": false,
|
|
44
|
-
"description": "A comma-separated list of DNS record types for lookup (for example `MX,TXT`), or `all` for every supported type. Values are case-insensitive.",
|
|
44
|
+
"description": "A comma-separated list of DNS record types for lookup (for example `MX,TXT`), or `all` for every supported type. Values are case-insensitive. `PTR` (also included in `all`) is looked up only for the IP addresses in `ipAddresses`; with any other type the IP addresses are returned with an empty `dnsRecords` array.",
|
|
45
45
|
"schema": {
|
|
46
46
|
"type": "array",
|
|
47
47
|
"items": {
|
|
48
48
|
"type": "string",
|
|
49
|
-
"enum": ["A", "AAAA", "MX", "NS", "SOA", "SPF", "TXT", "CNAME", "all"]
|
|
49
|
+
"enum": ["A", "AAAA", "MX", "NS", "SOA", "SPF", "TXT", "CNAME", "PTR", "all"]
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -502,7 +502,7 @@
|
|
|
502
502
|
}
|
|
503
503
|
},
|
|
504
504
|
"400": {
|
|
505
|
-
"description": "Bad Request — Missing or unsupported type parameter,
|
|
505
|
+
"description": "Bad Request — Missing or unsupported type parameter, a missing, empty or malformed request body (domainNames is required and must be a non-empty array; ipAddresses alone is rejected), or a missing API key",
|
|
506
506
|
"content": {
|
|
507
507
|
"application/json": {
|
|
508
508
|
"schema": {
|
|
@@ -538,6 +538,16 @@
|
|
|
538
538
|
"status": 400,
|
|
539
539
|
"timestamp": "2026-07-23T09:52:49.074Z"
|
|
540
540
|
}
|
|
541
|
+
},
|
|
542
|
+
"missingApiKey": {
|
|
543
|
+
"summary": "API key not sent",
|
|
544
|
+
"value": {
|
|
545
|
+
"error": "Invalid Param Exception",
|
|
546
|
+
"message": "Please provide apiKey",
|
|
547
|
+
"path": "/v1.0/domain/dns/live",
|
|
548
|
+
"status": 400,
|
|
549
|
+
"timestamp": "2026-11-25T10:07:00.000Z"
|
|
550
|
+
}
|
|
541
551
|
}
|
|
542
552
|
}
|
|
543
553
|
}
|
|
@@ -620,6 +630,55 @@
|
|
|
620
630
|
}
|
|
621
631
|
}
|
|
622
632
|
},
|
|
633
|
+
"401": {
|
|
634
|
+
"description": "Unauthorized — API key invalid",
|
|
635
|
+
"content": {
|
|
636
|
+
"application/json": {
|
|
637
|
+
"schema": {
|
|
638
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
639
|
+
},
|
|
640
|
+
"examples": {
|
|
641
|
+
"invalidApiKey": {
|
|
642
|
+
"summary": "Invalid API key",
|
|
643
|
+
"value": {
|
|
644
|
+
"error": "API Access Exception",
|
|
645
|
+
"message": "Provided API key is invalid. [For Technical Support: support@apifreaks.com]",
|
|
646
|
+
"path": "/v1.0/domain/dns/live",
|
|
647
|
+
"status": 401,
|
|
648
|
+
"timestamp": "2026-11-25T10:07:00.000Z"
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
},
|
|
655
|
+
"406": {
|
|
656
|
+
"description": "Unsupported Media Type — format is not json or xml",
|
|
657
|
+
"content": {
|
|
658
|
+
"application/json": {
|
|
659
|
+
"schema": {
|
|
660
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
661
|
+
},
|
|
662
|
+
"examples": {
|
|
663
|
+
"badFormat": {
|
|
664
|
+
"summary": "format value not supported",
|
|
665
|
+
"value": {
|
|
666
|
+
"error": "Unsupported Media Type",
|
|
667
|
+
"message": "The media type specified in the request is not supported. For more details, please refer to the API documentation.",
|
|
668
|
+
"path": "/v1.0/domain/dns/live",
|
|
669
|
+
"status": 406,
|
|
670
|
+
"timestamp": "2026-11-25T10:07:00.000Z"
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
},
|
|
676
|
+
"headers": {
|
|
677
|
+
"X-AF-Credits-Cost": {
|
|
678
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
},
|
|
623
682
|
"413": {
|
|
624
683
|
"description": "Payload Too Large — Request exceeds the 100-hostname batch limit",
|
|
625
684
|
"content": {
|