@apifreaks/openapi-specs 0.4.23 → 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 +4020 -774
- package/dist/index.js +4020 -774
- 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 -21
- package/dist/specs/phone-number-validation/phone-validation.yaml +49 -21
- 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/asn-lookup.yaml +0 -15
- package/dist/specs/whois/bulk-whois-lookup.yaml +177 -25
- package/dist/specs/whois/domain-whois-history-lookup.yaml +97 -20
- package/dist/specs/whois/whois-domain-lookup.yaml +109 -21
- package/dist/specs/whois/whois-ip-lookup.yaml +86 -16
- 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 -30
- package/specs/phone-number-validation/phone-validation.json +64 -29
- 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/asn-lookup.json +0 -22
- package/specs/whois/bulk-whois-lookup.json +116 -47
- package/specs/whois/domain-whois-history-lookup.json +58 -32
- package/specs/whois/whois-domain-lookup.json +99 -39
- package/specs/whois/whois-ip-lookup.json +21 -33
|
@@ -16,7 +16,7 @@ paths:
|
|
|
16
16
|
tags:
|
|
17
17
|
- WHOIS APIs
|
|
18
18
|
summary: Retrieve WHOIS registration and ownership data for an IP address
|
|
19
|
-
description: Returns WHOIS details for an IPv4 or IPv6 address including IP range, organization, contacts, routes, and raw WHOIS output.
|
|
19
|
+
description: Returns WHOIS details for an IPv4 or IPv6 address including IP range, organization, contacts, routes, and raw WHOIS output. Private, loopback and other reserved addresses return the IANA special-use block and are charged like any other lookup; the IPv6 loopback address ::1 returns only the raw registry reply.
|
|
20
20
|
operationId: lookupIpWhois
|
|
21
21
|
parameters:
|
|
22
22
|
- name: format
|
|
@@ -169,6 +169,91 @@ paths:
|
|
|
169
169
|
#
|
|
170
170
|
# Copyright 1997-2026, American Registry for Internet Numbers, Ltd.
|
|
171
171
|
#
|
|
172
|
+
application/xml:
|
|
173
|
+
schema:
|
|
174
|
+
$ref: '#/components/schemas/IpWhoisResponse'
|
|
175
|
+
examples:
|
|
176
|
+
typicalSuccessXml:
|
|
177
|
+
summary: Typical successful response, as XML (format=xml)
|
|
178
|
+
value: |-
|
|
179
|
+
<whois>
|
|
180
|
+
<status>true</status>
|
|
181
|
+
<ip_address>8.8.8.8</ip_address>
|
|
182
|
+
<query_time>2026-11-25 07:13:41</query_time>
|
|
183
|
+
<whois_server>whois.arin.net</whois_server>
|
|
184
|
+
<inet_nums>
|
|
185
|
+
<inet_nums>
|
|
186
|
+
<start_ip>8.8.8.0</start_ip>
|
|
187
|
+
<end_ip>8.8.8.255</end_ip>
|
|
188
|
+
<cidr>
|
|
189
|
+
<cidr>8.8.8.0/24</cidr>
|
|
190
|
+
</cidr>
|
|
191
|
+
<net_name>GOGL</net_name>
|
|
192
|
+
<net_handle>NET-8-8-8-0-2</net_handle>
|
|
193
|
+
<status>Direct Allocation</status>
|
|
194
|
+
<organization>Google LLC (GOGL)</organization>
|
|
195
|
+
<date_created>2023-12-28</date_created>
|
|
196
|
+
<date_updated>2023-12-28</date_updated>
|
|
197
|
+
<source>https://rdap.arin.net/registry/ip/8.8.8.0</source>
|
|
198
|
+
<parents>
|
|
199
|
+
<parents>NET8 (NET-8-0-0-0-0)</parents>
|
|
200
|
+
</parents>
|
|
201
|
+
</inet_nums>
|
|
202
|
+
</inet_nums>
|
|
203
|
+
<organization>
|
|
204
|
+
<handle>GOGL</handle>
|
|
205
|
+
<name>Google LLC</name>
|
|
206
|
+
<address>
|
|
207
|
+
<address>1600 Amphitheatre Parkway</address>
|
|
208
|
+
<address>Mountain View</address>
|
|
209
|
+
<address>CA</address>
|
|
210
|
+
<address>94043</address>
|
|
211
|
+
<address>US</address>
|
|
212
|
+
</address>
|
|
213
|
+
<street>Amphitheatre Parkway</street>
|
|
214
|
+
<city>Mountain View</city>
|
|
215
|
+
<state>CA</state>
|
|
216
|
+
<zip_code>94043</zip_code>
|
|
217
|
+
<country>
|
|
218
|
+
<country>US</country>
|
|
219
|
+
</country>
|
|
220
|
+
<date_created>2000-03-30</date_created>
|
|
221
|
+
<date_updated>2019-10-31</date_updated>
|
|
222
|
+
<source>https://rdap.arin.net/registry/entity/GOGL</source>
|
|
223
|
+
</organization>
|
|
224
|
+
<technical_contacts>
|
|
225
|
+
<technical_contacts>
|
|
226
|
+
<handle>ZG39-ARIN</handle>
|
|
227
|
+
<name>Google LLC</name>
|
|
228
|
+
<email>
|
|
229
|
+
<email>arin-contact@google.com</email>
|
|
230
|
+
</email>
|
|
231
|
+
<phone>
|
|
232
|
+
<phone>+1-650-253-0000</phone>
|
|
233
|
+
</phone>
|
|
234
|
+
<source>https://rdap.arin.net/registry/entity/ZG39-ARIN</source>
|
|
235
|
+
</technical_contacts>
|
|
236
|
+
</technical_contacts>
|
|
237
|
+
<abuse_contacts>
|
|
238
|
+
<abuse_contacts>
|
|
239
|
+
<handle>ABUSE5250-ARIN</handle>
|
|
240
|
+
<name>Abuse</name>
|
|
241
|
+
<email>
|
|
242
|
+
<email>network-abuse@google.com</email>
|
|
243
|
+
</email>
|
|
244
|
+
<phone>
|
|
245
|
+
<phone>+1-650-253-0000</phone>
|
|
246
|
+
</phone>
|
|
247
|
+
<source>https://rdap.arin.net/registry/entity/ABUSE5250-ARIN</source>
|
|
248
|
+
</abuse_contacts>
|
|
249
|
+
</abuse_contacts>
|
|
250
|
+
<routes>
|
|
251
|
+
<routes>
|
|
252
|
+
<source>https://rdap.arin.net/registry/ip/8.8.8.0</source>
|
|
253
|
+
</routes>
|
|
254
|
+
</routes>
|
|
255
|
+
<whois_raw_response># # ARIN WHOIS data and services are subject to the Terms of Use # available at: https://w ...</whois_raw_response>
|
|
256
|
+
</whois>
|
|
172
257
|
headers:
|
|
173
258
|
X-AF-Credits-Cost:
|
|
174
259
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
@@ -386,21 +471,6 @@ paths:
|
|
|
386
471
|
error: Fetching Whois Data Failed
|
|
387
472
|
message: 'You have exceeded the limit of Surcharge Requests [allowed_surcharge_request_no]. Please upgrade your plan. [For Technical Support email at: support@apifreaks.com]'
|
|
388
473
|
path: /v1.0/ip/whois/live
|
|
389
|
-
'429':
|
|
390
|
-
description: Too Many Requests -- The per-minute request limit is reached
|
|
391
|
-
content:
|
|
392
|
-
application/json:
|
|
393
|
-
schema:
|
|
394
|
-
$ref: '#/components/schemas/ErrorResponse'
|
|
395
|
-
examples:
|
|
396
|
-
rateLimited:
|
|
397
|
-
summary: Per-minute request limit reached
|
|
398
|
-
value:
|
|
399
|
-
timestamp: '2024-07-10T13:47:02.486Z'
|
|
400
|
-
status: 429
|
|
401
|
-
error: Fetching Whois Data Failed
|
|
402
|
-
message: Please slow down. Your maximum request limit per minute reached.
|
|
403
|
-
path: /v1.0/ip/whois/live
|
|
404
474
|
'499':
|
|
405
475
|
description: Client Closed Request -- The request or connection timeout set by the client is too short
|
|
406
476
|
content:
|
package/package.json
CHANGED
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
}
|
|
143
143
|
},
|
|
144
144
|
"400": {
|
|
145
|
-
"description": "Bad Request — Missing parameters or invalid dates",
|
|
145
|
+
"description": "Bad Request — Missing parameters or invalid dates, or missing API key",
|
|
146
146
|
"content": {
|
|
147
147
|
"application/json": {
|
|
148
148
|
"examples": {
|
|
@@ -185,6 +185,16 @@
|
|
|
185
185
|
"error": "VALIDATION_ERROR",
|
|
186
186
|
"message": "Start date cannot be after end date"
|
|
187
187
|
}
|
|
188
|
+
},
|
|
189
|
+
"missingApiKey": {
|
|
190
|
+
"summary": "API key not sent",
|
|
191
|
+
"value": {
|
|
192
|
+
"error": "Invalid Param Exception",
|
|
193
|
+
"message": "Please provide apiKey",
|
|
194
|
+
"path": "/v2.0/commodity/fluctuation",
|
|
195
|
+
"status": 400,
|
|
196
|
+
"timestamp": "2026-11-25T10:07:00.000Z"
|
|
197
|
+
}
|
|
188
198
|
}
|
|
189
199
|
},
|
|
190
200
|
"schema": {
|
|
@@ -198,6 +208,28 @@
|
|
|
198
208
|
}
|
|
199
209
|
}
|
|
200
210
|
},
|
|
211
|
+
"401": {
|
|
212
|
+
"description": "Unauthorized — API key invalid",
|
|
213
|
+
"content": {
|
|
214
|
+
"application/json": {
|
|
215
|
+
"schema": {
|
|
216
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
217
|
+
},
|
|
218
|
+
"examples": {
|
|
219
|
+
"invalidApiKey": {
|
|
220
|
+
"summary": "Invalid API key",
|
|
221
|
+
"value": {
|
|
222
|
+
"error": "API Access Exception",
|
|
223
|
+
"message": "Provided API key is invalid. [For Technical Support: support@apifreaks.com]",
|
|
224
|
+
"path": "/v2.0/commodity/fluctuation",
|
|
225
|
+
"status": 401,
|
|
226
|
+
"timestamp": "2026-11-25T10:07:00.000Z"
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
},
|
|
201
233
|
"402": {
|
|
202
234
|
"description": "Payment Required — Maximum symbols per request exceeded",
|
|
203
235
|
"content": {
|
|
@@ -226,7 +258,7 @@
|
|
|
226
258
|
}
|
|
227
259
|
},
|
|
228
260
|
"404": {
|
|
229
|
-
"description": "Not found - Symbol or data not available",
|
|
261
|
+
"description": "Not found - Symbol or data not available, or wrong HTTP method",
|
|
230
262
|
"content": {
|
|
231
263
|
"application/json": {
|
|
232
264
|
"schema": {
|
|
@@ -257,6 +289,16 @@
|
|
|
257
289
|
"error": "DATA_NOT_FOUND",
|
|
258
290
|
"message": "No data found for the given date range"
|
|
259
291
|
}
|
|
292
|
+
},
|
|
293
|
+
"wrongMethod": {
|
|
294
|
+
"summary": "Wrong HTTP method used on the endpoint",
|
|
295
|
+
"value": {
|
|
296
|
+
"error": "Resource Not Found",
|
|
297
|
+
"message": "The requested resource could not be found. Please verify the URL and try again.",
|
|
298
|
+
"path": "/v2.0/commodity/fluctuation",
|
|
299
|
+
"status": 404,
|
|
300
|
+
"timestamp": "2026-11-25T10:07:00.000Z"
|
|
301
|
+
}
|
|
260
302
|
}
|
|
261
303
|
}
|
|
262
304
|
}
|
|
@@ -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
|
}
|