@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
|
@@ -100,7 +100,7 @@ paths:
|
|
|
100
100
|
X-AF-Credits-Cost:
|
|
101
101
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
102
102
|
'400':
|
|
103
|
-
description: Bad Request — Missing parameters or invalid dates
|
|
103
|
+
description: Bad Request — Missing parameters or invalid dates, or missing API key
|
|
104
104
|
content:
|
|
105
105
|
application/json:
|
|
106
106
|
examples:
|
|
@@ -136,11 +136,34 @@ paths:
|
|
|
136
136
|
code: 400
|
|
137
137
|
error: VALIDATION_ERROR
|
|
138
138
|
message: Start date cannot be after end date
|
|
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/fluctuation
|
|
145
|
+
status: 400
|
|
146
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
139
147
|
schema:
|
|
140
148
|
$ref: '#/components/schemas/ErrorResponse'
|
|
141
149
|
headers:
|
|
142
150
|
X-AF-Credits-Cost:
|
|
143
151
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
152
|
+
'401':
|
|
153
|
+
description: Unauthorized — API key invalid
|
|
154
|
+
content:
|
|
155
|
+
application/json:
|
|
156
|
+
schema:
|
|
157
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
158
|
+
examples:
|
|
159
|
+
invalidApiKey:
|
|
160
|
+
summary: Invalid API key
|
|
161
|
+
value:
|
|
162
|
+
error: API Access Exception
|
|
163
|
+
message: 'Provided API key is invalid. [For Technical Support: support@apifreaks.com]'
|
|
164
|
+
path: /v2.0/commodity/fluctuation
|
|
165
|
+
status: 401
|
|
166
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
144
167
|
'402':
|
|
145
168
|
description: Payment Required — Maximum symbols per request exceeded
|
|
146
169
|
content:
|
|
@@ -160,7 +183,7 @@ paths:
|
|
|
160
183
|
X-AF-Credits-Cost:
|
|
161
184
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
162
185
|
'404':
|
|
163
|
-
description: Not found - Symbol or data not available
|
|
186
|
+
description: Not found - Symbol or data not available, or wrong HTTP method
|
|
164
187
|
content:
|
|
165
188
|
application/json:
|
|
166
189
|
schema:
|
|
@@ -185,6 +208,14 @@ paths:
|
|
|
185
208
|
code: 404
|
|
186
209
|
error: DATA_NOT_FOUND
|
|
187
210
|
message: No data found for the given date range
|
|
211
|
+
wrongMethod:
|
|
212
|
+
summary: Wrong HTTP method used on the endpoint
|
|
213
|
+
value:
|
|
214
|
+
error: Resource Not Found
|
|
215
|
+
message: The requested resource could not be found. Please verify the URL and try again.
|
|
216
|
+
path: /v2.0/commodity/fluctuation
|
|
217
|
+
status: 404
|
|
218
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
188
219
|
headers:
|
|
189
220
|
X-AF-Credits-Cost:
|
|
190
221
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
@@ -251,7 +251,7 @@ paths:
|
|
|
251
251
|
X-AF-Credits-Cost:
|
|
252
252
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
253
253
|
'400':
|
|
254
|
-
description: 'Bad Request: Missing or invalid parameters, or the symbol has no intraday rates'
|
|
254
|
+
description: 'Bad Request: Missing or invalid parameters, or the symbol has no intraday rates, or missing API key'
|
|
255
255
|
content:
|
|
256
256
|
application/json:
|
|
257
257
|
schema:
|
|
@@ -353,11 +353,34 @@ paths:
|
|
|
353
353
|
code: 400
|
|
354
354
|
error: VALIDATION_ERROR
|
|
355
355
|
message: 'Invalid interval ''7m'': use one of 1m, 5m, 10m, 15m, 30m, 45m, 1h, 2h, 4h, 8h, 12h, 1d'
|
|
356
|
+
missingApiKey:
|
|
357
|
+
summary: API key not sent
|
|
358
|
+
value:
|
|
359
|
+
error: Invalid Param Exception
|
|
360
|
+
message: Please provide apiKey
|
|
361
|
+
path: /v2.0/commodity/rates/intraday
|
|
362
|
+
status: 400
|
|
363
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
356
364
|
headers:
|
|
357
365
|
X-AF-Credits-Cost:
|
|
358
366
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
367
|
+
'401':
|
|
368
|
+
description: Unauthorized — API key invalid
|
|
369
|
+
content:
|
|
370
|
+
application/json:
|
|
371
|
+
schema:
|
|
372
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
373
|
+
examples:
|
|
374
|
+
invalidApiKey:
|
|
375
|
+
summary: Invalid API key
|
|
376
|
+
value:
|
|
377
|
+
error: API Access Exception
|
|
378
|
+
message: 'Provided API key is invalid. [For Technical Support: support@apifreaks.com]'
|
|
379
|
+
path: /v2.0/commodity/rates/intraday
|
|
380
|
+
status: 401
|
|
381
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
359
382
|
'404':
|
|
360
|
-
description: 'Not found: Symbol not supported, or no data for the requested window'
|
|
383
|
+
description: 'Not found: Symbol not supported, or no data for the requested window, or wrong HTTP method'
|
|
361
384
|
content:
|
|
362
385
|
application/json:
|
|
363
386
|
schema:
|
|
@@ -382,6 +405,14 @@ paths:
|
|
|
382
405
|
code: 404
|
|
383
406
|
error: DATA_NOT_FOUND
|
|
384
407
|
message: No intraday data found for the specified window
|
|
408
|
+
wrongMethod:
|
|
409
|
+
summary: Wrong HTTP method used on the endpoint
|
|
410
|
+
value:
|
|
411
|
+
error: Resource Not Found
|
|
412
|
+
message: The requested resource could not be found. Please verify the URL and try again.
|
|
413
|
+
path: /v2.0/commodity/rates/intraday
|
|
414
|
+
status: 404
|
|
415
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
385
416
|
headers:
|
|
386
417
|
X-AF-Credits-Cost:
|
|
387
418
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
@@ -119,7 +119,7 @@ paths:
|
|
|
119
119
|
X-AF-Credits-Cost:
|
|
120
120
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
121
121
|
'400':
|
|
122
|
-
description: Bad Request — Missing or invalid query parameters
|
|
122
|
+
description: Bad Request — Missing or invalid query parameters, or missing API key
|
|
123
123
|
content:
|
|
124
124
|
application/json:
|
|
125
125
|
schema:
|
|
@@ -133,9 +133,32 @@ paths:
|
|
|
133
133
|
path: /v2.0/commodity/rates/latest
|
|
134
134
|
status: 400
|
|
135
135
|
timestamp: '2026-09-14T08:43:43.964Z'
|
|
136
|
+
missingApiKey:
|
|
137
|
+
summary: API key not sent
|
|
138
|
+
value:
|
|
139
|
+
error: Invalid Param Exception
|
|
140
|
+
message: Please provide apiKey
|
|
141
|
+
path: /v2.0/commodity/rates/latest
|
|
142
|
+
status: 400
|
|
143
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
136
144
|
headers:
|
|
137
145
|
X-AF-Credits-Cost:
|
|
138
146
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
147
|
+
'401':
|
|
148
|
+
description: Unauthorized — API key invalid
|
|
149
|
+
content:
|
|
150
|
+
application/json:
|
|
151
|
+
schema:
|
|
152
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
153
|
+
examples:
|
|
154
|
+
invalidApiKey:
|
|
155
|
+
summary: Invalid API key
|
|
156
|
+
value:
|
|
157
|
+
error: API Access Exception
|
|
158
|
+
message: 'Provided API key is invalid. [For Technical Support: support@apifreaks.com]'
|
|
159
|
+
path: /v2.0/commodity/rates/latest
|
|
160
|
+
status: 401
|
|
161
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
139
162
|
'402':
|
|
140
163
|
description: Payment Required — Maximum symbols per request exceeded
|
|
141
164
|
content:
|
|
@@ -155,7 +178,7 @@ paths:
|
|
|
155
178
|
X-AF-Credits-Cost:
|
|
156
179
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
157
180
|
'404':
|
|
158
|
-
description: Not found - Symbol or quote currency not available
|
|
181
|
+
description: Not found - Symbol or quote currency not available, or wrong HTTP method
|
|
159
182
|
content:
|
|
160
183
|
application/json:
|
|
161
184
|
schema:
|
|
@@ -194,6 +217,14 @@ paths:
|
|
|
194
217
|
code: 404
|
|
195
218
|
error: QUOTE_NOT_FOUND
|
|
196
219
|
message: The quote currency is invalid, please visit the documentation for a list of valid quote currencies
|
|
220
|
+
wrongMethod:
|
|
221
|
+
summary: Wrong HTTP method used on the endpoint
|
|
222
|
+
value:
|
|
223
|
+
error: Resource Not Found
|
|
224
|
+
message: The requested resource could not be found. Please verify the URL and try again.
|
|
225
|
+
path: /v2.0/commodity/rates/latest
|
|
226
|
+
status: 404
|
|
227
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
197
228
|
headers:
|
|
198
229
|
X-AF-Credits-Cost:
|
|
199
230
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
@@ -22,7 +22,7 @@ paths:
|
|
|
22
22
|
- name: format
|
|
23
23
|
in: query
|
|
24
24
|
required: false
|
|
25
|
-
description:
|
|
25
|
+
description: Response format. Only `json` is supported; the default is `json`.
|
|
26
26
|
schema:
|
|
27
27
|
type: string
|
|
28
28
|
enum:
|
|
@@ -94,6 +94,51 @@ paths:
|
|
|
94
94
|
headers:
|
|
95
95
|
X-AF-Credits-Cost:
|
|
96
96
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
97
|
+
'400':
|
|
98
|
+
description: Bad Request — Missing API key
|
|
99
|
+
content:
|
|
100
|
+
application/json:
|
|
101
|
+
schema:
|
|
102
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
103
|
+
examples:
|
|
104
|
+
missingApiKey:
|
|
105
|
+
summary: API key not sent
|
|
106
|
+
value:
|
|
107
|
+
error: Invalid Param Exception
|
|
108
|
+
message: Please provide apiKey
|
|
109
|
+
path: /v2.0/commodity/symbols
|
|
110
|
+
status: 400
|
|
111
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
112
|
+
'401':
|
|
113
|
+
description: Unauthorized — API key invalid
|
|
114
|
+
content:
|
|
115
|
+
application/json:
|
|
116
|
+
schema:
|
|
117
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
118
|
+
examples:
|
|
119
|
+
invalidApiKey:
|
|
120
|
+
summary: Invalid API key
|
|
121
|
+
value:
|
|
122
|
+
error: API Access Exception
|
|
123
|
+
message: 'Provided API key is invalid. [For Technical Support: support@apifreaks.com]'
|
|
124
|
+
path: /v2.0/commodity/symbols
|
|
125
|
+
status: 401
|
|
126
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
127
|
+
'404':
|
|
128
|
+
description: Not Found — Wrong HTTP method used on the endpoint (e.g. POST instead of GET)
|
|
129
|
+
content:
|
|
130
|
+
application/json:
|
|
131
|
+
schema:
|
|
132
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
133
|
+
examples:
|
|
134
|
+
wrongMethod:
|
|
135
|
+
summary: Wrong HTTP method used on the endpoint
|
|
136
|
+
value:
|
|
137
|
+
error: Resource Not Found
|
|
138
|
+
message: The requested resource could not be found. Please verify the URL and try again.
|
|
139
|
+
path: /v2.0/commodity/symbols
|
|
140
|
+
status: 404
|
|
141
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
97
142
|
components:
|
|
98
143
|
securitySchemes:
|
|
99
144
|
ApiKeyAuthHeader:
|
|
@@ -204,6 +249,28 @@ components:
|
|
|
204
249
|
name:
|
|
205
250
|
type: string
|
|
206
251
|
description: Full name of the unit of measurement (e.g., Troy Ounce).
|
|
252
|
+
ErrorResponse:
|
|
253
|
+
type: object
|
|
254
|
+
description: Standard error envelope returned by the API on failed requests.
|
|
255
|
+
required:
|
|
256
|
+
- message
|
|
257
|
+
properties:
|
|
258
|
+
error:
|
|
259
|
+
type: string
|
|
260
|
+
description: Short error category or exception type.
|
|
261
|
+
message:
|
|
262
|
+
type: string
|
|
263
|
+
description: Human-readable error message describing the failure.
|
|
264
|
+
path:
|
|
265
|
+
type: string
|
|
266
|
+
description: API endpoint path that produced the error.
|
|
267
|
+
status:
|
|
268
|
+
type: integer
|
|
269
|
+
description: HTTP status code returned with the error.
|
|
270
|
+
timestamp:
|
|
271
|
+
type: string
|
|
272
|
+
format: date-time
|
|
273
|
+
description: Timestamp when the error occurred (ISO 8601).
|
|
207
274
|
headers:
|
|
208
275
|
X-AF-Credits-Cost:
|
|
209
276
|
description: Specifies the number of credits consumed by the current request.
|
|
@@ -146,7 +146,7 @@ paths:
|
|
|
146
146
|
X-AF-Credits-Cost:
|
|
147
147
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
148
148
|
'400':
|
|
149
|
-
description: Bad Request — Missing parameters, invalid dates, or date range exceeded
|
|
149
|
+
description: Bad Request — Missing parameters, invalid dates, or date range exceeded, or missing API key
|
|
150
150
|
content:
|
|
151
151
|
application/json:
|
|
152
152
|
examples:
|
|
@@ -182,11 +182,34 @@ paths:
|
|
|
182
182
|
code: 400
|
|
183
183
|
error: VALIDATION_ERROR
|
|
184
184
|
message: Date range exceeds the allowed limit.
|
|
185
|
+
missingApiKey:
|
|
186
|
+
summary: API key not sent
|
|
187
|
+
value:
|
|
188
|
+
error: Invalid Param Exception
|
|
189
|
+
message: Please provide apiKey
|
|
190
|
+
path: /v2.0/commodity/time-series
|
|
191
|
+
status: 400
|
|
192
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
185
193
|
schema:
|
|
186
194
|
$ref: '#/components/schemas/ErrorResponse'
|
|
187
195
|
headers:
|
|
188
196
|
X-AF-Credits-Cost:
|
|
189
197
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
198
|
+
'401':
|
|
199
|
+
description: Unauthorized — API key invalid
|
|
200
|
+
content:
|
|
201
|
+
application/json:
|
|
202
|
+
schema:
|
|
203
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
204
|
+
examples:
|
|
205
|
+
invalidApiKey:
|
|
206
|
+
summary: Invalid API key
|
|
207
|
+
value:
|
|
208
|
+
error: API Access Exception
|
|
209
|
+
message: 'Provided API key is invalid. [For Technical Support: support@apifreaks.com]'
|
|
210
|
+
path: /v2.0/commodity/time-series
|
|
211
|
+
status: 401
|
|
212
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
190
213
|
'402':
|
|
191
214
|
description: Payment Required — Maximum symbols per request exceeded
|
|
192
215
|
content:
|
|
@@ -206,7 +229,7 @@ paths:
|
|
|
206
229
|
X-AF-Credits-Cost:
|
|
207
230
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
208
231
|
'404':
|
|
209
|
-
description: Not found - Symbol or data not available
|
|
232
|
+
description: Not found - Symbol or data not available, or wrong HTTP method
|
|
210
233
|
content:
|
|
211
234
|
application/json:
|
|
212
235
|
schema:
|
|
@@ -231,6 +254,14 @@ paths:
|
|
|
231
254
|
code: 404
|
|
232
255
|
error: DATA_NOT_FOUND
|
|
233
256
|
message: No data found for the specified date range
|
|
257
|
+
wrongMethod:
|
|
258
|
+
summary: Wrong HTTP method used on the endpoint
|
|
259
|
+
value:
|
|
260
|
+
error: Resource Not Found
|
|
261
|
+
message: The requested resource could not be found. Please verify the URL and try again.
|
|
262
|
+
path: /v2.0/commodity/time-series
|
|
263
|
+
status: 404
|
|
264
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
234
265
|
headers:
|
|
235
266
|
X-AF-Credits-Cost:
|
|
236
267
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
@@ -123,7 +123,7 @@ paths:
|
|
|
123
123
|
X-AF-Credits-Cost:
|
|
124
124
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
125
125
|
'400':
|
|
126
|
-
description: Bad Request — Missing parameters or invalid date
|
|
126
|
+
description: Bad Request — Missing parameters or invalid date, or missing API key
|
|
127
127
|
content:
|
|
128
128
|
application/json:
|
|
129
129
|
schema:
|
|
@@ -153,9 +153,32 @@ paths:
|
|
|
153
153
|
code: 400
|
|
154
154
|
error: VALIDATION_ERROR
|
|
155
155
|
message: 'Invalid Date: The provided date does not exist.'
|
|
156
|
+
missingApiKey:
|
|
157
|
+
summary: API key not sent
|
|
158
|
+
value:
|
|
159
|
+
error: Invalid Param Exception
|
|
160
|
+
message: Please provide apiKey
|
|
161
|
+
path: /v2.0/commodity/rates/historical
|
|
162
|
+
status: 400
|
|
163
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
156
164
|
headers:
|
|
157
165
|
X-AF-Credits-Cost:
|
|
158
166
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
167
|
+
'401':
|
|
168
|
+
description: Unauthorized — API key invalid
|
|
169
|
+
content:
|
|
170
|
+
application/json:
|
|
171
|
+
schema:
|
|
172
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
173
|
+
examples:
|
|
174
|
+
invalidApiKey:
|
|
175
|
+
summary: Invalid API key
|
|
176
|
+
value:
|
|
177
|
+
error: API Access Exception
|
|
178
|
+
message: 'Provided API key is invalid. [For Technical Support: support@apifreaks.com]'
|
|
179
|
+
path: /v2.0/commodity/rates/historical
|
|
180
|
+
status: 401
|
|
181
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
159
182
|
'402':
|
|
160
183
|
description: Payment Required — Maximum symbols per request exceeded
|
|
161
184
|
content:
|
|
@@ -175,7 +198,7 @@ paths:
|
|
|
175
198
|
X-AF-Credits-Cost:
|
|
176
199
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
177
200
|
'404':
|
|
178
|
-
description: Not found - Symbol or rate not available
|
|
201
|
+
description: Not found - Symbol or rate not available, or wrong HTTP method
|
|
179
202
|
content:
|
|
180
203
|
application/json:
|
|
181
204
|
schema:
|
|
@@ -200,6 +223,14 @@ paths:
|
|
|
200
223
|
code: 404
|
|
201
224
|
error: RATE_NOT_FOUND
|
|
202
225
|
message: no rates found for the specified date
|
|
226
|
+
wrongMethod:
|
|
227
|
+
summary: Wrong HTTP method used on the endpoint
|
|
228
|
+
value:
|
|
229
|
+
error: Resource Not Found
|
|
230
|
+
message: The requested resource could not be found. Please verify the URL and try again.
|
|
231
|
+
path: /v2.0/commodity/rates/historical
|
|
232
|
+
status: 404
|
|
233
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
203
234
|
headers:
|
|
204
235
|
X-AF-Credits-Cost:
|
|
205
236
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
@@ -16,7 +16,7 @@ paths:
|
|
|
16
16
|
tags:
|
|
17
17
|
- DNS APIs
|
|
18
18
|
summary: Retrieve A, AAAA, MX, NS, SOA, SPF, TXT, and CNAME DNS records of multiple hostnames in a single request
|
|
19
|
-
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
|
|
19
|
+
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.
|
|
20
20
|
operationId: bulkDnsLookup
|
|
21
21
|
parameters:
|
|
22
22
|
- name: format
|
|
@@ -34,7 +34,7 @@ paths:
|
|
|
34
34
|
required: true
|
|
35
35
|
style: form
|
|
36
36
|
explode: false
|
|
37
|
-
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.
|
|
37
|
+
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.
|
|
38
38
|
schema:
|
|
39
39
|
type: array
|
|
40
40
|
items:
|
|
@@ -48,6 +48,7 @@ paths:
|
|
|
48
48
|
- SPF
|
|
49
49
|
- TXT
|
|
50
50
|
- CNAME
|
|
51
|
+
- PTR
|
|
51
52
|
- all
|
|
52
53
|
requestBody:
|
|
53
54
|
required: true
|
|
@@ -440,7 +441,7 @@ paths:
|
|
|
440
441
|
X-AF-Credits-Cost:
|
|
441
442
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
442
443
|
'400':
|
|
443
|
-
description: Bad Request — Missing or unsupported type parameter,
|
|
444
|
+
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
|
|
444
445
|
content:
|
|
445
446
|
application/json:
|
|
446
447
|
schema:
|
|
@@ -470,6 +471,47 @@ paths:
|
|
|
470
471
|
path: /v1.0/domain/dns/live
|
|
471
472
|
status: 400
|
|
472
473
|
timestamp: '2026-07-23T09:52:49.074Z'
|
|
474
|
+
missingApiKey:
|
|
475
|
+
summary: API key not sent
|
|
476
|
+
value:
|
|
477
|
+
error: Invalid Param Exception
|
|
478
|
+
message: Please provide apiKey
|
|
479
|
+
path: /v1.0/domain/dns/live
|
|
480
|
+
status: 400
|
|
481
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
482
|
+
headers:
|
|
483
|
+
X-AF-Credits-Cost:
|
|
484
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
485
|
+
'401':
|
|
486
|
+
description: Unauthorized — API key invalid
|
|
487
|
+
content:
|
|
488
|
+
application/json:
|
|
489
|
+
schema:
|
|
490
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
491
|
+
examples:
|
|
492
|
+
invalidApiKey:
|
|
493
|
+
summary: Invalid API key
|
|
494
|
+
value:
|
|
495
|
+
error: API Access Exception
|
|
496
|
+
message: 'Provided API key is invalid. [For Technical Support: support@apifreaks.com]'
|
|
497
|
+
path: /v1.0/domain/dns/live
|
|
498
|
+
status: 401
|
|
499
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
500
|
+
'406':
|
|
501
|
+
description: Unsupported Media Type — format is not json or xml
|
|
502
|
+
content:
|
|
503
|
+
application/json:
|
|
504
|
+
schema:
|
|
505
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
506
|
+
examples:
|
|
507
|
+
badFormat:
|
|
508
|
+
summary: format value not supported
|
|
509
|
+
value:
|
|
510
|
+
error: Unsupported Media Type
|
|
511
|
+
message: The media type specified in the request is not supported. For more details, please refer to the API documentation.
|
|
512
|
+
path: /v1.0/domain/dns/live
|
|
513
|
+
status: 406
|
|
514
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
473
515
|
headers:
|
|
474
516
|
X-AF-Credits-Cost:
|
|
475
517
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
@@ -54,7 +54,7 @@ paths:
|
|
|
54
54
|
- all
|
|
55
55
|
description: |
|
|
56
56
|
A comma-separated list of DNS record types for lookup.
|
|
57
|
-
Possible values: A, AAAA, MX, NS, SOA, SPF, TXT, CNAME, or all
|
|
57
|
+
Possible values: A, AAAA, MX, NS, SOA, SPF, TXT, CNAME, or all. Values are case-insensitive. PTR is not available in DNS history.
|
|
58
58
|
- name: page
|
|
59
59
|
in: query
|
|
60
60
|
required: false
|
|
@@ -250,7 +250,7 @@ paths:
|
|
|
250
250
|
X-AF-Credits-Cost:
|
|
251
251
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
252
252
|
'400':
|
|
253
|
-
description: Bad Request —
|
|
253
|
+
description: Bad Request — Missing or invalid parameters, page out of range, or missing API key
|
|
254
254
|
content:
|
|
255
255
|
application/json:
|
|
256
256
|
schema:
|
|
@@ -272,11 +272,58 @@ paths:
|
|
|
272
272
|
error: Invalid Param Exception
|
|
273
273
|
message: 'Please pass domain param correct value[For Technical Support: support@whoisfreaks.com]'
|
|
274
274
|
path: /v2.0/dns/historical
|
|
275
|
+
missingParams:
|
|
276
|
+
summary: host-name or type missing
|
|
277
|
+
value:
|
|
278
|
+
error: Invalid Param Exception
|
|
279
|
+
message: please pass correct parameters
|
|
280
|
+
path: /v1.0/domain/dns/history
|
|
281
|
+
status: 400
|
|
282
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
283
|
+
ptrNotSupported:
|
|
284
|
+
summary: PTR requested (not available in history)
|
|
285
|
+
value:
|
|
286
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
287
|
+
status: 400
|
|
288
|
+
error: Invalid Param Exception
|
|
289
|
+
message: Historical data does not have PTR record support. kindly try other Record Types.
|
|
290
|
+
path: /v2.0/dns/historical
|
|
291
|
+
pageOutOfRange:
|
|
292
|
+
summary: page past the last page of results
|
|
293
|
+
value:
|
|
294
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
295
|
+
status: 400
|
|
296
|
+
error: Bad Request
|
|
297
|
+
message: 'Unable to process Request. [For Technical Support: support@whoisfreaks.com] : argument "content" is null'
|
|
298
|
+
path: /v2.0/dns/historical
|
|
299
|
+
missingApiKey:
|
|
300
|
+
summary: API key not sent
|
|
301
|
+
value:
|
|
302
|
+
error: Invalid Param Exception
|
|
303
|
+
message: Please provide apiKey
|
|
304
|
+
path: /v1.0/domain/dns/history
|
|
305
|
+
status: 400
|
|
306
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
275
307
|
headers:
|
|
276
308
|
X-AF-Credits-Cost:
|
|
277
309
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
310
|
+
'401':
|
|
311
|
+
description: Unauthorized — API key invalid
|
|
312
|
+
content:
|
|
313
|
+
application/json:
|
|
314
|
+
schema:
|
|
315
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
316
|
+
examples:
|
|
317
|
+
invalidApiKey:
|
|
318
|
+
summary: Invalid API key
|
|
319
|
+
value:
|
|
320
|
+
error: API Access Exception
|
|
321
|
+
message: 'Provided API key is invalid. [For Technical Support: support@apifreaks.com]'
|
|
322
|
+
path: /v1.0/domain/dns/history
|
|
323
|
+
status: 401
|
|
324
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
278
325
|
'404':
|
|
279
|
-
description: Not Found — No DNS history records for the hostname
|
|
326
|
+
description: Not Found — No DNS history records for the hostname, or wrong HTTP method
|
|
280
327
|
content:
|
|
281
328
|
application/json:
|
|
282
329
|
schema:
|
|
@@ -290,6 +337,32 @@ paths:
|
|
|
290
337
|
error: Record not Found
|
|
291
338
|
message: 'No Record Found across: zzsuperrandomnonexistent998877.com'
|
|
292
339
|
path: /v2.0/dns/historical
|
|
340
|
+
wrongMethod:
|
|
341
|
+
summary: Wrong HTTP method used on the endpoint
|
|
342
|
+
value:
|
|
343
|
+
error: Resource Not Found
|
|
344
|
+
message: The requested resource could not be found. Please verify the URL and try again.
|
|
345
|
+
path: /v1.0/domain/dns/history
|
|
346
|
+
status: 404
|
|
347
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
348
|
+
headers:
|
|
349
|
+
X-AF-Credits-Cost:
|
|
350
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
351
|
+
'406':
|
|
352
|
+
description: Unsupported Media Type — format is not json or xml
|
|
353
|
+
content:
|
|
354
|
+
application/json:
|
|
355
|
+
schema:
|
|
356
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
357
|
+
examples:
|
|
358
|
+
badFormat:
|
|
359
|
+
summary: format value not supported
|
|
360
|
+
value:
|
|
361
|
+
error: Unsupported Media Type
|
|
362
|
+
message: The media type specified in the request is not supported. For more details, please refer to the API documentation.
|
|
363
|
+
path: /v1.0/domain/dns/history
|
|
364
|
+
status: 406
|
|
365
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
293
366
|
headers:
|
|
294
367
|
X-AF-Credits-Cost:
|
|
295
368
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|